/* GWC Rechtstexte (AGB, später Impressum und Datenschutz). Fassung 2, 27.11.2026.
   Werte aus DESIGN.md (Richtung 2 Magenta) und aus der Kasse Wealth Builder Club:
   Licht mit Punktraster oben, Flächen mit heller Haarlinie, darunter ruhiger Fließtext wie eine klassische Rechtsseite (Alex 27.11.).
   Ein Licht je Ansicht: oben das Glas-GWC, im Text die Lichtlinie am Hinweis. */
:root {
  --mitternacht: #0c0814;
  --flaeche: #1b1427;
  --flaeche-tief: #140f1e;
  --aubergine: #2a1530;
  --magenta: #e5338a;
  --koralle: #ff6a5c;
  --orange: #ff9a3c;
  --weiss: #ffffff;
  --text: #d4cce3;
  --leise: #aca2c0;
  --kachel-ring: rgba(168, 139, 255, 0.35);
  --kachel-schrift: #cbb8ff;
  --haarlinie: rgba(236, 226, 255, 0.09);
  --haarlinie-stark: rgba(236, 226, 255, 0.14);
  --licht: linear-gradient(90deg, #ff6a5c, #e5338a 55%, #ff9a3c);
  --sora: 'Sora', Arial, Helvetica, sans-serif;
  --instrument: 'Instrument Sans', Arial, Helvetica, sans-serif;
  --weich: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--mitternacht);
  color: var(--text);
  font-family: var(--instrument);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(168, 139, 255, 0.4); color: var(--weiss); }
img { display: block; max-width: 100%; height: auto; }

.rahmen { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .rahmen { padding: 0 20px; } }
@media (max-width: 400px) { .rahmen { padding: 0 16px; } body { font-size: 16px; } }

a { color: var(--weiss); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--weich), color 0.2s var(--weich); }
a:hover { text-decoration-color: var(--koralle); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--koralle); outline-offset: 3px; border-radius: 6px; }

.sprung { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--flaeche); color: var(--weiss); text-decoration: none; }
.sprung:focus { top: 16px; }

/* ---------- Bühne oben: Glas-GWC aus dem Brandboard rechts, Punktraster wie die Kasse ---------- */
.buehne { position: relative; overflow: hidden; border-bottom: 1px solid var(--haarlinie); }
.buehne::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/gwc_glas_hero.jpg") right -30px bottom 0 / auto 78% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 42%);
          mask-image: linear-gradient(180deg, transparent 18%, #000 42%);
}
.buehne::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0c0814 0%, #0c0814 34%, rgba(12, 8, 20, 0.55) 52%, rgba(12, 8, 20, 0) 68%),
    linear-gradient(0deg, #0c0814 0%, rgba(12, 8, 20, 0) 28%),
    linear-gradient(180deg, #0c0814 0%, rgba(12, 8, 20, 0) 24%),
    radial-gradient(rgba(236, 226, 255, 0.06) 1px, transparent 1.3px) 0 0 / 18px 18px;
}
.buehne > * { position: relative; z-index: 1; }

.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }
.logo { display: inline-flex; border-radius: 8px; }
.logo img { height: 40px; width: auto; }
.kopf-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
  background: rgba(27, 20, 39, 0.7); box-shadow: inset 0 0 0 1px var(--haarlinie-stark); }
.kopf-link:hover { color: var(--weiss); box-shadow: inset 0 0 0 1px rgba(255, 106, 92, 0.45); }
.kopf-link svg { width: 16px; height: 16px; }

.hero { padding: 80px 0 104px; max-width: 780px; }
.augenbraue { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #e9e2f5;
  background: rgba(27, 20, 39, 0.75); box-shadow: inset 0 0 0 1px var(--kachel-ring); }
.augenbraue i { width: 8px; height: 8px; border-radius: 50%; background: var(--licht); box-shadow: 0 0 12px rgba(229, 51, 138, 0.7); }
h1 {
  margin: 0; font-family: var(--sora); font-weight: 600; color: var(--weiss);
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance; hyphens: manual; overflow-wrap: break-word;
}
.einleitung { margin: 24px 0 0; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.stand { margin: 28px 0 0; font-size: 15px; color: var(--leise); }

/* ---------- Aufbau: Inhalt links fest, Text rechts ---------- */
.aufbau { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 24px; }
.seitenleiste { position: relative; }
.seitenleiste-innen { position: sticky; top: 32px; display: grid; gap: 16px; }

.inhalt { border-left: 1px solid var(--haarlinie-stark); padding-left: 20px; }
.inhalt summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leise); }
.inhalt summary::-webkit-details-marker { display: none; }
.inhalt summary small { display: none; }
@media (min-width: 961px) { .inhalt summary { cursor: default; } .inhalt summary svg { display: none; } }
.inhalt summary svg { width: 18px; height: 18px; margin-left: auto; transition: transform 0.3s var(--weich); }
.inhalt[open] summary svg { transform: rotate(180deg); }
.inhalt ol { list-style: none; margin: 0; padding: 0; }
.inhalt li { margin: 0; }
.inhalt a { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 4px;
  min-height: 40px; padding: 8px 0; font-size: 14.5px; line-height: 1.4; color: var(--leise); text-decoration: none; }
.inhalt a span { font-size: 13px; color: rgba(172, 162, 192, 0.65); font-variant-numeric: tabular-nums; }
.inhalt a span svg { display: block; width: 13px; height: 13px; transform: translateY(2px); }
.inhalt a:hover { color: var(--weiss); }
.inhalt a[aria-current="true"] { color: var(--weiss); }
.inhalt a[aria-current="true"] span { color: var(--koralle); }
.inhalt a[aria-current="true"]::before { content: ""; position: absolute; left: -21px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #ff6a5c, #e5338a); }

.kontakt { margin-top: 24px; padding-left: 21px; font-size: 14px; line-height: 1.6; color: var(--leise); }
.kontakt b { display: block; font-weight: 600; color: var(--text); }
.kontakt a { overflow-wrap: normal; }

/* ---------- Text ---------- */
.text { min-width: 0; max-width: 700px; }
.text p { margin: 0 0 18px; text-wrap: pretty; hyphens: auto; overflow-wrap: break-word; }
.text p:last-child { margin-bottom: 0; }
.text h2 { margin: 0 0 18px; font-family: var(--sora); font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; color: var(--weiss); text-wrap: balance; }
.nr { margin-right: 12px; color: var(--leise); font-weight: 600; }

.hinweis { position: relative; margin: 0 0 16px; padding: 4px 0 4px 26px; }
.hinweis::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #ff6a5c, #e5338a 60%, #ff9a3c); }
.hinweis p { color: #c9c0d9; }

.abschnitt { padding-top: 48px; scroll-margin-top: 24px; }
.text h3 { margin: 32px 0 12px; font-family: var(--sora); font-weight: 600; font-size: 17.5px; line-height: 1.35; letter-spacing: -0.01em; color: var(--weiss); text-wrap: balance; }
.text h4 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text); }
.text h2 + h3 { margin-top: 8px; }
.text ul { margin: 0 0 18px; padding: 0 0 0 4px; list-style: none; }
.text li { position: relative; margin: 0 0 8px; padding-left: 20px; text-wrap: pretty; }
.text li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: rgba(172, 162, 192, 0.55); }
.text a { overflow-wrap: anywhere; }
.text p.quelle { margin-top: 32px; font-size: 14px; color: var(--leise); }
.einspaltig { grid-template-columns: minmax(0, 1fr); }
.einspaltig .abschnitt:first-child { padding-top: 0; }
.hero-kurz { padding-bottom: 88px; }

.ende { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--haarlinie); font-size: 14.5px; color: var(--leise); }
.nach-oben { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--leise); text-decoration: none; }
.nach-oben:hover { color: var(--weiss); }
.nach-oben svg { width: 16px; height: 16px; }

/* ---------- Fuß ---------- */
.fuss { margin-top: 96px; border-top: 1px solid var(--haarlinie); background: linear-gradient(180deg, rgba(27, 20, 39, 0.5), rgba(12, 8, 20, 0)); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 40px; padding-bottom: 48px; }
.fuss-marke { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--leise); }
.fuss-marke img { height: 30px; width: auto; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.fuss nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; color: var(--leise); text-decoration: none; }
.fuss nav a:hover, .fuss nav a[aria-current="page"] { color: var(--weiss); background: rgba(236, 226, 255, 0.05); }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 960px) {
  .aufbau { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .seitenleiste-innen { position: static; }
  .kontakt { display: none; }
  .inhalt { border-left: 0; padding: 0; border-top: 1px solid var(--haarlinie); border-bottom: 1px solid var(--haarlinie); }
  .inhalt summary { min-height: 52px; margin: 0; cursor: pointer; }
  .inhalt ol { padding-bottom: 12px; }
  .inhalt a[aria-current="true"]::before { display: none; }
  .text { max-width: none; }
}
@media (max-width: 720px) {
  .buehne::before { background-position: right -60px top 40px; background-size: auto 300px; opacity: 0.55; }
  .buehne::after { background:
    linear-gradient(180deg, rgba(12, 8, 20, 0) 0%, rgba(12, 8, 20, 0.55) 45%, #0c0814 100%),
    radial-gradient(rgba(236, 226, 255, 0.06) 1px, transparent 1.3px) 0 0 / 18px 18px; }
  .kopf { min-height: 80px; }
  .logo img { height: 34px; }
  .hero { padding: 150px 0 48px; }
  .text h3 { font-size: 16.5px; }
  .einleitung { font-size: 17px; }
  .text h2 { font-size: 20px; }
  .abschnitt { padding-top: 40px; }
  .hinweis { padding-left: 20px; }
  .fuss { margin-top: 64px; }
}

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.55; }
  .buehne { border: 0; } .buehne::before, .buehne::after, .seitenleiste, .kopf-link, .nach-oben, .sprung { display: none !important; }
  .rahmen { padding: 0; max-width: none; }
  .aufbau { display: block; padding: 0; }
  h1 { color: #111; }
  .hero { padding: 12pt 0; }
  .einleitung, .text p, .hinweis p { color: #222; }
  .hinweis::before { background: #999; }
  .nr { color: #111; }
  .text h2 { color: #111; }
  .abschnitt { break-inside: avoid-page; border-color: #ccc; }
  .fuss { margin-top: 24pt; background: none; }
  a { color: #111; }
}
