/* Anfragestrecke: Vorschau-Formular (.aw-anfrage) und Gravity Forms (.aw-gf) im selben Look.
   Vorbild Ablauf: eine Frage pro Schritt, große Kacheln mit Icons, automatisches Weiter, Fortschritt, Vertrauen daneben. */
.aw-anfrage{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:clamp(1.2rem,3vw,2.4rem);align-items:start}
.aw-anfrage-schritt{background:var(--flaeche);border:1px solid var(--linie);border-radius:var(--r-gross);padding:clamp(1.2rem,3.5vw,2.4rem);display:grid;gap:1.1rem;box-shadow:var(--schatten-hoch);min-width:0}
.aw-anfrage-schritt.akut{border-top:4px solid var(--kerze)}
.aw-anfrage-frage{font-size:var(--t3);outline:none}
.aw-anfrage-seite{display:grid;gap:1rem;position:sticky;top:96px}
.aw-anfrage-seite ul{list-style:none;margin:0;padding:1.2rem;display:grid;gap:.9rem;background:var(--flaeche);border:1px solid var(--linie);border-radius:var(--r)}
.aw-anfrage-seite li{display:grid;grid-template-columns:30px 1fr;gap:.7rem;align-items:center;font-size:.92rem}
.aw-anfrage-seite li svg{width:30px;height:30px;color:var(--salbei)}
.aw-anfrage-tel{display:grid;grid-template-columns:34px 1fr;gap:.8rem;align-items:center;background:var(--flieder-hell);border-radius:var(--r);padding:1.1rem}
.aw-anfrage-tel svg{width:34px;height:34px;color:var(--flieder)}
.aw-anfrage-tel div{display:grid;gap:.1rem}
.aw-anfrage-tel strong{font-family:var(--display);font-size:var(--t2);font-weight:500}
button.aw-kachel{font:inherit;cursor:pointer;width:100%}
.aw-kachel.gewaehlt{border-color:var(--flieder);background:var(--flieder-hell);box-shadow:inset 0 0 0 1px var(--flieder)}
.aw-kacheln-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.aw-kacheln-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.aw-kacheln-6{grid-template-columns:repeat(3,minmax(0,1fr))}
.aw-anfrage-form{display:grid;gap:1rem}
.aw-anfrage-form .aw-feld input,.aw-anfrage-form .aw-feld select,.aw-anfrage-form .aw-feld textarea{background:var(--grund)}
.aw-anfrage-form #af-plz{max-width:220px;font-size:1.3rem;letter-spacing:.12em}
.aw-einwilligung{display:flex;gap:.7rem;align-items:flex-start;font-size:var(--t-1);color:var(--leise);line-height:1.5}
.aw-einwilligung input{width:22px;height:22px;margin-top:.1rem;accent-color:var(--flieder);flex:none}
.aw-fehler{color:var(--warn);background:var(--warn-hell);padding:.6rem .9rem;border-radius:8px;font-size:.92rem}
.aw-knopf-gross{min-height:58px;font-size:1.05rem;justify-self:start;padding-inline:1.8rem}
.aw-zurueck{transform:rotate(180deg)}
.aw-mini-ic{width:16px;height:16px;display:inline-block;vertical-align:-3px}
.aw-danke{display:grid;gap:1.2rem;max-width:720px}
.aw-danke .aw-schritte li{border-bottom:1px solid var(--linie)}

/* ---------- Gravity Forms ---------- */
.aw-gf .gform_wrapper.gravity-theme,.aw-gf .gform_wrapper{background:var(--flaeche);border:1px solid var(--linie);border-radius:var(--r-gross);padding:clamp(1.2rem,3.5vw,2.4rem);box-shadow:var(--schatten-hoch);margin:0}
.aw-gf .gform_wrapper .gf_progressbar_wrapper{margin-bottom:1.2rem}
.aw-gf .gform_wrapper .gf_progressbar_title{font-size:var(--t-1);text-transform:uppercase;letter-spacing:.1em;color:var(--salbei);font-weight:700;margin-bottom:.4rem}
.aw-gf .gform_wrapper .gf_progressbar{background:var(--flaeche-2);border-radius:4px;height:8px;padding:0;overflow:hidden}
.aw-gf .gform_wrapper .gf_progressbar_percentage{background:var(--salbei)!important;height:8px;border-radius:4px}
.aw-gf .gform_wrapper .gf_progressbar_percentage span{display:none}
.aw-gf .gform_wrapper .gfield_label,.aw-gf .gform_wrapper legend.gfield_label{font-family:var(--display);font-weight:500;font-size:var(--t3);line-height:1.15;color:var(--tinte);margin-bottom:.4rem}
.aw-gf .gform_wrapper .aw-feld-klein .gfield_label{font-family:var(--text);font-size:.95rem;font-weight:700}
.aw-gf .gform_wrapper .gfield_description{color:var(--leise);font-size:.95rem;padding-top:0;margin-bottom:.8rem}
.aw-gf .gform_wrapper .gfield_required{color:var(--leise);font-size:var(--t-1)}
.aw-gf .aw-kacheln-feld .gfield_required{display:none}
.aw-gf .gform_wrapper input[type=text],.aw-gf .gform_wrapper input[type=tel],.aw-gf .gform_wrapper input[type=email],.aw-gf .gform_wrapper select,.aw-gf .gform_wrapper textarea{font:inherit;color:var(--tinte);background:var(--grund);border:1.5px solid var(--linie);border-radius:10px;min-height:50px;padding:.35rem .85rem}
.aw-gf .gform_wrapper input:focus,.aw-gf .gform_wrapper select:focus,.aw-gf .gform_wrapper textarea:focus{border-color:var(--flieder);outline:3px solid var(--kerze);outline-offset:1px}
.aw-gf .aw-kacheln-feld .gfield_radio{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.aw-gf .aw-kacheln-feld .gfield_radio:has(> .gchoice:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
.aw-gf .gform_required_legend{display:none}
.aw-gf .gform_wrapper.gravity-theme .gform_previous_button.button,.aw-gf .gform_wrapper .gform_previous_button.gform-theme-button{font:inherit!important;font-size:.92rem!important;min-height:44px;padding:.3rem 1.1rem!important;border-radius:999px!important;border:1.5px solid var(--linie)!important;background:transparent!important;color:var(--leise)!important;box-shadow:none!important}
.aw-gf .gform_wrapper .gform_button.gform-theme-button{font:inherit!important;font-weight:700!important;min-height:58px;padding:.45rem 1.9rem!important;border-radius:999px!important;background:var(--flieder)!important;border-color:var(--flieder)!important;color:var(--flaeche)!important}
.aw-gf .aw-kacheln-feld .gchoice{position:relative;margin:0!important;display:block!important;width:100%}
.aw-gf .aw-kacheln-feld .gchoice input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:1}
.aw-gf .aw-kacheln-feld .gchoice label{display:grid!important;justify-items:center;align-content:center;text-align:center;gap:.35rem;min-height:132px;max-width:none!important;width:100%;margin:0!important;padding:1rem .8rem;border:1.5px solid var(--linie);border-radius:var(--r);background:var(--grund);color:var(--tinte);font-weight:700;font-size:.98rem;line-height:1.25;cursor:pointer;transition:border-color .15s, transform .15s, box-shadow .15s}
.aw-gf .aw-kacheln-feld .gchoice:hover label{border-color:var(--flieder);transform:translateY(-2px);box-shadow:var(--schatten)}
.aw-gf .aw-kacheln-feld .gchoice input:checked + label{border-color:var(--flieder);background:var(--flieder-hell);box-shadow:inset 0 0 0 1px var(--flieder)}
.aw-gf .aw-kacheln-feld .gchoice input:focus-visible + label{outline:3px solid var(--kerze);outline-offset:2px}
.aw-gf .aw-kacheln-feld .aw-kachel-ic{width:52px;height:52px;color:var(--flieder)}
.aw-gf .aw-kacheln-feld .aw-kachel-unter{display:block;font-weight:400;color:var(--leise);font-size:var(--t-1)}
.aw-gf .aw-kacheln-feld + .gform_page_footer .gform_next_button,.aw-gf .gform_page:has(.aw-kacheln-feld) .gform_next_button{position:absolute;left:-9999px}
.aw-gf .gform_wrapper .gform_page_footer,.aw-gf .gform_wrapper .gform_footer{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;border-top:0;padding-top:.6rem;margin-top:.6rem}
.aw-gf .gform_wrapper .gform_button,.aw-gf .gform_wrapper .gform_next_button{font:inherit;font-weight:700;min-height:56px;padding:.45rem 1.8rem;border-radius:999px;border:1.5px solid var(--flieder);background:var(--flieder);color:var(--flaeche);cursor:pointer}
.aw-gf .gform_wrapper .gform_previous_button{font:inherit;min-height:44px;padding:.3rem 1.1rem;border-radius:999px;border:1.5px solid var(--linie);background:transparent;color:var(--leise);cursor:pointer}
.aw-gf .gform_wrapper .gfield--type-consent label,.aw-gf .gform_wrapper .ginput_container_consent label{font-size:var(--t-1);color:var(--leise);line-height:1.5}
.aw-gf .gform_wrapper .ginput_container_consent input{width:22px;height:22px;accent-color:var(--flieder)}
.aw-gf .gform_wrapper .gfield_validation_message,.aw-gf .gform_wrapper .validation_message{color:var(--warn);background:var(--warn-hell);border:0;border-radius:8px;padding:.5rem .8rem;font-size:.9rem}
.aw-gf .gform_wrapper .gform_validation_errors{border-radius:var(--r);border-color:var(--warn);background:var(--warn-hell)}
.aw-gf .gform_wrapper .gform_validation_errors h2{font-size:1rem;color:var(--warn)}
.aw-gf .gform_wrapper .aw-plz-feld input{max-width:220px;font-size:1.3rem;letter-spacing:.12em}

/* ---------- Gravity Forms: Korrekturen für das Orbital-Design (17.10.2026) ---------- */
/* Markenfarben statt GF-Blau; Knöpfe sind <button>-Elemente mit eigenen Orbital-Regeln */
.aw-gf .gform_wrapper.gform-theme{--gf-color-primary:var(--flieder);--gf-color-primary-darker:var(--flieder-tief);--gf-color-primary-lighter:var(--flieder-mitte);--gf-color-primary-contrast:var(--flaeche);--gf-ctrl-border-color:var(--linie);--gf-ctrl-label-color-primary:var(--tinte);--gf-ctrl-label-color-secondary:var(--tinte);--gf-radius:10px;--gf-font-size-secondary:.95rem;--gf-font-size-tertiary:.9rem;container-type:inline-size}
.aw-gf .gform_wrapper.gform-theme .gform_page_footer .gform_next_button,.aw-gf .gform_wrapper.gform-theme .gform_page_footer button.gform_next_button,.aw-gf .gform_wrapper.gform-theme button.gform_button,.aw-gf .gform_wrapper.gform-theme .gform_footer .gform_button{font:inherit!important;font-weight:700!important;font-size:1.02rem!important;line-height:1.2!important;min-height:56px!important;padding:.45rem 1.8rem!important;border-radius:999px!important;border:1.5px solid var(--flieder)!important;background:var(--flieder)!important;color:var(--flaeche)!important;box-shadow:none!important;cursor:pointer}
.aw-gf .gform_wrapper.gform-theme button.gform_button:hover,.aw-gf .gform_wrapper.gform-theme .gform_next_button:hover{background:var(--flieder-tief)!important;border-color:var(--flieder-tief)!important}
.aw-gf .gform_wrapper.gform-theme .gform_previous_button{font:inherit!important;font-size:.95rem!important;min-height:48px!important;padding:.3rem 1.2rem!important;border-radius:999px!important;border:1.5px solid var(--linie)!important;background:transparent!important;color:var(--leise)!important;box-shadow:none!important}
/* Seite 1 ohne Zurück: leere Fußzeile unter den Kacheln weglassen (der versteckte Weiter-Knopf bleibt per Skript klickbar) */
.aw-gf .gform_page:has(.aw-kacheln-feld) .gform_page_footer:not(:has(.gform_previous_button)){display:none}
/* Kacheln: gleich hoch, Text bricht sauber um statt über den Rand zu laufen */
.aw-gf .aw-kacheln-feld .gfield_radio{align-items:stretch}
.aw-gf .aw-kacheln-feld .gchoice{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch}
.aw-gf .gform_wrapper .gf_progressbar_percentage.aw-start{width:10%!important}
.aw-gf .aw-kacheln-feld .gchoice label{height:100%;align-content:start;padding-top:1.15rem;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word;min-width:0}
.aw-gf .aw-kacheln-feld .gchoice label > span{max-width:100%;min-width:0}
@media (hover:none){.aw-gf .aw-kacheln-feld .gchoice:hover label{transform:none;box-shadow:none}}
@container (max-width:600px){
  .aw-gf .aw-kacheln-feld .gfield_radio:has(> .gchoice:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:380px){
  .aw-gf .aw-kacheln-feld .gfield_radio{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.5rem}
  .aw-gf .aw-kacheln-feld .gchoice label{padding:.9rem .35rem .8rem;font-size:.9rem;min-height:118px;hyphenate-limit-chars:12 5 5}
  .aw-gf .aw-kacheln-feld .aw-kachel-ic{width:44px;height:44px}
}
/* PLZ: Pflichtmarke an der großen Frage weg, Feld deutlich */
.aw-gf .aw-plz-feld .gfield_required{display:none}
.aw-gf .gform_wrapper.gform-theme .aw-plz-feld input{min-height:56px!important;max-width:240px;font-size:1.3rem!important;letter-spacing:.12em;padding-inline:1rem!important}
.aw-gf .gform_wrapper.gform-theme input:is([type=text],[type=tel],[type=email]),.aw-gf .gform_wrapper.gform-theme select,.aw-gf .gform_wrapper.gform-theme textarea{font-size:1rem!important;min-height:50px}
/* Kontaktschritt: Frage als Überschrift wie in den anderen Schritten */
.aw-gf .aw-gf-frage{font-family:var(--display);font-weight:500;font-size:var(--t3);line-height:1.15;color:var(--tinte);margin:0 0 .4rem}
.aw-gf .aw-gf-frage[hidden]{display:none}
/* Anrede als Auswahlchips */
.aw-gf .aw-chips-feld .gfield_radio{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:.5rem}
.aw-gf .aw-chips-feld .gchoice{position:relative;margin:0!important}
.aw-gf .aw-chips-feld .gchoice input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.aw-gf .aw-chips-feld .gchoice label{display:inline-flex!important;align-items:center;min-height:46px;margin:0!important;padding:.3rem 1.1rem;border:1.5px solid var(--linie);border-radius:999px;background:var(--grund);font-size:.95rem!important;color:var(--tinte);cursor:pointer}
.aw-gf .aw-chips-feld .gchoice input:checked + label{border-color:var(--flieder);background:var(--flieder-hell);font-weight:700}
.aw-gf .aw-chips-feld .gchoice input:focus-visible + label{outline:3px solid var(--kerze);outline-offset:2px}
/* Auswahlfeld: einfarbiger Hintergrund, ein Pfeil rechts (das GF-Symbol wurde sonst je nach Browser gekachelt) */
.aw-gf .gform_wrapper.gform-theme select,.aw-gf .gform_wrapper select{-webkit-appearance:none;appearance:none;background-color:var(--grund)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2355447A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 1rem center!important;background-size:14px 9px!important;padding-right:2.8rem!important;cursor:pointer}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .aw-gf .gform_wrapper select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23BBA9DD' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E")!important}}
:root[data-theme="dark"] .aw-gf .gform_wrapper select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23BBA9DD' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E")!important}
/* Nachricht nicht übergroß, Zähler aus, Link in der Einwilligung erkennbar */
.aw-gf .gform_wrapper textarea{min-height:120px;height:8rem}
.aw-gf .ginput_counter{display:none!important}
.aw-gf .gform_wrapper .gfield_consent_label a,.aw-gf .gform_wrapper .ginput_container_consent a{color:var(--flieder);text-decoration:underline;text-underline-offset:.2em}
.aw-anfrage-tel .aw-tel{font-family:var(--display);font-size:var(--t2);font-weight:500;color:var(--tinte)}

@media (max-width:900px){
  .aw-anfrage{grid-template-columns:1fr}
  .aw-gf .aw-kacheln-feld .gfield_radio,.aw-gf .aw-kacheln-feld .gfield_radio:has(> .gchoice:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
  .aw-anfrage-seite{position:static;order:2}
  .aw-kacheln-4,.aw-kacheln-6,.aw-kacheln-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:420px){.aw-kacheln-3{grid-template-columns:1fr}}
