/* GEIG-Pflichtchecker v6 (06.11.2026, Schrittfolge), Marke Sperling Baufinanzierung (hell). Tokens aus der Base.css der Live-Site.
   Einbau 02.11.2026: Schriften ueber die Variablen der Seite (Astro-Fonts-API vergibt gehashte Familiennamen),
   Selektoren mit .gc-Praefix, damit die Regeln der Firmenseiten (.gw-inhalt, .gf-seite) sie nicht ueberschreiben. */
.gc {
  --gc-blau: #023e84;
  --gc-blau2: #0156b4;
  --gc-blau-tief: #022c5e;
  --gc-nacht: #041c3a;
  --gc-gold: #ddb57e;
  --gc-gold-hell: #f2d89b;
  --gc-gold-linie: #e7ce96;
  --gc-gold-text: #876426;
  --gc-bg: #fbfcfe;
  --gc-hell: #e9f3ff;
  --gc-papier: #f6f4ef;
  --gc-ink: #1a2732;
  --gc-ink2: #4e5c6a;
  --gc-ink3: #5f6c79;
  --gc-linie: #dce5f0;
  --gc-linie-stark: #c4d2e4;
  --gc-kontur: #7f8fa3;
  --gc-warn-bg: #fff6e5;
  --gc-warn-linie: #e7ce96;
  --gc-fehler: #a3281f;
  --gc-r1: 8px;
  --gc-r2: 14px;
  --gc-r3: 22px;
  font-family: var(--body), system-ui, sans-serif;
  color: var(--gc-ink);
  background: var(--gc-bg);
  border: 1px solid var(--gc-linie);
  border-top: 4px solid var(--gc-gold);
  border-radius: var(--gc-r3);
  padding: clamp(18px, 3vw, 36px);
  box-sizing: border-box;
  line-height: 1.55;
  margin: 18px 0 8px;
}
.gc *, .gc *::before, .gc *::after { box-sizing: border-box; }

.gc .gc-form { margin: 0; }
.gc .gc-fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.gc .gc-legend {
  padding: 0;
  margin: 0 0 8px;
  font-weight: 650;
  color: var(--gc-nacht);
  font-size: 1rem;
}
.gc .gc-hint { margin: 0 0 8px; font-size: .88rem; line-height: 1.5; color: var(--gc-ink3); }

.gc .gc-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gc .gc-options--row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.gc .gc-option { position: relative; }
.gc .gc-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.gc .gc-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--gc-kontur);
  border-radius: var(--gc-r1);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.gc .gc-option label::before {
  content: '';
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gc-kontur);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.gc .gc-option input:checked + label {
  border-color: var(--gc-blau);
  background: var(--gc-hell);
}
.gc .gc-option input:checked + label::before {
  border-color: var(--gc-blau);
  box-shadow: inset 0 0 0 4px var(--gc-blau);
}
.gc .gc-option input:focus-visible + label {
  outline: 3px solid var(--gc-blau2);
  outline-offset: 2px;
}
.gc .gc-option label small { display: block; color: var(--gc-ink3); font-size: .84rem; font-weight: 400; }
@media (hover: hover) {
  .gc .gc-option label:hover { border-color: var(--gc-blau2); }
}

.gc .gc-input, .gc .gc-check-label {
  font: inherit;
  color: inherit;
}
.gc .gc-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--gc-kontur);
  border-radius: var(--gc-r1);
}
.gc .gc-input:focus-visible { outline: 3px solid var(--gc-blau2); outline-offset: 2px; border-color: var(--gc-blau); }
.gc .gc-input[aria-invalid="true"] { border-color: var(--gc-fehler); }
.gc .gc-label { display: block; margin: 0 0 6px; font-weight: 650; font-size: 1rem; color: var(--gc-nacht); }
.gc .gc-field { margin: 0 0 14px; }
.gc .gc-error { margin: 6px 0 0; color: var(--gc-fehler); font-size: .9rem; }
.gc .gc-error[hidden] { display: none; }

.gc .gc-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.gc .gc-check input { width: 20px; height: 20px; margin: 3px 0 0; padding: 0; accent-color: var(--gc-blau); flex: 0 0 20px; }
.gc .gc-check-label { font-size: .95rem; font-weight: 500; }

.gc [hidden] { display: none !important; }

.gc .gc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.gc .gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.gc .gc-btn:focus-visible { outline: 3px solid var(--gc-blau2); outline-offset: 3px; }
.gc .gc-btn-primary { background: var(--gc-blau); color: #fff; }
.gc .gc-btn-primary:hover { background: var(--gc-blau-tief); }
.gc .gc-btn-ghost { background: transparent; color: var(--gc-blau); border-color: var(--gc-kontur); }
.gc .gc-btn-ghost:hover { border-color: var(--gc-blau); }

.gc .gc-result {
  background: #fff;
  border: 1px solid var(--gc-linie);
  border-radius: var(--gc-r2);
  padding: clamp(16px, 2.2vw, 26px);
  min-height: 220px;
}
.gc .gc-placeholder { margin: 0; color: var(--gc-ink3); }
.gc .gc-result[data-kind="pflicht"] { border-color: var(--gc-blau); }
.gc .gc-result[data-kind="kmu"] { border-color: var(--gc-gold); background: var(--gc-warn-bg); }
.gc .gc-result[data-kind="unter"] { border-color: var(--gc-linie-stark); }
.gc .gc-result-title {
  margin: 0 0 8px;
  font-family: var(--display), system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  color: var(--gc-blau-tief);
}
.gc .gc-result-title:focus { outline: none; }
.gc .gc-lead { margin: 0 0 14px; color: var(--gc-ink2); }

.gc .gc-cards { display: grid; gap: 10px; margin: 0 0 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: stretch; }
.gc .gc-card {
  min-width: 0;
  padding: 14px;
  background: var(--gc-hell);
  border-radius: var(--gc-r1);
  border-left: 4px solid var(--gc-blau);
}
.gc .gc-card-value {
  font-family: var(--display), system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 700;
  color: var(--gc-blau);
  font-variant-numeric: tabular-nums;
}
.gc .gc-card-label { margin-top: 6px; font-weight: 650; color: var(--gc-nacht); overflow-wrap: break-word; }
.gc .gc-card-hint { font-size: .86rem; color: var(--gc-ink2); }
.gc .gc-cards--alt { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
@media (max-width: 559px) {
  .gc .gc-cards--alt { grid-template-columns: minmax(0, 1fr); }
}
.gc .gc-or {
  align-self: center;
  justify-self: center;
  font-family: var(--mono), ui-monospace, monospace;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gc-gold-text);
}

.gc .gc-pub, .gc .gc-extra {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--gc-r1);
  background: var(--gc-papier);
  font-size: .94rem;
  color: var(--gc-ink);
}
.gc .gc-extra-hinweis { background: var(--gc-warn-bg); border: 1px solid var(--gc-warn-linie); }

.gc .gc-steps, .gc .gc-notes-box { margin: 0 0 12px; }
.gc .gc-steps summary, .gc .gc-notes-box summary { cursor: pointer; font-weight: 650; color: var(--gc-blau); min-height: 32px; }
.gc .gc-steps summary:focus-visible, .gc .gc-notes-box summary:focus-visible { outline: 3px solid var(--gc-blau2); outline-offset: 2px; }
.gc .gc-steps ol { margin: 8px 0 0; padding-left: 1.3rem; color: var(--gc-ink2); font-size: .94rem; }

.gc .gc-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--gc-r1);
  background: var(--gc-warn-bg);
  border: 1px solid var(--gc-warn-linie);
  font-size: .94rem;
  color: var(--gc-ink);
}
.gc .gc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.gc .gc-notes { margin: 8px 0 0; padding-left: 1.2rem; color: var(--gc-ink2); font-size: .9rem; line-height: 1.55; }
.gc .gc-notes li { margin: 0 0 4px; }
.gc .gc-norms { margin: 0 0 16px; font-size: .88rem; color: var(--gc-ink2); }
.gc .gc-norms-label { font-weight: 650; color: var(--gc-nacht); }
.gc .gc-norms a.gc-link { color: var(--gc-blau); text-underline-offset: 2px; }
.gc .gc-norms a.gc-link:hover { color: var(--gc-blau-tief); }

.gc .gc-cta {
  margin-top: 6px;
  padding: 16px;
  border-radius: var(--gc-r2);
  background: var(--gc-nacht);
  color: #fff;
}
.gc .gc-cta .gc-cta-title {
  margin: 0 0 4px;
  font-family: var(--display), system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.gc .gc-cta .gc-cta-text { margin: 0 0 12px; color: #dbe6f4; font-size: .94rem; }
.gc .gc-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gc .gc-cta a.gc-btn-primary { background: var(--gc-gold); color: var(--gc-nacht); }
.gc .gc-cta a.gc-btn-primary:hover { background: var(--gc-gold-hell); }
.gc .gc-cta .gc-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.gc .gc-cta .gc-btn-ghost:hover { border-color: #fff; }
.gc .gc-cta .gc-btn:focus-visible { outline-color: var(--gc-gold-hell); }

.gc .gc-foot { margin: clamp(14px, 2vw, 22px) 0 0; font-size: .84rem; color: var(--gc-ink3); }
.gc .gc-foot p { margin: 0 0 4px; font-size: .84rem; color: var(--gc-ink3); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .gc *, .gc *::before, .gc *::after { transition: none !important; }
}
.gc .gc-druck { display: none; }
@media print {
  .gc { border: 1px solid #999; }
  .gc .gc-form, .gc .gc-kopf, .gc .gc-result, .gc .gc-actions { display: none !important; }
  .gc .gc-druck { display: block; margin: 0; color: var(--gc-ink); }
}

/* ---------- v6: Schrittfolge ---------- */
.gc { scroll-margin-top: 150px; }
.gc .gc-kopf { margin: 0 0 22px; }
.gc .gc-etappen { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; }
.gc .gc-etappen li { display: flex; align-items: center; gap: 8px; color: var(--gc-ink3); margin: 0; }
.gc .gc-etappen li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gc-linie-stark); background: #fff; flex: 0 0 10px; }
.gc .gc-etappen li.ist-aktiv { color: var(--gc-blau); font-weight: 700; }
.gc .gc-etappen li.ist-aktiv::before { border-color: var(--gc-blau); background: var(--gc-blau); }
.gc .gc-etappen li.ist-fertig::before { border-color: var(--gc-gold); background: var(--gc-gold); }
.gc .gc-etappen button { font: inherit; color: var(--gc-blau2); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.gc .gc-etappen button:focus-visible { outline: 3px solid var(--gc-blau2); outline-offset: 2px; border-radius: 4px; }
.gc .gc-balken { height: 6px; background: var(--gc-hell); border-radius: 999px; overflow: hidden; }
.gc .gc-balken span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gc-blau), var(--gc-blau2)); border-radius: 999px; transition: width .3s ease; }

.gc.gc--schritte .gc-step { display: none; }
.gc.gc--schritte .gc-step.ist-aktiv { display: block; }
.gc .gc-step { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.gc .gc-step > .gc-legend, .gc .gc-step .gc-fieldset > .gc-legend, .gc .gc-kosten > .gc-legend {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px;
  font-family: var(--display), system-ui, sans-serif; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.25; color: var(--gc-blau-tief);
}
.gc .gc-nr {
  flex: 0 0 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--gc-gold); color: var(--gc-nacht); font-family: var(--mono), ui-monospace, monospace; font-size: .9rem; font-weight: 700; margin-top: -2px;
}
.gc .gc-options--kacheln { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gc .gc-options--kacheln .gc-option label { min-height: 92px; padding: 16px 18px; align-items: flex-start; font-weight: 650; font-size: 1rem; color: var(--gc-nacht); }
.gc .gc-options--kacheln .gc-option label::before { margin-top: 2px; }
.gc .gc-options--kacheln .gc-option label small { margin-top: 4px; }
.gc .gc-ico { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: var(--gc-blau); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; order: 2; margin-left: auto; }
.gc .gc-options--kacheln .gc-option label span { order: 1; flex: 1; min-width: 0; }
.gc .gc-options--kacheln .gc-option label::before { order: 0; }
.gc .gc-option input:checked + label .gc-ico { stroke: var(--gc-blau); }

.gc .gc-zahl { position: relative; max-width: 360px; }
.gc .gc-zahl .gc-input { font-size: 1.35rem; font-weight: 700; min-height: 60px; padding-right: 120px; color: var(--gc-blau); font-variant-numeric: tabular-nums; }
.gc .gc-zahl span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gc-ink3); font-weight: 600; pointer-events: none; }
.gc .gc-step .gc-hint { margin-top: 12px; max-width: 70ch; font-size: .92rem; }
.gc .gc-mehr { margin: 0 0 16px; font-size: .9rem; color: var(--gc-ink2); max-width: 70ch; }
.gc .gc-mehr summary { cursor: pointer; color: var(--gc-blau); font-weight: 600; min-height: 32px; }
.gc .gc-mehr p { margin: 6px 0 0; }
.gc .gc-step .gc-check { margin-top: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--gc-linie); border-radius: var(--gc-r1); max-width: 560px; }
.gc .gc-kosten { margin-top: 10px; }
.gc .gc-fieldset + .gc-kosten:not([hidden]) { padding-top: 22px; border-top: 1px dashed var(--gc-linie-stark); }
.gc .gc-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; max-width: 620px; }

.gc .gc-actions { align-items: center; padding-top: 18px; border-top: 1px solid var(--gc-linie); margin-top: 8px; }
.gc .gc-actions [data-gc-weiter], .gc .gc-actions [data-gc-pruefen] { order: 2; }
.gc .gc-actions [data-gc-zurueck] { order: 1; }
.gc .gc-schritt { order: 3; margin-left: auto; font-size: .86rem; color: var(--gc-ink3); }
.gc .gc-actions--ergebnis { border-top: 0; padding-top: 0; margin-top: 14px; }

.gc .gc-result { min-height: 0; padding: clamp(18px, 2.6vw, 30px); }
.gc .gc-result .gc-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.gc .gc-result .gc-cards--alt { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); max-width: 640px; }
@media (max-width: 559px) { .gc .gc-result .gc-cards--alt { grid-template-columns: minmax(0, 1fr); } }
.gc .gc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 6px 0 18px; padding: 20px 22px; }
.gc .gc-cta .gc-cta-text { margin: 0; }
.gc .gc-mehr-box { border-top: 1px solid var(--gc-linie); padding-top: 14px; }
.gc .gc-mehr-box .gc-norms { margin-bottom: 0; }
@media (max-width: 560px) {
  .gc .gc-etappen { gap: 4px 12px; font-size: .8rem; }
  .gc .gc-schritt { width: 100%; margin-left: 0; order: 0; }
  .gc .gc-actions .gc-btn { flex: 1 1 auto; }
}
