/* DivRebound Website. Farben und Fonts kommen aus tokens.css (Quelle:
   app/src/style/tokens.css), hier nur Layout und Komponenten der Website.
   Layout und Maße entsprechen docs/prototyp.html. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font-body); color: var(--charcoal); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── Header: immer Navy, Menüpunkte und CTA mittig ─── */
.site-header {
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 16px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  position: sticky; top: 0; z-index: 50;
}
.brand { grid-column: 1; display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand-icon { width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 19px; color: #fff; letter-spacing: -0.01em; }
.brand-name span { color: var(--cyan); }
.main-nav { grid-column: 2; display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; color: rgba(255,255,255,0.55); }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--cyan); }
.btn-cta { background: var(--cyan); color: var(--navy); font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 9px; white-space: nowrap; }
.btn-cta:hover { background: #00A2C4; }
.cta-short { display: none; }
/* Lange Beschriftung braucht Platz, bis 960px die Kurzform "Zum Assistenten" */
@media (max-width: 960px) { .cta-long { display: none; } .cta-short { display: inline; } }
@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .main-nav { grid-column: 2; }
  .nav-links { display: none; }
  .btn-cta { padding: 9px 14px; font-size: 13px; }
}

main { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { main { padding: 0 16px; } }

/* ─── Hero ─── */
.hero { background: var(--navy); border-radius: 20px; color: #fff; margin: 40px 0 64px; padding: 56px 48px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: var(--navy-mid); border-radius: 50%; opacity: 0.5; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cyan); margin-bottom: 18px; }
.hero-headline { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1.12; letter-spacing: -0.02em; max-width: 560px; margin-bottom: 22px; }
.hero-headline em { color: var(--cyan); font-style: italic; }
.hero-body { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 480px; line-height: 1.75; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--cyan); color: var(--navy); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 10px; }
.btn-primary:hover { background: #00A2C4; }
.btn-ghost { color: rgba(255,255,255,0.75); font-size: 15px; padding: 14px 6px; }
.btn-ghost:hover { color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 20px; }
.stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.stat-value .accent { color: var(--cyan); }
.nowrap { white-space: nowrap; }
.stat-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }
@media (max-width: 720px) {
  .hero { padding: 30px 20px 22px; margin: 16px 0 44px; border-radius: 16px; }
  .hero::before { width: 200px; height: 200px; top: -70px; right: -70px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 12px; }
  .hero-headline { font-size: 32px; margin-bottom: 14px; }
  .hero-body { font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
  .hero-actions { gap: 4px; }
  .hero-actions .btn-primary { width: 100%; text-align: center; }
  .hero-actions .btn-ghost { width: 100%; text-align: center; padding: 10px 6px; }
  /* Kennzahlen als kompakte Zeilen: Wert links, Erklärung rechts */
  .stat-row { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .stat-card { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding: 11px 14px; }
  .stat-value { font-size: 16px; margin-bottom: 0; white-space: nowrap; }
}

/* ─── Sektionen ─── */
.section { margin-bottom: 72px; scroll-margin-top: 90px; }
.section-heading { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-bottom: 12px; letter-spacing: -0.01em; line-height: 1.25; }
.section-intro { color: var(--muted); font-size: 15px; max-width: 620px; margin-bottom: 32px; }
.section-intro-wide { max-width: none; }
@media (max-width: 720px) {
  .section { margin-bottom: 48px; scroll-margin-top: 76px; }
  .section-heading { font-size: 25px; }
  .section-intro { font-size: 14px; margin-bottom: 20px; }
}

/* ─── Schritte ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 26px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--cyan-dark); background: var(--cyan-light); display: inline-block; padding: 3px 10px; border-radius: 6px; margin-bottom: 14px; }
.step-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.step-body { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step-card { padding: 16px 18px; }
  .step-num { font-size: 12px; margin-bottom: 8px; }
  .step-title { margin-bottom: 4px; }
}

/* ─── Ein Blick in die App (Desktop-Ansicht, nachgebaut) ─── */
.app-mock { display: grid; grid-template-columns: 230px 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--divider); }
.app-mock-sidebar { background: var(--navy); padding: 22px 16px; color: #fff; }
.mock-brand { font-family: var(--font-display); font-size: 15px; margin-bottom: 20px; }
.mock-brand span { color: var(--cyan); }
.mock-sidebar-btn { font-size: 11px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 7px; padding: 8px 10px; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.mock-nav-item { font-size: 12px; padding: 6px 4px; color: rgba(255,255,255,0.6); }
.mock-section-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin: 16px 0 4px; text-transform: uppercase; }
.mock-tree-country { font-size: 12px; font-weight: 600; padding: 6px 4px; color: #fff; }
.mock-tree-country.muted { color: rgba(255,255,255,0.4); font-weight: 400; display: flex; justify-content: space-between; align-items: center; }
.badge-soon { font-family: var(--font-mono); font-size: 9px; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; }
.badge-soon.light { background: var(--navy-light); color: var(--navy); }
.badge-soon.ok { background: var(--success-bg); color: var(--success); }
.mock-tree-case { font-size: 11px; color: rgba(255,255,255,0.55); padding: 4px 4px 4px 14px; }
.mock-tree-step { font-size: 11px; padding: 4px 4px 4px 22px; color: rgba(255,255,255,0.5); }
.mock-tree-step.done { color: var(--cyan); }
.mock-tree-step.current { color: #fff; }
/* Nummerierte Schritte wie in der App (Ziffer im Kreis, erledigt = ✓) */
.mock-tree-step { display: flex; align-items: center; gap: 7px; }
.mock-step-num { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); font-size: 8.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-tree-step.done .mock-step-num { background: var(--success); border-color: var(--success); color: #fff; }
.mock-tree-step.current .mock-step-num { border-color: var(--cyan); color: var(--cyan); }
.mock-tree-step.done { color: rgba(255,255,255,0.75); }
.app-mock-main { background: var(--surface); padding: 26px 28px; min-width: 0; }
.app-mock-main h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.dropzone { border: 1px dashed var(--divider); border-radius: 12px; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.dropzone span { display: block; font-size: 11px; margin-top: 4px; }
.mock-table-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-table { border: 1px solid var(--divider); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.mock-table-head, .mock-table-row { display: grid; grid-template-columns: 1.8fr 1fr 0.6fr 1fr 1fr 1fr 1fr; gap: 8px; padding: 9px 12px; align-items: center; }
.mock-table-head { background: var(--bg); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.mock-table-row { font-size: 12px; border-top: 1px solid var(--divider); }
.mock-isin { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.estimate-box { background: var(--navy); color: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.estimate-box strong { font-family: var(--font-mono); font-size: 20px; color: var(--cyan); }
.estimate-formula { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); }
/* App-Ansicht in einem Laptop-Rahmen. site.js skaliert .app-mock auf die
   Breite von .mock-screen (am Desktop knapp 1:1, auf dem Handy verkleinert). */
.mock-frame { max-width: 860px; margin: 20px auto 0; padding: 0 22px; }
.mock-screen { background: #0A1A33; border: 10px solid #0A1A33; border-bottom-width: 14px; border-radius: 16px 16px 0 0; overflow: hidden; }
.mock-frame::after { content: ""; display: block; height: 16px; margin: 0 -22px; background: #C9D2DE; border-radius: 0 0 16px 16px; box-shadow: inset 0 4px 4px -3px rgba(0,0,0,0.25); }
.app-mock { width: 900px; border: none; border-radius: 4px; transform-origin: top left; }
@media (max-width: 820px) {
  .mock-frame { max-width: 460px; padding: 0 10px; }
  .mock-screen { border-width: 7px 7px 9px; border-radius: 12px 12px 0 0; }
  .mock-frame::after { height: 10px; margin: 0 -10px; border-radius: 0 0 12px 12px; }
  .app-mock { width: 760px; }
}

/* ─── Länder-Tabelle (gruppiert nach Status) ─── */
.country-table { border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; background: var(--surface); }
.country-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; padding: 11px 18px; font-size: 14px; border-bottom: 1px solid var(--divider); align-items: center; }
.country-row > div:nth-child(n + 2) { text-align: right; font-variant-numeric: tabular-nums; }
.country-row:last-child { border-bottom: none; }
.country-row.head { background: var(--bg); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.country-row.group-live { background: #F3FBFD; }
.country-row.group-live > div:first-child { font-weight: 600; }
.country-row.group-no { color: var(--muted); }
.country-row.group-no .accent-cell { color: var(--muted); }
.country-group-head { padding: 9px 18px; border-bottom: 1px solid var(--divider); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); background: var(--navy-light); }
.country-group-head.group-live { background: var(--success-bg); color: var(--success); }
.country-group-head.group-no { background: var(--bg); color: var(--muted); }
.group-count { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: rgba(255,255,255,0.7); font-weight: 500; }
.name-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.wish-btn {
  font: 600 11px var(--font-body); color: var(--cyan-dark); background: var(--surface);
  border: 1px solid var(--cyan); border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap;
}
.wish-btn:hover:not(:disabled) { background: var(--cyan-light); }
.wish-btn:disabled { cursor: default; }
.wish-btn.is-done { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.accent-cell { font-family: var(--font-mono); color: var(--cyan-dark); font-weight: 600; }
.source-note { font-size: 11px; color: var(--muted); margin-top: 10px; }
/* Handy: oben Land und Erstattungspotenzial, darunter klein der Quellensteuersatz.
   "In DE anrechenbar" ist ausgeblendet, damit nicht zu viele Prozentzahlen stehen. */
@media (max-width: 720px) {
  .country-row.head { display: none; }
  .country-group-head { padding: 8px 14px; }
  .country-row {
    grid-template-columns: 1fr auto; grid-template-areas: "name pot" "rate rate";
    gap: 2px 8px; padding: 11px 14px; font-size: 15px;
  }
  .country-row > div:nth-child(n + 2) { text-align: left; }
  .country-row > div:nth-child(1) { grid-area: name; font-weight: 600; }
  .country-row > div:nth-child(2) { grid-area: rate; }
  .country-row > div:nth-child(3) { display: none; }
  .country-row > div:nth-child(4) { grid-area: pot; justify-self: end; white-space: nowrap; }
  .country-row > div:nth-child(2) { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .country-row > div:nth-child(2)::before { content: "Quellensteuer "; }
}
/* Lange Listen auf dem Handy zunächst gekürzt (site.js markiert die Zeilen
   ab dem n-ten Eintrag mit .is-extra und fügt den Schalter ein) */
.collapse-toggle { display: none; }
@media (max-width: 720px) {
  .is-collapsed .is-extra { display: none; }
  .collapse-toggle {
    display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 10px;
    border: 1px solid var(--divider); background: var(--surface); color: var(--navy);
    font: 600 14px var(--font-body); cursor: pointer;
  }
}
.status { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 5px; white-space: nowrap; }
.status-live { background: var(--success-bg); color: var(--success); font-weight: 600; }

/* ─── Europakarte + Unternehmensbeispiele ─── */
.map-panel { background: var(--navy); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.map-panel::before { content: ''; position: absolute; top: -90px; right: -90px; width: 300px; height: 300px; background: var(--navy-mid); border-radius: 50%; opacity: 0.45; pointer-events: none; }
.map-wrap { position: relative; z-index: 1; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap path { stroke: var(--navy); stroke-width: 0.6; transition: fill 0.2s ease; }
.c-rest { fill: rgba(255,255,255,0.07); }
.c-other { fill: #2B5290; }
.c-show { fill: var(--cyan); cursor: pointer; }
.c-show.hl { fill: #5FD8F0; }
.map-label { cursor: pointer; }
.map-label rect { fill: var(--navy); stroke: var(--cyan); stroke-width: 1; transition: fill 0.2s ease; }
.map-label.hl rect { fill: #14305A; }
.map-label .l-name { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; fill: #fff; }
.map-label .l-pot { font-family: var(--font-mono); font-size: 10.5px; fill: var(--cyan); }
.map-wrap .leader { stroke: var(--cyan); stroke-width: 1; fill: none; }
.dot { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.company-cards { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.company-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px 16px; transition: background 0.2s ease, border-color 0.2s ease; cursor: pointer; }
.company-card.hl { background: rgba(0,180,216,0.14); border-color: var(--cyan); }
.company-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.company-card-name { color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.company-card-pot { font-family: var(--font-mono); font-size: 12px; color: var(--navy); background: var(--cyan); padding: 3px 9px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.company-chips-dark { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-dark { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 5px 10px; border-radius: 6px; }
@media (max-width: 640px) {
  .map-panel { grid-template-columns: 1fr; gap: 16px; padding: 18px 14px; border-radius: 16px; }
  .map-label { display: none; }
  .map-wrap { max-width: 320px; margin: 0 auto; width: 100%; }
  .company-cards { gap: 10px; }
  .company-card { padding: 12px 14px; }
  .company-card-head { margin-bottom: 8px; }
  .chip-dark { font-size: 12px; padding: 4px 8px; }
}

/* ─── Abschluss-CTA ─── */
.cta-band { background: var(--navy-light); border-radius: 16px; padding: 40px 24px; text-align: center; margin-bottom: 64px; }
.cta-band h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 18px; }

/* ─── Über mich ─── */
.about { padding: 56px 0 72px; }
.about-head { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: center; margin-bottom: 44px; }
.about-photo { width: 230px; height: 288px; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--divider); display: block; }
.about-intro h1 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px; }
.about-lead { font-size: 17px; line-height: 1.7; color: var(--charcoal); margin-bottom: 20px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-fact { font-family: var(--font-mono); font-size: 12px; background: var(--navy-light); color: var(--navy); padding: 5px 11px; border-radius: 6px; }
.about-body { max-width: 700px; }
.about-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 38px 0 12px; }
.about-body p { font-size: 16px; line-height: 1.75; color: #374151; margin-bottom: 14px; }
.about-facts-card { background: var(--surface); border: 1px solid var(--divider); border-left: 3px solid var(--cyan); border-radius: 10px; padding: 6px 18px; margin: 18px 0 20px; }
.afc-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.afc-row:last-child { border-bottom: none; }
.afc-row span { color: var(--muted); }
.afc-row strong { font-family: var(--font-mono); font-size: 13px; color: var(--navy); font-weight: 500; }
.about-cta { margin: 36px 0 8px; }
@media (max-width: 720px) { .about { padding-top: 36px; } .about-head { grid-template-columns: 1fr; gap: 22px; } .about-photo { width: 180px; height: 225px; } .about-intro h1 { font-size: 32px; } }

/* ─── Content-Seiten (Impressum, Datenschutz) ─── */
.content-page { padding: 56px 0 72px; max-width: 680px; }
.content-page h1 { font-family: var(--font-display); font-weight: 400; font-size: 34px; margin-bottom: 24px; letter-spacing: -0.01em; }
.content-page h2 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 30px 0 10px; }
.content-page p, .content-page li { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.content-page ul { padding-left: 20px; }
.content-page a { color: var(--cyan-dark); text-decoration: underline; }
.placeholder { background: var(--cyan-light); border: 1px dashed var(--cyan-dark); border-radius: 10px; padding: 14px 18px; font-size: 13px; color: var(--cyan-dark); margin: 10px 0 20px; }
.placeholder strong { color: var(--navy); }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--divider); padding: 24px 32px; margin-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--charcoal); }
.footer-brand { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 720px) { .site-footer { padding: 20px 16px; } }
