/* ==========================================================================
   Token Usage Hilfeseiten, gemeinsames Stylesheet (27.10.2026)
   Quelle: 02 Projekte/langeatn.de/hilfe-site/docs.css
   Hilfeseiten-bauen.js kopiert die Datei nach media/token-usage/docs.css und haengt
   einen Fingerabdruck an den Link (?v=...), damit Browser nach einer Aenderung neu laden.
   Kopf und Fusszeile kommen aus kopf.css (nav.js), nicht von hier.
   Teil 1 allgemein (Schriften, Farben, Grund, Typografie), Teil 2 Hilfe (Layout,
   Inhaltsverzeichnis, Tabellen, Boxen, Suche), Teil 3 Handy und Druck.
   ========================================================================== */

/* ---------- Teil 1: allgemein ---------- */

/* Schriften selbst gehostet (DSGVO, kein Google CDN) */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/CG-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/CG-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 700;font-display:swap;src:url('/fonts/CG-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 700;font-display:swap;src:url('/fonts/CG-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url('/fonts/Inter-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url('/fonts/Inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Farben wie Blog und Startseite */
:root{
  --ink:#F2EFE8;--soft:#b3bccb;--muted:#8494a6;
  --line:rgba(242,239,232,0.13);
  --bg:#0a1628;--bg-deep:#081120;--card:#0f1e33;
  --accent:#C9A227;--accent-bright:#E8C457;--teal:#2DD4BF;--warn:#E07A5F;
  --ease:cubic-bezier(.22,1,.36,1);
  --head:76px;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;background:var(--bg-deep);color-scheme:dark;}
body{background:var(--bg);color:var(--ink);font-family:'Inter',sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;line-height:1.75;overflow-x:hidden;}

/* Koernung und Lichtflecken im Hintergrund */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:1;opacity:.028;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");}
.bg-aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.blob{position:absolute;border-radius:50%;filter:blur(110px);will-change:transform,opacity;}
.b1{width:62vw;height:62vw;max-width:900px;max-height:900px;top:-22vw;right:-18vw;background:radial-gradient(circle,rgba(45,212,191,.13),transparent 65%);animation:breathe1 19s ease-in-out infinite;}
.b2{width:55vw;height:55vw;max-width:820px;max-height:820px;bottom:-20vw;left:-16vw;background:radial-gradient(circle,rgba(201,162,39,.10),transparent 65%);animation:breathe2 26s ease-in-out infinite;}
.b3{width:48vw;height:48vw;max-width:720px;max-height:720px;top:38%;left:32%;background:radial-gradient(circle,rgba(37,99,235,.06),transparent 65%);animation:breathe3 33s ease-in-out infinite;}
@keyframes breathe1{0%,100%{transform:translate(0,0) scale(1);opacity:.55}50%{transform:translate(-6vw,5vh) scale(1.18);opacity:.85}}
@keyframes breathe2{0%,100%{transform:translate(0,0) scale(1);opacity:.5}50%{transform:translate(5vw,-6vh) scale(1.22);opacity:.8}}
@keyframes breathe3{0%,100%{transform:translate(-50%,-50%) scale(.9);opacity:.3}50%{transform:translate(-44%,-56%) scale(1.15);opacity:.5}}

/* Lesefortschritt */
#progress{position:fixed;top:0;left:0;height:2px;width:0;z-index:1000;background:linear-gradient(90deg,var(--accent),var(--accent-bright));box-shadow:0 0 12px rgba(201,162,39,.6);}

main{position:relative;z-index:2;}

/* Kopf des Dokuments */
.doc-kicker{font-size:.72rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);margin-bottom:20px;display:flex;align-items:center;gap:12px;}
.doc-kicker::before{content:"";width:28px;height:1px;background:var(--accent);flex:none;}
/* TU-Monogramm statt Goldlinie (30.10.2026, Logo aus nav.js, Aussehen in kopf.css) */
.doc-kicker.tu-kicker::before{display:none;}
h1.doc-title{font-family:'Cormorant Garamond',serif;font-weight:700;color:var(--ink);font-size:clamp(2.4rem,5vw,3.8rem);line-height:1.06;letter-spacing:-.025em;margin-bottom:22px;}
.doc-intro{font-size:1.06rem;color:var(--soft);max-width:660px;line-height:1.78;margin-bottom:44px;padding-bottom:40px;border-bottom:1px solid var(--line);}
.doc-intro code{font-size:.88em;background:var(--card);padding:2px 8px;border-radius:5px;color:var(--teal);font-family:'Inter',monospace;}

/* Fliesstext */
.prose h2{font-family:'Cormorant Garamond',serif;font-weight:600;color:var(--ink);font-size:2rem;line-height:1.15;margin:64px 0 18px;letter-spacing:-.02em;scroll-margin-top:calc(var(--head) + 24px);}
.prose h2:first-child{margin-top:8px;}
.prose h3{font-family:'Inter',sans-serif;font-weight:600;color:var(--ink);font-size:1.08rem;line-height:1.4;letter-spacing:.005em;margin:36px 0 12px;scroll-margin-top:calc(var(--head) + 24px);}
.prose p{font-size:1.05rem;color:#e7e4dc;margin-bottom:24px;line-height:1.78;}
.prose strong{font-weight:600;color:var(--ink);}
.prose em{font-style:italic;color:var(--soft);}
.prose code{font-size:.88em;background:var(--card);padding:2px 8px;border-radius:5px;color:var(--teal);}
.prose blockquote{font-family:'Cormorant Garamond',serif;font-style:italic;font-weight:500;font-size:1.5rem;line-height:1.4;color:var(--ink);border-left:3px solid var(--accent);padding:6px 0 6px 24px;margin:36px 0;}
.prose blockquote p{font-size:1.5rem;color:var(--ink);margin:0;}
.prose ul,.prose ol{margin:0 0 26px 22px;}
.prose li{font-size:1rem;color:var(--soft);margin-bottom:9px;line-height:1.65;}
.prose a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(201,162,39,.35);}
.prose a:hover{border-bottom-color:var(--accent);}
.prose a:focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px;border-radius:2px;}
/* Letzter Abschnitt (Ueber dieses Plugin): klein, gedaempft, als Etikett */
.prose h2.meta-h{font-size:1rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-family:'Inter',sans-serif;font-weight:600;margin-top:72px;}

/* Anker an jeder Abschnittsueberschrift */
.prose .h-anchor{margin-left:.35em;font-family:'Inter',sans-serif;font-size:.55em;font-weight:500;vertical-align:.18em;color:var(--accent);border:0;opacity:0;transition:opacity .2s;}
.prose h2:hover .h-anchor,.prose .h-anchor:focus-visible{opacity:.85;}
@media(hover:none){.prose .h-anchor{opacity:.4;}}

/* Code */
.prose pre{background:var(--card);border:1px solid rgba(242,239,232,0.08);border-radius:8px;padding:14px 16px;overflow-x:auto;white-space:pre;margin:14px 0 22px;}
.prose pre code{display:block;background:none;padding:0;border-radius:0;font-size:.86rem;line-height:1.65;white-space:pre;color:var(--teal);font-family:Consolas,Menlo,"DejaVu Sans Mono",monospace;}

/* ---------- Teil 2: Hilfe ---------- */

/* Layout: schmale Spalte, ab 1180 px Inhaltsverzeichnis links daneben */
.docs-wrap{max-width:820px;margin:0 auto;padding:72px 40px 90px;display:grid;grid-template-columns:minmax(0,1fr);}
@media(min-width:1180px){
  .docs-wrap{max-width:1200px;grid-template-columns:236px minmax(0,740px);column-gap:72px;justify-content:center;}
  .docs-wrap>.toc{grid-column:1;grid-row:1/span 4;}
  .docs-wrap>:not(.toc){grid-column:2;}
}

/* Inhaltsverzeichnis: auf breiten Schirmen feste Leiste mit Markierung des aktuellen Abschnitts,
   darunter eine aufklappbare Box nach der Suche */
.toc{margin:0 0 44px;font-size:.86rem;line-height:1.45;}
.toc details{background:var(--card);border:1px solid var(--line);border-radius:12px;}
.toc summary{cursor:pointer;padding:13px 18px;font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--soft);list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.toc summary::-webkit-details-marker{display:none;}
.toc summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .25s var(--ease);}
.toc details[open] summary::after{transform:rotate(-135deg) translateY(-2px);}
.toc summary:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px;border-radius:10px;}
.toc ol{list-style:none;margin:0;padding:4px 18px 16px;}
.toc li{margin:0;}
.toc a{display:block;padding:6px 0 6px 14px;border-left:2px solid var(--line);color:var(--muted);text-decoration:none;transition:color .2s,border-color .2s;}
.toc a:hover{color:var(--ink);}
.toc a.active{color:var(--accent-bright);border-left-color:var(--accent);}
.toc a:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px;border-radius:2px;}
@media(min-width:1180px){
  .toc{margin:0;align-self:start;position:sticky;top:calc(var(--head) + 28px);max-height:calc(100vh - var(--head) - 56px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(242,239,232,.18) transparent;padding-right:6px;}
  .toc details{background:none;border:0;border-radius:0;}
  .toc summary{cursor:default;pointer-events:none;padding:2px 0 14px;color:var(--muted);}
  .toc summary::after{display:none;}
  .toc ol{padding:0;}
  .toc a{padding:5px 0 5px 14px;font-size:.84rem;}
}

/* Hinweisboxen: Hinweis (Gold) und Achtung (warn) */
.box{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;padding:20px 24px;margin:28px 0;}
.box.warn{border-left-color:var(--warn);}
.box p{margin-bottom:12px;color:var(--soft);}
.box p:last-child{margin-bottom:0;}
.box p strong{color:var(--ink);}

/* Tabellen: lesbar, auf dem Handy waagerecht scrollbar statt gequetscht */
.table-wrap{margin:24px 0 30px;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.dt{width:100%;border-collapse:collapse;font-size:.95rem;}
.dt th{text-align:left;padding:10px 16px;font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line);vertical-align:bottom;}
.dt td{padding:12px 16px;color:var(--soft);border-bottom:1px solid rgba(242,239,232,0.06);vertical-align:top;line-height:1.6;}
.dt td:first-child{color:var(--ink);font-weight:500;}
.dt tr:last-child td{border-bottom:none;}

/* Farben aus dem Plugin */
.c-write{color:#199E70;font-weight:600;}
.c-read{color:#9085E9;font-weight:600;}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;vertical-align:middle;flex-shrink:0;}
/* Modellfarben wie im Plugin seit 2.0 (main.js, MODEL_COLORS), Punkt und Textfarbe */
.d-haiku{background:#0D9488;}.d-sonnet{background:#4A90E2;}.d-opus{background:#EC4899;}.d-fable{background:#A855F7;}.d-other{background:#6B7280;}
.dt td.m-haiku{color:#14B8A6;}.dt td.m-sonnet{color:#6AA6EC;}.dt td.m-opus{color:#F472B6;}.dt td.m-fable{color:#C084FC;}.dt td.m-other{color:#9CA3AF;}

/* Bilder der Oberflaeche */
.shot{margin:30px 0 34px;}
.shot img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:var(--card);}
.shot figcaption{margin-top:10px;font-size:.84rem;line-height:1.55;color:var(--muted);font-style:italic;}

/* Ende der Seite */
.back-section{margin-top:64px;padding-top:34px;border-top:1px solid var(--line);}
.back-link{display:inline-block;font-family:'Inter',sans-serif;font-size:.95rem;font-weight:600;color:var(--accent);text-decoration:none;border:1px solid rgba(201,162,39,.45);border-radius:100px;padding:12px 26px;transition:background .15s,color .15s;}
.back-link:hover{background:var(--accent);color:var(--bg-deep);}
.prose .source-note{margin-top:36px;font-size:.84rem;line-height:1.6;color:var(--muted);font-style:italic;}
.prose .source-note a{color:var(--muted);border-bottom:1px solid rgba(132,148,166,.3);}
.prose .source-note a:hover{color:var(--accent);}

/* Nach oben */
.to-top{position:fixed;right:24px;bottom:24px;z-index:800;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(8,17,32,.88);border:1px solid rgba(201,162,39,.5);color:var(--accent-bright);text-decoration:none;box-shadow:0 10px 26px -10px rgba(0,0,0,.7);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .3s,transform .3s var(--ease),visibility 0s .3s;}
.to-top.show{opacity:1;visibility:visible;transform:none;transition:opacity .3s,transform .3s var(--ease);}
.to-top:hover{background:var(--accent);color:var(--bg-deep);}
.to-top:focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px;}

/* Volltextsuche (Pagefind) im CI-Look */
.pf-search{
  --pagefind-ui-primary:#C9A227;
  --pagefind-ui-text:#F2EFE8;
  --pagefind-ui-background:#0f1e33;
  --pagefind-ui-border:rgba(242,239,232,0.13);
  --pagefind-ui-tag:#0a1628;
  --pagefind-ui-border-width:1px;
  --pagefind-ui-border-radius:12px;
  --pagefind-ui-font:'Inter',sans-serif;
  --pagefind-ui-scale:1.04;
  margin:0 0 28px;
}
.pf-search .pagefind-ui__search-input{height:34px;padding:0 36px 0 30px;font-size:15px;}
.pf-search .pagefind-ui__form:before{width:14px;height:14px;top:10px;left:10px;}
.pf-search .pagefind-ui__search-clear{height:28px;top:3px;right:3px;padding:0 10px 0 2px;font-size:12px;}
.pf-search .pagefind-ui__result-title{font-family:'Cormorant Garamond',serif;font-weight:600;letter-spacing:-0.2px;}
.pf-search .pagefind-ui__result-link{color:var(--ink);}
.pf-search .pagefind-ui__result-link:hover{color:var(--accent);}
.pf-search .pagefind-ui__result-excerpt{color:var(--soft);}
.pf-search mark{background:rgba(201,162,39,0.22);color:var(--ink);border-radius:2px;}
.pf-search .pagefind-ui__search-input::placeholder{color:var(--soft) !important;}
.pf-search input::placeholder{color:var(--soft) !important;}

/* ---------- Teil 3: Handy, Bewegung, Druck ---------- */

@media(max-width:680px){
  .docs-wrap{padding:52px 22px 60px;}
  .doc-kicker{display:none;}
  .prose h2{font-size:1.75rem;margin-top:52px;}
  .table-wrap{margin-left:-22px;margin-right:-22px;padding:0 22px;}
  .dt-wide{min-width:560px;}
  .dt th,.dt td{padding-left:10px;padding-right:10px;}
  .to-top{right:16px;bottom:16px;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

@media print{
  @page{margin:18mm 16mm;}
  html,body{background:#fff!important;color:#111!important;}
  body::before,.bg-aurora,#progress,.toc,.pf-search,.to-top,.back-section,.h-anchor,.kopf-fuss{display:none!important;}
  .docs-wrap{display:block;max-width:none;padding:0;}
  h1.doc-title,.prose h2,.prose h3,.prose strong,.dt td:first-child,.box p strong{color:#000!important;}
  .doc-intro,.prose p,.prose li,.prose em,.dt td,.box p,.source-note{color:#222!important;}
  .doc-kicker{display:block;color:#555!important;}
  .doc-kicker::before{display:none;}
  .prose h2.meta-h,.dt th{color:#444!important;}
  .box,.prose pre,.prose code{background:#f3f3f3!important;border-color:#ccc!important;}
  .prose pre code,.prose code{color:#000!important;}
  .prose a{color:#000!important;border-bottom:1px solid #999!important;}
  .dt th,.dt td{border-color:#ccc!important;}
  .table-wrap{overflow:visible;}
  .prose h2,.prose h3{break-after:avoid;}
  .dt tr,.box,.prose pre,.shot{break-inside:avoid;}
}
