:root {
  --navy-950: #081527;
  --navy-900: #0c1f3b;
  --navy-800: #12294c;
  --navy-700: #1b3a66;
  --navy-500: #2c5490;
  --blue-100: #eaf0f9;
  --gray-50: #f6f7f9;
  --gray-100: #eef0f3;
  --gray-200: #e3e6eb;
  --gray-400: #9aa3b2;
  --gray-600: #5b6472;
  --gray-900: #1b2230;
  --green-bg: #e7f6ee;
  --green-text: #1e7b4f;
  --gold: #f2c94c;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 24px 48px -20px rgba(12, 31, 59, 0.22);
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 11px 24px;
}
.marquee__item { display: inline-flex; align-items: center; gap: 8px; }
.marquee__rating { color: #fff; }
.marquee__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 11px;
}
.marquee__dot { opacity: 0.4; }
.stars { color: var(--gold); letter-spacing: 1px; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 420px at 18% -25%, #17335c 0%, var(--navy-900) 60%);
  color: #fff;
  padding: 56px 24px 116px;
}
.hero__inner { max-width: 1180px; margin: 0 auto; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 640px;
}
.hero__lead {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 560px;
  margin: 0;
}

/* ---------- Layout ---------- */
.layout {
  max-width: 1180px;
  margin: -72px auto 0;
  padding: 0 24px 64px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}
@media (max-width: 900px) {
  .layout { flex-direction: column; align-items: stretch; margin-top: -48px; }
}

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px;
  min-width: 0;
}

/* ---------- Input card ---------- */
.input-card { width: 400px; flex-shrink: 0; }
@media (max-width: 900px) { .input-card { width: 100%; } }

.card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 20px;
}

.field { margin-bottom: 22px; }
.field--tight { margin-bottom: 14px; }
.field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 9px;
}
.field__row label { color: var(--gray-600); }
.field__row output { font-weight: 700; color: var(--gray-900); }
.field__minmax {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
}
.field--row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--navy-900) 0%,
    var(--navy-900) var(--fill, 0%),
    var(--gray-200) var(--fill, 0%),
    var(--gray-200) 100%
  );
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--navy-900), 0 2px 6px rgba(12, 31, 59, 0.35);
  cursor: pointer;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--navy-900) 0%,
    var(--navy-900) var(--fill, 0%),
    var(--gray-200) var(--fill, 0%),
    var(--gray-200) 100%
  );
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--navy-900);
  cursor: pointer;
}

.age-box {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  margin-bottom: 22px;
}
.age-box__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.age-box__hint {
  margin: 12px 0 0;
  background: var(--blue-100);
  color: var(--navy-700);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}

.segmented {
  display: inline-flex;
  gap: 10px;
}
.segmented__btn {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-900);
  font: inherit;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.segmented__btn.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  font-weight: 600;
}

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper__btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--navy-900);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.stepper output { min-width: 18px; text-align: center; font-weight: 700; }

/* ---------- Result card ---------- */
.result-card { flex-grow: 1; }

.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 26px;
  font-size: 14px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-600);
  font: inherit;
  font-size: 14px;
  padding: 0 0 14px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab.is-active {
  color: var(--navy-900);
  border-bottom-color: var(--navy-900);
  font-weight: 600;
}
.tab__pill {
  background: var(--blue-100);
  color: var(--navy-700);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.panel { display: none; }
.panel.is-active { display: block; }

.callout {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.callout--good { background: var(--green-bg); color: var(--green-text); }
.callout--info { background: var(--blue-100); color: var(--navy-700); }

.stat-hero {
  background: var(--navy-900);
  border-radius: 18px;
  padding: 28px;
  color: #fff;
  margin-bottom: 24px;
}
.stat-hero__label { font-size: 12px; letter-spacing: 0.05em; opacity: 0.75; margin-bottom: 10px; }
.stat-hero__value { font-family: var(--font-display); font-size: 44px; font-weight: 600; margin-bottom: 6px; }
.stat-hero__sub { font-size: 12px; opacity: 0.8; margin-bottom: 16px; }
.stat-hero__bar { height: 6px; background: rgba(255, 255, 255, 0.18); border-radius: 999px; margin-bottom: 18px; overflow: hidden; }
.stat-hero__bar-fill { height: 100%; background: #fff; border-radius: 999px; transition: width 0.25s ease; }
.stat-hero__pill { display: inline-block; background: rgba(255, 255, 255, 0.14); padding: 8px 16px; border-radius: 999px; font-size: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.stat-tile { border: 1px solid var(--gray-200); border-radius: 14px; padding: 18px; }
.stat-tile__label { font-size: 11px; color: var(--gray-400); margin-bottom: 8px; letter-spacing: 0.03em; }
.stat-tile__value { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-900); }
.stat-tile__value--accent { color: var(--navy-700); }
.stat-tile__sub { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* Förderung */
.foerderung-head { margin-bottom: 22px; }
.foerderung-head__value { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; }
.foerderung-head__sub { font-size: 13px; color: var(--gray-600); }

.breakdown { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.breakdown__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  transition: opacity 0.2s ease;
}
.breakdown__num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.breakdown__text { flex-grow: 1; }
.breakdown__title { font-size: 13px; font-weight: 600; }
.breakdown__desc { font-size: 12px; color: var(--gray-400); }
.breakdown__value { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy-900); }

.total-bar {
  background: var(--navy-900);
  border-radius: 16px;
  padding: 20px 22px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.total-bar strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

/* Wachstum */
.wachstum-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.wachstum-head--right { text-align: right; }
.wachstum-head__label { font-size: 11px; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 8px; }
.wachstum-head__value { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--navy-900); }
.wachstum-head__value--accent { font-size: 20px; color: var(--navy-700); }

.chart {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 18px;
  margin-bottom: 10px;
}
.chart__bar {
  flex: 1;
  background: linear-gradient(to top, var(--navy-900), var(--navy-500));
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}
.chart__caption { font-size: 12px; color: var(--gray-400); margin: 0 0 22px; }

/* Anbieter */
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.provider-tile {
  border: 1px dashed #c7cdd8;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: #fafbfc;
}
.provider-tile__logo { width: 44px; height: 44px; border-radius: 10px; background: var(--gray-200); }
.provider-tile__name { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.provider-tile__status {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-400);
}
.provider-tile--more { border-style: solid; background: #fff; }
.provider-tile__logo--plus {
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #fff; padding: 36px 24px; }
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.footer__lead { font-size: 12px; opacity: 0.7; }
.footer__partners { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.footer__partner { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.footer__logo { border-radius: 9px; flex-shrink: 0; }
.footer__logo--ftc {
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.footer__logo--licani { width: 28px; height: 28px; background: #fff; padding: 3px; }
.footer__legal { display: flex; gap: 20px; font-size: 12px; opacity: 0.7; flex-wrap: wrap; }
