/* ==========================================================================
   REFIT AG — Design System
   Angelehnt an die visuelle Sprache von apple.ch: viel Weissraum, grosse
   ruhige Typografie, klare Pill-Buttons, sanfte Sektionswechsel (Weiss/Grau).
   Markenfarben REFIT: Blau→Türkis→Grün-Verlauf, direkt aus dem Logo abgeleitet.
   ========================================================================== */

:root {
  /* Neutrals (Apple-artige Graustufen) */
  --c-black: #1d1d1f;
  --c-text: #1d1d1f;
  --c-text-secondary: #6e6e73;
  --c-text-tertiary: #86868b;
  --c-white: #ffffff;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f5f7;
  --c-bg-dark: #0b0f14;
  --c-border: #d2d2d7;
  --c-border-light: #e8e8ed;

  /* Marke REFIT — direkt aus dem offiziellen Logo abgeleitet */
  --c-blue: #009ddf;
  --c-blue-dark: #0077ab;
  --c-teal: #1ca3ae;
  --c-green: #3daa86;
  --c-lime: #8ab745;
  --c-green-dark: #5c8f2f;
  --c-red: #d9412f;

  --grad-brand: linear-gradient(100deg, #009ddf 0%, #1ca3ae 30%, #3daa86 58%, #8ab745 100%);
  --grad-brand-soft: linear-gradient(100deg, rgba(0,157,223,0.14) 0%, rgba(28,163,174,0.14) 30%, rgba(61,170,134,0.14) 58%, rgba(138,183,69,0.14) 100%);
  --grad-dark: radial-gradient(120% 140% at 15% 0%, #0f2f3d 0%, #0b1418 55%, #0b0f14 100%);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --shadow-s: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-m: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-l: 0 24px 60px rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section { padding: 120px 0; }
.section--alt {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(138,183,69,0.06) 0%, transparent 55%),
    radial-gradient(120% 100% at 0% 100%, rgba(0,157,223,0.06) 0%, transparent 55%),
    var(--c-bg-alt);
}
.section--tight { padding: 80px 0; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 16px;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }

.h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--c-text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

.center { text-align: center; }
.max-w-content { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.35s var(--ease), background-position 0.35s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 157, 223, 0.28);
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 10px 28px rgba(28, 163, 174, 0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--c-black);
  border-color: var(--c-border);
}
.btn--outline:hover { border-color: var(--c-black); }

.btn--light {
  background: #fff;
  color: var(--c-black);
}
.btn--light:hover { box-shadow: var(--shadow-m); }

.btn--full { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  color: var(--c-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-arrow svg { transition: transform .2s var(--ease); width: 16px; height: 16px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--c-border-light);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo img { height: 26px; width: auto; display: block; }
.footer .logo img { height: 24px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--c-text-secondary); }
.nav__links a:not(.btn):hover { color: var(--c-text); }
.nav__cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 700px) {
  .nav__links a:not(.btn):not(.btn--sm) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 40px;
  text-align: center;
}

.blob-field {
  position: absolute;
  inset: -6% -8% auto -8%;
  height: 760px;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}
.blob--1 {
  width: 440px; height: 440px; top: -140px; left: -100px;
  background: radial-gradient(circle at 35% 35%, rgba(0,157,223,0.55), transparent 70%);
}
.blob--2 {
  width: 400px; height: 400px; top: -80px; right: -110px;
  background: radial-gradient(circle at 60% 40%, rgba(138,183,69,0.5), transparent 70%);
}
.blob--3 {
  width: 340px; height: 340px; top: 220px; left: 36%;
  background: radial-gradient(circle at 50% 50%, rgba(28,163,174,0.35), transparent 70%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: 28px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }

.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 620px; margin: 0 auto 40px; }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero__note { font-size: 13px; color: var(--c-text-tertiary); }

/* ---------- Calculator card ---------- */
.calc {
  margin: 72px auto 0;
  max-width: 880px;
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  text-align: left;
  position: relative;
}
.calc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
}
.calc__header {
  padding: 28px 40px;
  background: var(--grad-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc__header h3 { color: #fff; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.calc__body { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
@media (max-width: 720px) { .calc__body { grid-template-columns: 1fr; padding: 28px; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-text-secondary); }
.field select,
.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="tel"] {
  appearance: none;
  border: 1.5px solid var(--c-border);
  background: #fff;
  border-radius: var(--radius-s);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2386868b'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%2386868b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(0, 157, 223, 0.14);
}
.field--range input[type="range"] { width: 100%; accent-color: var(--c-blue); }
.field__value { font-size: 14px; color: var(--c-text-secondary); font-weight: 600; }

.calc__result {
  grid-column: 1 / -1;
  border-top: 1px solid var(--c-border-light);
  padding-top: 28px;
  margin-top: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.calc__result-label { font-size: 13px; font-weight: 600; color: var(--c-text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.calc__result-value { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.calc__result-value span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__result-sub { font-size: 13px; color: var(--c-text-tertiary); margin-top: 6px; }

/* ---------- Vorher/Nachher Compare-Slider ---------- */
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
}
.compare__image { position: absolute; inset: 0; }
.compare__image img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.compare__image--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.compare__handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.compare__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-m);
  color: var(--c-text);
}
.compare__grip svg { width: 22px; height: 22px; }

.compare__label {
  position: absolute;
  top: 20px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(11,15,20,0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.compare__label--before { left: 20px; }
.compare__label--after { right: 20px; }

.compare.is-hint .compare__handle { animation: compare-hint 1.8s var(--ease) 0.6s 1; }
@keyframes compare-hint {
  0%, 100% { left: var(--pos); }
  50% { left: 38%; }
}

/* ---------- Problem cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-m);
  padding: 32px;
}
.card--alt { background: var(--c-bg-alt); border-color: transparent; }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,157,223,0.1);
  color: var(--c-blue);
  margin-bottom: 20px;
}
.card__icon--teal { background: rgba(28,163,174,0.12); color: var(--c-teal); }
.card__icon--lime { background: rgba(138,183,69,0.14); color: var(--c-green-dark); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--c-text-secondary); font-size: 15px; margin: 0 0 16px; }
.card blockquote {
  margin: 0; padding: 14px 16px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-s);
  font-size: 14px; font-style: italic; color: var(--c-text-secondary);
  border-left: 3px solid var(--c-blue);
}
.card--alt blockquote { background: #fff; }

/* ---------- Pricing (Produkte) ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1150px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing { grid-template-columns: 1fr; } }

.price-card {
  background: #fff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-brand) border-box;
  box-shadow: 0 20px 50px rgba(28, 163, 174, 0.18);
  transform: scale(1.02);
}
.price-card__tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--grad-brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.price-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-tertiary); margin-bottom: 10px; }
.price-card h3 { margin-bottom: 10px; }
.price-card__desc { color: var(--c-text-secondary); font-size: 14px; margin-bottom: 20px; min-height: 40px; }
.price-card__price { font-size: 30px; font-weight: 800; margin-bottom: 22px; }
.price-card__price small { font-size: 14px; font-weight: 500; color: var(--c-text-tertiary); }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--c-text); align-items: flex-start; }
.price-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--c-green); }
.price-card__meta { font-size: 12px; color: var(--c-text-tertiary); text-align: center; margin-top: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin-bottom: 20px;
}
.step__time { font-size: 12px; font-weight: 700; color: var(--c-blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.step p { color: var(--c-text-secondary); font-size: 15px; }

/* ---------- Feature list (dossier contents) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  display: flex; gap: 18px;
  background: #fff; border: 1px solid var(--c-border-light);
  border-radius: var(--radius-m); padding: 26px;
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(0,157,223,0.1); display: flex; align-items: center; justify-content: center; color: var(--c-blue);
}
.feature__icon--teal { background: rgba(28,163,174,0.12); color: var(--c-teal); }
.feature__icon--lime { background: rgba(138,183,69,0.14); color: var(--c-green-dark); }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--c-text-secondary); margin: 0 0 10px; }
.feature__result { display: inline-block; font-size: 13px; font-weight: 700; color: var(--c-green-dark); text-decoration: none; }
a.feature__result:hover { text-decoration: underline; }

/* ---------- Ambient Video-Loop (Dossier-Sektion) ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 16 / 9;
  margin-top: 56px;
}
.video-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,15,20,0.55) 0%, transparent 40%);
  pointer-events: none;
}
.video-frame__caption {
  position: absolute; left: 24px; bottom: 20px;
  color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.video-frame__caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-lime); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-size: clamp(32px, 4vw, 44px); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 14px; color: var(--c-text-secondary); margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 72px 48px;
  text-align: center;
  margin: 0 24px;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 260px;
  background: var(--grad-brand);
  opacity: 0.28;
  filter: blur(70px);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
@media (max-width: 700px) { .cta-band { padding: 48px 28px; } }

/* ---------- Footer ---------- */
.footer { background: var(--c-bg-alt); border-top: 1px solid var(--c-border-light); padding: 56px 0 28px; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h4 { font-size: 13px; margin-bottom: 14px; color: var(--c-text-secondary); }
.footer__col a { display: block; font-size: 14px; color: var(--c-text); padding: 5px 0; }
.footer__col a:hover { color: var(--c-blue); }
.footer__bottom { border-top: 1px solid var(--c-border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--c-text-tertiary); }
.footer__bottom a:hover { color: var(--c-blue); }

/* ---------- Form / Funnel ---------- */
.funnel {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 120px;
}
.progress {
  display: flex; align-items: center; gap: 8px; margin-bottom: 48px;
}
.progress__step {
  flex: 1; height: 4px; border-radius: 2px; background: var(--c-border-light); overflow: hidden;
}
.progress__step i { display: block; height: 100%; width: 0%; background: var(--grad-brand); transition: width .35s var(--ease); }
.progress__step.is-done i, .progress__step.is-active i { width: 100%; }

.step-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-text-tertiary); margin-bottom: 40px; }

.fieldset { display: none; }
.fieldset.is-active { display: block; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.fieldset h2 { margin-bottom: 8px; }
.fieldset__hint { color: var(--c-text-secondary); margin-bottom: 32px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }

.choice {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.choice input { position: absolute; opacity: 0; }
.choice__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.choice__desc { font-size: 13px; color: var(--c-text-secondary); }
.choice:has(input:checked) { border-color: var(--c-teal); background: var(--grad-brand-soft); }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 13px; color: var(--c-text-secondary); }
.checkbox-row input { margin-top: 3px; }

.funnel__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 16px; }
.funnel__nav .btn--outline { flex-shrink: 0; }

.summary-box {
  background: var(--c-bg-alt);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--c-border-light); font-size: 14px; }
.summary-row:last-child { border-bottom: none; }
.summary-row span:first-child { color: var(--c-text-secondary); }
.summary-row span:last-child { font-weight: 600; text-align: right; }

.estimate-box {
  background: var(--c-bg-dark); color: #fff;
  border-radius: var(--radius-m);
  padding: 28px; text-align: center; margin-bottom: 28px;
}
.estimate-box .calc__result-label { color: rgba(255,255,255,0.6); }
.estimate-box .calc__result-value { color: #fff; }
.estimate-box .calc__result-value span { -webkit-text-fill-color: initial; background: none; color: #fff; }

.funding-box {
  background: var(--c-bg-alt);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.funding-box h3 { font-size: 15px; margin-bottom: 4px; }
.funding-box__hint { font-size: 12.5px; color: var(--c-text-tertiary); margin: 0 0 16px; }
.funding-item { padding: 14px 0; border-bottom: 1px solid var(--c-border-light); }
.funding-item:last-child { border-bottom: none; padding-bottom: 0; }
.funding-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.funding-item__name { font-weight: 600; font-size: 14px; }
.funding-item__level { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-teal); white-space: nowrap; }
.funding-item__desc { font-size: 13px; color: var(--c-text-secondary); margin: 4px 0 8px; }
.funding-item__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.funding-item__amount { font-size: 12.5px; color: var(--c-text); font-weight: 600; }
.funding-item__link { font-size: 12.5px; color: var(--c-blue); font-weight: 600; }
.funding-item__link:hover { text-decoration: underline; }
.funding-box__empty { font-size: 13px; color: var(--c-text-secondary); }

/* Danke / success page */
.success {
  max-width: 640px; margin: 0 auto; padding: 100px 24px 140px; text-align: center;
}
.success__icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.success .lead { margin-bottom: 40px; }
.success__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.success__steps { text-align: left; background: var(--c-bg-alt); border-radius: var(--radius-m); padding: 28px 32px; }
.success__steps li { display: flex; gap: 14px; padding: 12px 0; font-size: 14px; color: var(--c-text-secondary); }
.success__steps li b { color: var(--c-text); }

.field-error { color: var(--c-red); font-size: 12px; display: none; }
.field.has-error select,
.field.has-error input { border-color: var(--c-red); }
.field.has-error .field-error { display: block; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-hero {
  text-align: center;
  padding: 88px 24px 0;
}
.legal-hero .h2 { margin-bottom: 14px; }
.legal-hero .lead { max-width: 620px; margin: 0 auto; }
.legal-hero__meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--c-text-tertiary);
  margin-top: 24px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}
.legal-hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 140px;
}

/* Table of contents */
.legal__toc {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-m);
  padding: 28px 32px;
  margin-bottom: 16px;
}
.legal__toc-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-tertiary); margin-bottom: 16px; }
.legal__toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
  counter-reset: toc;
}
@media (max-width: 640px) { .legal__toc ol { grid-template-columns: 1fr; } }
.legal__toc li { counter-increment: toc; font-size: 14px; }
.legal__toc a {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--c-text); font-weight: 500;
}
.legal__toc a::before {
  content: counter(toc);
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-text-tertiary);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.legal__toc a:hover { color: var(--c-blue); }
.legal__toc a:hover::before { border-color: var(--c-blue); color: var(--c-blue); }

/* Sections */
.legal__section {
  padding: 40px 0;
  border-top: 1px solid var(--c-border-light);
  scroll-margin-top: 96px;
}
.legal__section:first-of-type { border-top: none; }
.legal h2 { font-size: 20px; margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.legal h2 .legal__num { font-size: 13px; font-weight: 700; color: var(--c-blue); flex-shrink: 0; }
.legal h3 { font-size: 15px; margin: 24px 0 8px; color: var(--c-text); }
.legal p, .legal li { color: var(--c-text-secondary); font-size: 15px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; list-style: disc; margin-top: 10px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--c-blue); font-weight: 600; }
.legal a:hover { text-decoration: underline; }

/* Contact / info cards (replace bare tables) */
.info-card {
  background: var(--c-bg-alt);
  border-radius: var(--radius-m);
  padding: 26px 30px;
  margin: 8px 0;
}
.info-card + .info-card { margin-top: 16px; }
.info-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; margin: 0; }
@media (max-width: 560px) { .info-card dl { grid-template-columns: 1fr; gap: 4px; } }
.info-card dt { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text-tertiary); }
.info-card dd { margin: 0; font-size: 15px; color: var(--c-text); line-height: 1.6; }
.info-card dd a { color: var(--c-blue); }
@media (max-width: 560px) { .info-card dd { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border-light); } .info-card dd:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } }

.legal .placeholder {
  display: inline-block;
  color: var(--c-red);
  font-weight: 600;
  font-size: 13.5px;
  background: rgba(217, 65, 47, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
}

.legal .note-box {
  background: var(--grad-brand-soft);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--c-text);
  margin: 16px 0 0;
}
.legal .note-box strong { color: var(--c-text); }

.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--c-text-tertiary);
  margin-bottom: 32px;
}
.legal__back:hover { color: var(--c-blue); }
