/* ==========================================================================
   sections.css — Sektionsspezifische Gestaltung
   Alles, was genau einmal auf der Seite vorkommt — in Reihenfolge der Seite:
   Hero, Partnerband, Problem, Warum Immobilien, Warum wir, Diagramm-Platzhalter,
   Ablauf, Nach dem Kauf, Unterlagen & Selbstauskunft, Referenzen, Team, Kontakt,
   Footer. Der Kostenrechner hat eine eigene Datei: calculator.css.
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-9));
  padding-bottom: var(--space-8);
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset-inline: -20%;
  top: -10%;
  height: 820px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.375rem;
  margin-bottom: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.hero-badge > span:nth-child(2) { padding-inline: var(--space-1); }
.hero-badge svg { width: 15px; height: 15px; margin-right: var(--space-3); color: var(--accent); }

/* Das Badge ist ein Link zum Handbuch — Hoverzustand entsprechend. */
.hero-badge:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-badge:hover svg { transform: translateY(2px); }
.hero-badge svg { transition: transform var(--dur) var(--ease); }

.hero-title {
  max-width: 900px;
  margin-inline: auto;
}

.hero-subtitle {
  max-width: 60ch;
  margin: var(--space-5) auto 0;
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.hero-media {
  position: relative;
  margin-top: var(--space-8);
  padding: var(--space-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Partner
   ========================================================================== */

.partners {
  padding-block: var(--space-7);
  border-top: 1px solid var(--border);
}

.partners-label {
  margin-bottom: var(--space-5);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-faint);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ==========================================================================
   Referenzen
   ========================================================================== */

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
}

.stars {
  color: var(--accent);
  font-size: var(--fs-base);
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.testimonial-author strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text);
}

.testimonial-author small {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-card { /* kein overflow:hidden — sonst wird der Hover-Schatten beschnitten */ }
.team-card-body { padding: var(--space-5); }

.team-card h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.team-firstname {
  display: block;
  font-weight: var(--fw-normal);
  color: var(--text-muted);
}

.team-role {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.team-socials {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.team-socials a {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

/* E-Mail-Adresse als kleine Sprechblase beim Hover — Text kommt aus
   data-tooltip statt eigenem DOM-Element, das aria-label trägt die
   Information schon für Screenreader. */
.team-socials a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.4rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
  z-index: 5;
}

.team-socials a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.team-socials a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.team-socials svg { width: 17px; height: 17px; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-card { padding: var(--space-6); }

.contact-form {
  display: grid;
  gap: var(--space-4);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-kontakt {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 1.9;
  color: var(--text-muted);
}

.footer-kontakt span { color: var(--text-faint); }

.site-footer {
  position: relative;
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  background: var(--bg-chrome);   /* derselbe Ton wie die Kopfzeile */
}

/* Trennstrich als skaliertes Pseudoelement statt border-top: ein
   Sub-Pixel-Rand (z. B. 0.6px) wird je nach Browser und Bildschirm
   unterschiedlich oder gar nicht gerendert. Ein 1-px-Strich, um ein
   Drittel auf 0.67 skaliert, ist überall gleich dünn. Farbe identisch zum
   Fließtext im Footer (--text-muted), nur hier, nicht am Header. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-muted);
  transform: scaleY(0.67);
  transform-origin: top;
  pointer-events: none;
}

.footer-brand { max-width: 38ch; }
.footer-brand .brand-logo { height: 48px; }
.footer-brand p { margin-top: var(--space-4); font-size: var(--fs-sm); }

.footer-col h4 {
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a  { font-size: var(--fs-sm); color: var(--text-muted); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}


/* ==========================================================================
   Problem
   ========================================================================== */

/* Icon über der Überschrift, als eigener kleiner Auftakt je Karte — das
   Icon bekommt die goldene Verlaufsfüllung (dieselbe wie Buttons/CTAs)
   statt einer flachen, dünn umrandeten Fläche. Das gibt den Karten mehr
   Gewicht und bindet sie optisch an den Rest der Seite. */
.problem-card { padding: var(--space-6) var(--space-5); }

.problem-kopf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.problem-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: var(--bg);
  box-shadow: var(--shadow-gold);
}

.problem-icon svg { width: 20px; height: 20px; }

.problem-card h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

.problem-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Warum Immobilien — Hinweis zur Spekulationsfrist
   ========================================================================== */

.tax-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
}

.tax-note-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--accent);
}

.tax-note-icon svg { width: 20px; height: 20px; }
.tax-note p { font-size: var(--fs-sm); }
.tax-note strong { color: var(--text); }

/* ==========================================================================
   Ablauf — Zeitachse
   Grundform ist die senkrechte Liste (Mobil/Tablet). Ab 1025 px wird daraus
   eine waagerechte Achse mit versetzten Karten: die Karten liegen abwechselnd
   über und unter der Linie, die Nummernkreise sitzen mittig darauf.
   ========================================================================== */

/* --- Phasenband --------------------------------------------------------- */

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  padding: 0.5rem 1.125rem 0.5rem 0.5rem;
  border: 1px solid rgba(168, 132, 44, .28);
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.phase-badge-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: inherit;
}

.phase-badge-icon svg { width: 15px; height: 15px; }

/* Phase 2 gefüllt statt umrandet — gleiche Familie, anderer Auftritt. */
.phase-badge--gold {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.phase-badge--gold .phase-badge-icon {
  background: rgba(12, 12, 14, .18);
  color: var(--on-accent);
}

/* Abstand des Titels zum Trennstrich darüber um 20 % reduziert. */
#ablauf { padding-top: calc(var(--section-py) * 0.8); }

/* --- Grundform: senkrecht ----------------------------------------------- */

.flow {
  display: grid;
  gap: var(--space-3);
}

.flow-line { display: none; }

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(224, 192, 99, .08);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--accent);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

/* Zugehöriger Schritt-Kreis leuchtet auf, sobald die Karte darunter/danach
   im DOM gehovert wird — Kreis und Karte gehören sichtbar zusammen. */
.flow-node:has(+ .flow-card:hover) {
  background: var(--gradient);
  color: var(--bg);
  box-shadow: 0 0 0 6px rgba(224, 192, 99, .18),
              0 8px 26px -8px rgba(224, 192, 99, .55);
}

.flow-card {
  position: relative;
  margin-bottom: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.flow-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.flow-card:hover::after { opacity: 1; }

.flow-card--final { border-color: var(--accent); }

/* Verlaufsfüllung plus weicher Schein — dieselbe Formsprache wie die
   Icons in den anderen Kartenbereichen der Seite. */
.flow-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius);
  background: var(--gradient);
  color: var(--bg);
  box-shadow: var(--shadow-gold);
}

.flow-icon svg { width: 17px; height: 17px; }

.flow-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
.flow-card p  { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }

.flow-meta {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs) !important;
  font-weight: var(--fw-semibold);
  color: var(--text-faint);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* --- Ab 1025 px: waagerechte Achse -------------------------------------- */

@media (min-width: 1025px) {

  .flow {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr auto 1fr;
    column-gap: var(--space-3);
    row-gap: var(--space-4);
    align-items: center;
  }

  /* Die Linie ist ein eigenes Element in der Nummernzeile — so sitzt sie
     immer exakt auf Höhe der Kreise, unabhängig von den Kartenhöhen. */
  .flow-line {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    height: 2px;
    background: linear-gradient(90deg,
      rgba(224, 192, 99, .35) 0%,
      rgba(224, 192, 99, .70) 60%,
      var(--accent) 100%);
  }

  .flow-node { grid-row: 2; justify-self: center; }

  .flow-node:nth-of-type(1) { grid-column: 1; }
  .flow-node:nth-of-type(2) { grid-column: 2; }
  .flow-node:nth-of-type(3) { grid-column: 3; }
  .flow-node:nth-of-type(4) { grid-column: 4; }
  .flow-node:nth-of-type(5) { grid-column: 5; }
  .flow-node:nth-of-type(6) { grid-column: 6; }

  .flow-card { margin-bottom: 0; }

  .flow-card:nth-of-type(1) { grid-column: 1; }
  .flow-card:nth-of-type(2) { grid-column: 2; }
  .flow-card:nth-of-type(3) { grid-column: 3; }
  .flow-card:nth-of-type(4) { grid-column: 4; }
  .flow-card:nth-of-type(5) { grid-column: 5; }
  .flow-card:nth-of-type(6) { grid-column: 6; }

  /* ungerade Schritte über der Linie, gerade darunter */
  .flow-card:nth-of-type(odd)  { grid-row: 1; align-self: end; }
  .flow-card:nth-of-type(even) { grid-row: 3; align-self: start; }

  /* Steg vom Kreis zur Karte, genau so hoch wie der Zeilenabstand */
  .flow-card::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: var(--space-4);
    background: rgba(224, 192, 99, .45);
    transform: translateX(-50%);
  }

  .flow-card:nth-of-type(odd)::before  { top: 100%; }
  .flow-card:nth-of-type(even)::before { bottom: 100%; }

  .flow-card--final::before { background: var(--accent); opacity: .6; }

  .flow-card h3 { font-size: var(--fs-base); }
  .flow-card p  { font-size: var(--fs-xs); line-height: 1.45; }
}

/* ==========================================================================
   Nach dem Kauf
   ========================================================================== */

.aftersale-card { padding: var(--space-6) var(--space-5); }

/* Verlaufsfüllung plus Leuchtring — dieselbe Formsprache wie die anderen
   nummerierten/illustrierten Karten der Seite (Problem, Warum Immobilien,
   Dropdown). */
.aftersale-step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
  background: var(--gradient);
  color: var(--bg);
  box-shadow: var(--shadow-gold);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.aftersale-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.aftersale-card p  { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }

/* ==========================================================================
   Unterlagen & Selbstauskunft
   ========================================================================== */

.checklist-card,
.sa-card { padding: var(--space-6); }

.checklist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.checklist-head h3 { font-size: var(--fs-lg); }

.checklist-progress-text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  white-space: nowrap;
}

.checklist-bar {
  height: 6px;
  margin: var(--space-4) 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--border);
  overflow: hidden;
}

.checklist-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient);
  transition: width var(--dur) var(--ease);
}

.checklist-bar.is-complete .checklist-bar-fill { background: var(--success); }

.checklist { display: grid; gap: var(--space-1); }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.checklist-item:hover { background: var(--bg-subtle); }

.checklist-item input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checklist-item strong { color: var(--text); font-weight: var(--fw-semibold); }

.checklist-item.is-done span {
  color: var(--text-faint);
  text-decoration: line-through;
}

.checklist-item.is-done strong { color: var(--text-faint); }

.checklist-note {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.sa-card h3 { font-size: var(--fs-lg); }
.sa-intro   { margin-top: var(--space-2); margin-bottom: var(--space-5); font-size: var(--fs-sm); }
.sa-form    { display: grid; gap: var(--space-4); }

/* ==========================================================================
   Warum Immobilien — acht Gründe
   ========================================================================== */

.reason-card { padding: var(--space-6) var(--space-5); }

/* Verlaufsfüllung statt flacher Fläche — dieselbe Formsprache wie die
   Problem-Icons: Gold-Gradient plus weicher Schein statt Farbfläche. */
.reason-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background: var(--gradient);
  color: var(--bg);
  box-shadow: var(--shadow-gold);
}

.reason-icon svg { width: 20px; height: 20px; }

.reason-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.reason-card p  { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }

/* ==========================================================================
   Gegenüberstellung — Kauf mit uns / am freien Markt
   ========================================================================== */

.vs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  overflow: hidden;
}

/* Die beiden Spalten bekommen jetzt bewusst unterschiedliches Gewicht:
   "Mit uns" wirkt durch goldenen Rand, Leuchtstreifen oben und leicht
   angehobene Karte positiv-prominent; "Freier Markt" bleibt gedeckt und
   tritt optisch zurück — der Kontrast trägt jetzt auch die Kartenoptik
   mit, nicht nur die Haken/Kreuze. */
.vs-grid .vs-card:first-child {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold), var(--shadow-sm);
}

.vs-grid .vs-card:first-child::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
}

.vs-grid .vs-card:last-child { background: var(--bg); }
.vs-grid .vs-card:last-child .vs-head h3 { color: var(--text-muted); }

.vs-head h3 { font-size: var(--fs-xl); }

.vs-list {
  flex: 1;
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.vs-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
}

.vs-list strong { color: var(--text); font-weight: var(--fw-semibold); }

.vs-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--radius-full);
}

.vs-mark svg { width: 13px; height: 13px; }

.vs-mark.is-yes { background: var(--gradient); color: var(--bg); }
.vs-mark.is-no  { border: 1px solid var(--border-strong); color: var(--text-muted); }

/* ==========================================================================
   Wertentwicklung — Diagramm
   ========================================================================== */

.chart-tool {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.chart-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.chart-field { display: grid; gap: var(--space-2); align-content: start; }

.chart-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.chart-field--slider input[type="range"] {
  width: 100%;
  height: 6px;
  margin-top: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--border);
  appearance: none;
  cursor: pointer;
}

.chart-field--slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent);
  border: 3px solid var(--bg-elevated);
  box-shadow: var(--shadow-gold);
  cursor: grab;
}

.chart-field--slider input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent);
  border: 3px solid var(--bg-elevated);
  cursor: grab;
}

.chart-figure { margin: 0; }
.chart-canvas svg { width: 100%; height: auto; display: block; }

.chart-grid        { stroke: var(--border); stroke-width: 1; }
.chart-axis        { fill: var(--text-faint); font-size: 13px; font-family: var(--font-sans); }
.chart-area        { fill: var(--accent); opacity: .12; }
.chart-line        { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line--wert  { stroke: var(--accent); }
.chart-line--schuld{ stroke: var(--text-faint); stroke-dasharray: 6 5; }
.chart-marker-line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-dot         { stroke: var(--bg-elevated); stroke-width: 2.5; }
.chart-dot--wert   { fill: var(--accent); }
.chart-dot--schuld { fill: var(--text-faint); }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.chart-key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.chart-key::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.chart-key--schuld::before { background: var(--text-faint); }
.chart-key--gewinn::before { height: 12px; background: var(--accent); opacity: .25; }

.chart-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.chart-result {
  padding: var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.chart-result-jahr {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

.chart-result-wert {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--accent);
}

.chart-result-label { font-size: var(--fs-sm); color: var(--text-muted); }

.chart-result-detail {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.chart-result-detail > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
}

.chart-result-detail dt { color: var(--text-muted); }
.chart-result-detail dd {
  margin: 0;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

.chart-disclaimer {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-faint);
}

/* Kleiner Hinweis neben einem Posten im Rechner */
.calc-tag {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
}
