@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ── Tokens ───────────────────────────────────── */
:root {
  --sky:    #0C4A6E;
  --sky2:   #075985;
  --sky3:   #e0f2fe;
  --amber:  #F59E0B;
  --amber2: #FCD34D;
  --green:  #059669;
  --green2: #d1fae5;
  --red:    #dc2626;
  --bg:     #F8FAFC;
  --card:   #ffffff;
  --border: #e2e8f0;
  --text:   #0f172a;
  --muted:  #64748b;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(12,74,110,.10);
  --shadow-lg: 0 12px 48px rgba(12,74,110,.14);
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--muted); }
a  { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text); }

/* ── Layout ───────────────────────────────────── */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ───────────────────────────────────── */
nav {
  background: var(--sky);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--amber2); }
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav ul a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  transition: color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--amber2); text-decoration: none; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--sky) 0%, #1e40af 100%);
  color: #fff;
  padding: 90px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,158,11,.18) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 32px; }
.badge {
  display: inline-block;
  background: rgba(245,158,11,.25);
  border: 1px solid rgba(245,158,11,.5);
  color: var(--amber2);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--amber2);
  line-height: 1;
}
.hero-stat small { color: rgba(255,255,255,.6); font-size: .85rem; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sun-graphic {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, #f59e0b 50%, rgba(245,158,11,.2) 100%);
  box-shadow: 0 0 80px 40px rgba(245,158,11,.25), 0 0 160px 80px rgba(245,158,11,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 80px 40px rgba(245,158,11,.25); }
  50%       { transform: scale(1.04); box-shadow: 0 0 100px 60px rgba(245,158,11,.35); }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}
.btn-primary:hover { background: #d97706; transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.btn-sky {
  background: var(--sky);
  color: #fff;
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(12,74,110,.3);
}
.btn-sky:hover { background: var(--sky2); transform: translateY(-2px); text-decoration: none; color: #fff; }

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-amber { border-top: 4px solid var(--amber); }
.card-green { border-top: 4px solid var(--green); }
.card-sky   { border-top: 4px solid var(--sky); }

/* ── Section base ─────────────────────────────── */
.section { padding: 72px 24px; }
.section-alt { background: #fff; }
.section-sky { background: var(--sky); }
.section-title { margin-bottom: 8px; }
.section-sub { font-size: 1.05rem; margin-bottom: 48px; max-width: 580px; }

/* ── Grid helpers ─────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ── Feature icon ─────────────────────────────── */
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feat-icon.amber { background: #fef3c7; }
.feat-icon.sky   { background: var(--sky3); }
.feat-icon.green { background: var(--green2); }

/* ── Stat box ─────────────────────────────────── */
.stat-box { text-align: center; }
.stat-box .num {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
}
.stat-box .label { font-size: .9rem; }

/* ── FAQ ──────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--amber); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; margin-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* ── Region table ─────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg); font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem; }
tr:hover td { background: #f8fafc; }

/* ── Info box ─────────────────────────────────── */
.info-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-box.amber { background: #fffbeb; border: 1px solid #fde68a; }
.info-box.green { background: var(--green2); border: 1px solid #6ee7b7; }
.info-box.blue  { background: var(--sky3); border: 1px solid #bae6fd; }
.info-box .icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.info-box p { margin: 0; color: var(--text); font-size: .95rem; }

/* ── CTA Strip ────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--sky) 0%, #1e40af 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,.75); margin-bottom: 28px; }

/* ── Footer ───────────────────────────────────── */
footer {
  background: #0f172a;
  color: rgba(255,255,255,.5);
  padding: 40px 24px;
  text-align: center;
  font-size: .88rem;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--amber2); }

/* ─────────────────────────────────────────────── */
/*  RECHNER-SPECIFIC STYLES                        */
/* ─────────────────────────────────────────────── */
.rechner-hero {
  background: linear-gradient(135deg, var(--sky) 0%, #1e40af 100%);
  padding: 48px 24px;
  color: #fff;
  text-align: center;
}
.rechner-hero h1 { color: #fff; margin-bottom: 10px; }
.rechner-hero p  { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; }

.rechner-layout {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .rechner-layout { grid-template-columns: 1fr; }
}

/* Form panel */
.form-panel { position: sticky; top: 78px; }
.form-panel .card { padding: 28px; }
.form-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.form-section-title:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

label.field-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 5px;
  margin-top: 14px;
}
label.field-label:first-child { margin-top: 0; }

input[type=number], select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
  -moz-appearance: textfield;
}
input[type=number]:focus, select:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
}
input[type=range] {
  width: 100%;
  accent-color: var(--amber);
  margin-top: 8px;
}
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=number] { width: 90px; flex-shrink: 0; }

/* Results panel */
.result-panel { display: flex; flex-direction: column; gap: 20px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
@media (max-width: 600px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }

.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.kpi .kpi-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sky);
  display: block;
  line-height: 1.1;
}
.kpi .kpi-val.amber { color: var(--amber); }
.kpi .kpi-val.green { color: var(--green); }
.kpi .kpi-label { font-size: .82rem; color: var(--muted); margin-top: 4px; display: block; }

.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart-card h3 { margin-bottom: 18px; font-size: 1rem; }

/* Steuer badge */
.steuer-badge {
  background: var(--green2);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.steuer-badge .icon { font-size: 1.4rem; }
.steuer-badge p { color: var(--text); font-size: .9rem; margin: 0; line-height: 1.5; }

.placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.placeholder .big { font-size: 4rem; margin-bottom: 12px; }
.placeholder p { font-size: .95rem; }

/* Amortisation progress bar */
.amor-bar-wrap { background: var(--bg); border-radius: 8px; overflow: hidden; height: 12px; margin: 10px 0 4px; }
.amor-bar { height: 100%; background: linear-gradient(90deg, var(--green), var(--amber)); border-radius: 8px; transition: width .8s ease; }

/* Tags */
.tag { display: inline-block; background: var(--sky3); color: var(--sky); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 40px; font-family: 'Syne', sans-serif; }
