/* Fine Techs Companion OS · Doku-Seite.
   Farben aus ui/static/themes/aurora.css (dunkel) und eine helle Aurora.
   Schriften lokal (Inter, Cormorant Garamond – SIL OFL 1.1, Lizenz in /assets/fonts). */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060817;
  --flaeche: rgba(13, 18, 48, 0.72);
  --flaeche-fest: #0D1230;
  --flaeche-hoch: #141A3E;
  --text: #E9EBF8;
  --text-2: #B4BDD6;
  --text-3: #8B95B3;
  --linie: rgba(155, 150, 255, 0.16);
  --linie-stark: rgba(155, 150, 255, 0.32);
  --akzent: #9C71FF;
  --akzent-voll: #7457FF;
  --akzent-ink: #FFFFFF;
  --link: #B9A3FF;
  --fokus: #C9B8FF;
  --aurora-1: rgba(116, 87, 255, 0.34);
  --aurora-2: rgba(70, 123, 255, 0.20);
  --aurora-3: rgba(156, 113, 255, 0.18);
  --schatten: 0 22px 60px rgba(0, 0, 0, 0.45);
  --code: rgba(155, 150, 255, 0.12);
  --radius: 16px;
  --kopf-h: 64px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #FBFAFF;
    --flaeche: rgba(255, 255, 255, 0.78);
    --flaeche-fest: #FFFFFF;
    --flaeche-hoch: #F3F0FF;
    --text: #17152B;
    --text-2: #3F3B5C;
    --text-3: #5E5980;
    --linie: rgba(60, 40, 160, 0.12);
    --linie-stark: rgba(60, 40, 160, 0.26);
    --akzent: #5B3FD9;
    --akzent-voll: #5B3FD9;
    --akzent-ink: #FFFFFF;
    --link: #4A2FC4;
    --fokus: #5B3FD9;
    --aurora-1: rgba(140, 110, 255, 0.20);
    --aurora-2: rgba(90, 140, 255, 0.12);
    --aurora-3: rgba(190, 150, 255, 0.14);
    --schatten: 0 18px 40px rgba(40, 30, 110, 0.10);
    --code: rgba(91, 63, 217, 0.08);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16.5px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 62% -8%, var(--aurora-1), transparent 70%),
    radial-gradient(800px 700px at 100% 95%, var(--aurora-2), transparent 70%),
    radial-gradient(700px 500px at -5% 60%, var(--aurora-3), transparent 70%);
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--flaeche-fest); color: var(--text); }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 30; height: var(--kopf-h);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: var(--flaeche); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--linie);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
/* Feinschliff · C5: wie ``.brand-mark`` in der App (gleiche Datei ``_marke.svg``). */
.logo-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; flex: none;
  background: color-mix(in oklab, #7457FF 22%, transparent); border: 1px solid color-mix(in oklab, #7457FF 40%, transparent); }
.logo-mark svg { width: 16px; height: 16px; }
.logo-text { font-size: 16px; letter-spacing: .01em; }
.logo-text span { color: var(--text-2); font-weight: 400; }
.beta {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--akzent); border: 1px solid var(--linie-stark); background: var(--code);
}
.kopf-knopf {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--linie); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer;
}
.menue-knopf { display: none; }
.suche { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.suche input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 12px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--flaeche-hoch); border: 1px solid var(--linie);
}
.suche input::placeholder { color: var(--text-3); }
.suche-ico { position: absolute; left: 11px; top: 10px; color: var(--text-3); display: flex; }
.suche-treffer {
  position: absolute; top: 46px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; z-index: 40;
  max-height: 70vh; overflow: auto; border-radius: 14px; background: var(--flaeche-fest);
  border: 1px solid var(--linie-stark); box-shadow: var(--schatten);
}
.suche-treffer a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.suche-treffer a:hover, .suche-treffer a[aria-selected="true"] { background: var(--code); }
.suche-treffer small { display: block; color: var(--text-3); font-size: 12.5px; }
.suche-treffer .text { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.suche-treffer .leer { padding: 10px 12px; color: var(--text-3); }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.sprache { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; border: 1px solid var(--linie); font-size: 14px; font-weight: 600; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.knopf-voll { background: linear-gradient(135deg, var(--akzent-voll), #4B4FFF); color: var(--akzent-ink); box-shadow: 0 10px 30px -10px var(--aurora-1); }
.knopf-leise { color: var(--text); border: 1px solid var(--linie-stark); background: transparent; }
.knopf-gross { min-height: 48px; padding: 0 22px; font-size: 16px; }

/* Rahmen: Navigation · Inhalt · Inhaltsverzeichnis */
.rahmen { display: grid; grid-template-columns: 270px minmax(0, 1fr) 230px; max-width: 1440px; margin: 0 auto; }
.nav {
  position: sticky; top: var(--kopf-h); align-self: start; height: calc(100vh - var(--kopf-h)); overflow-y: auto;
  padding: 26px 18px 40px 24px; border-right: 1px solid var(--linie);
}
.nav-kopf { display: none; }
.nav-gruppe { margin-bottom: 22px; }
.nav-titel { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.nav ul, .toc ul { list-style: none; margin: 0; padding: 0; }
.nav li a {
  display: block; padding: 7px 12px; margin: 1px 0; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.4;
}
.nav li a:hover { background: var(--code); color: var(--text); }
.nav li a[aria-current="page"] { background: var(--code); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--akzent); }
.nav-unten { display: none; }
.haupt { min-width: 0; padding: 44px 56px 30px; }
.haupt:focus { outline: none; }
.toc { position: sticky; top: var(--kopf-h); align-self: start; padding: 44px 20px 20px 6px; max-height: calc(100vh - var(--kopf-h)); overflow-y: auto; }
.toc li a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--linie); color: var(--text-3); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc li a:hover, .toc li a[aria-current="true"] { color: var(--text); border-left-color: var(--akzent); }
.schleier { display: none; }

/* Text */
.text { max-width: 760px; }
.text h1, .held h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 14px; }
.text h1 { font-size: 46px; }
.text h2 { font-size: 25px; line-height: 1.3; margin: 42px 0 10px; font-weight: 600; }
.text h3 { font-size: 19px; margin: 28px 0 8px; font-weight: 600; }
.text p, .text li { color: var(--text-2); }
.text strong { color: var(--text); }
.text ul, .text ol { padding-left: 1.3em; }
.text li { margin: 4px 0; }
.text code { padding: 1px 6px; border-radius: 6px; background: var(--code); font-size: .92em; }
.text table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.text th, .text td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
.text th { color: var(--text); font-weight: 600; background: var(--code); }
.text td { color: var(--text-2); }
.text img { display: block; max-width: 100%; height: auto; margin: 16px 0; border-radius: 14px; border: 1px solid var(--linie-stark); box-shadow: var(--schatten); }
.text img[src$="-handy.png"], .text img[src*="konto-anlegen"] { max-width: min(100%, 400px); }
.text blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--akzent); background: var(--code); border-radius: 0 12px 12px 0; }
.text blockquote p { margin: 4px 0; }
.brotkrume { margin: 0 0 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--akzent); }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 680px; }
.stand { color: var(--text-3); font-size: 14.5px; margin: 0 0 6px; }
.hinweis { padding: 10px 14px; border-radius: 12px; background: var(--code); border: 1px solid var(--linie); color: var(--text); font-size: 15px; }
.klein { color: var(--text-3); font-size: 14px; }

/* Startseite */
.held { padding: 26px 0 10px; max-width: 820px; }
.held-marke { margin: 0 0 16px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.held h1 { font-size: 62px; background: linear-gradient(120deg, var(--text) 30%, var(--akzent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.held-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 8px; }
.kacheln { list-style: none; padding: 0; margin: 34px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kachel {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--radius); text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); transition: border-color .2s, transform .2s;
}
.kachel:hover { border-color: var(--linie-stark); transform: translateY(-2px); }
.kachel-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--akzent); background: var(--code); border: 1px solid var(--linie); }
.kachel-ico .ico { width: 24px; height: 24px; }
.kachel-titel { color: var(--text); font-weight: 600; font-size: 17px; }
.kachel-text { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.art-start .text { max-width: 820px; }
.raster-block h2 { font-size: 25px; margin: 46px 0 14px; }
.raster { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.raster a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; color: var(--text); text-decoration: none; background: var(--flaeche); border: 1px solid var(--linie); }
.raster a:hover { border-color: var(--linie-stark); }
.raster .ico { color: var(--text-3); width: 18px; height: 18px; }

/* Vor/Zurück + Fuß */
.vorzurueck { display: flex; justify-content: space-between; gap: 14px; margin: 56px 0 0; max-width: 760px; }
.art-start .vorzurueck { max-width: none; }
.vz { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--linie); text-decoration: none; color: var(--text); background: var(--flaeche); max-width: 48%; }
.vz small { display: block; color: var(--text-3); font-size: 12.5px; }
.vz-nach { margin-left: auto; text-align: right; }
.fuss { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linie); }
.fuss-links a { color: var(--text-2); }
.fuss p { margin: 6px 0; }

@media (max-width: 1240px) {
  .rahmen { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 1000px) {
  :root { --kopf-h: 60px; }
  .kopf { padding: 0 12px; gap: 10px; }
  .menue-knopf { display: inline-flex; }
  .nur-breit, .kopf > .beta { display: none; }
  .rahmen { display: block; }
  .js .nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 45; width: min(86vw, 340px); height: 100vh; padding: 14px 16px 30px;
    background: var(--flaeche-fest); border-right: 1px solid var(--linie-stark); box-shadow: var(--schatten);
    transform: translateX(-104%); transition: transform .25s ease; visibility: hidden;
  }
  .js .nav.offen { transform: none; visibility: visible; }
  .nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--linie); }
  .js .nav-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-weight: 600; }
  .nav-unten { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
  .nav li a { padding: 11px 12px; font-size: 16px; }
  .schleier:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(4, 6, 20, .55); }
  .haupt { padding: 28px 18px 24px; }
  .text h1 { font-size: 36px; }
  .held h1 { font-size: 42px; }
  .lead { font-size: 17.5px; }
  .kacheln, .raster { grid-template-columns: 1fr; }
  .suche { max-width: none; }
  .suche-treffer { position: fixed; top: calc(var(--kopf-h) + 4px); left: 10px; right: 10px; max-height: calc(100vh - var(--kopf-h) - 20px); }
  html:not(.js) .menue-knopf { display: none; }
}
@media (max-width: 1000px) and (min-width: 640px) {
  .kacheln, .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .text table, .text tbody, .text tr, .text td { display: block; width: 100%; }
  .text thead { display: none; }
  .text tr { margin: 0 0 12px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche); }
  .text td { padding: 6px 0; border-bottom: 0; }
  .text td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
  .text td:first-child { color: var(--text); font-weight: 600; }
}
@media (max-width: 520px) {
  .logo-text span { display: none; }
  .sprache span { display: none; }
  .sprache { padding: 0 10px; }
  .vz { max-width: 100%; }
  .vorzurueck { flex-direction: column; }
  .vz-nach { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
