/* Torlema – gemeinsame Basis aller Seiten: Schriften, Tokens, Kopf, Knöpfe,
   Typografie, Fuß, Bewegungsreduktion. Die Startseite lädt zusätzlich
   immersiv.css, die Unterseiten seiten.css. Werte aus dem Designsystem. */

/* ===== Schriften: selbst ausgeliefert ===== */
/* Beide Familien sind variable Schriften: eine Datei trägt alle Schnitte (die Dateien
   manrope-400/500/600/700 sind byte-gleich, ebenso sora-300 bis sora-700). Zwei Angaben
   mit Gewichtsbereich statt sieben – spart beim ersten Besuch rund 150 KB. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url('/assets/fonts/manrope-400-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:'Sora';font-style:normal;font-weight:100 800;font-display:swap;src:url('/assets/fonts/sora-400-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;}

/* ===== Tokens ===== */
:root {
  --tiefe: #050B16;
  --grund: #0A1424;
  --fussgrund: #040911;
  --blau: #2F6AFF; /* seit 2026-10-18 (ENT-191 F12): Weiß auf Blau 4,54:1 statt 4,499:1 */
  --blau-aus: #1E3E7F;
  --cyan: #49DCEA;
  --himmel: #7FA9FF;
  --sand: #E6CDAF;
  --text: #F4F8FF;
  --text-2: #B6C6DF;
  --ruhig: #93A7C4;
  --label: var(--ruhig);
  --linie: rgba(127,169,255,.12);
  --rahmen: rgba(127,169,255,.18);
  --rand: clamp(20px, 5vw, 72px); /* Canon page-x: Höchstwert 72 px (vorher 100 px, wirkte nur über 1440 px Breite) */
  /* Radien nach Brand-System §38: 2 / 10 / 18 / 24 / voll. Nur diese Stufen verwenden;
     Kreise (50 %) und 1-px-Linienenden sind Formen, keine Radien. */
  --r-node: 2px; --r-sm: 10px; --r-md: 18px; --r-lg: 24px; --r-voll: 999px;
  /* Status (Brand §37, nur für Oberfläche): Hinweis zu Eingaben im Formular */
  --status-faellig: #F5B95C;
  /* Helle Fläche (Kapitel „Vertrauen“ und die Kopfzeile darüber). Standard sind die bisherigen
     V5-Werte. Die helle Marken-Fassung (Brand-System §37, B-6, VORSCHLAG) steht unten unter
     .hell-brand und ist nur mit ?hell=brand sichtbar. */
  --hell-grund-rgb: 238 242 248;
  --hell-karte: #fff;
  --hell-text: #0A1424; --hell-text-2: #3E4E68; --hell-ruhig: #5D6F8C;
  --hell-linie: rgba(10,20,36,.12); --hell-rahmen: rgba(10,20,36,.16);
  --hell-blau: #1E4FCC; --hell-blau-2: #0F3AA8; --sand-hell: #80602F; /* V6: dunkler für Kontrast 5,1:1 auf Hell (vorher #8F6B3B, 4,3:1) */
  --weich: cubic-bezier(.22,.61,.36,1);
  --sora: Sora, system-ui, sans-serif;
  --manrope: Manrope, system-ui, sans-serif;
  /* Lichtposition des Impulses (Bildschirmpixel), setzt seite.mjs */
  --lichtx: -999px;
  --lichty: -999px;
  --lichtsicht: 0;
  color-scheme: dark;
}
/* Helle Marken-Fassung als Vorschlag: Werte aus dem Dokumentstandard (Brand-System §37).
   Zwei Abweichungen mit Grund: die leise Schrift ist dunkler als #6B7690 (das erreicht auf
   #F4F6FB nur 4,2 : 1, gebraucht werden 4,5 : 1), und Links bleiben im dunkleren Blau, weil
   #2F6BFF auf Hell nur 4,2 : 1 erreicht. Sand bleibt die dunklere Fassung für Hell. */
:root.hell-brand {
  --hell-grund-rgb: 244 246 251;
  --hell-text: #0E1726; --hell-text-2: #35415A; --hell-ruhig: #5B6680;
  --hell-linie: #E3E7F1; --hell-rahmen: #E3E7F1;
}

/* ===== Basis ===== */
html { background: var(--tiefe); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--manrope); color: var(--text); background: var(--tiefe);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 700px at 8% -10%, rgba(47,107,255,.20), transparent 70%),
    radial-gradient(700px 600px at 100% 60%, rgba(73,220,234,.07), transparent 70%);
  background-attachment: fixed;
}
a { color: var(--himmel); text-decoration: none; }
a:hover { color: var(--cyan); }
::selection { background: rgba(47,107,255,.38); }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blau); outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(47,107,255,.18); border-radius: var(--r-sm);
}

.tl-sprung { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 14px 22px; background: var(--blau); color: #fff; font-weight: 600; border-radius: 0 0 var(--r-sm) 0; }
.tl-sprung:focus-visible { left: 0; color: #fff; }

/* ===== Kopf ===== */
.tl-kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .42s var(--weich), border-color .42s var(--weich); }
.tl-kopf.gescrollt, .tl-kopf.menue-offen { background-color: rgba(5,11,22,.74); border-bottom-color: var(--linie); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tl-kopf-innen { max-width: 1440px; margin: 0 auto; box-sizing: border-box; display: flex; align-items: center; gap: 24px; padding: 16px var(--rand); }
.tl-logo { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; min-height: 44px; min-width: 44px; }
.tl-logo:hover { color: var(--text); }
.tl-logo img { width: 34px; height: 34px; object-fit: contain; }
.tl-logo span { font: 600 clamp(16px, 1.4vw, 19px)/1 var(--sora); letter-spacing: .17em; }
.tl-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; font-size: 15.5px; font-weight: 500; }
.tl-nav a { position: relative; color: var(--text-2); padding: 12px 0; }
.tl-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--weich); }
.tl-nav a:hover { color: var(--text); }
.tl-nav a:hover::after, .tl-nav a:focus-visible::after { transform: scaleX(1); }

.tl-burger { display: none; flex: none; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px; box-sizing: border-box; border-radius: var(--r-sm); border: 1px solid rgba(127,169,255,.28); background: rgba(127,169,255,.07); margin-left: auto; }
.tl-burger span { display: block; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform .3s var(--weich), opacity .3s; }
.tl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.tl-menue { padding: 8px var(--rand) 26px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--linie); }
.tl-menue[hidden] { display: none; }
.tl-menue > a:not(.tl-knopf) { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 6px; font-size: 18px; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--linie); }
.tl-menue > a span { color: var(--label); }
.tl-menue .tl-knopf { margin-top: 18px; }
.tl-menue .tl-klein { text-align: center; margin-top: 12px; }

.tl-kopf-kurz { display: none; }
@media (max-width: 919.98px) {
  .tl-nav { display: none; }
  .tl-burger { display: flex; }
  /* Kopf-CTA bleibt mobil sichtbar (eine Hand, ein Tipp), aber kompakt und nie abgeschnitten */
  .tl-knopf--kopf { flex: none; margin-left: auto; padding: 11px 14px; font-size: 14px; }
  .tl-burger { margin-left: 0; }
}
@media (max-width: 520px) {
  .tl-kopf-lang { display: none; }
  .tl-kopf-kurz { display: inline; }
}
@media (max-width: 400px) {
  /* Unter 400 px reicht der Platz nicht für Wortmarke, CTA und Menü – das Zeichen trägt die Marke */
  .tl-logo span { display: none; }
  .tl-kopf-innen { gap: 12px; }
}

/* ===== Knöpfe ===== */
.tl-knopf {
  position: relative; display: inline-flex; align-items: center; gap: 11px; isolation: isolate; overflow: hidden;
  min-height: 44px; box-sizing: border-box;
  padding: 17px 30px; border-radius: var(--r-sm); background: var(--blau); color: #fff;
  font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 14px 36px rgba(47,107,255,.4);
  transition: translate .5s var(--weich), box-shadow .42s var(--weich);
}
.tl-knopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s var(--weich);
  background: radial-gradient(140px circle at var(--lx, 50%) var(--ly, 50%), rgba(255,255,255,.26), transparent 62%);
}
.tl-knopf:hover { color: #fff; box-shadow: 0 18px 46px rgba(47,107,255,.55); }
.tl-knopf:hover::before, .tl-knopf:focus-visible::before { opacity: 1; }
.tl-knopf > span[aria-hidden] { transition: transform .42s var(--weich); }
.tl-knopf:hover > span[aria-hidden] { transform: translateX(4px); }
.tl-knopf--kopf { padding: 13px 20px; font-size: 15px; box-shadow: 0 10px 26px rgba(47,107,255,.32); }
.tl-knopf--gross { padding: 20px 36px; font-size: 18px; }
.tl-knopf--voll { display: flex; justify-content: center; min-height: 56px; box-sizing: border-box; }

.tl-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }
.tl-pfeil { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--himmel); }
.tl-pfeil::after { content: "→"; transition: transform .42s var(--weich); }
.tl-pfeil:hover::after { transform: translateX(4px); }

/* ===== Typografie ===== */
.tl-label { margin: 0; font: 600 12.5px/1.3 var(--manrope); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.tl-label--mensch { color: var(--sand); }
.tl-h1 { margin: 22px 0 0; font: 700 clamp(38px, 5.6vw, 80px)/1.02 var(--sora); letter-spacing: -.035em; text-wrap: balance; }
.tl-zeile { display: block; }
.tl-zeile--leicht, .tl-leicht { font-weight: 300; color: var(--text-2); }
.tl-h2 { margin: 18px 0 0; font: 600 clamp(28px, 3.6vw, 52px)/1.08 var(--sora); letter-spacing: -.028em; text-wrap: balance; }
.tl-h2--klein { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; }
.tl-h2--gross { font-size: clamp(32px, 4.6vw, 64px); }
.tl-h3 { margin: 0; font: 600 clamp(19px, 1.7vw, 24px)/1.28 var(--sora); letter-spacing: -.015em; text-wrap: balance; }
.tl-lead { margin: 26px 0 0; max-width: 50ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.tl-klein { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ruhig); text-wrap: pretty; }
.tl-einleitung { margin: 14px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Lichtschrift: der Impuls hellt die Schrift dort auf, wo er vorbeizieht */
.mit-welt .tl-lichtschrift { position: relative; }
.mit-welt .tl-lichtschrift::after {
  content: ""; position: absolute; inset: -20px; pointer-events: none; z-index: 1;
  background: radial-gradient(260px circle at var(--lichtx) var(--lichty), rgba(255,255,255,.18), rgba(73,220,234,.08) 40%, transparent 65%);
  opacity: var(--lichtsicht); mix-blend-mode: screen;
}

/* ===== Fuß ===== */
.tl-fuss { position: relative; z-index: 1; padding: clamp(44px, 7vw, 76px) var(--rand) 36px; background: var(--fussgrund); border-top: 1px solid var(--linie); }
.tl-fuss-raster { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 34px; }
.tl-fuss .tl-logo img { width: 28px; height: 28px; }
.tl-fuss .tl-logo span { font-size: 17px; }
.tl-fuss .tl-klein { margin-top: 16px; max-width: 34ch; }
.tl-fuss nav { display: flex; flex-direction: column; }
.tl-fuss nav a { display: flex; align-items: center; min-height: 44px; font-size: 15.5px; color: var(--text-2); }
.tl-fuss nav a:hover { color: var(--cyan); }
.tl-fuss-titel { margin: 0 0 8px; font: 600 12.5px/1.3 var(--manrope); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.tl-fuss-zeile { max-width: 1440px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; color: var(--label); }

/* ===== Weniger Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Digitalcheck-Bausteine (seit 2026-10-18, ENT-191 F4–F6): Liste, Prüfpunkt-Pillen,
   Richtwerte. Gemeinsam für Startseite (immersiv.css) und Unterseite /digitalcheck (seiten.css). ===== */
.tl-check-liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-check-liste li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }
.tl-check-liste li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 2px; background: var(--cyan); }
.tl-check-liste--nicht li::before { background: var(--sand); }
.tl-pillen-titel { margin: clamp(24px, 3vw, 32px) 0 0; font: 600 12.5px/1.3 var(--manrope); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.tl-pillen { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-pillen li { padding: 8px 14px; border-radius: var(--r-voll); border: 1px solid rgba(127,169,255,.24); background: rgba(10,20,36,.5); font-size: 14.5px; line-height: 1.3; color: var(--text-2); }
.tl-richtwerte dl { margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 34px; }
.tl-richtwerte dl > div { padding-top: 16px; border-top: 1px solid var(--linie); }
.tl-richtwerte dt { font: 600 12.5px/1.3 var(--manrope); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.tl-richtwerte dd { margin: 6px 0 0; font: 600 clamp(20px, 1.8vw, 24px)/1.3 var(--sora); letter-spacing: -.015em; color: var(--text); }
.tl-richtwerte dd span { display: block; margin-top: 6px; font: 400 15px/1.55 var(--manrope); color: var(--text-2); letter-spacing: 0; }
.tl-richtwerte .tl-klein { margin-top: 18px; max-width: 70ch; }
