:root {
  --bg: #f7f8f5;
  --bg-alt: #eef1ea;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #5a665f;
  --border: #dde3da;
  --accent: #1f9d55;
  --accent-strong: #15803d;
  --accent-soft: #dcf5e5;
  --warn: #c2410c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --bg-alt: #141b18;
    --surface: #1a2320;
    --text: #e8eee9;
    --muted: #9aa8a0;
    --border: #2a3530;
    --accent: #3ccf7a;
    --accent-strong: #5ee093;
    --accent-soft: #163a26;
    --warn: #fb923c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-strong);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 10vw, 104px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  max-width: 14ch;
}

.accent {
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2em;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #062312;
  }
}

/* Sections */
.section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  color: var(--muted);
  margin-bottom: 2em;
}

/* Calculator */
.calculator {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.calc-form,
.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.calc-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.field-label output {
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: -4px;
}

.field-hint:empty {
  display: none;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

select {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.model-picker {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.model-picker select {
  width: 100%;
  min-width: 0;
}

select:disabled {
  opacity: 0.6;
}

.field.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.field.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.result-label {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25em;
}

.result-value {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 0.4em;
}

.meter {
  height: 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 24px;
}

.meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.3s ease, background 0.3s;
}

.meter-fill.low {
  background: var(--warn);
}

.result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.result-details div {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
}

.result-details dt {
  font-size: 13px;
  color: var(--muted);
}

.result-details dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result-note {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.disclaimer {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* Map */
.map-block {
  margin-top: clamp(40px, 6vw, 64px);
}

.map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.map-header h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.map-header .section-intro {
  margin-bottom: 1em;
}

.button-small {
  padding: 10px 18px;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 1em;
}

.map {
  height: clamp(320px, 55vh, 520px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: 15px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.swatch-oneway {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.swatch-return {
  border-style: dashed;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

.map-status {
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
}

.fact {
  border-top: 3px solid var(--accent);
  padding-top: 20px;
}

.fact-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
}

.fact-text {
  color: var(--muted);
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* Rechtliche Seiten */
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin-bottom: 0.4em;
}

.draft-note {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  font-size: 15px;
  margin-bottom: 2em;
}

mark {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
}

.muted {
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a,
.disclaimer a {
  color: inherit;
}

/* Responsive */
@media (max-width: 860px) {
  .calculator,
  .cards,
  .facts {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .model-picker {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .calc-form,
  .calc-result {
    padding: 22px;
  }
}
