/* Anfrage-Fragebogen (Typeform-Stil). Alles unter .wdag, damit Theme-/Bricks-Stile nicht hineinwirken. */

/* Eigener Familienname: ein Inter des Themes (z. B. von Google Fonts) kann die lokale Datei nicht ersetzen. */
@font-face {
  font-family: 'wdag-inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html.wdag-open, html.wdag-open body { overflow: hidden; }

/* ---------- Wurzel + Reset ---------- */
.wdag {
  --wdag-ink: #111;
  --wdag-mut: #6b6b66;
  --wdag-line: #e4e4e0;
  --wdag-bg: #f6f6f2;
  --wdag-acc: #c8f04a;
  --wdag-font: 'wdag-inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: fixed;
  inset: 0;
  z-index: 999990;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--wdag-bg);
  color: var(--wdag-ink);
  font-family: var(--wdag-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.wdag *, .wdag *::before, .wdag *::after { box-sizing: border-box; }
.wdag div, .wdag span, .wdag p, .wdag h1, .wdag h2, .wdag b, .wdag nav, .wdag label, .wdag a, .wdag section {
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.wdag h1, .wdag h2, .wdag p { margin: 0; padding: 0; color: inherit; }
.wdag button, .wdag input, .wdag textarea {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  text-transform: none;
  text-shadow: none;
  outline: none;
  transition: none;
}
.wdag button { cursor: pointer; }
.wdag [hidden] { display: none !important; }
.wdag ::placeholder { color: #a9a9a0; opacity: 1; }
.wdag .wdag-noscript { max-width: 680px; margin: 0 auto; padding: 80px 24px; font-size: 18px; }

/* ---------- Kopfzeile ---------- */
/* Hintergrundstreifen, damit gescrollte Inhalte nicht unter Logo und Abschnitt durchscheinen. */
.wdag::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--wdag-bg); z-index: 4; pointer-events: none; }
.wdag .wdag-top { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: #e6e6e0; z-index: 5; }
.wdag .wdag-top i { display: block; width: 0; height: 100%; background: var(--wdag-ink); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.wdag .wdag-brand { position: fixed; top: 18px; left: 24px; font-weight: 700; font-size: 14px; line-height: 20px; z-index: 5; }
.wdag .wdag-brand-sub { color: var(--wdag-mut); font-weight: 500; }
.wdag .wdag-head { position: fixed; top: 12px; right: 16px; display: flex; align-items: center; gap: 10px; z-index: 5; }
.wdag .wdag-sec { max-width: 45vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--wdag-mut); text-transform: uppercase; letter-spacing: .08em; }
.wdag .wdag-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--wdag-ink); font-size: 24px; line-height: 1; text-decoration: none; transition: background .15s; }
.wdag .wdag-close:hover { background: #e6e6e0; }

/* ---------- Bühne + Animationen ---------- */
.wdag .wdag-stage { position: absolute; inset: 0; display: flex; overflow-x: hidden; overflow-y: auto; padding: 80px 24px 140px; }
.wdag .wdag-ghost { position: absolute; inset: 0; display: flex; overflow: hidden; padding: 80px 24px 140px; pointer-events: none; }
.wdag .wdag-q { width: 100%; max-width: 980px; margin: auto; outline: none; animation: wdag-in .55s cubic-bezier(.2,.8,.2,1); }
.wdag .wdag-q.wdag-from-top { animation-name: wdag-inb; }
/* Erst die alte Karte ausblenden, dann die neue einblenden (sie ist sofort bedienbar). */
.wdag .wdag-q.wdag-after { animation-delay: .2s; animation-fill-mode: backwards; }
.wdag .wdag-ghost > .wdag-q { animation: wdag-out .3s ease-in forwards; }
.wdag .wdag-ghost.wdag-to-bottom > .wdag-q { animation-name: wdag-outb; }
.wdag .wdag-status { color: var(--wdag-mut); font-size: 16px; }
@keyframes wdag-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes wdag-inb { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes wdag-out { to { opacity: 0; transform: translateY(-40px); } }
@keyframes wdag-outb { to { opacity: 0; transform: translateY(40px); } }

/* ---------- Texte ---------- */
.wdag .wdag-num { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; color: var(--wdag-mut); }
.wdag .wdag-num b { color: var(--wdag-ink); font-weight: 700; }
.wdag h1 { margin: 0 0 10px; font-family: var(--wdag-font); font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--wdag-ink); overflow-wrap: break-word; }
.wdag .wdag-welcome h1 { font-size: clamp(30px, 4.5vw, 46px); }
.wdag .wdag-hint { margin: 0 0 26px; font-size: 16px; line-height: 1.5; color: var(--wdag-mut); }
.wdag .wdag-bullets { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 30px; font-size: 14px; color: var(--wdag-mut); }

/* ---------- Eingaben ---------- */
.wdag .wdag-text, .wdag .wdag-long { display: block; width: 100%; padding: 8px 0; border-bottom: 2px solid #cfcfc8; background: transparent; font: 500 24px/1.3 var(--wdag-font); color: var(--wdag-ink); transition: border-color .2s; }
/* Fokus ausdrücklich setzen: Theme-Regeln wie input[type="text"]:focus sollen nicht durchschlagen. */
.wdag .wdag-text:focus, .wdag .wdag-long:focus { border-bottom-color: var(--wdag-ink); background: transparent; box-shadow: none; outline: none; }
.wdag .wdag-long { min-height: 120px; font-size: 19px; line-height: 1.5; resize: none; }
.wdag .wdag-enter-below { margin-top: 8px; }

/* ---------- Optionen ---------- */
.wdag .wdag-opts { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.wdag .wdag-opts.wdag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-width: none; }
.wdag .wdag-o { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #d7d7cf; border-radius: 10px; background: rgba(255,255,255,.6); font-size: 17px; line-height: 1.35; text-align: left; color: var(--wdag-ink); user-select: none; transition: background .15s, border-color .15s, color .15s; }
.wdag .wdag-o:hover { background: #fff; border-color: #999; }
.wdag .wdag-k { flex: 0 0 26px; display: flex; align-items: center; justify-content: center; height: 26px; border: 1.5px solid #bbb; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; color: #555; }
.wdag .wdag-label { min-width: 0; overflow-wrap: break-word; }
.wdag .wdag-badge { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--wdag-mut); white-space: nowrap; }
/* Kacheln: Preis-Hinweis in eigene Zeile unter den Text, damit Wörter nicht mitten im Wort umbrechen. */
.wdag .wdag-grid .wdag-o { flex-wrap: wrap; align-content: center; row-gap: 2px; }
.wdag .wdag-grid .wdag-label { flex: 1 1 0; }
.wdag .wdag-grid .wdag-badge { flex: 0 0 calc(100% - 38px); margin-left: 38px; padding-left: 0; }
.wdag .wdag-o.wdag-sel { background: var(--wdag-ink); border-color: var(--wdag-ink); color: #fff; }
.wdag .wdag-o.wdag-sel .wdag-k { background: var(--wdag-acc); border-color: var(--wdag-acc); color: var(--wdag-ink); }
.wdag .wdag-o.wdag-sel .wdag-badge { color: #bbb; }
.wdag .wdag-o.wdag-blink { animation: wdag-bl .25s 2; }
@keyframes wdag-bl { 50% { opacity: .4; } }

.wdag .wdag-tiers { display: flex; gap: 6px; margin-top: 18px; font-size: 12px; }
.wdag .wdag-tiers span { flex: 1; padding: 8px; border-radius: 8px; background: #ecece6; text-align: center; color: #6f6f69; transition: all .3s; }
.wdag .wdag-tiers span.wdag-on { background: var(--wdag-ink); color: #fff; }

/* ---------- Zähler ---------- */
.wdag .wdag-counter { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.wdag .wdag-counter button { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1.5px solid #ccc; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; color: var(--wdag-ink); }
.wdag .wdag-counter button:hover { border-color: #999; }
.wdag .wdag-counter-value { min-width: 80px; font-size: 56px; font-weight: 700; text-align: center; }

/* ---------- Aktionen, Fehler ---------- */
.wdag .wdag-err { min-height: 18px; margin-top: 12px; font-size: 14px; color: #b3261e; }
.wdag .wdag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.wdag .wdag-ok { min-height: 48px; padding: 12px 22px; border-radius: 10px; background: var(--wdag-ink); font: 600 17px/1.4 var(--wdag-font); color: #fff; }
.wdag .wdag-ok:hover { background: #333; }
.wdag .wdag-enter { font-size: 13px; color: var(--wdag-mut); }
.wdag .wdag-enter b { font-weight: 600; color: var(--wdag-ink); }
.wdag .wdag-link { text-decoration: underline; color: var(--wdag-ink); }
.wdag .wdag-back { font-size: 14px; color: var(--wdag-mut); }

/* ---------- Hinweis nach dem Neuladen ---------- */
.wdag .wdag-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; padding: 10px 14px; border: 1px solid var(--wdag-line); border-left: 4px solid var(--wdag-acc); border-radius: 10px; background: #fff; font-size: 14px; }
.wdag .wdag-restart { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--wdag-mut); }
.wdag .wdag-done .wdag-restart { margin-top: 0; }

/* ---------- Kontaktschritt ---------- */
.wdag .wdag-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.wdag .wdag-field { min-width: 0; }
.wdag .wdag-field label { display: block; font-size: 13px; color: var(--wdag-mut); }
.wdag .wdag-two .wdag-text { font-size: 19px; }
.wdag .wdag-ferr { margin-top: 6px; font-size: 14px; color: #b3261e; }
.wdag .wdag-ferr:empty { display: none; }
.wdag .wdag-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.45; color: var(--wdag-mut); cursor: pointer; }
.wdag .wdag-consent input { -webkit-appearance: checkbox; appearance: auto; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--wdag-ink); cursor: pointer; }
.wdag .wdag-consent a { color: var(--wdag-ink); text-decoration: underline; }
/* Honeypot: außerhalb des Bildschirms statt display:none (manche Bots überspringen versteckte Felder). */
.wdag .wdag-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Zusammenfassung ---------- */
.wdag .wdag-sum-group { margin: 0 0 18px; }
.wdag .wdag-sum-group h2 { margin: 0 0 4px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--wdag-mut); text-transform: uppercase; letter-spacing: .08em; }
.wdag .wdag-sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #e9e9e3; font-size: 15px; }
.wdag .wdag-sum-q { flex: 1 1 50%; min-width: 0; color: var(--wdag-mut); overflow-wrap: break-word; }
.wdag .wdag-sum-a { flex: 1 1 50%; min-width: 0; text-align: right; white-space: pre-line; overflow-wrap: break-word; }
.wdag .wdag-sum { margin: 22px 0 0; padding: 14px 20px; border: 1px solid var(--wdag-line); border-radius: 16px; background: #fff; }
.wdag .wdag-sum .wdag-sum-row:last-of-type { border-bottom: 0; }
.wdag .wdag-sum b { font-weight: 700; }
.wdag .wdag-sum-range { white-space: nowrap; }
.wdag .wdag-note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--wdag-mut); }
.wdag .wdag-ok:disabled { opacity: .6; cursor: default; }

/* ---------- Preisleiste ---------- */
.wdag .wdag-price { position: fixed; left: 50%; bottom: 22px; z-index: 6; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); padding: 12px 16px 12px 20px; border-radius: 16px; background: var(--wdag-ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); color: #fff; text-align: left; transform: translateX(-50%); transition: transform .25s; }
.wdag .wdag-price.wdag-bump { transform: translateX(-50%) scale(1.05); }
.wdag .wdag-price-l, .wdag .wdag-price-range { display: block; }
.wdag .wdag-price-l { font-size: 11px; line-height: 1.3; color: #aaa; text-transform: uppercase; letter-spacing: .08em; }
.wdag .wdag-price-range { font-size: 20px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.wdag .wdag-price-pkg { padding: 5px 10px; border-radius: 999px; background: var(--wdag-acc); font-size: 12px; font-weight: 700; color: var(--wdag-ink); white-space: nowrap; }
.wdag .wdag-price-d { font-size: 12px; color: #aaa; white-space: nowrap; }
.wdag .wdag-detail { position: fixed; left: 50%; bottom: 92px; z-index: 6; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 140px); overflow-y: auto; padding: 16px 18px; border: 1px solid var(--wdag-line); border-radius: 16px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.12); font-size: 14px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.wdag .wdag-detail.wdag-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%); }
.wdag .wdag-detail > b { display: block; margin-bottom: 8px; }
.wdag .wdag-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f0ea; }
.wdag .wdag-nowrap { white-space: nowrap; }

/* ---------- Navigation unten rechts ---------- */
.wdag .wdag-nav { position: fixed; right: 24px; bottom: 26px; display: flex; gap: 2px; z-index: 6; }
.wdag .wdag-nav button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--wdag-ink); font-size: 16px; color: #fff; }
.wdag .wdag-nav button:first-child { border-radius: 8px 0 0 8px; }
.wdag .wdag-nav button:last-child { border-radius: 0 8px 8px 0; }
.wdag .wdag-nav button:disabled { opacity: .4; cursor: default; }

/* ---------- Hilfe-Fragezeichen (Variante B) ---------- */
.wdag .wdag-ow { position: relative; min-width: 0; }
.wdag .wdag-o.wdag-has-help { padding-right: 50px; }
.wdag .wdag-help { position: absolute; top: calc(50% - 12px); right: 14px; display: block; width: 24px; height: 24px; }
.wdag .wdag-qm { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid #bbb; border-radius: 50%; background: #fff; font: 700 13px/1 var(--wdag-font); color: #555; cursor: help; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.wdag .wdag-qm:hover, .wdag .wdag-help-open .wdag-qm { background: var(--wdag-acc); border-color: var(--wdag-acc); color: var(--wdag-ink); transform: scale(1.08); }
.wdag .wdag-pop { position: fixed; z-index: 10; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; padding: 14px; border: 1px solid var(--wdag-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.14); font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-align: left; color: #333; cursor: default; animation: wdag-pop .2s ease-out; }
.wdag .wdag-pop[hidden] { display: none; }
/* Unsichtbare Brücke, damit das Popover beim Hinüberfahren mit der Maus nicht schließt. */
.wdag .wdag-pop::before { content: ''; position: absolute; inset: -12px; z-index: -1; }
.wdag .wdag-pop-img { display: block; width: 100%; max-width: 100%; height: 110px; margin: 0 0 10px; padding: 0; border: 0; border-radius: 10px; background: var(--wdag-bg); object-fit: contain; }
.wdag .wdag-pop-title { display: block; color: var(--wdag-ink); font-weight: 700; }
.wdag .wdag-pop-text { white-space: pre-line; overflow-wrap: break-word; }
.wdag .wdag-pop-title + .wdag-pop-text { margin-top: 2px; }
@keyframes wdag-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.wdag .wdag-o.wdag-sel + .wdag-help .wdag-qm { background: #222; border-color: #555; color: #ddd; }
.wdag .wdag-o.wdag-sel + .wdag-help.wdag-help-open .wdag-qm, .wdag .wdag-o.wdag-sel + .wdag-help .wdag-qm:hover { background: var(--wdag-acc); border-color: var(--wdag-acc); color: var(--wdag-ink); }

/* ---------- Fokus ---------- */
/* Theme-Regeln wie button:focus neutralisieren (Hintergrund setzen die Klassenregeln oben mit höherem Gewicht);
   sichtbarer Rahmen nur per Tastatur (focus-visible, folgt darunter). */
.wdag .wdag-o:focus, .wdag .wdag-ok:focus, .wdag .wdag-link:focus, .wdag .wdag-counter button:focus,
.wdag .wdag-nav button:focus, .wdag .wdag-qm:focus, .wdag .wdag-close:focus, .wdag .wdag-q:focus, .wdag .wdag-price:focus {
  outline: none;
  box-shadow: none;
}
.wdag .wdag-o:focus-visible, .wdag .wdag-ok:focus-visible, .wdag .wdag-link:focus-visible,
.wdag .wdag-counter button:focus-visible, .wdag .wdag-nav button:focus-visible, .wdag .wdag-close:focus-visible,
.wdag .wdag-price:focus-visible, .wdag .wdag-qm:focus-visible, .wdag .wdag-consent input:focus-visible {
  outline: 3px solid var(--wdag-acc);
  outline-offset: 2px;
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .wdag .wdag-nav { display: none; }
  .wdag .wdag-brand { left: 16px; }
  .wdag .wdag-brand-sub { display: none; }
  .wdag .wdag-head { right: 8px; }
  .wdag .wdag-stage, .wdag .wdag-ghost { padding: 64px 16px 120px; }
  .wdag .wdag-tiers { flex-wrap: wrap; }
  .wdag::before { height: 52px; }
  .wdag .wdag-two { grid-template-columns: 1fr; gap: 18px; }
  .wdag .wdag-price { bottom: 16px; gap: 10px; padding: 10px 12px 10px 16px; }
  .wdag .wdag-price-l { display: none; }
  .wdag .wdag-price-range { font-size: 17px; }
  .wdag .wdag-detail { bottom: 80px; }
  .wdag .wdag-sum-row { font-size: 14px; }
}
@media (min-width: 641px) { .wdag .wdag-back { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .wdag .wdag-q, .wdag .wdag-ghost > .wdag-q, .wdag .wdag-o.wdag-blink { animation: none; }
  .wdag .wdag-ghost { display: none; }
  .wdag .wdag-pop { animation: none; }
  .wdag .wdag-top i, .wdag .wdag-tiers span, .wdag .wdag-o, .wdag .wdag-price, .wdag .wdag-detail { transition: none; }
}
