:root {
  --cs-blue-900: #000000;
  --cs-blue-700: #aac513;
  --cs-blue-600: #88a301;
  --cs-cyan-500: #fe842e;
  --cs-green-600: #aac513;
  --cs-amber-500: #fe842e;
  --cs-ink: #000000;
  --cs-muted: #676767;
  --cs-border: #ebebeb;
  --cs-surface: #ffffff;
  --cs-soft: #f8f8f8;
  --cs-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body.demo-page {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--cs-ink);
  font-family: Helvetica, Arial, sans-serif;
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #ebebeb;
  backdrop-filter: blur(16px);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cs-blue-900);
  text-decoration: none;
}

.demo-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #000000;
  color: var(--cs-blue-700);
  font-weight: 800;
}

.demo-hero h1,
.cs-it-step h3,
.cs-it-download-card h4 {
  font-family: "Arial Black", Helvetica, Arial, sans-serif;
  font-weight: 900;
}

.demo-brand strong,
.demo-brand small {
  display: block;
}

.demo-brand small {
  margin-top: 2px;
  color: var(--cs-muted);
  font-size: 12px;
}

.demo-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
}

.demo-nav a,
.demo-phone,
.demo-link {
  color: var(--cs-blue-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.demo-phone {
  white-space: nowrap;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
  min-height: 68vh;
  padding: clamp(42px, 7vw, 92px) clamp(20px, 4vw, 58px) 54px;
  background: linear-gradient(to right, #000000, #0a0a0a, #5b6819);
}

.demo-hero__content {
  max-width: 650px;
}

.demo-kicker {
  margin: 0 0 12px;
  color: var(--cs-blue-700);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
}

.demo-hero .demo-link {
  color: #ffffff;
}

.demo-hero p:not(.demo-kicker) {
  margin: 22px 0 0;
  max-width: 590px;
  color: #f3f3f3;
  font-size: 18px;
  line-height: 1.65;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 50px;
  background: var(--cs-blue-700);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.demo-hero__visual {
  display: flex;
  justify-content: center;
}

.demo-terminal {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: #15171b;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.demo-terminal__bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: #f2f5f8;
}

.demo-terminal__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cs-amber-500);
}

.demo-terminal__bar span:nth-child(2) {
  background: var(--cs-cyan-500);
}

.demo-terminal__bar span:nth-child(3) {
  background: var(--cs-green-600);
}

.demo-terminal__screen {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.demo-terminal__screen div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.demo-terminal__screen span {
  color: var(--cs-blue-700);
}

.demo-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #ebebeb;
  padding: 1px;
}

.demo-section article {
  min-height: 210px;
  padding: clamp(24px, 3vw, 38px);
  background: #ffffff;
}

.demo-section span {
  color: var(--cs-cyan-500);
  font-weight: 800;
}

.demo-section h2 {
  margin: 18px 0 12px;
  color: var(--cs-blue-900);
  font-size: 24px;
}

.demo-section p {
  margin: 0;
  color: var(--cs-muted);
  line-height: 1.6;
}

.cs-it-widget,
.cs-it-widget * {
  box-sizing: border-box;
}

.cs-it-widget {
  color: var(--cs-ink);
  font-family: Helvetica, Arial, sans-serif;
}

.cs-it-widget button,
.cs-it-widget input {
  font: inherit;
}

.cs-it-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--cs-blue-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-it-primary,
.cs-it-secondary,
.cs-it-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 800;
}

.cs-it-primary {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--cs-blue-700);
  background: var(--cs-blue-700);
  color: #f3f3f3;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cs-it-primary:hover {
  background: transparent;
  color: var(--cs-blue-700);
}

.cs-it-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--cs-border);
  border-radius: 50px;
  background: #ffffff;
  color: var(--cs-blue-900);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Floating corner button that brings the closed quiz back */
#top .cs-it-widget .cs-it-launcher,
.cs-it-widget .cs-it-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99998;
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cs-blue-700);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 140ms ease, background 140ms ease;
  animation: cs-it-launcher-in 260ms ease-out;
}

#top .cs-it-widget .cs-it-launcher:hover,
#top .cs-it-widget .cs-it-launcher:focus-visible {
  background: var(--cs-blue-600);
  color: #ffffff;
  transform: scale(1.06);
  outline: 0;
}

#top .cs-it-widget .cs-it-launcher svg {
  display: block;
}

@keyframes cs-it-launcher-in {
  from { opacity: 0; transform: translateY(12px) scale(0.85); }
  to   { opacity: 1; transform: none; }
}

/* While a bottom cookie bar is visible, cs-it-dialog.js lifts the button via inline `bottom`. */

@media (max-width: 640px) {
  #top .cs-it-widget .cs-it-launcher {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
}

.cs-it-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 21, 35, 0.52);
}

.cs-it-modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--cs-shadow);
}

.cs-it-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: auto;
}

.cs-it-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 0;
}

.cs-it-progress {
  flex: 1;
}

.cs-it-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--cs-muted);
  font-size: 13px;
  font-weight: 700;
}

.cs-it-progress__track {
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #efefef;
  overflow: hidden;
}

.cs-it-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cs-blue-700), var(--cs-cyan-500));
  transition: width 200ms ease;
}

.cs-it-step {
  min-width: 0;
  padding: 24px;
}

.cs-it-step h3 {
  margin: 0;
  color: var(--cs-blue-900);
  font-size: 18px;
  line-height: 1.3;
}

.cs-it-step > p {
  margin: 8px 0 0;
  color: var(--cs-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cs-it-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.cs-it-paths {
  grid-template-columns: 1fr;
}

.cs-it-option {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 60px;
  padding: 14px 46px 14px 18px;
  border: 2px solid var(--cs-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--cs-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.cs-it-option:hover,
.cs-it-option:focus-visible {
  border-color: var(--cs-blue-700);
  background: #fbfdec;
  transform: translateY(-1px);
  outline: 0;
}

.cs-it-option[aria-pressed="true"] {
  border-color: var(--cs-blue-700);
  background: var(--cs-blue-700);
}

.cs-it-option[aria-pressed="true"] strong {
  color: #ffffff;
}

.cs-it-option strong {
  color: var(--cs-blue-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.cs-it-paths .cs-it-option strong {
  font-size: 18px;
}

.cs-it-option__tick {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--cs-border);
  border-radius: 50%;
  color: transparent;
  /* The glyph is hidden; the tick is drawn with a CSS pseudo-element so it is
     always centred regardless of font metrics. */
  font-size: 0;
  line-height: 1;
}

.cs-it-option__tick::before {
  content: "";
  display: block;
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

.cs-it-option[aria-pressed="true"] .cs-it-option__tick {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--cs-blue-700);
}

.cs-it-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.cs-it-secondary,
.cs-it-ghost {
  min-height: 44px;
  padding: 0 16px;
  border-color: var(--cs-blue-700);
  background: transparent;
  color: var(--cs-blue-700);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.cs-it-secondary:hover,
.cs-it-ghost:hover {
  background: var(--cs-blue-700);
  color: #ffffff;
}

.cs-it-ghost {
  border-color: var(--cs-border);
  color: var(--cs-muted);
}

.cs-it-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cs-it-step .cs-it-download-card {
  margin-top: 22px;
}

.cs-it-download-card {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--cs-border);
  border-radius: 8px;
  background: #ffffff;
}

.cs-it-download-card p {
  margin: 0;
  color: var(--cs-muted);
  line-height: 1.55;
}

.cs-it-download-card .cs-it-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cs-it-download-card h4 {
  margin: 0;
  color: var(--cs-blue-900);
  font-size: 18px;
}

.cs-it-form {
  padding: 18px;
  border: 1px solid var(--cs-border);
  border-radius: 8px;
  background: #ffffff;
}

.cs-it-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.cs-it-field label,
.cs-it-consent {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.cs-it-field input[type="text"],
.cs-it-field input[type="email"],
.cs-it-field input[type="tel"],
.cs-it-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cs-border);
  border-radius: 50px;
  color: var(--cs-ink);
}

.cs-it-field input:focus,
.cs-it-field textarea:focus {
  border-color: var(--cs-blue-700);
  outline: 3px solid rgba(170, 197, 19, 0.22);
}

.cs-it-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 14px;
  line-height: 1.35;
}

.cs-it-consent input {
  margin-top: 2px;
}

.cs-it-consent a,
.cs-it-small a {
  color: var(--cs-blue-700);
}

.cs-it-small {
  margin-top: 12px;
  color: var(--cs-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cs-it-error {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e0a6a6;
  border-radius: 50px;
  background: #fff4f4;
  color: #8a1f1f;
  font-size: 13px;
  line-height: 1.35;
}

.cs-it-success {
  display: grid;
  min-height: 340px;
  align-content: center;
  justify-items: start;
}

.cs-it-success__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #e7f6ee;
  color: var(--cs-green-600);
  font-size: 28px;
  font-weight: 800;
}

body.cs-it-dialog-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .demo-header {
    align-items: flex-start;
  }

  .demo-nav {
    display: none;
  }

  .demo-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .demo-hero__visual {
    order: 2;
    justify-content: flex-start;
  }

  .demo-section {
    grid-template-columns: 1fr;
  }

  .cs-it-content {
    min-height: auto;
    max-height: calc(100vh - 170px);
  }
}

@media (max-width: 640px) {
  .demo-header {
    padding: 14px 16px;
  }

  .demo-phone {
    display: none;
  }

  .demo-hero {
    padding: 36px 16px 44px;
  }

  .demo-hero h1 {
    font-size: 40px;
  }

  .cs-it-overlay {
    align-items: end;
    padding: 10px;
  }

  .cs-it-modal {
    max-height: calc(100vh - 20px);
  }

  .cs-it-topbar,
  .cs-it-step {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cs-it-step h3 {
    font-size: 23px;
  }

  .cs-it-actions {
    display: grid;
  }

  .cs-it-primary,
  .cs-it-secondary,
  .cs-it-ghost {
    width: 100%;
  }
}

@media (max-width: 640px) {
  /* Phone: sheet-style dialog — only as tall as its content, docked to the bottom edge */
  .cs-it-overlay {
    align-items: end;
    height: 100vh;
    height: 100dvh;
    padding: 8px;
  }

  #top .cs-it-widget .cs-it-overlay .cs-it-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .cs-it-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cs-it-topbar {
    gap: 10px;
    padding-top: 14px;
  }

  .cs-it-progress__meta {
    font-size: 12px;
  }

  .cs-it-progress__track {
    height: 6px;
    margin-top: 6px;
  }

  .cs-it-step {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .cs-it-step h3 {
    font-size: 21px;
  }

  .cs-it-step > p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .cs-it-options {
    gap: 8px;
    margin-top: 14px;
  }

  .cs-it-option {
    min-height: 56px;
    gap: 4px;
    padding: 12px 42px 12px 14px;
  }

  .cs-it-option strong {
    font-size: 16px;
  }

  .cs-it-option__tick {
    right: 10px;
  }

  .cs-it-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .cs-it-download-card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-it-progress__bar,
  .cs-it-option,
  .cs-it-launcher {
    transition: none;
    animation: none;
  }
}

.cs-it-step > p.cs-it-multihint {
  margin: 8px 0 0;
  color: var(--cs-muted);
  font-size: 12px;
  text-align: right;
}

/* Result screen: insight + benefits + request form (2026-09-08) */
.cs-it-step > p.cs-it-insight {
  margin-top: 10px;
  color: var(--cs-ink);
  font-size: 15px;
  line-height: 1.55;
}

.cs-it-download-card > p.cs-it-lead {
  color: var(--cs-ink);
  font-weight: 700;
}

.cs-it-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.cs-it-benefits li {
  position: relative;
  padding-left: 24px;
  color: var(--cs-ink);
  font-size: 15px;
  line-height: 1.45;
}

.cs-it-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cs-green-600);
  font-weight: 800;
}

.cs-it-download-card .cs-it-form {
  padding: 0;
  border: 0;
  border-top: 1px solid var(--cs-border);
  border-radius: 0;
  padding-top: 14px;
}

.cs-it-form__lead {
  margin: 0;
  color: var(--cs-ink);
  font-size: 15px;
  line-height: 1.45;
}

.cs-it-form__lead strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cs-blue-900);
}

.cs-it-field label {
  font-weight: 600;
}

.cs-it-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cs-it-form .cs-it-actions {
  margin-top: 14px;
}

.cs-it-primary[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.cs-it-download-card .cs-it-success {
  min-height: 0;
  gap: 10px;
}

.cs-it-success h4 {
  margin: 0;
  color: var(--cs-blue-900);
  font-size: 18px;
}

.cs-it-success p {
  margin: 0;
}

/* Form polish: beat Enfold's global label/input styles */
#top .cs-it-widget .cs-it-download-card > p.cs-it-lead {
  font-size: 15px;
  margin: 0;
}

#top .cs-it-widget .cs-it-field label {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

#top .cs-it-widget .cs-it-field {
  margin-top: 12px;
  gap: 5px;
}

#top .cs-it-widget .cs-it-field input[type="text"],
#top .cs-it-widget .cs-it-field input[type="email"],
#top .cs-it-widget .cs-it-field input[type="tel"],
#top .cs-it-widget .cs-it-field textarea {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--cs-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--cs-ink);
  font-size: 15px;
  box-shadow: none;
}

#top .cs-it-widget .cs-it-field input:focus,
#top .cs-it-widget .cs-it-field textarea:focus {
  border-color: var(--cs-blue-700);
  outline: 3px solid rgba(170, 197, 19, 0.22);
}

#top .cs-it-widget .cs-it-field textarea {
  min-height: 84px;
  padding: 10px 14px;
  line-height: 1.45;
  resize: vertical;
}

#top .cs-it-widget .cs-it-field label .cs-it-required {
  margin-left: 2px;
  color: var(--cs-blue-700);
}

/* Summary of the quiz answers that travel with the contact message */
#top .cs-it-widget .cs-it-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--cs-border);
  border-radius: 6px;
  background: #fbfdec;
}

#top .cs-it-widget .cs-it-summary__lead {
  margin: 0 0 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

#top .cs-it-widget .cs-it-summary__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top .cs-it-widget .cs-it-summary__list li {
  margin: 0;
  padding: 3px 9px;
  border: 1px solid var(--cs-border);
  border-radius: 50px;
  background: #ffffff;
  color: var(--cs-ink);
  font-size: 12px;
  line-height: 1.35;
}

#top .cs-it-widget .cs-it-summary__list li.cs-it-summary__topic {
  border-color: var(--cs-blue-700);
  background: var(--cs-blue-700);
  color: #ffffff;
  font-weight: 700;
}

/* In-dialog contact form (replaces the offer card after "Kontakt aufnehmen") */
#top .cs-it-widget [data-cs-step="4"] .cs-it-contact-card {
  margin-top: 4px;
}

#top .cs-it-widget .cs-it-contact-card > p.cs-it-lead {
  font-weight: 400;
  color: var(--cs-muted);
}

#top .cs-it-widget .cs-it-contact-card .cs-it-form {
  border-top: 0;
  padding-top: 0;
}

#top .cs-it-widget .cs-it-contact-card .cs-it-form .cs-it-actions {
  grid-template-columns: 1fr;
}

#top .cs-it-widget .cs-it-download-card h4 {
  font-size: 17px;
  line-height: 1.35;
}

/* Compact result screen so the whole offer + form fits without scrolling */
#top .cs-it-widget [data-cs-step="4"] .cs-it-download-card {
  margin-top: 14px;
  padding: 14px 16px;
  gap: 8px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-benefits {
  gap: 3px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-benefits li,
#top .cs-it-widget [data-cs-step="4"] .cs-it-form__lead {
  font-size: 14px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-form {
  padding-top: 10px;
  margin-top: 2px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-field {
  margin-top: 8px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-field input[type="text"],
#top .cs-it-widget [data-cs-step="4"] .cs-it-field input[type="email"],
#top .cs-it-widget [data-cs-step="4"] .cs-it-field input[type="tel"] {
  min-height: 38px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-small {
  margin-top: 8px;
}

#top .cs-it-widget [data-cs-step="4"] .cs-it-form .cs-it-actions {
  margin-top: 10px;
  grid-template-columns: 1fr;
}

/* The result screen carries the offer + request form: allow a taller modal there */
#top .cs-it-modal:has([data-cs-step="4"]) {
  max-height: min(840px, calc(100vh - 44px));
}

/* Phone: action buttons side by side, each half the width (Zurück | Weiter, Senden | Zurück, …) */
@media (max-width: 640px) {
  #top .cs-it-widget .cs-it-modal .cs-it-step .cs-it-actions,
  #top .cs-it-widget .cs-it-modal .cs-it-download-card .cs-it-actions,
  #top .cs-it-widget .cs-it-modal .cs-it-form .cs-it-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  #top .cs-it-widget .cs-it-modal .cs-it-actions .cs-it-primary,
  #top .cs-it-widget .cs-it-modal .cs-it-actions .cs-it-secondary,
  #top .cs-it-widget .cs-it-modal .cs-it-actions .cs-it-ghost {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 10px;
    white-space: normal;
    line-height: 1.2;
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  /* A lone button (e.g. the success screen's "Schließen") still spans the full width */
  #top .cs-it-widget .cs-it-modal .cs-it-actions > :only-child {
    grid-column: 1 / -1;
  }
}

/* Privacy consent checkbox in the request and contact form */
#top .cs-it-widget .cs-it-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0 0;
  color: var(--cs-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

#top .cs-it-widget .cs-it-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--cs-blue-700);
  cursor: pointer;
}

#top .cs-it-widget .cs-it-consent a {
  color: var(--cs-blue-700);
  text-decoration: underline;
}

#top .cs-it-widget .cs-it-consent .cs-it-required {
  margin-left: 2px;
  color: var(--cs-blue-700);
}

/* Close animation: a copy of the dialog shrinks into the corner button, which then pulses
   (flyToLauncher in the script) — shows visitors where to reopen it. */
.cs-it-fly {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  pointer-events: none;
}

#top .cs-it-fly .cs-it-fly__ghost {
  position: fixed;
  max-width: none;
  max-height: none;
  margin: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}

#top .cs-it-widget .cs-it-launcher--waiting {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

#top .cs-it-widget .cs-it-launcher--arrived {
  animation: cs-it-launcher-arrive 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

#top .cs-it-widget .cs-it-launcher--arrived::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: cs-it-launcher-ring 1100ms ease-out 2;
}

@keyframes cs-it-launcher-arrive {
  0%   { opacity: 0.4; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: none; }
}

@keyframes cs-it-launcher-ring {
  from { box-shadow: 0 0 0 0 rgba(170, 197, 19, 0.6); }
  to   { box-shadow: 0 0 0 26px rgba(170, 197, 19, 0); }
}
