/* Meine Werbetafel: Anfrageformular. Gehoert zu assets/werbetafel-form.js.
   Look vom Live-Export abgelesen: Epilogue 500 fuer Titel (-0.4px), Instrument Sans
   fuer Text und Buttons, Orange #F07A25 mit 135-Grad-Verlauf, Radius 8px. */

/* Platz reservieren, bis das Formular nach der Hydration eingehaengt ist (kein Layoutsprung). */
[data-id="R5a84LuxJCJrjy5atyj2g"] > .con-kit-component-atom-list:empty { min-height: 560px; }

.wt-host { width: 100%; }

.wt {
  --wt-orange: #F07A25;
  --wt-orange-08: rgba(240, 122, 37, .8);
  --wt-orange-tint: rgba(240, 122, 37, .14);
  --wt-text: #FFFFFF;
  /* deckend: halbtransparente Grautoene nehmen ueber dem LED-Bild dessen Farbe an */
  --wt-muted: #C9C9C9;
  --wt-shadow: 0 1px 12px rgba(0, 0, 0, .7);
  --wt-surface: rgba(0, 0, 0, .58);
  --wt-surface-hover: rgba(18, 18, 18, .74);
  --wt-field: rgba(0, 0, 0, .62);
  --wt-line: rgba(255, 255, 255, .26);
  --wt-line-strong: rgba(255, 255, 255, .64);
  --wt-error: #FFA68F;
  --wt-radius: 8px;
  --wt-ease: cubic-bezier(.2, .7, .2, 1);
  --wt-font-head: Epilogue, "Helvetica Neue", Arial, sans-serif;
  --wt-font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0;
  font-family: var(--wt-font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--wt-text);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.wt *, .wt *::before, .wt *::after { box-sizing: border-box; }
.wt [hidden] { display: none !important; }

.wt-sr, .wt-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.wt-hp { left: -10000px; }

.wt a { color: var(--wt-orange); text-decoration: underline; text-underline-offset: 3px; }
.wt a:focus-visible, .wt button:focus-visible {
  outline: 3px solid var(--wt-text); outline-offset: 3px; border-radius: 4px;
}
/* Titel bekommen den Fokus nur programmatisch (Schrittwechsel), sie sind nicht bedienbar. */
.wt .wt-title:focus { outline: none; }

/* ---------- Fortschritt (wie die Onepage-Linie: Text, darunter 5px-Balken) ---------- */
.wt-progress { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 26px; }
.wt-progress__text { margin: 0; font-size: 15px; color: var(--wt-muted); font-variant-numeric: tabular-nums; text-shadow: var(--wt-shadow); }
.wt-progress__track { width: 150px; height: 5px; border-radius: 100px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.wt-progress__bar {
  height: 100%; width: 100%;
  border-radius: inherit;
  background: var(--wt-orange);
  transform: scaleX(.2); transform-origin: left center;
  transition: transform .35s var(--wt-ease);
}

/* ---------- Schritte ---------- */
.wt-form { margin: 0; }
.wt-step, .wt-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wt-legend { display: block; width: 100%; padding: 0; margin: 0; }
.wt-title {
  margin: 0 auto 12px;
  max-width: 24ch;
  font-family: var(--wt-font-head);
  font-weight: 500;
  font-size: clamp(30px, 2.4vw + 22px, 48px);
  line-height: 1.22;
  letter-spacing: -.4px;
  text-align: center;
  color: var(--wt-text);
  text-wrap: balance;
  text-shadow: var(--wt-shadow);
}
.wt-question {
  margin: 18px 0 0;
  font-family: var(--wt-font-head);
  font-weight: 500;
  font-size: clamp(19px, .6vw + 16px, 24px);
  line-height: 1.3;
  letter-spacing: -.2px;
  text-align: center;
  color: var(--wt-muted);
  text-shadow: var(--wt-shadow);
}
.wt-step__hint { max-width: 52ch; margin: 0 auto; text-align: center; color: var(--wt-muted); font-size: 16px; text-shadow: var(--wt-shadow); text-wrap: pretty; }
.wt-step .wt-step__hint + * { margin-top: 26px; }
.wt-legend + .wt-choices, .wt-title + .wt-pair, .wt-title + .wt-field { margin-top: 28px; }
.wt-step.is-enter-fwd { animation: wt-in-fwd .28s var(--wt-ease); }
.wt-step.is-enter-back { animation: wt-in-back .28s var(--wt-ease); }
@keyframes wt-in-fwd { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes wt-in-back { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

/* ---------- Auswahl ---------- */
.wt-choices { display: grid; gap: 14px; margin-left: auto; margin-right: auto; }
.wt-choices--abo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
.wt-choices--row { grid-template-columns: 1fr; max-width: 560px; }
.wt-choice {
  position: relative;
  display: flex;
  border-radius: var(--wt-radius);
  background: var(--wt-surface);
  color: var(--wt-text);
  cursor: pointer;
  transition: background-color .2s var(--wt-ease);
  -webkit-tap-highlight-color: transparent;
}
.wt-choice__input {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.wt-choice__frame {
  position: absolute; inset: 0; z-index: 2;
  border: 1px solid var(--wt-line);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .2s var(--wt-ease), box-shadow .2s var(--wt-ease);
}
/* Radio-Kreis wie im alten Quiz; gewaehlt: orange gefuellt mit Haken. */
.wt-choice__dot {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border: 2px solid var(--wt-line-strong); border-radius: 50%;
  color: transparent;
  transition: background-color .18s var(--wt-ease), border-color .18s var(--wt-ease), color .18s var(--wt-ease);
}
.wt-choice__dot svg { width: 14px; height: 14px; }
.wt-choice__input:checked ~ .wt-choice__frame { border-color: var(--wt-orange); box-shadow: inset 0 0 0 1px var(--wt-orange); }
.wt-choice__input:checked ~ .wt-choice__dot { background: var(--wt-orange); border-color: var(--wt-orange); color: #FFF; }
.wt-choice:has(.wt-choice__input:checked) { background: var(--wt-orange-tint); }
.wt-choice__input:focus-visible ~ .wt-choice__frame { outline: 3px solid var(--wt-text); outline-offset: 3px; }
.wt-step.is-invalid .wt-choice__frame { border-color: var(--wt-error); }
@media (hover: hover) {
  .wt-choice:hover { background: var(--wt-surface-hover); }
  .wt-choice:hover .wt-choice__frame { border-color: var(--wt-line-strong); }
  .wt-choice:hover .wt-choice__input:checked ~ .wt-choice__frame { border-color: var(--wt-orange); }
}

/* Abo-Karten: Name, Preis gross, Laufzeit */
.wt-choice--abo { flex-direction: column; padding: 22px 22px 20px; min-height: 188px; }
.wt-choice--abo .wt-choice__dot { position: absolute; top: 20px; right: 20px; }
.wt-abo__name { padding-right: 36px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.wt-abo__info { display: flex; flex-direction: column; flex: 1; }
.wt-abo__price {
  margin-top: 16px;
  font-family: var(--wt-font-head);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wt-abo__unit { margin-top: 4px; font-size: 14px; color: var(--wt-muted); }
.wt-abo__term { margin-top: auto; padding-top: 14px; font-size: 15px; }
.wt-note { max-width: 60ch; margin: 16px auto 0; text-align: center; font-size: 14px; color: var(--wt-muted); text-shadow: var(--wt-shadow); text-wrap: balance; }

/* Ja/Nein-Zeilen */
.wt-choice--row { align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px; }
.wt-choice__label { position: relative; font-size: 17px; line-height: 1.35; }

/* ---------- Felder ---------- */
.wt-step[data-step="kontakt"] > :not(.wt-title):not(.wt-step__hint),
.wt-step[data-step="pruefen"] > :not(.wt-title) { max-width: 640px; margin-left: auto; margin-right: auto; }
.wt-step[data-step="start"] .wt-field { max-width: 360px; margin-left: auto; margin-right: auto; }
.wt-field { margin: 0 0 20px; text-align: left; }
.wt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wt-label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--wt-text); text-shadow: var(--wt-shadow); }
.wt-optional { font-weight: 400; color: var(--wt-muted); }
.wt-hint { margin: -2px 0 10px; font-size: 15px; color: var(--wt-muted); }
.wt-input {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-radius);
  background: var(--wt-field);
  color: var(--wt-text);
  font: 400 17px/1.4 var(--wt-font);
  box-shadow: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s var(--wt-ease), box-shadow .15s var(--wt-ease);
}
.wt-input--area { min-height: 116px; resize: vertical; }
.wt-input:hover { border-color: var(--wt-line-strong); }
.wt-input:focus { outline: none; border-color: var(--wt-orange); box-shadow: 0 0 0 1px var(--wt-orange); }
.wt-input[aria-invalid="true"] { border-color: var(--wt-error); box-shadow: 0 0 0 1px var(--wt-error); }
.wt-input[type="date"] { min-height: 60px; color-scheme: dark; text-align: left; }
.wt-input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.wt-input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; width: 22px; height: 22px; filter: invert(1); opacity: .8; }

.wt-error {
  text-shadow: var(--wt-shadow);
  display: flex; align-items: flex-start; gap: 8px;
  margin: 8px 0 0;
  font-size: 15px; font-weight: 500; line-height: 1.4;
  color: var(--wt-error);
}
.wt-error::before {
  content: "!"; flex: none;
  display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--wt-error); color: #000; font-size: 12px; font-weight: 700;
}
.wt-pair + .wt-error { margin: -6px 0 18px; }
.wt-fieldset > .wt-error { justify-content: center; margin-top: 16px; }
.wt-step[data-step="start"] .wt-error { justify-content: center; }

/* Einwilligung */
.wt-consent { margin: 8px 0 4px; }
.wt-consent__label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 15px; line-height: 1.5; color: var(--wt-text); cursor: pointer; text-shadow: var(--wt-shadow); }
.wt-consent__box { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--wt-orange); cursor: pointer; }
.wt-consent__box:focus-visible { outline: 3px solid var(--wt-text); outline-offset: 2px; }
.wt-consent.is-invalid .wt-consent__box { outline: 2px solid var(--wt-error); outline-offset: 2px; }

/* ---------- Buttons (wie die Seiten-Buttons) ---------- */
.wt-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 32px auto 0; }
.wt-actions.is-first { justify-content: center; }
.wt-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px; margin: 0; padding: 8px 31px;
  border: 0; border-radius: var(--wt-radius);
  background: linear-gradient(135deg, var(--wt-orange-08), var(--wt-orange) 50%, var(--wt-orange-08)) 0 0 / 250% 100%;
  box-shadow: 0 .5px 1.1px rgba(0, 0, 0, .05), 0 15px 30px rgba(0, 0, 0, .1), 0 15px 29px rgba(240, 122, 37, .25);
  color: #FFF;
  font: 600 17px/1.2 var(--wt-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-position .45s var(--wt-ease), transform .1s var(--wt-ease);
}
.wt-btn:hover { background-position: 100% 0; }
.wt-btn:active { transform: translateY(1px); }
.wt-btn[disabled] { cursor: progress; opacity: .85; }
.wt-btn--ghost {
  background: transparent; box-shadow: none;
  border: 1px solid var(--wt-line); color: var(--wt-text);
  padding: 8px 22px 8px 16px;
  transition: border-color .15s var(--wt-ease), background-color .15s var(--wt-ease);
}
.wt-btn--ghost:hover { border-color: var(--wt-line-strong); background: rgba(255, 255, 255, .06); }
.wt-submit { min-width: 210px; }
.is-sending .wt-submit .wt-btn__text::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin: 0 10px -2px 0;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: wt-spin .8s linear infinite;
}
@keyframes wt-spin { to { transform: rotate(360deg); } }

/* ---------- Ueberblick ---------- */
.wt-summary { margin: 28px 0 22px; padding: 2px 20px; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); background: var(--wt-surface); }
.wt-summary__row { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--wt-line); }
.wt-summary__row:last-child { border-bottom: 0; }
.wt-summary dt { margin: 0; font-size: 15px; color: var(--wt-muted); }
.wt-summary dd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; min-width: 0; }
.wt-summary__value { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.wt-edit {
  flex: none; min-height: 44px; margin: -12px 0; padding: 0 4px;
  border: 0; background: none; color: var(--wt-orange);
  font: 500 15px/1 var(--wt-font); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Fehler beim Senden ---------- */
.wt-alert {
  max-width: 640px; margin: 22px auto 0; padding: 18px 20px;
  border: 1px solid var(--wt-orange); border-radius: var(--wt-radius);
  background: rgba(0, 0, 0, .86); color: var(--wt-text);
  font-size: 16px;
}
.wt-alert p { margin: 0 0 8px; }
.wt-alert__title { font-weight: 700; color: var(--wt-orange); }
.wt-alert__links { margin: 0 0 14px; padding: 0; list-style: none; }
.wt-alert__links li { margin: 4px 0; }
.wt-alert a { font-weight: 600; }
.wt-alert__note { color: var(--wt-muted); font-size: 14px; }
.wt-alert .wt-btn--ghost { border-color: var(--wt-orange); padding: 8px 22px; min-height: 52px; }
.wt-alert .wt-btn--ghost:hover { background: var(--wt-orange-tint); }

/* ---------- Erfolg ---------- */
.wt-done { text-align: center; padding: 8px 0; }
.wt-done__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%;
  background: var(--wt-orange); color: #FFF;
  box-shadow: 0 15px 29px rgba(240, 122, 37, .25);
}
.wt-done__icon svg { width: 30px; height: 30px; }
.wt-done__text, .wt-done__material { max-width: 52ch; margin: 0 auto 6px; color: var(--wt-muted); text-shadow: var(--wt-shadow); text-wrap: pretty; }
.wt-done__text { color: var(--wt-text); font-size: 18px; }
.wt-summary--done { max-width: 520px; margin: 26px auto 0; text-align: left; }

/* ---------- Mobil zuerst geprueft: 390px ---------- */
@media (max-width: 599px) {
  .wt { font-size: 16px; padding: 0; }
  .wt-progress { margin-bottom: 20px; }
  .wt-question { margin-top: 12px; }
  .wt-choices--abo { grid-template-columns: 1fr; gap: 12px; }
  .wt-choice--abo {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "dot name price" "dot term term";
    align-items: center;
    gap: 2px 14px;
    min-height: 88px;
    padding: 16px 18px;
  }
  .wt-choice--abo .wt-abo__info { display: contents; }
  .wt-choice--abo .wt-choice__dot { position: static; grid-area: dot; align-self: center; }
  .wt-abo__name { grid-area: name; padding-right: 0; }
  .wt-abo__price { grid-area: price; margin: 0; font-size: 28px; text-align: right; }
  /* "pro Monat und Seite" steht mobil nur im Hinweis unter den Karten, bleibt fuer Screenreader in der Beschreibung */
  .wt-abo__unit { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wt-abo__term { grid-area: term; margin: 0; padding: 0; font-size: 14px; color: var(--wt-muted); }
  .wt-choice--row { min-height: 60px; padding: 14px 18px; }
  .wt-pair { grid-template-columns: 1fr; }
  .wt-pair + .wt-error { margin-top: -10px; }
  .wt-actions { margin-top: 26px; }
  .wt-submit { flex: 1; min-width: 0; }
  .wt-btn { min-height: 58px; padding: 8px 22px; }
  .wt-summary { padding: 2px 16px; }
  .wt-summary__row { grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 2px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wt *, .wt *::before, .wt *::after { animation: none !important; transition: none !important; }
  .is-sending .wt-submit .wt-btn__text::before { border-right-color: currentColor; opacity: .5; }
}
