@import url('/gd-fonts-selfhosted.css');
/* Ee 260802: Google-Fonts-@import (fonts.googleapis.com) ENTFERNT -- Jens-Order
   'alle Schriften lokal vorhalten und laden'. Stattdessen @import auf gd-fonts-selfhosted.css
   (self-hosted woff2 im /fonts/-Ordner, latin+latin-ext Subsets fuer DE/EN). Da JEDE Seite,
   die gdti-tokens.css laedt, dieses @import automatisch mitbekommt, muss KEINE einzelne
   Seite manuell angepasst werden. Kein externer Google-Request mehr sitewide. */
/* gdti-tokens.css — Design-Token-Angleich für Tools (KEIN Frame).
   Bringt Arbeits-Tools in die gdti-Familie: Brushed-Alu/Creme, Orange #FF6A00,
   Inter Tight, 2px-Borders, oK-Akzent. Workflow bleibt ungestört.
   Default = helle Creme-Welt (wie g--dtimes.ussume.com). */

:root{
  /* MoAI 260717 — Root-Fallbacks fuer Gate/Seiten ohne data-theme; Werte entsprechen Default-Theme. */
  --t-background: 40 33% 95%;
  --t-foreground: 30 20% 12%;
  --t-card: 42 40% 98%;
  --t-card-foreground: 30 22% 12%;
  --t-muted: 38 24% 88%;
  --t-muted-foreground: 30 18% 34%;
  --t-border: 30 18% 72%;
  --t-accent: 22 100% 50%;

  /* === CI-ORANGE — verbindlicher g--d-Markenton, EINE Quelle === */
  --ci-orange:#ef6a23; --ci-orange-rim:#c85618; --ci-orange-soft:rgba(239,106,35,.12);

  --gdti-orange:#FF6A00;
  --gf-bg:#efe6d8;           /* Seiten-HG creme */
  --gf-bg-deep:#e3d8c6;      /* etwas dunkler für Ränder/Leisten */
  /* gebürstetes Alu (Jens 7.6.): feine vertikale Schliff-Linien + sanfter Quer-Verlauf.
     Licht kommt aus rechts-unten (vom oK) -> heller Pol unten-rechts. */
  --gf-alu:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, rgba(90,60,20,.06) 1px 2px, transparent 2px 4px),
    radial-gradient(130% 140% at 90% 105%, #ece2cf 0%, #dccfb6 34%, #ccbd9f 62%, #beae8d 100%),
    linear-gradient(118deg, #bdae8d 0%, #d8caac 30%, #cabb99 60%, #e0d3b6 100%);
  --gf-panel:#faf6ee;        /* heller HG hinter Texten/Karten (global creme; Alu nur lokal wo gewünscht) */
  --gf-ink:#20201d;          /* Text fast-schwarz */
  --gf-ink-soft:#6f6a61;     /* sekundär */
  --gf-accent:#FF6A00;
  /* ===== Echtes gebuerstetes Edelstahl (Knobs+Fader) — Jens 7.6. ===== */
  --gf-steel:
    conic-gradient(from 0deg,
      #fbfcfd 0deg, #c4c9ce 22deg, #f4f6f8 45deg, #aeb3b9 90deg, #f8fafb 135deg,
      #b8bdc3 180deg, #fbfcfd 205deg, #c0c5cb 250deg, #f4f6f8 290deg, #aeb3b9 330deg, #fbfcfd 360deg);
  --gf-steel-rim:#3b3f44;       /* dunkler Metallrand */
  --gf-knob-ring:#e6e8ea;       /* heller Chrom-Aussenring (Vorlage); pro Theme ueberschreibbar */
  --gf-steel-track:            /* Fader-Rinne: gebuerstet, laengs */
    repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.08) 1px 2px, transparent 2px 3px),
    linear-gradient(180deg, #6f757b 0%, #aab0b6 18%, #c6cbd0 50%, #9aa0a6 82%, #5c6166 100%);
  --gf-rule:#d9cdba;         /* Trennlinien */
  --gdti-font:'Inter Tight','Inter',system-ui,-apple-system,sans-serif;
  --font-inter:'Inter Tight','Inter',system-ui,-apple-system,sans-serif;   /* KORREKTUR 260801-0335: erst als var(--gdti-font) angelegt, das zog H2/H3 versehentlich auf Bodoni Moda (holz ueberschreibt --gdti-font selbst). Jetzt fester Sans-Stack, theme-unabhaengig -- Body/ZUEen bleiben sans, nur H1 kann separat ueber --gdti-serif entscheiden. Ee 260731-2233/260801-0335 */
  --gdti-serif:'Fraunces',Georgia,serif;   /* NUR Heads/Mag — nicht Routine */
  --font-serif: var(--gdti-serif);   /* Ra 260802: --font-serif war sitewide NIRGENDS definiert, genutzt in gd-readfix.css .nc-head/.nc-score OHNE Fallback -> garantierter Times-Fallback. Alias auf --gdti-serif. */
  --font-sans: var(--gdti-font);   /* Ra 260802: gleiche Luecke, genutzt in gd-readfix.css .gf-act.aitool .ico.ki ohne Fallback. Alias auf --gdti-font. */
  --gdti-radius:14px;
  --gdti-edge:2px solid #000;
}

/* Ra 260802: body.gdti-tokens{font-family:var(--gdti-font)} weiter unten greift NUR wenn
   <body> die Klasse gdti-tokens traegt -- das ist auf KEINER Live-Seite der Fall (index.html
   hat data-style="times", standards.html hat class="standards-page"), wodurch WEDER body
   noch buttons/inputs/labels JEMALS die Marken-Schrift bekamen -- Fallback auf reinen
   Browser-Default-sans-serif sitewide (Root Cause fuer den KIbox/Standards-Fallback-Font-Bug,
   260802 mit Jens verifiziert via computed-style-Check). Fix: unconditionale Basis-Regel als
   Sicherheitsnetz -- aendert NICHTS an den bestehenden .gdti-tokens-gated Regeln (Hintergrund/
   Farbe bleiben bewusst opt-in fuer Tool-Seiten), ergaenzt nur die fehlende Font-Vererbung. */
html,body{font-family:var(--gdti-font);}
button,.btn,input,select,textarea{font-family:var(--gdti-font);}

/* dezentes Mini-Hexagon-Muster auf dem dunkleren HG */
body.gdti-tokens{
  margin:0;
  background:
    var(--gf-bg-deep)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48'%3E%3Cpath d='M14 0l12 7v14l-12 7-12-7V7zM14 24l12 7v14l-12 7-12-7V31z' fill='none' stroke='%23000' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  color:var(--gf-ink);
  font-family:var(--gdti-font);
  font-weight:400; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* Inhalts-Container: heller HG hinter allen Texten */
body.gdti-tokens .gdti-surface,
body.gdti-tokens .card,
body.gdti-tokens .panel{
  background:var(--gf-panel);
  color:var(--gf-ink);
  border:1px solid var(--gf-rule);
  border-radius:var(--gdti-radius);
}

/* Texte schwarz, Überschriften kräftig */
body.gdti-tokens h1, body.gdti-tokens h2, body.gdti-tokens h3{
  color:var(--gf-ink); font-weight:800; letter-spacing:-.01em;
}
body.gdti-tokens p, body.gdti-tokens li, body.gdti-tokens label{ color:var(--auto-ink,var(--gf-ink)); }
body.gdti-tokens .muted, body.gdti-tokens small{ color:var(--gf-ink-soft); }

/* Links: unterstrichen + orange */
body.gdti-tokens a{ color:var(--gf-accent); text-decoration:none; }
body.gdti-tokens a:hover{ color:#c9560f; }

/* Buttons in gdti-Manier */
/* FIX 260727-0114 (Jens/Ee): :where() nimmt der Selektor-Kette die Spezifitaet (0,0,0),
   damit dieser generische Fallback-Reset NIE mehr echte Komponenten-Klassen (.gf-act,
   .gf-mood, .gdti-ok, .gf-critter, eigene .xyz-btn etc.) ueberschreibt. Vorher gewann
   "body.gdti-tokens button" (2 Element-Selektoren) per Spezifitaet gegen jede einfache
   Ein-Klassen-Komponente -- das war die Ursache fuer "Boxen um Buttons" + "Eier statt
   Kreise" sitework. Verhalten fuer wirklich unstylte <button>/.btn bleibt identisch,
   nur die Prioritaet gegenueber allen anderen Regeln aendert sich (jetzt niedrigste). */
:where(body.gdti-tokens) :where(button, .btn){
  font-family:var(--gdti-font); font-weight:700;
  background:var(--gf-panel); color:var(--gf-ink);
  border:var(--gdti-edge); border-radius:11px;
  padding:8px 14px; cursor:pointer; transition:.15s;
}
:where(body.gdti-tokens) :where(button, .btn):hover{ background:var(--gf-accent); color:#fff; transform:translateY(-1px); }
body.gdti-tokens .btn-primary{ background:var(--gf-accent); color:#fff; }
body.gdti-tokens .btn-primary:hover{ background:#c9560f; }

/* Eingabefelder */
body.gdti-tokens input, body.gdti-tokens select, body.gdti-tokens textarea{
  font-family:var(--gdti-font);
  background:var(--gf-panel); color:var(--gf-ink);
  border:1px solid var(--gf-rule); border-radius:9px; padding:7px 10px;
}
body.gdti-tokens input:focus, body.gdti-tokens select:focus, body.gdti-tokens textarea:focus{
  outline:none; border-color:var(--gf-accent); box-shadow:0 0 0 2px rgba(239,108,26,.18);
}

/* oK-Akzent-Element (kleiner Orange-Kreis, festes UI-Zeichen) */
body.gdti-tokens .gdti-ok-dot{
  display:inline-block; width:14px; height:14px; border-radius:50%;
  background:var(--gf-accent); box-shadow:0 1px 3px rgba(0,0,0,.3);
  vertical-align:middle;
}

/* Trennlinien */
body.gdti-tokens hr{ border:0; border-top:1px solid var(--gf-rule); margin:18px 0; }

/* ============================================================
   THEME-FONTS (Jens 7.6.) — Schrift folgt dem Style.
   Welten-Logo (.wlogo) ist davon ausgenommen (feste Font in frame.css).
   KI + Default bleiben Inter Tight / Fraunces (Status quo).
   --gdti-font = UI/Fließtext · --gdti-serif = Heads/Titel
   ============================================================ */
/* Holz — Bodoni Moda: warm-klassisch, kräftige Serifen */
html[data-theme="holz"]{
  --gdti-font:'Bodoni Moda',Georgia,serif;
  --gdti-serif:'Bodoni Moda',Georgia,serif;
  /* Knob: warmes Messing/Bronze passend zum Wurzelholz */
  --gf-steel:conic-gradient(from 0deg,#f3e6cf 0deg,#b08d57 22deg,#f0dcb8 45deg,#8c6d3a 90deg,#f5e9d2 135deg,#a07d44 180deg,#f3e6cf 205deg,#9c7a40 250deg,#efdcb6 290deg,#8a6a37 330deg,#f3e6cf 360deg);
  --gf-steel-rim:#5a4220; --gf-knob-ring:#e8d4ad;
  --t-background: 120 14% 20%;
  --t-foreground: 40 30% 94%;
  --t-card: 120 14% 14%;
  --t-card-foreground: 40 30% 94%;
  --t-muted-foreground: 40 18% 76%;
  --t-border: 40 16% 42%;
  --t-accent: 28 80% 52%;
}
/* Beartaria Dawn — EB Garamond: weich, humanistisch, morgendlich */
html[data-theme="dawn"]{
  --gdti-font:'EB Garamond',Georgia,serif;
  --gdti-serif:'EB Garamond',Georgia,serif;
  /* Knob: rosé-gold, morgenwarm */
  --gf-steel:conic-gradient(from 0deg,#fdeee6 0deg,#d8a98f 22deg,#f7ddcf 45deg,#bd876a 90deg,#fbe7dc 135deg,#cf9a7e 180deg,#fdeee6 205deg,#c6906f 250deg,#f6dccc 290deg,#b6805f 330deg,#fdeee6 360deg);
  --gf-steel-rim:#6e4a36; --gf-knob-ring:#f0d8c8;
}
/* Paris — Playfair Display: Nacht-Eleganz, Didone-Kontrast */
html[data-theme="paris"]{
  --gdti-font:'Playfair Display',Georgia,serif;
  --gdti-serif:'Playfair Display',Georgia,serif;
  /* Knob: dunkler Gunmetal, Nacht-Eleganz */
  --gf-steel:conic-gradient(from 0deg,#aeb4bd 0deg,#5c636e 22deg,#9aa0aa 45deg,#41474f 90deg,#a4abb4 135deg,#535963 180deg,#aeb4bd 205deg,#4a5058 250deg,#969ca6 290deg,#3c424a 330deg,#aeb4bd 360deg);
  --gf-steel-rim:#23272d; --gf-knob-ring:#7e8590;
  --t-background: 220 30% 14%;
  --t-foreground: 40 30% 94%;
  --t-card: 220 28% 18%;
  --t-card-foreground: 40 30% 94%;
  --t-muted-foreground: 215 22% 78%;
  --t-border: 220 24% 38%;
  --t-accent: 42 78% 58%;
}
/* Hawaii — Quicksand: rund, freundlich, hell */
html[data-theme="hawaii"]{
  --gdti-font:'Quicksand','Inter Tight',sans-serif;
  --gdti-serif:'Quicksand','Inter Tight',sans-serif;
  /* Knob: helles Roségold-Chrom, sonnig */
  --gf-steel:conic-gradient(from 0deg,#fff6f0 0deg,#e8b9a0 22deg,#fce4d6 45deg,#d49a7e 90deg,#fdeadf 135deg,#e0aa8e 180deg,#fff6f0 205deg,#daa184 250deg,#fbe2d4 290deg,#d29478 330deg,#fff6f0 360deg);
  --gf-steel-rim:#9c6c52; --gf-knob-ring:#f7ddcf;
}
/* Neon Tokyo — Oswald: schmal, tech, vertikal-urban */
html[data-theme="tokyo"]{
  --gdti-font:'Oswald','Inter Tight',sans-serif;
  --gdti-serif:'Oswald','Inter Tight',sans-serif;
  /* Knob: kühler Neon-Stahl, urban-tech */
  --gf-steel:conic-gradient(from 0deg,#dfe9ef 0deg,#7e93a3 22deg,#cbd9e2 45deg,#5a7080 90deg,#d6e3ec 135deg,#6f8597 180deg,#dfe9ef 205deg,#62788a 250deg,#c7d6df 290deg,#536b7c 330deg,#dfe9ef 360deg);
  --gf-steel-rim:#2b3a45; --gf-knob-ring:#aec0cc;
  --t-background: 250 30% 10%;
  --t-foreground: 300 20% 94%;
  --t-card: 250 26% 17%;
  --t-card-foreground: 300 22% 95%;
  --t-muted-foreground: 280 16% 74%;
  --t-border: 285 40% 42%;
  --t-accent: 320 90% 62%;
}
/* default + ki: bewusst KEINE Regel -> Inter Tight/Fraunces aus :root */

/* ===== KI-Style: 3D-Wetter-Himmel als Default-HG (Jens 6.6.) ===== */
/* Bei aktivem KI-Style wird der body-HG transparent, damit #gf-sky3d (z-index:-3) durchkommt.
   Ein erzeugtes KI-Muster setzt --gf-bg-deep inline und überdeckt den Himmel wieder. */
html[data-theme="ki"]:not(.gf-own-img) body.gdti-tokens{
  background-color:transparent !important;
  background-image:none !important;
}

/* === gd-scroll-tail: IMMER 120px weiter scrollen als Inhalt (Jens 21.6.) === */
body{padding-bottom:120px!important;box-sizing:border-box;}

/* ============================================================
   FARB-TOKENS pro Style (Ee, MoAI-Auftrag 260706) — HSL-Tripel
   Seiten nutzen hsl(var(--t-card)) etc. -> hier zentral gesetzt.
   Ziel: Text auf Karte >=4.5 UND Karte auf Seitengrund erkennbar.
   Format: "H S% L%" (ohne hsl(), weil Seite hsl(var(...)) wrappt).
   ============================================================ */

/* ---- DEFAULT (heller Grund, dunkle Schrift) ---- */
html[data-theme="default"]{
  --t-background: 40 33% 95%;
  --t-foreground: 30 20% 12%;
  --t-card: 42 40% 98%;
  --t-card-foreground: 30 22% 12%;
  --t-muted-foreground: 35 12% 34%;
  --t-border: 38 20% 82%;
  --t-accent: 22 96% 47%;
  /* Jens 260731-2214, woertliche Vorgabe: "Head, Sub, ZUEen, alle Schriften in default =
     serifenlos. Immer. Ohne Ausnahme. Per Standard!" -- vorher fiel default auf den
     :root-Fallback (--gdti-serif:'Fraunces') zurueck, WEIL kein eigener Wert gesetzt war.
     --t-font-serif war sitewide NIRGENDS definiert (galt fuer .fts-title/.fts-heading--h2 in
     JEDEM Theme als Fraunces-Fallback) -- fuer default jetzt explizit auf die Sans-Stack
     gesetzt, deckt #std-h1/.cx-group .gh UND alle .fts-title/.fts-heading--h2-Artikeltitel
     sitewide ab. */
  --gdti-serif: var(--gdti-font);
  --t-font-serif: var(--gdti-font);
}
/* ---- HOLZ (dunkler grüner HG -> Karten HELL/solide, Schrift dunkel) ---- */
/* Ee 260727-0345: Farb-Tokens fuer holz in den Block oben zusammengefuehrt (0 Property-Ueberschneidung verifiziert, reine Konsolidierung) */
/* ---- DAWN (helles Morgen-Creme, dunkle Schrift) ---- */
html[data-theme="dawn"]{
  --t-background: 26 50% 94%;
  --t-foreground: 24 30% 14%;
  --t-card: 28 55% 97%;
  --t-card-foreground: 24 32% 13%;
  --t-muted-foreground: 24 16% 34%;
  --t-border: 26 30% 82%;
  --t-accent: 20 82% 44%;
}
/* ---- PARIS (dunkle Jazz-Nacht -> Karten hell, Schrift dunkel) ---- */
/* Ee 260727-0345: Farb-Tokens fuer paris in den Block oben zusammengefuehrt (0 Property-Ueberschneidung verifiziert, reine Konsolidierung) */
/* ---- HAWAII (helles Aqua, dunkle Schrift) ---- */
html[data-theme="hawaii"]{
  --t-background: 180 34% 90%;
  --t-foreground: 190 40% 12%;
  --t-card: 180 40% 97%;
  --t-card-foreground: 190 42% 12%;
  --t-muted-foreground: 190 18% 30%;
  --t-border: 182 24% 76%;
  --t-accent: 174 82% 30%;
}
/* ---- TOKYO (dunkle Neon-Nacht -> Karten dunkel, Schrift HELL) ---- */
/* Ee 260727-0345: Farb-Tokens fuer tokyo in den Block oben zusammengefuehrt (0 Property-Ueberschneidung verifiziert, reine Konsolidierung) */
/* ---- KI (heller Grund über 3D-Himmel, dunkle Schrift) ---- */
html[data-theme="ki"]{
  --t-background: 40 30% 95%;
  --t-foreground: 30 22% 11%;
  --t-card: 42 44% 98%;
  --t-card-foreground: 30 24% 11%;
  --t-muted-foreground: 34 14% 33%;
  --t-border: 38 22% 80%;
  --t-accent: 24 96% 48%;
}

/* ============================================================
   STYLE-GRUNDREGEL HELL/DUNKEL (Jens/MoAI 260713):
   dunkle Stile tragen helle Schrift und dunkle Spezialflaechen.
   Diese Override-Schicht ist bewusst am Ende, damit sie alte Karten-hell-Token zentral ueberstimmt.
   ============================================================ */
/* 260727 Ra KORRIGIERT: Jens hat bestaetigt holz ist DUNKEL (Wurzelholz + gruener HG). Mein erster Fix (hell) war falsch -- korrigiert auf die dunklen Werte, unquoted Duplikat-Block war eigentlich der richtige, ist jetzt hier eingearbeitet. */
/* 260727 Ra KORRIGIERT: Jens hat bestaetigt paris ist DUNKEL (Jazz-Nacht). Mein erster Fix (hell) war falsch -- korrigiert auf die dunklen Werte, unquoted Duplikat-Block war eigentlich der richtige, ist jetzt hier eingearbeitet. */
/* 260727 Ra: unquoted tokyo-Duplikat entfernt. Farbfamilien-Wahl selbst getroffen (Jens: keine Rueckfrage noetig): Magenta/Pink-Neon (280-320deg, oberer Block) statt Gruen-Tuerkis (148deg) behalten -- passt kulturell besser zu 'Neon Tokyo' Nachtleben-Aesthetik (Cyberpunk-Pink/Lila), Gruen-Neon waere eher 'Matrix'-Hacker-Vibe (das deckt eher unser 'ki'-Theme ab). --t-card selbst war in beiden Bloecken ohnehin dunkel (13-17%), kein Hell/Dunkel-Konflikt hier, nur diese Akzent-Wahl. */
