/* =========================================================================
 * Human Design Chart Rechner – Stylesheet
 * Branding nach daniel-bayer.net: DM Sans, Marineblau #031420,
 * Türkis #00aebb, Petrol #006075, Bronze #b8935a, Beige #d9cfc2
 * ========================================================================= */

/* WOFF2 zuerst (61% kleiner), TTF als Rückfall für alte Browser */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Regular.woff2") format("woff2"), url("../fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Medium.woff2") format("woff2"), url("../fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-SemiBold.woff2") format("woff2"), url("../fonts/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Bold.woff2") format("woff2"), url("../fonts/DMSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --navy: #031420;
  --navy-soft: #0a2435;
  --cyan: #00aebb;
  --petrol: #006075;
  --bronze: #b8935a;
  --beige: #d9cfc2;
  /* Marken-Farbverlauf wie im Logo (Petrol -> Türkis -> helles Cyan) */
  --grad: linear-gradient(100deg, #0a4d68 0%, #006479 45%, #0a8ca0 100%);
  --grad-soft: linear-gradient(100deg, rgba(10,77,104,.08), rgba(0,174,187,.08), rgba(63,214,224,.08));

  --bg: #f4f7f8;
  --card: #ffffff;
  --ink: #031420;
  --muted: #5d6f7b;
  --line: #dde6ea;
  --red: #c44536;
  --error-bg: #fdecea;
  --error-ink: #b03a2e;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(3, 20, 32, .08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

h1, h2, h3 { font-family: "DM Sans", sans-serif; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: 1.3rem; margin: 0; }
h2 { font-size: 1.6rem; margin: 0 0 6px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
h3.red { color: var(--red); }

/* Marken-Verlauf als Text (wie der Logo-Schriftzug) */
h2, .privacy h3, .card > h3 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
h3.red { background: none; color: var(--red); width: auto; }
.planets-card h3:not(.red) { background: none; color: var(--navy); width: auto; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
a { color: var(--petrol); }

/* ---------- Topbar (dunkel wie die Webseite) ---------- */
.topbar {
  /* Marken-Verlauf wie im Logo (Petrol -> Türkis -> helles Cyan) statt hartem Dunkelblock */
  background: linear-gradient(105deg,#00aebb 0%,#34cdd9 30%,#5fdfe8 62%,#9aeef3 100%);
  color: #031420;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 6px 22px rgba(0, 96, 117, .20);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  padding-top: 18px; padding-bottom: 18px;
}
.topbar h1 {
  color: #031420;
  letter-spacing: .3px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

.ai-badge {
  font-size: .78rem; padding: 3px 10px; border-radius: 99px;
  background: var(--navy-soft); color: var(--beige);
  border: 1px solid rgba(255,255,255,.18);
}
.ai-badge.on { background: var(--cyan); color: var(--navy); border-color: var(--cyan); font-weight: 600; }

.topbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.topbar .btn.ghost:hover { background: var(--navy-soft); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin: 18px 0;
}

/* ---------- Formular ---------- */
.form-card { margin-top: 26px; position: relative; overflow: hidden; }
.form-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 16px 0;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-weight: 600; font-size: .92rem; }
.field-label em { color: #006479; font-style: normal; }
.field-hint { font-size: .78rem; color: var(--muted); }

input[type="text"], input[type="date"], input[type="time"],
input[type="password"], select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input:focus, select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}
#hd-form input:focus {
  background-color: #eef9fa;
  box-shadow: 0 0 0 3px rgba(0, 174, 187, .11);
}

/* Geburtsdatum und Geburtszeit: ruhige Zifferfelder wie im Astro-Geografie-Rechner.
   Die Beschriftungen stehen unter den Feldern, damit die Eingabe kompakt bleibt. */
.birth-parts {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.birth-parts > legend { margin: 0 0 5px; padding: 0; }
.birth-part-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 8px;
  align-items: end;
}
.birth-part-fields.time-parts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.birth-part {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, auto) auto;
  gap: 4px;
  align-items: end;
}
.birth-part > span {
  grid-row: 2;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.birth-part input {
  grid-row: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 6px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.birth-field-error:empty { display: none; }
.birth-field-error {
  color: #a63b34;
  font-weight: 700;
}
.birth-parts input[aria-invalid="true"] {
  border-color: #c44536;
  box-shadow: 0 0 0 3px rgba(196, 69, 54, .16);
}
@media (max-width: 760px), (pointer: coarse) {
  .birth-part input { min-height: 48px; font-size: 16px; }
}

/* ---------- Geburtsort-Suche ---------- */
.place-field { position: relative; }
.place-list {
  position: absolute; top: 72px; left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(3, 20, 32, .16);
  overflow: hidden;
}
.place-list button {
  display: block; width: 100%; text-align: left;
  font: inherit; cursor: pointer;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 9px 14px;
}
.place-list button:last-child { border-bottom: none; }
.place-list button:hover { background: #eef7f8; }
.place-list button.is-active { background: #eef7f8; } /* Pfeiltasten-Auswahl (QA-09) */
.place-cc { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.place-tz { color: var(--muted); font-size: .72rem; margin-left: 6px; opacity: .85; white-space: nowrap; } /* QA-02 */
.place-empty { padding: 10px 14px; color: var(--muted); font-size: .85rem; }
.tz-fallback { margin-top: 4px; font-size: .8rem; }
.tz-fallback summary { cursor: pointer; color: var(--petrol); }
.tz-fallback select { margin-top: 6px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; cursor: pointer;
  border-radius: 99px;
  border: 1px solid transparent;
  padding: 10px 22px;
  font-weight: 600;
  transition: background .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 174, 187, .35);
  transition: box-shadow .2s ease, transform .05s ease, filter .2s ease;
}
.btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 5px 18px rgba(0, 174, 187, .5);
}
.btn.primary:disabled { opacity: .55; cursor: wait; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { background: #edf3f5; }
.btn.big { font-size: 1.05rem; padding: 13px 32px; }

.error {
  background: var(--error-bg); color: var(--error-ink);
  border-radius: 8px; padding: 10px 14px; font-size: .9rem;
}

/* ---------- Schlüsselkarten ---------- */
.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.key-card {
  font: inherit; text-align: left; cursor: pointer;
  background: #f6fafb;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.key-card:hover {
  border-color: var(--cyan); background: #eef7f8;
  box-shadow: 0 4px 14px rgba(0,174,187,.22);
  transform: translateY(-2px);
}
/* Die erste Karte (Energie-Typ) als Hero-Karte im Markenverlauf */
.key-card:first-child { background: var(--grad); border: none; }
.key-card:first-child .kc-label { color: rgba(255,255,255,.75); }
.key-card:first-child .kc-value { color: #fff; font-size: 1.12rem; }
.key-card:first-child:hover { filter: brightness(1.07); }
.kc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bronze); font-weight: 700; }
.kc-value { font-weight: 650; font-size: .98rem; color: var(--navy); }

/* ---------- Chart-Layout ---------- */
.chart-layout {
  display: grid;
  grid-template-columns: 124px 1fr 124px;
  gap: 14px;
  align-items: start;
}
/* Schwelle bewusst niedrig (600 statt 760): Handys im QUERFORMAT (auch mit
   Display-Vergrößerung, dann < 760 CSS-Pixel) sollen die Tore-Tabellen seitlich
   neben das Chart stellen, nicht darunter. Hochformat-Handys (≤ ~512px) bleiben gestapelt. */
@media (max-width: 600px) {
  .chart-layout { grid-template-columns: 1fr 1fr; }
  .graph-card { grid-column: 1 / -1; order: -1; }
}

/* Chart + Erklärung: Handy untereinander (Default), Desktop nebeneinander wenn geöffnet */
.cd-wrap > #detail-panel { margin-top: 14px; }
/* Beim Auto-Scroll zur Kachel-Erklärung Luft nach oben lassen (Referenz-Abstand
   aus Daniels Screenshots 03.07.2026: 140-160px, vorher klebte der Titel fast oben) */
#detail-panel { scroll-margin-top: 140px; }
@media (min-width: 761px) {
  .cd-wrap.detail-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
  }
  .cd-wrap.detail-open > #detail-panel {
    margin-top: 0;
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
    overflow: auto;
    align-self: start;
  }
}

.graph-card {
  padding: 14px;
  position: relative;
  background:
    radial-gradient(ellipse 75% 55% at 50% 38%, rgba(0,174,187,.06), rgba(255,255,255,0) 70%),
    var(--card);
}

/* Umschalter Klassisch/Modern (oben rechts im Chart) */
.layout-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  display: inline-flex; gap: 2px;
  background: #eef3f5; border: 1px solid var(--line);
  border-radius: 99px; padding: 3px;
}
.layout-toggle button {
  font: inherit; font-size: .78rem; font-weight: 600;
  cursor: pointer; border: none; background: transparent;
  color: var(--muted); border-radius: 99px; padding: 5px 14px;
  transition: background .15s ease, color .15s ease;
}
.layout-toggle button.active {
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 4px rgba(3, 20, 32, .25);
}
/* NEU-Banner für den Partner-Chart-Rechner (Daniel 21.07.2026, geht erst mit
   dem Partner-Launch live; Klassen vorher ungenutzt = unkritisch im Deploy) */
.card.partner-neu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, #031420 0%, #0a4d68 100%); color: #fff;
  border: none; }
.card.partner-neu .pn-badge { flex: 0 0 auto; background: linear-gradient(100deg, #00aebb, #3fd6e0);
  color: #031420; font-weight: 700; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 12px 5px; border-radius: 999px; }
.card.partner-neu .pn-text { flex: 1 1 260px; min-width: 0; }
.card.partner-neu h3 { margin: 0 0 4px; color: #fff; }
.card.partner-neu p { margin: 0; color: #c8d2d9; font-size: .95rem; line-height: 1.55; }
.card.partner-neu .pn-btn { flex: 0 0 auto; display: inline-block;
  background: linear-gradient(100deg, #00aebb, #3fd6e0); color: #031420;
  font-weight: 700; padding: 11px 24px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; }
.card.partner-neu .pn-btn:hover { filter: brightness(1.06); }

/* Chart-Fläche getönt (V5 Graublau, Daniel 21.07.2026, chart-hintergrund-muster.html):
   die offenen, weißen Kanäle waren auf dem weißen Karten-Grund kaum sichtbar
   (Nutzer-Feedback). Gilt für Einzel- und Partner-Rechner (paar.html eigene Regeln). */
#bodygraph { background: #e6edf1; border-radius: 14px; padding: 10px 6px 4px;
  border: 1px solid rgba(8,51,68,.06); }
#bodygraph svg { width: 100%; height: auto; display: block; max-width: 440px; max-height: 78vh; margin: 0 auto; }
#bodygraph text { font-family: "DM Sans", "Open Sans", sans-serif; }

/* Variablen-Leiste NUR fürs Handy, über dem Bodygraph (die vier Pfeile im SVG
   sind dort zu klein zum Treffen). Standard: unsichtbar, ab 700px ausgeblendet. */
.vars-mobile { display: none; }
@media (max-width: 700px) {
  .vars-mobile {
    display: grid;
    /* minmax(0,…) statt 1fr: sonst drücken lange Namen die Buttons über den Kachelrand */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    /* Luft zum Chart-Logo darüber und zum Bodygraph darunter. Das Logo sitzt mobil
       mittig über den Kacheln -> Kacheln müssen unter der Logo-Unterkante starten
       (Daniel 03.07.2026, vorher überlappten sie das Logo um 8px) */
    margin: 48px 0 18px;
  }
  /* Chart-Logo mobil zentriert: hebt sich klar von den Variablen-Kacheln ab (Daniel 03.07.2026).
     .card-Vorfahre nötig: die Basis-Regel (left:18px) steht weiter unten und gewänne sonst. */
  .card .chart-logo { left: 50%; transform: translateX(-50%); }
  .vars-mobile-btn {
    font: inherit; cursor: pointer; min-height: 48px; min-width: 0;
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
    /* Eleganter, heller Schimmer statt Blaustich (Daniel 02.07.2026) */
    background: linear-gradient(170deg, #FFFFFF 0%, #FBFDFD 55%, #F1F7F8 100%);
    border: 1px solid rgba(0, 100, 121, .13);
    border-radius: 14px; padding: 8px 10px;
    font-size: .82rem; font-weight: 600; color: var(--ink);
    box-shadow: 0 2px 8px rgba(3, 20, 32, .05);
  }
  .vars-mobile-btn:hover, .vars-mobile-btn:active { border-color: var(--cyan); }
  /* Pfeil-Icon: weißes Dreieck auf Petrol-Verlauf, gleiche Machart wie die Webseiten-Icons */
  .vars-mobile-btn .vm-icon {
    flex: none; width: 28px; height: 28px; border-radius: 9px;
    background: linear-gradient(155deg, #0a4d68, #00aebb);
    display: flex; align-items: center; justify-content: center;
  }
  .vars-mobile-btn .vm-icon svg { width: 15px; height: 15px; display: block; }
  .vars-mobile-btn .vm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .vars-mobile-btn .vm-vals { color: var(--petrol); font-weight: 700; margin-left: auto; flex: none; }
  /* Die feinen Pfeile im Chart sind mobil doppelt (Leiste übernimmt) -> ausblenden */
  #chart-variables { display: none; }
  /* Wechsel-Chips im Variablen-Panel: Überblick / Farbe / Ton einzeln antippbar */
  .var-chips { display: flex; gap: 8px; margin: 2px 0 12px; flex-wrap: wrap; }
  .var-chip {
    font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
    padding: 7px 14px; border-radius: 99px; min-height: 36px;
    border: 1px solid rgba(0, 100, 121, .18); background: #fff; color: var(--petrol);
  }
  .var-chip.active { background: linear-gradient(155deg, #0a4d68, #00aebb); border-color: transparent; color: #fff; }
}
/* Chips gehören zur Mobil-Leiste: auf großen Schirmen ausblenden */
@media (min-width: 701px) { .var-chips { display: none; } }

/* Marken-Logo oben links im Chart – brandet auch Screenshots */
.chart-logo {
  position: absolute;
  top: 14px;
  left: 18px;
  height: 30px;
  width: auto;
  z-index: 3;
  pointer-events: none;
}
/* Hover-/Klick-Effekte (Leuchten, Puls) setzt bodygraph.js gezielt pro Element */

.legend {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  font-size: .8rem; color: var(--muted); margin-top: 8px;
}
/* ---------- Geburtszeit-Explorer ---------- */
.time-explorer {
  margin: 14px auto 4px; max-width: 520px;
  background: #f6fafc; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px 10px;
}
.te-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: none; border: none; margin: 0; padding: 2px 0;
  cursor: pointer; text-align: center; color: var(--ink); font: inherit;
}
.te-chevron { color: var(--ink); font-size: .95rem; line-height: 1; transition: transform .18s ease; }
.te-toggle.open .te-chevron { transform: rotate(180deg); }
.te-body { margin-top: 8px; }
.te-hint { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.te-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.te-title { font-size: .82rem; font-weight: 600; color: var(--ink); }
.te-reset { font-size: .72rem; padding: 3px 12px; flex: none; }
/* Regler im Marken-Look: Verlauf wird zu den Rändern intensiver
   (= je weiter von der Originalzeit entfernt), Mitte bleibt ruhig */
#te-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; margin: 12px 0 6px;
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg,
    #0a4d68 0%, #00aebb 32%, #dbeef2 50%, #00aebb 68%, #0a4d68 100%);
  outline: none; cursor: pointer; touch-action: pan-y;
}
#te-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--cyan);
  box-shadow: 0 1px 6px rgba(0, 174, 187, .5);
  cursor: grab; transition: transform .1s ease, box-shadow .15s ease;
}
#te-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 10px rgba(0, 174, 187, .7);
}
#te-slider::-webkit-slider-thumb:active { cursor: grabbing; }
#te-slider::-moz-range-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg,
    #0a4d68 0%, #00aebb 32%, #dbeef2 50%, #00aebb 68%, #0a4d68 100%);
}
#te-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--cyan);
  box-shadow: 0 1px 6px rgba(0, 174, 187, .5);
  cursor: grab;
}
.te-labels {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--muted);
}
.te-current { font-weight: 600; }
.te-current.shifted { color: var(--petrol); }

.legend .view-btn {
  font: inherit; font-size: .8rem; cursor: pointer;
  background: #f2f7f8; color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 13px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.legend .view-btn:hover { border-color: var(--cyan); }
.view-btn.active[data-view="personality"] { background: #1d2730; color: #fff; border-color: #1d2730; }
body[data-layout="modern"] .view-btn.active[data-view="personality"] { background: #0a4d68; border-color: #0a4d68; }
.view-btn.active[data-view="design"] { background: var(--red); color: #fff; border-color: var(--red); }
.view-btn.active[data-view="both"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.view-btn.active .dot { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 5px; vertical-align: -1px;
}
.dot.black { background: #1d2730; }
.dot.red { background: var(--red); }
.dot.striped { background: linear-gradient(90deg, #1d2730 50%, var(--red) 50%); }

/* ---------- Planeten ---------- */
.planets-card { padding: 14px 10px; text-align: center; overflow: hidden; }
.planets-card h3 { font-size: .92rem; margin-bottom: 2px; }
.planets-card .small { font-size: .68rem; line-height: 1.3; margin: 0 0 8px; }
.planets { width: 100%; border-collapse: collapse; }
.planets tr { cursor: pointer; }
.planets tr:hover td { background: #eef7f8; }
.planets td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.pl-sym {
  font-size: 1.15rem; width: 30px; line-height: 1;
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", serif;
}
.pl-gate {
  font-weight: 700; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
/* Liniennummer in derselben Farbe wie das Tor (nur kleiner) */
.pl-line { font-size: .76rem; font-weight: 600; color: inherit; opacity: .8; }
.pl-marks { margin-left: 3px; white-space: nowrap; }
.pl-fix { font-size: .68rem; vertical-align: 1px; }
.pl-retro {
  font-size: .55rem; font-weight: 400; vertical-align: 4px;
  margin-left: 1px; opacity: .6;
}

/* Legenden- und Spaltenfarben folgen dem aktiven Chart-Layout */
body[data-layout="modern"] .dot.black { background: #0a4d68; }
body[data-layout="modern"] .dot.red { background: #9aa6b0; }
body[data-layout="modern"] .dot.striped { background: linear-gradient(90deg, #0a4d68 50%, #9aa6b0 50%); }
body[data-layout="modern"] .view-btn.active[data-view="design"] { background: #9aa6b0; border-color: #9aa6b0; }
body[data-layout="modern"] tr.design .pl-gate,
body[data-layout="modern"] tr.design .pl-sym { color: #9aa6b0; }
body[data-layout="modern"] tr.personality .pl-gate,
body[data-layout="modern"] tr.personality .pl-sym { color: #0a4d68; }
body[data-layout="modern"] h3.red { color: #9aa6b0; }
tr.design .pl-gate, tr.design .pl-sym { color: var(--red); }
tr.personality .pl-gate, tr.personality .pl-sym { color: var(--navy); }
tr.design td { text-align: left; }
tr.personality td { text-align: right; }

/* ---------- Kanal-Liste ---------- */
.channel-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.channel-list button {
  font: inherit; cursor: pointer; width: 100%; text-align: left;
  background: #f6fafb; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px;
}
.channel-list button:hover { border-color: var(--cyan); background: #eef7f8; }

/* ---------- Detail-Panel ---------- */
.detail { position: relative; overflow: hidden; }
.detail::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #0a4d68, #00aebb, #3fd6e0);
}
.detail .close {
  position: absolute; top: 12px; right: 12px;
  font: inherit; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1rem; padding: 6px;
}
.detail .close:hover { color: var(--ink); }
.detail-body { white-space: pre-line; }

.ai-box { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
.ai-answer {
  background: #f0fafb;
  border: 1px solid #bfe7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
  white-space: pre-wrap;
}
.ai-answer.loading::after { content: "Denke nach …"; color: var(--muted); font-style: italic; }

/* ---------- Datenschutz / Footer ---------- */
.privacy { border-top: 4px solid var(--bronze); }
.privacy ul { margin: 8px 0; padding-left: 20px; }
.privacy li { margin-bottom: 6px; }
.footer { padding: 10px 18px 40px; text-align: center; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 20, 32, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.modal-card { max-width: 460px; width: 100%; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ===================== "Wie geht's weiter?" (Funnel-Sektion) ===================== */
.next-steps h3 { margin-bottom: 4px; }
.ns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.ns-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  background: var(--card);
}
.ns-free {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
}
.ns-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 12px;
  border-radius: 99px;
}
.ns-card h4 { margin: 0; font-size: 1.02rem; color: var(--ink); }
.ns-text { margin: 0; font-size: .92rem; color: var(--muted); flex: 1; }
.ns-price {
  margin: 0;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#ns-form { display: flex; gap: 8px; }
#ns-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
#ns-form input:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.ns-note {
  margin: 0;
  font-size: .85rem;
  color: var(--petrol);
  background: var(--grad-soft);
  border-radius: 10px;
  padding: 8px 12px;
}
.ns-cta { text-align: center; }
@media (max-width: 880px) {
  .ns-grid { grid-template-columns: 1fr; }
  .ns-card { padding-top: 24px; }
}
@media (max-width: 480px) {
  #ns-form { flex-wrap: wrap; }
  #ns-form .btn { flex: 1 1 100%; }
}

/* ===================== Chart-Aktionen (Speichern/Teilen/Drucken) ===================== */
.chart-actions {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.chart-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 4px 2px;
  font: 500 .84rem/1 inherit;
  font-family: inherit;
  letter-spacing: .01em;
  color: var(--petrol);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.chart-actions button:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.chart-actions button:disabled { opacity: .55; cursor: wait; }
.chart-actions svg { width: 15px; height: 15px; }

/* Touch-Geräte und schmale Schirme: bequeme Tippflächen ab ~42 px,
   ohne den Maus-/Desktop-Look auf breiten Schirmen zu ändern */
@media (pointer: coarse), (max-width: 1024px) {
  .legend .view-btn { padding: 11px 16px; }
  .chart-actions button { padding: 12px 10px; }
}
.print-brand { display: none; }

/* ===================== Druck-Layout ===================== */
@media print {
  body { background: #fff; }
  .print-brand { display: block; height: 64px; margin: 0 auto 16px; }
  .topbar, .form-card, .privacy, .footer, #next-steps, #funnel-bridge, .time-explorer,
  #view-toggle, .layout-toggle, .chart-actions, #detail-panel, .ai-box,
  .te-head, #settings-modal, .tz-fallback, .transit-wetter { display: none !important; }
  .card { box-shadow: none; border: none; padding: 0 0 10px; margin: 0; }
  main.wrap { max-width: 100%; padding: 0; }
  /* Reihenfolge: Chart zuerst in voller Breite, dann beide Planeten-Tabellen nebeneinander */
  .chart-layout { display: flex; flex-wrap: wrap; gap: 0 4%; }
  .graph-card { order: 1; width: 100%; page-break-inside: avoid; }
  #bodygraph svg { max-height: 78vh; display: block; margin: 0 auto; }
  .planets-card { order: 2; width: 48%; page-break-inside: avoid; }
  .planets-card h3, .planets-card .muted { text-align: center; }
  .key-grid { page-break-inside: avoid; }
  #res-name { text-align: center; }
  #res-birth { text-align: center; }
}

/* ===================== Transit-Wetter ===================== */
@font-face {
  font-family: "TOPLUXURY";
  src: url("../fonts/TOPLUXURY.woff2") format("woff2"), url("../fonts/TOPLUXURY.woff") format("woff");
  font-display: swap;
}
.transit-wetter {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 26px;
  margin-bottom: 22px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.tw-links { flex: 1; min-width: 230px; }
.tw-eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.tw-gross {
  font-family: "TOPLUXURY", "DM Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.7rem);
  margin: 4px 0 2px;
}
.tw-beschr { font-size: .9rem; opacity: .92; max-width: 460px; }
.tw-neben { display: flex; gap: 16px; font-size: .88rem; }
.tw-neben div {
  text-align: center;
  background: rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 76px;
}
.tw-neben span { display: block; font-size: .78rem; opacity: .9; }
.tw-neben b { display: block; font-size: 1.12rem; margin-top: 2px; }
@media (max-width: 640px) {
  .transit-wetter { gap: 14px; padding: 16px 18px; }
  .tw-neben { width: 100%; justify-content: flex-start; }
}

/* ===================== Barrierefreiheit: sichtbarer Fokus ===================== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
#bodygraph [role="button"]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
#bodygraph [role="button"]:focus { outline: none; }
#bodygraph [role="button"]:focus-visible { outline: 3px solid var(--cyan); }

/* Druck-Feinschliff: Titelseite in Marken-Typografie */
@media print {
  #res-name {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-family: "TOPLUXURY", "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    color: #031420 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #031420;
    margin: 6px 0 4px;
  }
  #res-birth { display: block; text-align: center !important; color: #5d6f7b; margin-bottom: 18px; }
  .key-grid { margin-top: 10px; }
  @page { margin: 14mm 12mm; }
}

/* ===================== Chart-Hover-Tooltip ===================== */
.hd-chart-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: var(--navy, #031420);
  color: #fff;
  font: 600 .82rem/1.2 "DM Sans", sans-serif;
  padding: 7px 12px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(3, 20, 32, .28);
  opacity: 0;
  transition: opacity .12s ease;
  max-width: 240px;
  white-space: nowrap;
}

/* ===================== Beschriftungs-Schalter am Chart ===================== */
.tip-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 2px 6px;
  cursor: pointer;
  user-select: none;
  font-size: .8rem;
  color: var(--muted, #5d6f7b);
}
.tip-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.tt-track {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #d6dee3;
  transition: background .2s ease;
  flex-shrink: 0;
}
.tt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(3, 20, 32, .3);
  transition: transform .2s ease;
}
.tip-toggle input:checked + .tt-track {
  background: linear-gradient(100deg, #0a4d68, #00aebb 70%);
}
.tip-toggle input:checked + .tt-track .tt-knob { transform: translateX(15px); }
.tip-toggle input:focus-visible + .tt-track { outline: 2px solid var(--cyan, #00aebb); outline-offset: 2px; }
.tt-label { letter-spacing: .01em; }

/* ============================================================
 * WEBSEITEN-LOOK-ANGLEICHUNG (12.06.2026) – an daniel-bayer.net:
 * TOPLUXURY-Überschriften (Schnitt 500), Pillen-Buttons in
 * GROSSBUCHSTABEN mit Sperrung, flaches Design ohne Schatten.
 * ============================================================ */
h2, .card > h3, #res-name {
  font-family: "TOPLUXURY", "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: .2px;
}
/* Buttons im Marken-Stil: Pille, Großbuchstaben, gesperrt, flach */
.btn, .ns-cta, button#act-save, button#act-share {
  border-radius: 50px !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600 !important;
}
.btn.primary, .btn.big {
  box-shadow: none;
}
.btn.primary {
  background: var(--grad);
}
/* Chart-Aktionen bleiben dezente Text-Links, nur ohne Sperrung übertreiben */
.chart-actions button { letter-spacing: 1px; font-size: .78rem; }
/* "Wie geht's weiter?"-Karten flach im Webseiten-Stil (keine Schatten) */
.ns-card { box-shadow: none; background: #fff; border: 1px solid var(--line); }
.ns-card h4 { font-family: "TOPLUXURY", "DM Sans", sans-serif; font-weight: 500; font-size: 1.15rem; }
.ns-free { background: #F6F8FA; }
.ns-badge { letter-spacing: .08em; text-transform: uppercase; }
.ns-cta, .btn { text-decoration: none; }
.ns-cta:hover { text-decoration: none; }

/* Reading-Karten mit visuellem Anker (Icon) – weniger „nackt" */
.ns-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-soft, #eef6f8); color: var(--petrol, #006479);
  margin-bottom: 14px;
}
.ns-icon svg { width: 23px; height: 23px; }
.ns-free .ns-icon { background: var(--grad); color: #fff; }
.ns-card { display: flex; flex-direction: column; }
.ns-card .ns-price { margin-top: auto; }

/* Karten-Feinschliff nach Live-Analyse (Akademie-Preiskarte): getönte Marken-Fläche
   statt viel Weiß, großzügiges Padding, dezenter feiner Rahmen, flach */
.ns-card {
  background: #F2F5F8;
  border: 1px solid #e6ecf0;
  border-radius: 22px;
  padding: 30px 26px 26px;
  box-shadow: none;
}
.ns-free {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  border-radius: 22px;
}
.ns-icon { background: #fff; box-shadow: 0 1px 4px rgba(3,20,32,.06); }
.ns-free .ns-icon { background: var(--grad); box-shadow: none; }
.ns-badge { top: -13px; }

/* Der Hover-Tooltip-Schalter "Beschriftung" ergibt auf Touch-Geräten keinen Sinn
   (kein Mauszeiger zum Überfahren – man tippt direkt). Darum auf Touch ausblenden.
   UND die schwebende Beschriftungs-Box selbst unterdrücken: Auf dem Handy löst ein
   Tippen ein Maus-Ereignis aus, wodurch sonst die Hover-Box sinnlos "herumfliegt". */
@media (hover: none), (pointer: coarse) {
  .tip-toggle { display: none; }
  .hd-chart-tip { display: none !important; }
}
/* Zusätzlich rein über die Breite: schmale Fenster brauchen den Schalter nie
   (die Regel muss NACH der .tip-toggle-Basisregel stehen, sonst verliert sie). */
@media (max-width: 700px) {
  .tip-toggle { display: none; }
}

/* =====  (Live-Werte ausgelesen) ===== */
.ns-card { background:#F0F0F0; border:1px solid rgba(3,20,32,.08); border-radius:15px; box-shadow:none; padding:30px; }
.ns-free { background:#EAEDF1; }
.ns-text { color:#504B5D; }
.ns-card .ns-cta, .btn.primary {
  background:linear-gradient(155deg,#15476D 0%,#0d5f78 52%,#119db1 100%);
  border:1.7px solid #006479; color:#fff; border-radius:999px;
  text-transform:uppercase; letter-spacing:2.6px; font-weight:500; box-shadow:none;
}
.ns-card .ns-cta { padding:12px 28px; }
.ns-card .ns-cta:hover, .btn.primary:hover { filter:brightness(1.06); box-shadow:none; }

/* =====  (subtil, diagonal 155 Grad) ===== */
.key-card { background: linear-gradient(155deg, #ffffff 0%, #e9f1f3 100%); }
.ns-card  { background: linear-gradient(155deg, #f6f8fa 0%, #eaeef1 100%); }
.ns-free  { background: linear-gradient(155deg, #edf4f6 0%, #e2ebee 100%); }

/* =====  ===== */
.card { border-radius: 15px; box-shadow: 0 1px 9px rgba(3,20,32,.05); }
/* Jede weitere dunkle Karte muss hier ausgenommen werden: jedes :not erhöht die
   Spezifität dieser Regel, sonst übermalt sie den dunklen Hintergrund und die
   weiße Schrift wird unsichtbar (so geschehen bei channels-dark, 21.-23.07.2026) */
.card:not(.graph-card):not(.partner-neu):not(.channels-dark) { background: linear-gradient(155deg, #ffffff 0%, #f3f7f9 100%); }
.key-card { border-radius: 15px; }

/* =====  (kanonische Bodygraph-Farben unberührt) ===== */
.graph-card {
  background:
    radial-gradient(ellipse 78% 55% at 50% 36%, rgba(0,174,187,.07), rgba(255,255,255,0) 70%),
    linear-gradient(155deg, #ffffff 0%, #eef3f6 100%);
}

/* =====================================================================
   Karten „Wie geht's weiter" – Grundlayout nach Daniels Webseiten-Vorlage:
   weiße Karte, Eyebrow (Petrol), Serifen-Überschrift, getönte Feature-Box
   mit feinen Trennern, Trennlinie, Verlaufs-Pille, Sterne-Bewertung.
   Finaler Block: gewinnt bewusst gegen die älteren ns-Regeln darüber.
   ===================================================================== */
.ns-grid { gap: 24px; }
.ns-card {
  background: #fff;
  border: 1px solid rgba(3,20,32,.07);
  border-radius: 22px;
  box-shadow: 0 3px 18px rgba(3,20,32,.06);
  padding: 34px 32px 28px;
  display: flex; flex-direction: column;
  text-align: left;
}
.ns-free { background: #fff; }
.ns-eyebrow {
  font-family: "DM Sans", sans-serif;
  font-weight: 600; font-size: .74rem;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--petrol); margin-bottom: 14px;
}
.ns-card h4 {
  font-family: "TOPLUXURY", "DM Sans", sans-serif; font-weight: 500;
  font-size: 1.5rem; line-height: 1.15; color: var(--ink);
  margin: 0 0 12px;
}
.ns-text { color: #504B5D; font-size: .95rem; line-height: 1.5; margin: 0 0 20px; }
.ns-features {
  list-style: none; margin: 0 0 22px; padding: 6px 18px;
  background: #F1F4F6; border-radius: 14px;
}
.ns-features li {
  position: relative; padding: 11px 0 11px 28px;
  font-size: .92rem; color: var(--ink);
  border-bottom: 1px solid rgba(3,20,32,.07);
}
.ns-features li:last-child { border-bottom: none; }
.ns-features li::before {
  content: ""; position: absolute; left: 1px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006075' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.ns-divider { height: 1px; background: rgba(3,20,32,.09); margin: auto 0 18px; }
.ns-price { margin: 0 0 16px; font-size: .9rem; color: var(--muted);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ns-price strong {
  font-family: "TOPLUXURY", "DM Sans", sans-serif; font-weight: 500;
  font-size: 1.7rem; color: var(--ink);
}
.ns-card .ns-cta {
  display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 60px; line-height: 1.25;
  background: linear-gradient(155deg,#15476D 0%,#0d5f78 52%,#119db1 100%);
  border: 1.7px solid #006479; color: #fff;
  text-transform: uppercase; letter-spacing: 2.2px;
  font-weight: 500; font-size: .82rem;
  border-radius: 33px; padding: 12px 26px; box-shadow: none;
}
.ns-card .ns-cta:hover { filter: brightness(1.06); box-shadow: none; }
.ns-rating { margin: 16px 0 0; font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; }
.ns-rating-shared { justify-content: center; margin: 24px 0 0; }
.ns-stars { color: #E8B33D; letter-spacing: 2px; font-size: .95rem; }
@media (max-width: 640px) { .ns-grid { grid-template-columns: 1fr; } }

/* Dunkles, volle-Breite-Band „Deine Kanäle" (Petrol-Verlauf wie Daniels
   „Was du bekommst"-Kachel) – bringt ruhigen Kontrast auf die Seite, wirkt
   auf Desktop wie Handy gewollt, weil nichts daneben konkurriert. */
.card.channels-dark {
  background: linear-gradient(162deg, #1d5e74 0%, #0c2b3b 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 30px rgba(8,32,45,.22);
}
.channels-dark .ch-head { display: flex; align-items: center; gap: 12px; }
.channels-dark h3 {
  color: #fff; margin: 0;
  font-family: "TOPLUXURY", "DM Sans", sans-serif; font-weight: 500;
}
.channels-dark .ch-count {
  background: rgba(127,212,222,.16); color: #c9f1f7;
  border: 1px solid rgba(127,212,222,.4);
  border-radius: 20px; padding: 1px 11px;
  font-size: .8rem; font-weight: 600; line-height: 1.6;
}
/* Deckkraft-Untergrenzen in der dunklen Karte: 4.5:1 am hellsten Verlaufspunkt #1d5e74 (WCAG AA) */
.channels-dark .ch-sub { color: rgba(255,255,255,.75); font-size: .86rem; margin: 7px 0 16px; }

/* Griffige Kanal-Pillen: Nummern-Badge + Name + verbundene Zentren + Pfeil */
.channels-dark .channel-list { gap: 10px; }
.channels-dark .channel-list button.ch-pill {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px; padding: 12px 14px; color: #fff;
  transition: background .15s, border-color .15s, transform .15s;
}
.channels-dark .ch-pill:hover {
  background: rgba(255,255,255,.13); border-color: #4fd6e0;
  transform: translateY(-1px);
}
.ch-pill .ch-no {
  flex: none; min-width: 54px; text-align: center;
  background: rgba(127,212,222,.14);
  border: 1px solid rgba(127,212,222,.45);
  color: #bfeef4; font-weight: 600; font-size: .92rem;
  border-radius: 9px; padding: 7px 6px;
}
.ch-pill .ch-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.ch-pill .ch-name { color: #fff; font-weight: 600; font-size: .96rem; }
.ch-pill .ch-centers { color: rgba(255,255,255,.78); font-size: .8rem; }
.ch-pill .ch-sep { display: inline-block; margin: 0 8px; color: rgba(127,212,222,.85); font-size: .9rem; }
.ch-pill .ch-arrow { margin-left: auto; color: rgba(255,255,255,.4); font-size: 1.25rem; padding-left: 6px; }

/* PLZ-Badge in der Ortssuche */
.place-plz { display: inline-block; min-width: 3em; color: var(--petrol);
  font-weight: 600; font-variant-numeric: tabular-nums; }

/* Detail-Panel: saubere Absätze, Tore hervorgehoben */
.detail-body p { margin: 0 0 12px; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-body .db-gate { padding-top: 2px; }
.detail-body strong { color: var(--ink); font-weight: 600; }

/* Kacheln zueinander ausrichten: gleiche Höhen für Eyebrow + Text,
   damit Feature-Box, Preis und Button auf beiden Seiten auf einer Linie sitzen */
.ns-card .ns-eyebrow { min-height: 1.1em; }
.ns-card .ns-text { min-height: 3em; }   /* beide Texte reservieren gleich viel Höhe */

/* Reading-Hinweis im Detail-Panel (z. B. Vertiefungsreading beim Inkarnationskreuz) */
.detail-cta {
  margin-top: 18px; padding: 16px 18px;
  background: linear-gradient(155deg, #f1f6f8 0%, #e7eff2 100%);
  border: 1px solid rgba(3,20,32,.07); border-radius: 14px;
}
.detail-cta .dc-text { margin: 0 0 12px; font-size: .9rem; color: #504B5D; line-height: 1.5; }
.detail-cta .dc-link {
  display: inline-block; text-align: center; text-decoration: none;
  background: linear-gradient(155deg,#15476D 0%,#0d5f78 52%,#119db1 100%);
  border: 1.7px solid #006479; color: #fff;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 500; font-size: .78rem;
  border-radius: 33px; padding: 11px 22px;
}
.detail-cta .dc-link:hover { filter: brightness(1.06); text-decoration: none; }

/* Funnel-Brücke: Übergang von den Chart-Bausteinen zum Newsletter/Reading (Ergebnis-Karte).
   Hell und edel im Marken-Look: warmer Ton, feine Linien, Bronze-Akzent, TOPLUXURY-Lead. */
.funnel-bridge {
  margin-top: 18px; padding: 26px 28px 24px;
  background: linear-gradient(150deg, #ffffff 0%, #f2f9fa 46%, #dceef1 100%);
  border: 1px solid var(--line, #dde6ea);
  border-radius: var(--radius, 14px);
  position: relative;
  overflow: hidden;
  animation: fbIn .55s ease .1s backwards;
}
@keyframes fbIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .funnel-bridge { animation: none; } }
.funnel-bridge .fb-inner { display: flex; gap: 26px; align-items: center; }
.funnel-bridge .fb-content { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
/* Chart-Karte „Porzellan": neutraler Weiß-Hellgrau-Verlauf, mehrstufiger 3D-Schatten,
   Klick-Flip zur Guilloche-Rückseite (Easter Egg). Das Chart bleibt komplett sichtbar
   (Tor-Nummern, Variablen-Pfeile, Profil), nur leicht entsättigt. */
.funnel-bridge .fb-art {
  flex: 0 0 225px;
  width: 225px;
  height: 300px;
  box-sizing: border-box;
  position: relative;
  align-self: center;
  border-radius: 12px;
  /* Container traegt den schwebenden 3D-Schatten + die 3D-Bühne für den Flip */
  perspective: 1200px;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(3,20,32,.06),
    0 10px 24px rgba(3,20,32,.10),
    0 26px 52px rgba(3,20,32,.08);
  /* Transition IMMER definiert (auch im Ruhezustand), damit der Rückweg animiert */
  transition: transform .18s ease, box-shadow .18s ease;
}
.funnel-bridge .fb-art:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 3px rgba(3,20,32,.07),
    0 16px 32px rgba(3,20,32,.14),
    0 34px 64px rgba(3,20,32,.12);
}
@media (prefers-reduced-motion: reduce) {
  .funnel-bridge .fb-art { transition: box-shadow .18s ease; }
  .funnel-bridge .fb-art:hover { transform: none; }
}

/* Flip-Bühne */
.funnel-bridge .fb-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.funnel-bridge .fb-flip.is-flipped { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .funnel-bridge .fb-flip { transition: none; }
}

/* Beide Seiten deckungsgleich, Rückseite weggedreht versteckt */
.funnel-bridge .fb-flip-front,
.funnel-bridge .fb-flip-back {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* VORDERSEITE: die Porzellan-Karte (heller Verlauf + Border), Chart + Name */
.funnel-bridge .fb-flip-front {
  padding: 14px 10px;
  /* Porzellan-Verlauf auf die V5-Chartfläche abgestimmt (Daniel 21.07.2026):
     auch auf der Chartkarte sollen die offenen Kanäle sichtbar sein */
  background: linear-gradient(172deg, #f2f5f7 0%, #eaeff2 60%, #e6edf1 100%);
  border: 1px solid #dde4e8;
}
.funnel-bridge .fb-art svg {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  pointer-events: none;
  filter: saturate(.96);
}

/* Namens-Unterschrift unter dem Chart */
.funnel-bridge .fb-art-name {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--petrol, #006075);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* RÜCKSEITE „Guilloche": heller Kartenrand, dunkles Feld mit Cyan-Ringen + Logo-Medaillon */
.funnel-bridge .fb-flip-back {
  transform: rotateY(180deg);
  padding: 9px;
  background: linear-gradient(172deg, #ffffff 0%, #f6f8f9 60%, #eff2f4 100%);
  border: 1px solid #e3e8ea;
  justify-content: center;
}
.funnel-bridge .fb-flip-field {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(0,174,187,.09) 0, rgba(0,174,187,.09) 1px,
      transparent 1px, transparent 9px),
    radial-gradient(circle at 50% 50%,
      rgba(0,174,187,.10), transparent 60%),
    linear-gradient(165deg, #0a2635 0%, #051a28 55%, #031420 100%);
}
/* feiner Goldrahmen im dunklen Feld */
.funnel-bridge .fb-flip-field::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201,165,94,.35);
  border-radius: 4px;
  pointer-events: none;
}
/* helles Logo-Medaillon (~55% der Kartenbreite) */
.funnel-bridge .fb-flip-emblem {
  position: relative;
  width: 55%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef5f7 100%);
  border: 1px solid rgba(201,165,94,.4);
  box-shadow:
    0 2px 10px rgba(0,0,0,.35),
    inset 0 1px 3px rgba(255,255,255,.8);
}
.funnel-bridge .fb-flip-emblem img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* MOBIL: Karte NICHT ausblenden, sondern zentriert unter den Content stellen.
   aspect-ratio ist Pflicht: die Faces sind absolut positioniert, ohne feste Höhe
   kollabiert der Container sonst auf 0. */
@media (max-width: 700px) {
  .funnel-bridge .fb-inner { flex-direction: column; }
  .funnel-bridge .fb-art {
    align-self: center;
    flex: 0 0 auto;
    width: 200px;
    height: auto;
    aspect-ratio: 225 / 300;
    margin-top: 18px;
  }
}
@media (max-width: 520px) {
  .funnel-bridge .fb-art { width: 190px; }
}
.funnel-bridge::before {
  /* feiner Petrol-Türkis-Faden oben */
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--petrol, #006075) 22%, var(--cyan, #00aebb) 78%, transparent);
  border-radius: 2px;
}
.funnel-bridge .fb-eyebrow {
  margin: 0 0 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--petrol, #006075); font-weight: 700;
}
.funnel-bridge .fb-lead {
  margin: 0 0 6px;
  font-family: "TOPLUXURY", "DM Sans", sans-serif; font-weight: 500;
  font-size: 1.34rem; line-height: 1.28; letter-spacing: .01em;
  color: var(--navy, #031420);
  text-wrap: balance;
}
.funnel-bridge .fb-sub { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; color: var(--muted, #5d6f7b); max-width: 56ch; }
.funnel-bridge .fb-email-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; max-width: 560px; }
.funnel-bridge .fb-email-input {
  flex: 1 1 220px; min-width: 0; padding: 12px 18px;
  border: 1px solid var(--line, #dde6ea); border-radius: 33px;
  background: #fff; color: var(--navy, #031420); font: inherit; font-size: .92rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.funnel-bridge .fb-email-input:focus {
  outline: none; border-color: var(--petrol, #006075);
  box-shadow: 0 0 0 3px rgba(0,96,117,.12);
}
/* Tastatur-Fokus braucht mehr als den dezenten Maus-Schein (die outline:none-Regel
   oben würde sonst auch den globalen :focus-visible-Ring überstimmen) */
.funnel-bridge .fb-email-input:focus-visible {
  outline: 3px solid var(--cyan, #00aebb); outline-offset: 2px;
}
.funnel-bridge .fb-email-input::placeholder { color: #7d8b94; }
.funnel-bridge .fb-email-btn {
  cursor: pointer; padding: 12px 24px; font-family: inherit;
  background: var(--grad, linear-gradient(155deg,#15476D 0%,#0d5f78 52%,#119db1 100%));
  color: #fff; border: none;
  text-transform: uppercase; letter-spacing: 1.8px; font-weight: 600; font-size: .74rem;
  border-radius: 33px;
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}
.funnel-bridge .fb-email-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(0,96,117,.28); transform: translateY(-1px); }
.funnel-bridge .fb-email-note { display: inline-block; margin-top: 8px; font-size: .84rem; color: var(--petrol, #006075); }
.funnel-bridge .fb-email-note[data-state="ok"] { color: #1e7a4f; font-weight: 600; }
.funnel-bridge .fb-email-note[data-state="err"] { color: #b3261e; }
.funnel-bridge .fb-micro a { color: inherit; text-underline-offset: 2px; }
/* Kontrast-Untergrenze: mind. 4.5:1 auch auf dem dunkelsten Verlaufsende #dceef1 (WCAG AA) */
.funnel-bridge .fb-micro { margin: 10px 0 0; font-size: .74rem; line-height: 1.5; color: #596b77; }
.funnel-bridge .fb-alt {
  margin: 16px 0 0; padding-top: 13px;
  border-top: 1px solid var(--line, #dde6ea);
  font-size: .86rem; color: #596b77; /* wie .fb-micro: 4.5:1 auf #dceef1 */
}
.funnel-bridge .fb-alt a { color: var(--petrol, #006075); font-weight: 600; text-underline-offset: 3px; }
.funnel-bridge .fb-alt a:hover { color: var(--cyan, #00aebb); }
@media (max-width: 520px) {
  .funnel-bridge { padding: 22px 18px 20px; }
  .funnel-bridge .fb-email-input, .funnel-bridge .fb-email-btn { flex: 1 1 100%; }
}

/* Klickbare Spalten-Köpfe (Persönlichkeit/Design erklären) */
.side-head {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 0; margin: 0 0 8px;
  cursor: pointer; font: inherit; border-radius: 8px;
}
.side-head h3 { margin: 0 0 4px; }
.side-head p { margin: 0; }
.side-head .side-i { font-size: .82rem; color: var(--petrol); opacity: .65; vertical-align: middle; }
.side-head:hover .side-i { opacity: 1; }
.side-head:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.side-head:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Grenzfall-Anzeige (Fable, 16.10.2026) */
.grenz-hinweis { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff6e5; border-left: 3px solid #e8a33d; color: #5a4a2a; font-size: .9rem; line-height: 1.45; }
.vm-grenz { flex: none; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e8a33d; color: #fff; font-size: .7rem; font-weight: 700; }
.form-status { margin: 8px 0 0; }
