/* ============================================================
   NORTHLAND GYM — Online-Anmeldung (Wizard)
   ============================================================ */

.wizard-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
.wizard-aurora {
  position: fixed;
  inset: -30% -10% auto;
  height: 80%;
  background:
    radial-gradient(42% 36% at 22% 34%, rgba(0, 145, 93, .22), transparent 70%),
    radial-gradient(36% 30% at 78% 26%, rgba(0, 117, 76, .12), transparent 70%),
    radial-gradient(28% 24% at 55% 15%, rgba(212, 179, 106, .07), transparent 70%);
  filter: blur(46px);
  pointer-events: none;
  animation: aurshift 13s var(--ease-inout) infinite alternate;
  z-index: 0;
}

/* Kopfzeile */
.wizard-top {
  position: sticky; top: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(6, 10, 8, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.wizard-top-progress {
  flex: 1;
  max-width: 420px;
  height: 5px;
  border-radius: 999px;
  background: rgba(198, 222, 209, .12);
  overflow: hidden;
}
.wizard-top-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--aurora));
  transition: width .6s var(--ease-out);
}
.wizard-exit {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  transition: color .3s;
}
.wizard-exit:hover { color: var(--text); }
.wizard-exit svg { width: 17px; height: 17px; }

/* Layout */
.wizard {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(30px, 5vw, 90px);
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 70px) var(--gutter) 40px;
  align-items: start;
}

/* Seitenleiste */
.wizard-side { position: sticky; top: 100px; }
.wizard-side-kicker {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 14px;
}
.wizard-side-title {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.wizard-side-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--aurora);
}
.wizard-steps { list-style: none; display: grid; gap: 4px; margin-bottom: 30px; }
.wizard-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 550;
  transition: background .35s, color .35s;
}
.wizard-steps li i {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(163, 184, 173, .35);
  display: grid; place-items: center;
  font-style: normal;
  font-size: 12.5px;
  position: relative;
  transition: border-color .35s, background .35s;
}
.wizard-steps li i::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background .35s;
}
.wizard-steps li.is-current { background: rgba(0, 117, 76, .08); color: var(--text); }
.wizard-steps li.is-current i { border-color: var(--aurora); }
.wizard-steps li.is-current i::after { background: var(--aurora); }
.wizard-steps li.is-done { color: var(--muted); }
.wizard-steps li.is-done i {
  background: var(--green);
  border-color: transparent;
}
.wizard-steps li.is-done i::after {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.wizard-summary {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 26px;
}
.wizard-summary h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 14px;
}
.wizard-summary dl { display: grid; gap: 10px; }
.wizard-summary dl > div {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 15px;
}
.wizard-summary dt { color: var(--muted-2); }
.wizard-summary dd { font-weight: 650; text-align: right; }
.wizard-summary .sum-once { padding-top: 10px; border-top: 1px solid var(--line); }
.wizard-side-note { color: var(--muted-2); font-size: 14px; }
.wizard-side-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Schritte */
.wizard-main {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  /* Flex-Kinder haben min-width:auto und schrumpfen nicht unter ihre
     Inhaltsbreite. Ein einziges zu breites Element im Assistenten zog
     dadurch die ganze Spalte über den Bildschirmrand — sichtbar wurde es
     nicht, weil der body auf overflow:clip steht. */
  min-width: 0;
}
.step {
  display: none;
  min-width: 0;
  animation: stepIn .6s var(--ease-out);
}
.step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-head { margin-bottom: clamp(24px, 3.5vh, 40px); }
.step-count {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 12px;
}
.step-head h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(23px, 2.3vw, 33px);
  line-height: 1.46;
  letter-spacing: 0.14em;
  text-transform: none;
}
.step-sub { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.step-note { margin-top: 18px; color: var(--muted-2); font-size: 14px; }


/* Tarif-Karten */
.term-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 24px;
}
.term-toggle button {
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  transition: background .35s, color .35s;
}
.term-toggle button span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nuss); }
.term-toggle button.is-active { background: var(--green); color: #fff; }
.term-toggle button.is-active span { color: #ffe9bd; }
.tarif-grid { display: grid; gap: 14px; }
.tarif-card {
  position: relative;
  display: grid;
  gap: 5px;
  text-align: left;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 76px 24px 28px;
  transition: border-color .35s, transform .35s var(--ease-out), box-shadow .35s;
}
.tarif-card:hover { transform: translateY(-3px); border-color: rgba(0, 117, 76, .45); }
.tarif-card.is-selected {
  border-color: var(--aurora);
  box-shadow: 0 14px 44px rgba(0, 117, 76, .28);
}
.tarif-badge {
  position: absolute;
  top: -11px; left: 26px;
  background: linear-gradient(135deg, var(--gold), #b8933f);
  color: #17110a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tarif-name {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 850;
  font-size: 19px;
  text-transform: uppercase;
}
.tarif-price { font-size: 16px; color: var(--muted); }
.tarif-price b {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: 30px;
  color: var(--text);
  margin-right: 4px;
}
.tarif-hint { font-size: 13.5px; color: var(--muted-2); }
.tarif-check {
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%) scale(.7);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .3s, transform .35s var(--ease-out);
}
.tarif-check svg { width: 18px; height: 18px; color: #fff; }
.tarif-card.is-selected .tarif-check { opacity: 1; transform: translateY(-50%) scale(1); }

/* Unterschrift */
.sign-wrap {
  position: relative;
  height: 220px;
  background: #f5f8f4;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  border: 1.5px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.sign-wrap.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 125, 107, .12); }
.sign-wrap canvas { width: 100%; height: 100%; display: block; }
.sign-line {
  position: absolute;
  left: 8%; right: 8%; bottom: 46px;
  border-bottom: 1.5px dashed rgba(6, 20, 14, .3);
  pointer-events: none;
}
.sign-hint {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  color: rgba(6, 20, 14, .45);
  font-size: 13.5px;
  letter-spacing: .06em;
  pointer-events: none;
  transition: opacity .3s;
}
.sign-wrap.has-ink .sign-hint { opacity: 0; }
.sign-clear {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(6, 20, 14, .82);
  color: #e9f2ec;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .3s;
}
.sign-clear:hover { background: rgba(6, 20, 14, .95); }
.sign-clear svg { width: 14px; height: 14px; }

/* Checkboxen */
.check-group { display: grid; gap: 14px; margin-top: 26px; }
.check {
  display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Nachsatz unter einer Zustimmung — etwa der Hinweis, dass die
   Glaeubiger-ID erst mit der Bestaetigung kommt. Leiser als der Haken selbst. */
.check-fein { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.55; opacity: .72; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(163, 184, 173, .4);
  background: rgba(6, 10, 8, .5);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .2s;
  margin-top: 1px;
}
.check-box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease-out); }
.check input:checked + .check-box { background: var(--green); border-color: transparent; }
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(0, 117, 76, .18); }
.check:hover .check-box { border-color: var(--aurora); }

/* Zusammenfassung */
.review { display: grid; gap: 14px; }
.review-block {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.review-block header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.review-block h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aurora);
}
.review-edit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s;
}
.review-edit:hover { color: var(--aurora); }
.review-block dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}
.review-block dt { font-size: 12.5px; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }
.review-block dd { font-size: 15.5px; font-weight: 550; margin-top: 2px; word-break: break-word; }
.review-sign img { height: 74px; background: #f5f8f4; border-radius: 10px; padding: 6px 14px; }
.review-price {
  margin-top: 18px;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    linear-gradient(150deg, var(--aurora), var(--green) 55%, var(--gold)) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
/* Ohne table-layout:fixed ist width:100% nur eine Untergrenze: die
   gestreckte Summenzeile machte die Tabelle auf dem Handy 422 px breit
   bei 390 px Bildschirm — die Beträge standen ausserhalb des Bildes,
   ausgerechnet vor der verbindlichen Zustimmung. */
.review-price table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15.5px;
}
.review-price td { padding: 8px 0; }
.review-price td:first-child { overflow-wrap: break-word; }
/* :last-child trifft auch die Fusszeile „Danach … monatlich", denn sie
   ist als einzige Zelle ihrer Zeile zugleich die letzte. Mit nowrap
   brach der Satz nicht um und machte die Tabelle 422 px breit — auf dem
   Handy standen die Beträge damit ausserhalb des Bildes. */
.review-price td:last-child:not(.price-info) {
  width: 7.5em;
  text-align: right;
  font-weight: 650;
  white-space: nowrap;
}
.review-price td.price-info { white-space: normal; text-align: left; }
.review-price tr.total td {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 850;
  font-size: 19px;
}
.review-price .price-info { color: var(--muted-2); font-size: 13px; padding-top: 10px; }

/* Schritt-Navigation */
.step-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(26px, 4vh, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.step-nav-hint {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 13px;
}
#btnNext { min-width: 210px; }
#btnNext svg, #btnBack svg { width: 18px; height: 18px; }
#btnNext:disabled { opacity: .6; cursor: wait; transform: none; }

/* Erfolg */
.step-success { text-align: center; padding: clamp(30px, 6vh, 70px) 0; }
.success-inner { max-width: 560px; margin: 0 auto; }
.success-mark { width: 120px; margin: 0 auto 30px; }
.success-ring {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ringDraw 1s var(--ease-out) .2s forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
.success-check {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: ringDraw .5s var(--ease-out) 1s forwards;
}
.step-success h2 {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.success-id { color: var(--muted); margin-bottom: 18px; }
.success-id strong {
  color: var(--aurora);
  font-family: var(--font-display);
  font-stretch: 114%;
  letter-spacing: .06em;
}
.success-text { color: var(--muted); margin-bottom: 34px; }
.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1000px) {
  .wizard { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .wizard-side { position: static; }
  .wizard-side-title { display: none; }
  .wizard-side-kicker { display: none; }
  .wizard-steps {
    display: flex;
    /* Ohne dieses nowrap bleibt der Umbruch aus dem Grundstil stehen:
       die sechs Schritte standen in vier Zeilen (2+1+2+1). */
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 4px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wizard-steps::-webkit-scrollbar { display: none; }
  .wizard-steps li { flex: 0 0 auto; padding: 8px 12px; font-size: 13.5px; }
  .wizard-summary { display: none; }
  .wizard-side-note { display: none; }
  .wizard-main { min-height: 0; }
  .step-nav {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, var(--bg) 30%);
    padding-bottom: 14px;
  }
  /* Die klebende Leiste legte sich sonst ueber das letzte Feld —
     gemessen 26 px Ueberlappung auf dem Geburtsdatum. */
  .step { padding-bottom: 96px; }
  .step-nav-hint { display: none; }
  /* Der Hauptweg soll dominieren — vorher war „Zurueck" breiter. */
  #btnNext { flex: 2 1 0; min-width: 0; }
  #btnBack { flex: 1 1 0; min-width: 0; }
  .wizard-exit span { display: none; }
}

/* ============================================================
   BERUHIGUNG FÜR DIE HELLE FASSUNG
   Die Anmeldestrecke stammt aus der dunklen Fassung: dunkle Kopfzeile,
   Konturschrift, 900er Großbuchstaben. Genau das hat der Kunde als „zu laut"
   zurückgewiesen. Die Strecke selbst bleibt unangetastet — nur der Ton.
   ============================================================ */

.wizard-top {
  background: rgba(250, 248, 245, 0.92);
  border-bottom-color: var(--linie-fein);
}
.wizard-top-progress { background: var(--linie); border-radius: 0; }
.wizard-top-bar { background: var(--gruen); border-radius: 0; }
.wizard-exit { color: var(--tinte-weich); font-weight: 500; }
.wizard-exit:hover { color: var(--tinte); }

/* Konturschrift raus — die helle Fassung trennt über Schriftstärke, nicht
   über Outline. */
.wizard-side-title {
  font-stretch: normal;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0.005em;
}
.wizard-side-title em {
  font-style: normal;
  color: var(--tinte);
  font-weight: 500;
  -webkit-text-stroke: 0;
}

/* Schrittüberschriften und Beschriftungen: ruhiger Schnitt statt 800/900 */
.step-head,
.step h2,
.review-price,
.success-text {
  font-stretch: normal;
  text-transform: none;
  letter-spacing: 0.005em;
}
.step h2 {
  font-weight: 300;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.14;
}
.step h2 em, .step h2 strong { font-weight: 500; font-style: normal; }

/* Kantig statt Pille — außer bei runden Markierungen, die rund bleiben müssen. */
.segmented, .segmented button,
.check-box, .review, .step-nav .btn { border-radius: 0; }

/* Tarifkarten: gleicher ruhiger Ton wie die Preistafel der Startseite */
.tarif-name {
  font-stretch: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 19px;
}
.tarif-price b { font-stretch: normal; font-weight: 300; }
.tarif-badge {
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.tarif-card { border-radius: 0; }
.tarif-card:hover { transform: none; border-color: var(--nuss); }
.tarif-card.is-selected { border-color: var(--gruen); }

/* Laufzeit-Umschalter kantig wie auf der Startseite */
.segmented-3, .segmented-3 button,
.wizard-term, .wizard-term button { border-radius: 0; }

/* Die Schrittliste passt auf 390 px in keiner Form: als eine Zeile lief
   sie 539 px aus dem Bild, mit Umbruch stand sie in vier ungleichen
   Zeilen (2+1+2+1) und sah kaputt aus. Auf dem Handy ist sie ohnehin
   dreifach doppelt — der Fortschritt steht im Balken oben, als
   „Schritt 2 von 6" im Kopf, und zurueck geht es ueber den Knopf.
   Darum dort ganz weg. */
@media (max-width: 900px) {
  .wizard-steps { display: none; }
}


/* ============================================================
   FORMULARFELDER
   Beim Umbau auf die helle Fassung sind die Grundregeln dieses
   Blocks verlorengegangen — uebrig blieben nur die Modifikatoren
   (-half, -street, -city, -3). Ohne Grundregel standen alle 19
   Felder im Rohzustand des Browsers und saemtliche Fehlertexte
   dauerhaft sichtbar. Hier steht der Block vollstaendig, im
   gleichen Ton wie das Kontaktformular der Startseite.
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 26px;
  margin-bottom: 26px;
}
.form-row-street { grid-template-columns: 1fr 110px; }
.form-row-city   { grid-template-columns: 150px 1fr; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  min-width: 0;
}
.form-row .form-field { margin-bottom: 0; }
.form-field-half { max-width: 340px; }

.form-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grau);
}
.form-field label span {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--tinte);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linie);
  border-radius: 0;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
  transition: border-color .35s var(--weich);
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b6afa4; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gruen);
}
.form-field textarea { resize: vertical; min-height: 92px; }

/* Datumsfelder bringen in Chrome eine eigene Innenausstattung mit. */
.form-field input[type="date"] { font-variant-numeric: tabular-nums; }
.form-field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
.form-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: .8; }

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid { border-bottom-color: var(--danger); }

/* Fehlertexte bleiben still, bis das Skript .is-visible setzt. */
.field-error {
  display: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--danger);
  margin: 0;
}
.field-error.is-visible { display: block; }

/* Sachhinweis am Feld — anders als .field-hint, die eine gelungene
   Eingabe bestaetigt (gruen). Dieser hier steht immer da. */
.field-note {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.field-hint {
  margin-top: 2px;
  font-size: 13px;
  color: var(--gruen);
  min-height: 1.2em;
}

/* Umschalter (Anrede, Zahlweise) */
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--linie);
}
.segmented-3 { grid-template-columns: repeat(3, 1fr); }
.segmented button {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 13px 8px;
  border: 0;
  border-right: 1px solid var(--linie);
  background: transparent;
  color: var(--grau);
  cursor: pointer;
  transition: background .3s var(--weich), color .3s var(--weich);
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: var(--papier-tief); color: var(--tinte); }
.segmented button.is-active { background: var(--tinte); color: var(--papier); }
.segmented.is-invalid { border-color: var(--danger); }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row-street { grid-template-columns: 1fr 90px; }
  .form-row-city   { grid-template-columns: 110px 1fr; }
}


/* Wegfallende Gebühr in der Kostenaufstellung — hervorgehoben, weil sie
   der eigentliche Vorteil der Aktion ist. */
.entfaellt {
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* Die Kostenaufstellung ist auf schmalen Schirmen der letzte Blick vor
   der Zustimmung — sie muss vollständig sichtbar sein. */
@media (max-width: 480px) {
  .review-price { padding: 20px 16px; }
  .review-price table { font-size: 14.5px; }
  .review-price td:last-child { width: 6.8em; }
  .review-price tr.total td { font-size: 17px; font-stretch: 100%; }
}
