/* ═══════════════════════════════════════════════════════════════════════════
   Taktavo – Landingpage
   Farben aus frontend/taktavo-ui/src/styles/_tokens.scss (T-366). Hell ist Standard mit
   Akzent Petrol, Dunkel über [data-theme="dark"]. Keine externen Ressourcen.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #f3f4f7;
  --bg-tint: #eceef2;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #1c1e26;
  --text-72: color-mix(in srgb, var(--text) 72%, transparent);
  --text-55: color-mix(in srgb, var(--text) 64%, transparent);
  --line: #e1e3ea;
  --accent: #1f6b72;
  --accent-strong: #14555b;
  --accent-soft: #14555b;
  --accent-ink: #ffffff;
  --accent-tint: #e3f0f0;
  --brand-tile: #e3f0f0;
  /* Flächen im Hintergrund: die drei Akzentfarben als Füllung, zurückhaltend. */
  --blob-1: #7fb7bb;
  --blob-2: #8ea3dd;
  --blob-3: #cf8fb2;
  --blob-alpha: 0.4;
  --shadow-lg: 0 30px 70px -24px rgb(28 30 38 / 0.25), 0 0 0 1px var(--line);
  --grad-text: linear-gradient(100deg, #14555b 0%, #1f6b72 45%, #2747a3 80%, #14555b 100%);
  --cta-bg: linear-gradient(135deg, #14555b 0%, #1f6b72 60%, #2c7d84 100%);
  --cta-ink: #14555b;
  --cta-ink-hover: #e3f0f0;
  --danger: #b42318;
  --radius: 10px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #15171d;
  --bg-tint: #1a1c23;
  --surface: #1e2129;
  --surface-2: #252832;
  --text: #e8e9ee;
  --text-55: color-mix(in srgb, var(--text) 55%, transparent);
  --line: #30333e;
  --accent: #5fb6b9;
  --accent-strong: #9fd6d8;
  --accent-soft: #9fd6d8;
  --accent-ink: #15171d;
  --accent-tint: color-mix(in srgb, var(--accent) 14%, #1e2129);
  --brand-tile: color-mix(in srgb, var(--accent) 14%, #1e2129);
  --blob-1: #2c6e72;
  --blob-2: #3a4f93;
  --blob-3: #7a345a;
  --blob-alpha: 0.45;
  --shadow-lg: 0 30px 80px -20px rgb(0 0 0 / 0.6), 0 0 0 1px var(--line);
  --grad-text: linear-gradient(100deg, #9fd6d8 0%, #5fb6b9 45%, #7f9cf0 80%, #9fd6d8 100%);
  --cta-bg: linear-gradient(135deg, #14555b 0%, #1f6b72 60%, #2c7d84 100%);
  --danger: #f97066;
}

/* Modulakzente: jedes Modul trägt einen der drei Markenakzente (Petrol, Tintenblau, Brombeere).
   Als Klasse am <html> färbt das die ganze Modulseite, an einer Karte nur die Karte.
   .mod-petrol setzt auf einer anders gefärbten Seite einzelne Elemente auf Petrol zurück. */
.mod-petrol {
  --accent: #1f6b72; --accent-strong: #14555b; --accent-soft: #14555b; --accent-tint: #e3f0f0; --brand-tile: #e3f0f0;
}
[data-theme='dark'].mod-petrol, [data-theme='dark'] .mod-petrol {
  --accent: #5fb6b9; --accent-strong: #9fd6d8; --accent-soft: #9fd6d8;
  --accent-tint: color-mix(in srgb, #5fb6b9 14%, #1e2129); --brand-tile: color-mix(in srgb, #5fb6b9 14%, #1e2129);
}
.mod-tinte {
  --accent: #2747a3; --accent-strong: #1c3683; --accent-soft: #1c3683; --accent-tint: #e5eaf8; --brand-tile: #e5eaf8;
  --grad-text: linear-gradient(100deg, #1c3683 0%, #2747a3 45%, #8a2f5f 80%, #1c3683 100%);
  --cta-bg: linear-gradient(135deg, #1c3683 0%, #2747a3 60%, #3a5bc0 100%); --cta-ink: #1c3683; --cta-ink-hover: #e5eaf8;
}
.mod-beere {
  --accent: #8a2f5f; --accent-strong: #6f2349; --accent-soft: #6f2349; --accent-tint: #f5e6ee; --brand-tile: #f5e6ee;
  --grad-text: linear-gradient(100deg, #6f2349 0%, #8a2f5f 45%, #2747a3 80%, #6f2349 100%);
  --cta-bg: linear-gradient(135deg, #6f2349 0%, #8a2f5f 60%, #a5487a 100%); --cta-ink: #6f2349; --cta-ink-hover: #f5e6ee;
}
[data-theme='dark'].mod-tinte, [data-theme='dark'] .mod-tinte {
  --accent: #7f9cf0; --accent-strong: #b9c8f7; --accent-soft: #b9c8f7;
  --accent-tint: color-mix(in srgb, #7f9cf0 14%, #1e2129); --brand-tile: color-mix(in srgb, #7f9cf0 14%, #1e2129);
  --grad-text: linear-gradient(100deg, #b9c8f7 0%, #7f9cf0 45%, #e08ab5 80%, #b9c8f7 100%);
}
[data-theme='dark'].mod-beere, [data-theme='dark'] .mod-beere {
  --accent: #e08ab5; --accent-strong: #f1bfd8; --accent-soft: #f1bfd8;
  --accent-tint: color-mix(in srgb, #e08ab5 14%, #1e2129); --brand-tile: color-mix(in srgb, #e08ab5 14%, #1e2129);
  --grad-text: linear-gradient(100deg, #f1bfd8 0%, #e08ab5 45%, #7f9cf0 80%, #f1bfd8 100%);
}

/* Schicht- und Statusfarben aus frontend/taktavo-ui/src/styles/_tokens.scss (T-380) –
   nur für die Illustrationen der Module. */
:root {
  --shift-early-bg: #e1f9d0; --shift-early-edge: #619628; --shift-early-text: #355b02;
  --shift-late-bg: #ffebe7; --shift-late-edge: #d36854; --shift-late-text: #8c3223;
  --shift-night-bg: #eceffe; --shift-night-edge: #7381de; --shift-night-text: #404997;
  --shift-day-bg: #e0f4ff; --shift-day-edge: #1b92c2; --shift-day-text: #055777;
  --shift-training-bg: #f8ebfe; --shift-training-edge: #ac70c6; --shift-training-text: #6d3a83;
  --ok: #2e7d4f; --ok-bg: #dcf3e5;
  --warn: #8a4f0e; --warn-bg: #f7e8d3; --signal: #c27c0e;
  --bad: #b4232c; --bad-bg: #fbe3e4;
}
[data-theme='dark'] {
  --shift-early-bg: #283c15; --shift-early-edge: #4a7c03; --shift-early-text: #afd194;
  --shift-late-bg: #512820; --shift-late-edge: #b84f3c; --shift-late-text: #f7b2a4;
  --shift-night-bg: #2c3256; --shift-night-edge: #5d69c4; --shift-night-text: #b5c2fd;
  --shift-day-bg: #133a4c; --shift-day-edge: #0179a3; --shift-day-text: #95cdeb;
  --shift-training-bg: #412b4c; --shift-training-edge: #9358ac; --shift-training-text: #dbb6ec;
  --ok: #8fd3a9; --ok-bg: #1d3a2a;
  --warn: #e8b57a; --warn-bg: #3a2f24; --signal: #e3a33c;
  --bad: #f08a8f; --bad-bg: #3d2328;
}

/* ── Grundlagen ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.i { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer { to { background-position: 200% center; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { font-size: 17px; transition: transform 0.2s var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 6px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--accent-tint); }
.btn-light { background: #fff; color: var(--cta-ink); }
.btn-light:hover { background: var(--cta-ink-hover); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 0.45); }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.1); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 18px;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* T-365: Wortmarke „Takt“ 700 in Textfarbe, „avo“ 400 in Akzentfarbe. */
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-weight: 400; font-size: 19px; letter-spacing: -0.02em; color: var(--accent); }
.brand-name b { font-weight: 700; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links > a {
  white-space: nowrap;
  padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; color: var(--text-72);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links > a:hover { color: var(--text); background: var(--accent-tint); }
.nav-links > a[aria-current='page'] { color: var(--accent-strong); background: var(--accent-tint); font-weight: 500; }
.nav-mobile-actions { display: none; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }

/* T-546: Sprachumschalter „DE | EN“ – zwei Links, die aktuelle Sprache als markiertes Segment. */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border-radius: 10px;
  border: 1px solid var(--line);
}
.lang-switch a {
  display: grid; place-items: center; min-width: 32px; height: 100%; padding: 0 7px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-55); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.lang-switch a:hover { color: var(--text); background: var(--accent-tint); }
.lang-switch a[aria-current='true'] { color: var(--accent-strong); background: var(--accent-tint); }
.lang-switch a:focus-visible { outline-offset: 1px; }

[data-theme='dark'] .i-sun, [data-theme='light'] .i-moon { display: none; }
.i-close { display: none; }
.nav.is-open .i-close { display: block; }
.nav.is-open .i-open { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 72px; overflow: hidden; isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-alpha);
  will-change: transform;
}
.blob-1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -12vw; top: -18vw; background: var(--blob-1); animation: drift-1 22s ease-in-out infinite alternate; }
.blob-2 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; right: -10vw; top: 6vh; background: var(--blob-2); opacity: calc(var(--blob-alpha) * 0.6); animation: drift-2 26s ease-in-out infinite alternate; }
.blob-3 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: 30vw; bottom: -20vw; background: var(--blob-3); opacity: calc(var(--blob-alpha) * 0.7); animation: drift-3 30s ease-in-out infinite alternate; }

@keyframes drift-1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-12vw, 14vh) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(-16vw, -12vh) scale(1.2); } }

.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--accent-soft);
  background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.kicker .i { font-size: 15px; color: var(--accent-strong); }

.hero h1 { margin-top: 22px; font-size: clamp(38px, 4.3vw, 58px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 .grad { display: inline-block; padding-bottom: 0.08em; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-72); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.chips { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-72); }
.chips .i { font-size: 17px; color: var(--accent); }

/* Gestaffelter Auftritt */
.js .enter { opacity: 0; transform: translateY(18px); animation: enter 0.9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Bildschirm im Browserrahmen mit leichter Neigung */
.hero-visual { position: relative; perspective: 1800px; margin-right: -24px; }
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotateY(calc(-9deg + var(--tx, 0deg))) rotateX(calc(5deg + var(--ty, 0deg)));
  transform-origin: 40% 50%;
  transition: transform 0.6s var(--ease);
}
.frame::after {
  /* Glanzkante */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg, rgb(255 255 255 / 0.08), transparent 35%);
}
.frame-bar {
  display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--text) 22%, transparent); }
.url {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 3px 12px; border-radius: 6px;
  font-size: 11.5px; color: var(--text-55); background: color-mix(in srgb, var(--text) 6%, transparent);
}
.url .i { font-size: 12px; color: #34c38f; }

.frame-screen { position: relative; aspect-ratio: 1440 / 900; background: var(--bg); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.015); transition: opacity 0.9s var(--ease), transform 1.2s var(--ease); }
.slide.is-active { opacity: 1; transform: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Hell/Dunkel-Varianten der Bilder */
[data-theme='dark'] .v-light, [data-theme='light'] .v-dark { display: none; }

.phone {
  position: absolute; left: -36px; bottom: -38px; width: 150px; border-radius: 26px; padding: 6px;
  background: #0d0e16; box-shadow: 0 24px 50px -12px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08);
  transform: translateZ(60px) rotate(-4deg);
  animation: float 7s ease-in-out infinite;
}
.phone img { border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@keyframes float { 50% { transform: translateZ(60px) rotate(-4deg) translateY(-10px); } }

.slider-ui { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-left: 130px; }
.slide-caption { font-size: 13.5px; color: var(--text-72); min-height: 1.6em; transition: opacity 0.3s; }
.slide-caption.is-changing { opacity: 0; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots button {
  position: relative; width: 26px; height: 6px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--text) 18%, transparent);
}
.slide-dots button::after {
  content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--accent);
}
.slide-dots button[aria-selected='true']::after { animation: progress var(--slide-ms, 5000ms) linear forwards; }
.slide-dots.is-paused button[aria-selected='true']::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 26px; color: var(--text-55); animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--accent); }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ── Abschnitte ──────────────────────────────────────────────────────────── */

.section { padding: 112px 0; position: relative; }
.section-tinted { background: var(--bg-tint); }
.section-tinted::before, .section-tinted::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-tinted::before { top: 0; }
.section-tinted::after { bottom: 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 720px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.section-lead { margin-top: 16px; font-size: 17px; color: var(--text-72); }

/* Scroll-Einblendung (nur mit JS; ohne JS ist alles sichtbar) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Funktionen */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.feature::before {
  /* Lichtfleck folgt der Maus (--mx/--my aus JS) */
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 20px 40px -20px rgb(0 0 0 / 0.5); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); font-size: 22px;
  color: var(--accent-strong); background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.feature h3 { margin-top: 18px; font-size: 17px; font-weight: 600; }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--text-72); }

/* Anbindung – breites Band unter dem Funktionsraster */
.connect {
  margin-top: 16px; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 55%);
  box-shadow: 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 28px; align-items: start;
}
.connect-head { display: flex; flex-direction: column; gap: 16px; }
.connect-head h3 { font-size: 17px; font-weight: 600; }
.connect-head p { margin-top: 8px; font-size: 14.5px; color: var(--text-72); }
.connect-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Vier Punkte als 2 × 2; auf schmalen Bildschirmen gilt weiter eine Spalte (Media Query weiter unten). */
.connect-items-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connect-item { display: flex; gap: 12px; align-items: flex-start; }
.connect-item > .i { flex: none; margin-top: 2px; font-size: 20px; color: var(--accent-strong); }
.connect-item h4 { font-size: 15px; font-weight: 600; }
.connect-item p { margin-top: 6px; font-size: 14px; color: var(--text-72); }

/* Rollen */
.roles-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 36px;
}
.roles-tabs [role='tab'] {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 9px;
  background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--text-72);
  transition: background-color 0.25s, color 0.25s;
}
.roles-tabs [role='tab'] .i { font-size: 17px; }
.roles-tabs [role='tab']:hover { color: var(--text); }
.roles-tabs [role='tab'][aria-selected='true'] { background: var(--accent); color: var(--accent-ink); }

.role-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.role-panel[hidden] { display: none; }
.role-panel.is-active { animation: panel-in 0.6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(16px); } }
.role-copy h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.role-shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-72); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-tint) center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.checks li::after {
  content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: rotate(-45deg);
}

/* Ablauf */
.timeline { --progress: 0; position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.timeline::before, .timeline::after {
  content: ''; position: absolute; top: 27px; left: 28px; right: calc(25% - 28px); height: 2px; border-radius: 1px;
}
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transform-origin: left; transform: scaleX(var(--progress)); transition: transform 0.2s linear; }
.step { position: relative; z-index: 1; }
.step-dot {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); font-size: 24px;
  background: var(--surface); color: var(--text-55); box-shadow: 0 0 0 1px var(--line);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.step.is-lit .step-dot { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px var(--accent-tint), 0 12px 30px -10px var(--accent); }
.step h3 { margin-top: 20px; font-size: 18px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-72); }

/* Einblick */
.segment { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.segment button { padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 14px; color: var(--text-72); }
.segment button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }

.showcase[data-variant='dark'] .shot .v-light, .showcase[data-variant='light'] .shot .v-dark { display: none; }
.showcase[data-variant='dark'] .shot .v-dark, .showcase[data-variant='light'] .shot .v-light { display: block; }

.showcase-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 900px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* Seitenrand so, dass auch das erste und letzte Bild mittig einrasten */
  padding: 8px calc((100% - min(78%, 900px)) / 2) 28px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.showcase-track::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: center; transition: opacity 0.5s, transform 0.5s var(--ease); }
.shot img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--text-72); text-align: center; }
/* T-503: Bilder unter Funktionskacheln (fokustakt.html, Klang & Pause) */
.feature-grid + .fk-ex { margin-top: 48px; }
.fk-ex + .showcase { margin-top: 56px; }
/* FokusTakt: Die Übungen im Überblick (T-524) */
.fk-ex { display: grid; gap: 18px; }
.fk-ex-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.fk-ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fk-ex-group { display: grid; align-content: start; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.fk-ex-group h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.fk-ex-group h4 .i { color: var(--accent); font-size: 18px; }
.fk-ex-group ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fk-ex-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.fk-ex-group li em { display: block; font-style: normal; font-size: 12px; color: var(--text-72); }
.fk-ex-group li b { font-weight: 500; font-size: 13px; color: var(--text-72); white-space: nowrap; }
.fk-ex-group p { font-size: 13px; color: var(--text-72); }
.js .shot:not(.is-current) { opacity: 0.45; transform: scale(0.96); }

.showcase-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.showcase-dots { display: flex; gap: 6px; }
.showcase-dots span { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background-color 0.3s, width 0.3s; }
.showcase-dots span.is-current { width: 22px; border-radius: 4px; background: var(--accent); }

/* Betrieb */
.ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ops {
  padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--line);
}
.ops > .i { font-size: 28px; color: var(--accent-strong); }
.ops h3 { margin-top: 16px; font-size: 17px; font-weight: 600; }
.ops p { margin-top: 8px; font-size: 14.5px; color: var(--text-72); }
.ops-note { margin-top: 28px; display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-72); }
.ops-note .i { margin-top: 3px; font-size: 18px; color: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  cursor: pointer; list-style: none; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { font-size: 18px; color: var(--text-55); transition: transform 0.3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.faq details p { padding: 0 22px 20px; color: var(--text-72); }

/* CTA */
.cta { padding: 40px 0 112px; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 72px 32px; border-radius: var(--radius); color: #fff;
  background: var(--cta-bg);
}
.cta-box h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; }
.cta-box p { margin: 16px auto 0; max-width: 34em; color: rgb(255 255 255 / 0.85); font-size: 17px; }
.cta-box .hero-actions { justify-content: center; }

/* Kontaktformular (nur Startseite): Karte auf der CTA-Fläche, Versand über die ContactApi. */
.contact-form {
  max-width: 680px; margin: 36px auto 0; padding: 28px; display: grid; gap: 16px;
  border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left;
  box-shadow: var(--shadow-lg);
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: grid; gap: 6px; }
.contact-field label { font-size: 13.5px; font-weight: 500; color: var(--text-72); }
.contact-field input, .contact-field select, .contact-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-field input:focus-visible, .contact-field select:focus-visible, .contact-field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; border-radius: 6px;
}
.contact-trap { position: absolute; left: -9999px; top: -9999px; }
.cta-box .contact-note { margin: 0; max-width: none; font-size: 13.5px; color: var(--text-55); }
.contact-note a { color: var(--accent); }
.contact-form .btn { justify-self: start; }
.cta-box .contact-status { margin: 0; max-width: none; min-height: 1.4em; font-size: 14.5px; color: var(--text-72); }
.cta-box .contact-status.is-success { color: var(--accent); }
.cta-box .contact-status.is-error { color: var(--danger); }
/* Selbst ausprobieren: eigener Weg über dem Formular, damit er nicht wie ein Teil davon wirkt. */
.cta-box .contact-alt { margin-top: 12px; font-size: 15.5px; }
.contact-alt a {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 4px;
  color: #fff; font-weight: 600; text-underline-offset: 3px;
}
.contact-alt a .i { font-size: 16px; transition: transform 0.2s var(--ease); }
.contact-alt a:hover .i { transform: translateX(2px); }
.contact-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.footer-brand p { margin-top: 10px; font-size: 14px; color: var(--text-55); max-width: 30em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--text-72); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: var(--text-55); }

/* ── Module (Startseite) und Modulseiten ─────────────────────────────────── */

/* Kleinerer Hero der Modulseiten */
.hero.hero-sub { min-height: auto; padding-bottom: 104px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-55); }
.crumbs a { color: var(--text-72); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .i { font-size: 12px; }

/* Modulkarten */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.modules.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.module::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.module:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 48px -24px rgb(0 0 0 / 0.45); }
.module:focus-within { box-shadow: 0 0 0 2px var(--accent-strong); }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-tint); }
.module h3 { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.module > p { margin-top: 10px; font-size: 15px; color: var(--text-72); }
.module .checks { margin-top: 20px; gap: 10px; font-size: 14.5px; }
.module-link {
  margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent-strong); text-decoration: none;
}
.module-link::after { content: ''; position: absolute; inset: 0; } /* ganze Karte klickbar */
.module-link:focus-visible { outline: none; }
.module-link .i { transition: transform 0.2s var(--ease); }
.module:hover .module-link .i { transform: translateX(3px); }

/* Zusammenspiel der Module */
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.flow .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); }
.flow .tag .i { font-size: 13px; }
.flow > .i { font-size: 14px; color: var(--text-55); }
.link-card h3 { margin-top: 16px; font-size: 16.5px; font-weight: 600; }
.link-card p { margin-top: 8px; font-size: 14.5px; color: var(--text-72); }

/* Hinweiskasten */
.callout {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--line);
}
.callout > .i { flex: none; font-size: 26px; color: var(--accent-strong); }
.callout h3 { font-size: 17px; font-weight: 600; }
.callout p { margin-top: 6px; font-size: 14.5px; color: var(--text-72); }
.feature-grid + .callout, .feature-grid + .connect, .links-grid + .connect, .callout + .connect { margin-top: 16px; }
.section-lead a { color: var(--accent-strong); text-underline-offset: 3px; }
.footer-navs { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-links { flex-wrap: wrap; }

/* Raster mit drei Spalten, Ablauf mit fünf Schritten */
.feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.timeline.steps-5::before, .timeline.steps-5::after { right: calc(20% - 28px); }

/* Platzhalter, bis Screenshots aus der laufenden App vorliegen (tools/capture-screenshots.mjs) */
.shot-pending {
  display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 1440 / 900; padding: 24px;
  border-radius: var(--radius); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 5%, transparent) 14px 28px), var(--surface);
  color: var(--text-55); text-align: center; font-size: 14px;
}
.shot-pending .i { font-size: 34px; color: var(--accent); }

/* ── Illustrationen der Module ───────────────────────────────────────────────
   Nachgebaute Ausschnitte der Oberfläche, gezeichnet in HTML/CSS. Sie skalieren über
   Container-Einheiten mit dem Rahmen und folgen Hell/Dunkel und dem Modulakzent.
   Namen und Werte stammen aus dem Testszenario „Einsatzplanung“ (T-408). */
.mock { position: absolute; inset: 0; container-type: inline-size; background: var(--bg); overflow: hidden; }
.mock-ui { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); height: 100%; font-size: 1.5cqw; line-height: 1.35; color: var(--text); text-align: left; }
.mock-rail { display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding: 1.3em 0; background: var(--surface); border-right: 1px solid var(--line); }
.mock-rail svg { width: 2em; height: 2em; margin-bottom: 0.4em; }
.mock-rail i { display: block; width: 1.4em; height: 1.4em; border-radius: 0.35em; background: color-mix(in srgb, var(--text) 12%, transparent); }
.mock-rail i.on { background: var(--accent); }
.mock-main { min-width: 0; display: flex; flex-direction: column; gap: 0.9em; padding: 1.4em 1.6em; }
.mock-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.mock-kicker { font-size: 0.75em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.mock-title { margin-top: 0.15em; display: flex; align-items: center; gap: 0.6em; font-size: 1.6em; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.mock-pill { font-size: 0.48em; font-weight: 600; letter-spacing: 0; padding: 0.3em 0.75em; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); }
.mock-actions { display: flex; gap: 0.5em; }
.mock-tabs { display: flex; gap: 0.25em; padding: 0.25em; border-radius: 0.5em; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 0.82em; }
.mock-tabs span { padding: 0.3em 0.8em; border-radius: 0.35em; color: var(--text-72); white-space: nowrap; }
.mock-tabs span.on { background: var(--accent); color: var(--accent-ink); }
.mock-btn { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.45em 0.9em; border-radius: 0.4em; font-size: 0.82em; font-weight: 600; white-space: nowrap; }
.mock-btn.primary { background: var(--accent); color: var(--accent-ink); }
.mock-btn.ghost { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mock-btn .i { font-size: 1.15em; }
.mock-card { min-width: 0; padding: 0.85em 1em; border-radius: 0.6em; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.mock-label { font-size: 0.78em; font-weight: 500; color: var(--text-55); }
.mock .num { font-variant-numeric: tabular-nums; }
.mock .pos { color: var(--ok); }
.mock .neg { color: var(--bad); }

/* Zeiterfassung: Stempeluhr, Heute, Zeitkonto, Woche */
.mt-cards { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0.8em; }
.mt-clock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.55em 1em; }
.mt-clock .mock-btn { grid-column: 2; grid-row: 1 / 3; }
.mt-live { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.8em; color: var(--text-72); white-space: nowrap; }
.mt-live::before {
  content: ''; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--ok) 25%, transparent); animation: live 1.8s ease-in-out infinite;
}
@keyframes live { 50% { box-shadow: 0 0 0 0.5em transparent; } }
.mt-big { font-size: 2.4em; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mt-note {
  grid-column: 1 / -1; padding: 0.45em 0.7em; border-radius: 0.4em; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8em; color: var(--text-72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-kv { display: flex; justify-content: space-between; margin-top: 0.35em; font-size: 0.85em; }
.mt-bar { margin-top: 0.6em; height: 0.45em; border-radius: 1em; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.mt-bar > b { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); }
.mt-bar.over > b { background: var(--bad); }
.mt-saldo { margin-top: 0.3em; font-size: 1.9em; font-weight: 700; letter-spacing: -0.02em; color: var(--ok); }
.mt-week { padding: 0.4em 1em; }
.mt-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 3em 3.2em; align-items: center; gap: 0.9em; padding: 0.42em 0; border-top: 1px solid var(--line); font-size: 0.85em; }
.mt-row:first-child { border-top: 0; }
.mt-row.head { padding: 0.15em 0 0.35em; font-size: 0.72em; color: var(--text-55); }
.mt-row > :nth-child(n + 3) { text-align: right; }
.mt-row.today { margin: 0 -1em; padding-inline: 1em; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.mt-track {
  position: relative; height: 1.5em; border-radius: 0.3em;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 8%, transparent) 0 1px, transparent 1px calc(100% / 7));
}
.mt-seg { position: absolute; top: 0.15em; bottom: 0.15em; left: var(--l); width: var(--w); border-radius: 0.25em; background: var(--accent); }
.mt-seg.c2 { background: var(--shift-day-edge); }
.mt-seg.c3 { background: var(--shift-training-edge); }
.mt-seg.abs {
  display: grid; place-items: center; font-size: 0.78em; font-weight: 600; color: var(--accent-strong);
  background: repeating-linear-gradient(135deg, var(--accent-tint) 0 0.4em, color-mix(in srgb, var(--accent) 28%, var(--surface)) 0.4em 0.8em);
}
.mt-seg.run { background: linear-gradient(90deg, var(--accent) 70%, color-mix(in srgb, var(--accent) 25%, transparent)); }
.mt-flag {
  position: absolute; right: 0.3em; top: 50%; transform: translateY(-50%); padding: 0.1em 0.55em; border-radius: 999px;
  font-size: 0.78em; font-weight: 600; white-space: nowrap; background: var(--warn-bg); color: var(--warn);
}
.mt-flag .i { vertical-align: -0.12em; }
.mt-legend { display: flex; flex-wrap: wrap; gap: 0.4em 1.2em; padding: 0.55em 0 0.2em; border-top: 1px solid var(--line); font-size: 0.75em; color: var(--text-55); }
.mt-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.mt-legend i { width: 0.8em; height: 0.8em; border-radius: 0.2em; background: var(--accent); }
.mt-legend i.c2 { background: var(--shift-day-edge); }
.mt-legend i.c3 { background: var(--shift-training-edge); }
.mt-legend i.abs { background: repeating-linear-gradient(135deg, var(--accent-tint) 0 0.2em, color-mix(in srgb, var(--accent) 35%, var(--surface)) 0.2em 0.4em); }

/* Einsatzplanung: Kennzahlen, Board „Nach Schichten“, Personenleiste */
.sh-f { --c-bg: var(--shift-early-bg); --c-edge: var(--shift-early-edge); --c-text: var(--shift-early-text); }
.sh-s { --c-bg: var(--shift-late-bg); --c-edge: var(--shift-late-edge); --c-text: var(--shift-late-text); }
.sh-n { --c-bg: var(--shift-night-bg); --c-edge: var(--shift-night-edge); --c-text: var(--shift-night-text); }
.mb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em; }
.mb-kpi { padding: 0.4em 0.7em; border-radius: 0.5em; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.mb-kpi b { display: block; font-size: 1.25em; font-weight: 700; letter-spacing: -0.02em; }
.mb-kpi span { font-size: 0.75em; color: var(--text-55); }
.mb-kpi.warn b { color: var(--warn); }
.mb-kpi.bad b { color: var(--bad); }
.mb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 10.5em; gap: 0.8em; }
.mb-grid {
  position: relative; display: grid; grid-template-columns: 3.3em repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 1fr);
  border-radius: 0.6em; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; font-size: 0.8em;
}
.mb-grid > * { min-width: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.mb-grid > :nth-child(6n + 1) { border-left: 0; }
.mb-grid > :nth-child(-n + 6) { border-top: 0; }
.mb-d { padding: 0.4em 0.5em; font-size: 0.92em; font-weight: 600; color: var(--text-72); white-space: nowrap; }
.mb-s { display: flex; flex-direction: column; align-items: center; gap: 0.25em; padding: 0.45em 0.3em; }
.mb-s b {
  display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 0.35em; font-weight: 700;
  background: var(--c-bg); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-edge);
}
.mb-s small { font-size: 0.82em; color: var(--text-55); white-space: nowrap; }
.mb-cell { position: relative; display: flex; flex-direction: column; gap: 0.22em; padding: 0.32em; }
.mb-count { align-self: flex-end; display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.85em; font-weight: 600; color: var(--text-72); }
.mb-count::after { content: ''; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ok); }
.mb-cell.short .mb-count::after { background: var(--signal); }
.mb-cell.missing { background: color-mix(in srgb, var(--bad) 7%, transparent); box-shadow: inset 0 0 0 1.5px var(--bad); }
.mb-cell.missing .mb-count { color: var(--bad); }
.mb-cell.missing .mb-count::after { background: var(--bad); }
.mb-cell.drop { background: color-mix(in srgb, var(--ok) 11%, transparent); box-shadow: inset 0 0 0 1.5px var(--ok); }
.mb-chip {
  display: flex; align-items: center; gap: 0.3em; padding: 0.14em 0.4em; border-radius: 0.3em; border-left: 0.22em solid var(--c-edge);
  background: var(--c-bg); color: var(--c-text); font-weight: 500; white-space: nowrap; overflow: hidden;
}
.mb-chip em { margin-left: auto; font-size: 0.78em; font-style: normal; font-weight: 700; opacity: 0.85; }
.mb-free {
  padding: 0.1em 0.4em; border-radius: 0.3em; border: 1px dashed color-mix(in srgb, var(--text) 32%, transparent);
  color: var(--text-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mb-cell.missing .mb-free { border-color: var(--bad); color: var(--bad); }
.mb-drag {
  position: absolute; z-index: 2; left: 18%; bottom: 2.6em; width: 82%; transform: rotate(-4deg);
  box-shadow: 0 0.6em 1.2em -0.3em rgb(0 0 0 / 0.45), 0 0 0 1px var(--c-edge);
}
.mb-tip {
  position: absolute; z-index: 3; right: 0.3em; bottom: 0.4em; padding: 0.35em 0.6em; border-radius: 0.35em;
  background: var(--text); color: var(--bg); font-size: 0.85em; white-space: nowrap;
}
.mb-tip .i { vertical-align: -0.12em; color: var(--ok); }
.mb-person .hint { margin-top: 0.2em; font-size: 0.85em; font-weight: 600; color: var(--ok); }
.visual-caption { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--text-72); }
.mb-people { display: flex; flex-direction: column; gap: 0.5em; padding: 0.6em; border-radius: 0.6em; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 0.8em; }
.mb-people h4 { font-size: 0.95em; font-weight: 600; }
.mb-person { padding: 0.5em 0.55em; border-radius: 0.45em; box-shadow: 0 0 0 1px var(--line); }
.mb-person.lift { box-shadow: 0 0 0 1.5px var(--accent); }
.mb-person b { display: block; font-weight: 600; }
.mb-person .mt-bar { margin-top: 0.35em; height: 0.35em; }
.mb-person .meta { display: flex; justify-content: space-between; gap: 0.4em; margin-top: 0.3em; font-size: 0.85em; color: var(--text-55); white-space: nowrap; }
.mb-person .meta strong { font-weight: 600; }

/* ── FokusTakt ───────────────────────────────────────────────────────────────
   Gezeichnete Ausschnitte des FokusTakts (T-456–T-470): Seite, Orte, Designs, Auswertung.
   Fokus in der Akzentfarbe, Pausen im Grün der Schichtfarben wie in der App. */
.fk-pill {
  display: inline-flex; align-items: center; gap: 0.45em; padding: 0.3em 0.8em; border-radius: 999px; white-space: nowrap;
  background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--line)); font-size: 0.82em; color: var(--text-72);
}
.fk-pill i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--accent); animation: fk-pulse 2.4s ease-in-out infinite; }
.fk-pill b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes fk-pulse { 50% { opacity: 0.35; } }
.fk-tag {
  display: inline-flex; align-items: center; gap: 0.45em; padding: 0.2em 0.7em; border-radius: 0.35em;
  background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; white-space: nowrap;
}
/* Wortmarke FokusTakt: „Takt“ in Akzentfarbe (nur in Überschriften; im Fließtext schlicht „FokusTakt“). */
.wm-takt { color: var(--accent); }
.fk-tag::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--accent); }

/* Hero: Seite „FokusTakt“ */
.fk-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0.8em; }
.fk-stage { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.6em; }
.fk-top { align-self: stretch; display: flex; align-items: center; justify-content: space-between; font-size: 0.8em; color: var(--text-55); }
.fk-ring { position: relative; width: 58%; aspect-ratio: 1; }
.fk-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.fk-ring .track { fill: none; stroke: color-mix(in srgb, var(--text) 9%, transparent); }
.fk-ring .arc { fill: none; stroke: var(--accent); stroke-linecap: round; }
.fk-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.fk-time { font-size: 2.5em; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fk-sub { margin-top: 0.4em; font-size: 0.72em; color: var(--text-55); }
.fk-controls { display: flex; gap: 0.4em; }
.fk-today {
  align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 0.6em;
  padding-top: 0.6em; border-top: 1px solid var(--line); font-size: 0.75em; color: var(--text-55);
}
.fk-beads { display: flex; gap: 0.25em; }
.fk-beads i { width: 0.75em; height: 0.75em; border-radius: 0.15em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.fk-beads i.on { background: var(--accent); box-shadow: none; }
.fk-settings { display: flex; flex-direction: column; gap: 0.85em; }
.fk-group { display: flex; flex-direction: column; gap: 0.45em; }
.fk-glabel { font-size: 0.66em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-55); }
.fk-seg { align-self: flex-start; font-size: 0.74em; }
.fk-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em 1em; font-size: 0.75em; }
.fk-slider span { display: flex; justify-content: space-between; gap: 0.4em; color: var(--text-72); white-space: nowrap; }
.fk-slider b { font-weight: 600; color: var(--text); }
.fk-slider i {
  display: block; margin-top: 0.45em; height: 0.3em; border-radius: 1em;
  background: linear-gradient(90deg, var(--accent) var(--w), color-mix(in srgb, var(--text) 12%, transparent) var(--w));
}
.fk-designs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.35em; }
.fk-designs span { display: grid; place-items: center; aspect-ratio: 1.2; border-radius: 0.4em; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-55); }
.fk-designs span.on { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-strong); }
.fk-designs svg { width: 1.9em; height: 1.9em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fk-hues { display: flex; gap: 0.6em; }
.fk-hues i { width: 1.15em; height: 1.15em; border-radius: 50%; }
.fk-hues i.on { box-shadow: 0 0 0 0.18em var(--surface), 0 0 0 0.3em var(--accent); }
.fk-toggles { display: flex; flex-direction: column; gap: 0.5em; padding-top: 0.75em; border-top: 1px solid var(--line); font-size: 0.75em; color: var(--text-72); }
.fk-toggles span { display: flex; align-items: center; gap: 0.7em; white-space: nowrap; }
.fk-toggles i { position: relative; flex: none; width: 2.1em; height: 1.2em; border-radius: 1em; background: color-mix(in srgb, var(--text) 18%, transparent); }
.fk-toggles i::after { content: ''; position: absolute; top: 0.18em; left: 0.18em; width: 0.84em; height: 0.84em; border-radius: 50%; background: #fff; }
.fk-toggles i.on { background: var(--accent); }
.fk-toggles i.on::after { left: 1.08em; }

/* Orte: Kopfleiste, Vollansicht, Mini-Fenster, Benachrichtigung */
.fk-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fk-place { container-type: inline-size; padding: 14px 14px 22px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.fk-place h3 { margin: 18px 8px 0; font-size: 17px; font-weight: 600; }
.fk-place p { margin: 8px 8px 0; font-size: 14.5px; color: var(--text-72); }
.fk-scene {
  position: relative; aspect-ratio: 16 / 11; border-radius: calc(var(--radius) - 4px); overflow: hidden;
  font-size: 4.2cqw; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.fk-mini-btns { display: flex; gap: 0.35em; }
.fk-mini-btns i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 0.4em; background: var(--accent-tint); color: var(--accent-strong); }
.fk-mini-btns i:first-child { background: var(--accent); color: var(--accent-ink); }
.fk-mini-btns .i { font-size: 1em; }

.fk-bar { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 0.8em; background: var(--surface); border-bottom: 1px solid var(--line); }
.fk-bar-search { flex: 1; height: 1.6em; border-radius: 0.4em; background: color-mix(in srgb, var(--text) 7%, transparent); }
.fk-bar-avatar { width: 1.7em; height: 1.7em; border-radius: 50%; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.fk-bar-menu {
  position: absolute; top: 3.4em; right: 2.6em; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em;
  padding: 0.8em 0.9em; border-radius: 0.6em; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -12px rgb(0 0 0 / 0.35);
  font-size: 0.9em;
}
.fk-bar-menu > b { font-size: 1.9em; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

.fk-scene-full {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg)), var(--bg) 45%, color-mix(in srgb, var(--shift-day-edge) 16%, var(--bg)));
  background-size: 220% 220%; animation: fk-drift 18s ease-in-out infinite alternate;
}
@keyframes fk-drift { to { background-position: 100% 100%; } }
.fk-ring-sm { width: 42%; }
.fk-ring-sm .fk-time { font-size: 1.6em; }
.fk-full-task { font-size: 0.8em; color: var(--text-72); }
.fk-full-close { position: absolute; top: 0.7em; right: 0.8em; padding: 0.1em 0.5em; border-radius: 0.3em; font-size: 0.7em; color: var(--text-55); box-shadow: inset 0 0 0 1px var(--line); }
.fk-full-strip {
  display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.8em; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 0.68em; color: var(--text-72); white-space: nowrap;
}
.fk-full-strip i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ok); }

.fk-pip-doc { display: flex; flex-direction: column; gap: 0.6em; padding: 1.1em 1.2em; height: 100%; background: var(--surface); }
.fk-pip-doc i { height: 0.55em; border-radius: 1em; background: color-mix(in srgb, var(--text) 10%, transparent); }
.fk-pip-doc i:first-child { width: 45%; height: 0.9em; background: color-mix(in srgb, var(--text) 18%, transparent); }
.fk-bar-doc { height: auto; width: 62%; background: none; }
.fk-pip-doc .w40 { width: 40%; } .fk-pip-doc .w60 { width: 60%; } .fk-pip-doc .w80 { width: 80%; }
.fk-pip {
  position: absolute; right: 0.8em; bottom: 0.8em; display: flex; flex-direction: column; align-items: center; gap: 0.45em;
  padding: 0.7em 1em; border-radius: 0.6em; background: var(--bg); font-size: 0.85em;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--line)), 0 14px 30px -10px rgb(0 0 0 / 0.4);
}
.fk-pip > b { font-size: 2em; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

.fk-scene-phone { display: grid; place-items: end center; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--bg)), var(--bg)); }
.fk-phone {
  width: 62%; height: 92%; display: flex; flex-direction: column; align-items: center; padding: 1.2em 0.7em 0;
  border-radius: 1.6em 1.6em 0 0; background: linear-gradient(180deg, #1f2a3a, #2c3b4f); color: #fff; box-shadow: 0 0 0 0.3em #11161f;
}
.fk-phone-time { font-size: 2.3em; font-weight: 300; line-height: 1; }
.fk-phone-date { margin-top: 0.3em; font-size: 0.62em; opacity: 0.75; }
.fk-note {
  margin-top: 1.1em; align-self: stretch; display: flex; flex-direction: column; gap: 0.15em; padding: 0.6em 0.7em;
  border-radius: 0.7em; background: rgb(255 255 255 / 0.88); color: #15171d; font-size: 0.62em; line-height: 1.3;
}
.fk-note b { font-size: 1.1em; }
.fk-note-app { display: flex; align-items: center; gap: 0.4em; font-size: 0.85em; color: #555b66; }
.fk-note-app svg { width: 1.3em; height: 1.3em; }

/* Designs */
.fk-design { padding-top: 14px; }
.fk-face {
  display: grid; place-items: center; aspect-ratio: 16 / 10; margin: 0 -10px; border-radius: calc(var(--radius) - 4px);
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.fk-face svg { width: 100%; height: 100%; }
.fk-face .trk, .fk-face .trk-line { fill: none; stroke: color-mix(in srgb, var(--text) 10%, transparent); }
.fk-face .acc { fill: none; stroke: var(--accent); stroke-linecap: round; }
.fk-face .acc.wedge { stroke-linecap: butt; opacity: 0.85; }
.fk-face .txt { fill: var(--text); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fk-face .txt.thin { font-weight: 300; letter-spacing: 0; }
.fk-face .trk-line, .fk-face .acc-line { stroke-width: 2; stroke-linecap: round; }
.fk-face .acc-line { stroke: var(--accent); }
.fk-face .dial { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.fk-face .ticks { stroke: var(--text-55); stroke-width: 1.5; stroke-linecap: round; }
.fk-face .knob { fill: var(--surface); stroke: var(--text-55); stroke-width: 1.5; }
.fk-face .glass { fill: none; stroke: color-mix(in srgb, var(--text) 22%, transparent); stroke-width: 1.5; }
.fk-face .water { fill: color-mix(in srgb, var(--accent) 38%, transparent); animation: fk-wave 6s linear infinite; }
@keyframes fk-wave { to { transform: translateX(-40px); } }
.fk-raster rect { stroke-width: 1.4; }
.fk-raster .used { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); }
.fk-raster .left { fill: var(--accent); stroke: none; }
.fk-raster .now { fill: var(--accent); stroke: none; animation: fk-pulse 1.6s ease-in-out infinite; }

/* Nixie: immer dunkel, festes Neon-Orange wie in der App */
.fk-face-nixie { align-content: center; gap: 14px; background: radial-gradient(circle at 50% 40%, #2a1d14, #120d0a 75%); box-shadow: inset 0 0 0 1px #3a2a1e; }
.fk-nixie { display: flex; align-items: center; gap: 6px; }
.fk-nixie .tube {
  position: relative; display: grid; place-items: center; width: 40px; height: 64px; border-radius: 20px 20px 8px 8px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02)); box-shadow: inset 0 0 0 1px rgb(255 190 140 / 0.18);
  font: 300 40px/1 'Inter', system-ui, sans-serif;
}
.fk-nixie .tube i, .fk-nixie .tube b { grid-area: 1 / 1; font-style: normal; font-weight: 300; }
.fk-nixie .tube i { color: rgb(255 160 90 / 0.09); }
.fk-nixie .tube b { color: #ffe4c8; text-shadow: 0 0 2px #ffb070, 0 0 8px #ff7a1a, 0 0 18px rgb(255 122 26 / 0.7); }
.fk-nixie .sep { width: 5px; height: 26px; background: radial-gradient(circle at 50% 25%, #ffb070 2px, transparent 3px), radial-gradient(circle at 50% 75%, #ffb070 2px, transparent 3px); filter: drop-shadow(0 0 3px #ff7a1a); }
.fk-lamps { display: flex; justify-content: center; gap: 10px; }
.fk-lamps i { width: 8px; height: 8px; border-radius: 50%; background: #3a2a1e; }
.fk-lamps i.on { background: #ffc08a; box-shadow: 0 0 8px #ff7a1a; }

/* Auswertung */
.fk-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.fk-h2 { margin-top: 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.fk-split-copy .checks b { color: var(--text); font-weight: 600; }
.fk-note-text { margin-top: 22px; font-size: 15px; color: var(--text-72); }
.fk-insights { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
.fk-ins-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fk-ins-head b { font-size: 16px; font-weight: 600; }
.fk-ins-head span { font-size: 13px; color: var(--text-55); }
.fk-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fk-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.fk-stats b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.fk-stats span { font-size: 12.5px; color: var(--text-72); line-height: 1.35; }
.fk-stats .fk-badge { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11.5px; font-weight: 600; }
.fk-ins-label { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-55); }
.fk-ins-label span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-72); }
.fk-bars { margin-top: 10px; height: 120px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; }
.fk-bars span { position: relative; height: calc(var(--h) * 0.78); border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.fk-bars span.now { background: var(--accent); }
.fk-bars b { position: absolute; bottom: 100%; left: 0; right: 0; padding-bottom: 3px; text-align: center; font-size: 11.5px; font-weight: 600; }
.fk-bars i { position: absolute; top: 100%; left: -4px; right: -4px; padding-top: 4px; text-align: center; font-size: 10.5px; font-style: normal; color: var(--text-55); white-space: nowrap; }
.fk-bars + .fk-ins-label { margin-top: 34px; }
.fk-heat { margin-top: 12px; display: grid; grid-template-columns: 24px repeat(10, minmax(0, 1fr)); gap: 4px; align-items: center; }
.fk-heat i { aspect-ratio: 1.6; border-radius: 3px; background: color-mix(in srgb, var(--text) 6%, transparent); position: relative; overflow: hidden; }
.fk-heat i::after { content: ''; position: absolute; inset: 0; background: var(--accent); opacity: calc(var(--v) * 0.95); }
.fk-heat .d, .fk-heat .h { font-size: 11px; color: var(--text-55); }
.fk-heat .h { text-align: left; }

/* ── Startseite: Hinweis auf den FokusTakt unter den Modulen ─────────────── */
.fk-teaser {
  position: relative; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 28px 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.fk-teaser:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 48px -24px rgb(0 0 0 / 0.45); }
.fk-teaser:focus-within { box-shadow: 0 0 0 2px var(--accent-strong); }
.fk-teaser .module-top { justify-content: flex-start; gap: 14px; }
.fk-teaser h3 { margin-top: 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.fk-teaser-copy > p { margin-top: 8px; max-width: 70ch; font-size: 15px; color: var(--text-72); }
.fk-teaser .checks { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; font-size: 14.5px; }
.fk-teaser .module-link { padding-top: 18px; }
.fk-teaser:hover .module-link .i { transform: translateX(3px); }
.fk-teaser-visual { width: 190px; font-size: 13px; }
.fk-teaser-visual .fk-ring { width: 100%; }
.fk-teaser-visual .fk-time { font-size: 3.4em; }
.fk-teaser-visual .fk-sub { font-size: 1em; }

/* ── Unterseiten (Impressum, Datenschutz) ────────────────────────────────── */

.legal { padding: calc(var(--nav-h) + 56px) 0 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; }
.legal h2 { margin-top: 36px; font-size: 20px; font-weight: 600; }
.legal p, .legal li { margin-top: 10px; color: var(--text-72); }
.legal .placeholder {
  margin-top: 24px; padding: 14px 18px; border-radius: var(--radius); font-size: 14.5px;
  background: color-mix(in srgb, #f5a524 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #f5a524 45%, transparent);
}
.legal .back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-size: 14.5px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

/* ── Responsiv ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .feature-grid, .ops-grid, .feature-grid.cols-3, .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect { grid-template-columns: 1fr; gap: 22px; }
  .modules, .modules.cols-2 { grid-template-columns: 1fr; }
  .module .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fk-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* T-546: Sieben Einträge, Sprachumschalter und zwei Knöpfe brauchen rund 1250 px. Die Kopfleiste darf
   deshalb breiter sein als der Inhalt (1360 statt 1200 px), die Einträge stehen immer dicht, und
   unter 1320 px übernimmt das Burger-Menü. Vorher ragte „Demo anfragen“ ab 1321 px über den Rand. */
.nav-inner { max-width: 1360px; }
.nav-links { gap: 0; margin-left: 4px; }
.nav-links > a { padding: 8px 10px; font-size: 14px; }

@media (max-width: 1319px) {
  .nav-burger { display: inline-grid; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0; padding: 16px 16px 24px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 20px 40px -20px rgb(0 0 0 / 0.5);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav.is-open { background: var(--bg); }
  .nav-links > a { padding: 12px; font-size: 16px; }
}

@media (max-width: 960px) {
  .connect-items { grid-template-columns: 1fr; gap: 18px; }
  .hide-sm { display: none; }
  .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

  .hero { min-height: auto; padding-bottom: 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .frame { transform: none; }
  .hero-visual { margin-right: 0; }
  .phone { left: auto; right: -8px; bottom: -28px; width: 112px; border-radius: 20px; padding: 4px; }
  .phone img { border-radius: 16px; }
  .slider-ui { padding-left: 0; padding-right: 110px; }
  .scroll-hint { display: none; }

  .role-panel { grid-template-columns: 1fr; gap: 28px; }
  .timeline, .timeline.steps-5 { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .fk-split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .feature-grid, .ops-grid, .feature-grid.cols-3, .links-grid { grid-template-columns: 1fr; }
  .module .checks { grid-template-columns: 1fr; }
  .timeline, .timeline.steps-5 { grid-template-columns: 1fr; }
  .callout { flex-direction: column; gap: 12px; }
  .fk-places, .fk-stats { grid-template-columns: 1fr; }
  .fk-teaser { grid-template-columns: 1fr; padding: 24px 20px; }
  .fk-teaser .checks { grid-template-columns: 1fr; }
  .fk-teaser-visual { display: none; }
  .fk-insights { padding: 18px 16px; }
  .roles-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .roles-tabs [role='tab'] { justify-content: center; padding: 9px 8px; font-size: 13.5px; }
  .showcase-track { grid-auto-columns: 88%; gap: 12px; padding-inline: 6%; }
  .slider-ui { flex-direction: column; align-items: flex-start; padding-right: 0; }
  .phone { display: none; }
  .cta-box { padding: 56px 20px; }
  .contact-form { padding: 20px 16px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-navs { align-items: flex-start; }
}

/* ── T-487: Navigationsgruppe „Für Mitarbeitende“ ────────────────────────────
   FokusTakt und TaktGefühl unter einem Eintrag. Breit: Knopf mit Ausklappmenü (landing.js,
   [data-nav-group]); ohne JS öffnet es über :hover/:focus-within. Im Burger-Menü entfällt der
   Knopf, die Links stehen eingerückt unter einer Zwischenzeile. */
.nav-group { position: relative; }
.nav-group-toggle {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 14.5px; color: var(--text-72); transition: color 0.2s, background-color 0.2s;
}
.nav-group-toggle .i { font-size: 13px; transition: transform 0.2s var(--ease); }
.nav-group-toggle:hover, .nav-group-toggle[aria-expanded='true'] { color: var(--text); background: var(--accent-tint); }
.nav-group-toggle[aria-expanded='true'] .i { transform: rotate(180deg); }
.nav-group:has([aria-current='page']) .nav-group-toggle { color: var(--accent-strong); background: var(--accent-tint); font-weight: 500; }
.nav-group-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 250px;
  display: none; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgb(0 0 0 / 0.45);
}
.nav-group-menu::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; } /* Brücke für :hover */
.nav-group.is-open .nav-group-menu,
html:not(.js) .nav-group:hover .nav-group-menu,
html:not(.js) .nav-group:focus-within .nav-group-menu { display: flex; }
.nav-group-menu a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 7px; text-decoration: none; transition: background-color 0.2s; }
.nav-group-menu a:hover { background: var(--accent-tint); }
.nav-group-name { font-size: 14.5px; font-weight: 500; color: var(--text); }
.nav-group-menu small { font-size: 12.5px; color: var(--text-55); }
.nav-group-menu a[aria-current='page'] { background: var(--accent-tint); }
.nav-group-menu a[aria-current='page'] .nav-group-name { color: var(--accent-strong); }
.nav-group-label { display: none; }

.nav-group-toggle { padding: 8px 10px; font-size: 14px; }
@media (max-width: 1319px) {
  .nav-group-toggle { display: none; }
  .nav-group { padding-bottom: 6px; }
  .nav-group-menu { position: static; display: flex; min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .nav-group-menu::before { content: none; }
  .nav-group-label {
    display: block; padding: 14px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-55);
  }
  .nav-group-menu a { margin-left: 12px; padding: 10px 12px; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
  .nav-group-menu a[aria-current='page'] { border-left-color: var(--accent); }
  .nav-group-name { font-size: 16px; font-weight: 400; color: var(--text-72); }
  .nav-group-menu small { display: none; }
}

/* ── T-487: Startseite – FokusTakt und TaktGefühl nebeneinander ──────────── */
.fk-teasers { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fk-teasers .fk-teaser { margin-top: 0; gap: 24px; }
.fk-teasers .fk-teaser .checks { grid-template-columns: 1fr; }
.fk-teasers .fk-teaser-visual { width: 136px; font-size: 10px; }
.tg-ring .arc { stroke-linecap: butt; }
.fk-ring .tg-ring-icon { width: 1em; height: 1em; font-size: 3.2em; color: var(--accent); transform: none; }

@media (max-width: 1100px) {
  .fk-teasers { grid-template-columns: 1fr; }
  .fk-teasers .fk-teaser .checks { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .fk-teasers .fk-teaser-visual { width: 190px; font-size: 13px; }
}
@media (max-width: 640px) {
  .fk-teasers .fk-teaser .checks { grid-template-columns: 1fr; }
}

/* ── T-487: TaktGefühl ───────────────────────────────────────────────────────
   Gezeichnete Ausschnitte (T-471–T-486): Seite TaktGefühl mit Barometer, Feierabendruhe,
   Erholung, Planungsfrist, Fairness und Belastungsübersicht. Anzeichen in --signal,
   Ampel in --ok/--warn/--bad wie in der App. */

/* Hero: Seite „TaktGefühl“ */
.tg-quiet-pill .i { font-size: 1.15em; color: var(--accent); }
.tg-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.8em; }
.tg-baro { display: flex; flex-direction: column; }
.tg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding-bottom: 0.5em; }
.tg-card-head b { font-size: 0.95em; font-weight: 600; white-space: nowrap; }
.tg-card-head .mock-tabs { font-size: 0.66em; }
.tg-sig { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: center; gap: 0.7em; padding: 0.75em 0; border-top: 1px solid var(--line); }
.tg-sig-icon { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.45em; background: var(--accent-tint); color: var(--accent-strong); }
.tg-sig-icon .i { font-size: 1.1em; }
.tg-sig-text { display: flex; flex-direction: column; min-width: 0; }
.tg-sig-text b, .tg-sig-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-sig-text b { font-size: 0.82em; font-weight: 600; }
.tg-sig-text small { font-size: 0.7em; color: var(--text-55); }
.tg-meter { width: 9.5em; height: 0.45em; border-radius: 1em; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.tg-meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--signal); }
.tg-dots { display: grid; grid-template-columns: repeat(18, 0.42em); gap: 0.11em; }
.tg-dots i { height: 0.9em; border-radius: 0.12em; background: color-mix(in srgb, var(--ok) 50%, transparent); }
.tg-dots i.warn { background: var(--signal); }
.tg-weeks { width: 9.5em; height: 1.6em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3em; align-items: end; }
.tg-weeks i { height: var(--h); border-radius: 0.2em 0.2em 0.05em 0.05em; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.tg-weeks i:last-child { background: var(--accent); }
.tg-baro-foot { margin-top: auto; display: flex; align-items: center; gap: 0.5em; padding-top: 0.6em; border-top: 1px solid var(--line); font-size: 0.72em; color: var(--text-55); }
.tg-baro-foot .i { font-size: 1.2em; color: var(--accent); }
.tg-side { display: flex; flex-direction: column; gap: 0.8em; min-width: 0; }
.tg-mcard { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4em; }
.tg-mcard .mock-btn { font-size: 0.72em; }
.tg-big { font-size: 1.9em; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.tg-big small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--text-55); }
.tg-fine { font-size: 0.75em; color: var(--text-72); }
.tg-fine b { font-weight: 600; color: var(--text); }
.tg-bridge-row { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding-top: 0.4em; border-top: 1px solid var(--line); }
.tg-bridge-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.tg-bridge-row b { font-size: 0.8em; font-weight: 600; white-space: nowrap; }
.tg-bridge-row small { font-size: 0.68em; color: var(--text-55); white-space: nowrap; }
.tg-mcard-comp { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%); }

/* Feierabendruhe: ein Abend im Zeitstrahl */
.tg-split { align-items: start; }

/* ── Zeiterfassung: Projektzeiten (T-535) ─────────────────────────────── */
.fk-split-copy .visual-caption { text-align: left; }
.pz-report { min-width: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
.pz-rows { margin: 14px 0 0; padding: 0; list-style: none; }
.pz-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto 26%; align-items: center; gap: 12px; padding: 7px 0 7px 18px; border-top: 1px solid var(--line); }
.pz-rows li > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-rows .num { font-variant-numeric: tabular-nums; text-align: right; }
.pz-rows .pz-group { padding-left: 0; font-weight: 600; }
.pz-rows .pz-muted { color: var(--text-55); }
.pz-rows .pz-total { padding-left: 0; font-weight: 700; border-top-width: 2px; }
.pz-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }
.pz-bar { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.pz-bar i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--c, var(--accent)); }
.pz-switch { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-strong); font-size: 13px; }
.pz-switch span { flex: 1; min-width: 0; }
.pz-switch em { font-style: normal; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .pz-report { padding: 18px 16px; }
  .pz-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .pz-rows .pz-bar { display: none; }
  .pz-switch em { display: none; }
}
/* ── Zeiterfassung: Projektsteuerung (Epic 49) ────────────────────────── */
.feature-grid + .pz-mocks { margin-top: 32px; }
.pz-mocks { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pz-mocks + .visual-caption { margin-top: 20px; }
.pz-week {
  margin-top: 14px; display: grid; grid-template-columns: minmax(0, 2.8fr) repeat(6, minmax(0, 1fr));
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.pz-week > span { padding: 7px 4px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-week .h { border-top: 0; font-size: 11.5px; font-weight: 600; color: var(--text-55); }
.pz-week .h:first-child, .pz-week .p, .pz-week .tl { text-align: left; }
.pz-week .p { min-width: 0; }
.pz-week .p .pz-dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.pz-week .e { color: var(--text-55); }
.pz-week .s { font-weight: 600; }
.pz-week .t { font-weight: 700; border-top-width: 2px; }
.pz-week .edit { margin: 2px; padding: 5px 4px; border-radius: 6px; border-top: 0; box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; }
.pz-ctrl { margin: 14px 0 0; padding: 0; list-style: none; }
.pz-ctrl li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.pz-ctrl li > span { display: flex; flex-direction: column; min-width: 0; }
.pz-ctrl b { font-weight: 600; }
.pz-ctrl small { font-size: 12px; color: var(--text-55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-tag {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-style: normal; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-72);
}
.pz-tag .i { font-size: 13px; }
.pz-tag.warn { background: var(--warn-bg); color: var(--warn); }
.pz-tag.bad { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 960px) {
  .pz-mocks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .pz-week { grid-template-columns: minmax(0, 1.7fr) repeat(6, minmax(0, 1fr)); font-size: 11.5px; }
  .pz-week > span { padding-inline: 2px; }
  .pz-week .p .pz-dot { display: none; }
}

.tg-after-split { margin-top: 56px; }
.tg-callout-gap { margin-top: 16px; }
.tg-day, .tg-load { min-width: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; }
.tg-track { position: relative; margin-top: 18px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.tg-track-work, .tg-track-quiet { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); }
.tg-track-work { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.tg-track-work:first-child { border-radius: 8px 0 0 8px; }
.tg-track-work:nth-child(3) { border-radius: 0 8px 8px 0; }
.tg-track-quiet {
  display: grid; place-items: center; color: var(--text-55);
  background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--text) 7%, transparent) 6px 12px);
}
.tg-track-quiet .i { font-size: 16px; }
.tg-mark { position: absolute; top: 50%; left: var(--l); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.tg-mark.held { background: var(--text-55); }
.tg-mark.now { background: var(--signal); }
.tg-mark.sent { background: var(--accent); }
.tg-axis { margin-top: 6px; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-55); font-variant-numeric: tabular-nums; }
.tg-mails { margin: 16px 0 0; padding: 0; list-style: none; }
.tg-mails li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tg-mails li > span:first-child { color: var(--text-55); font-variant-numeric: tabular-nums; }
.tg-mails li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.tg-mails li.digest { margin: 0 -12px; padding-inline: 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tg-mails b { font-weight: 600; }
.tg-mails small { font-size: 12px; color: var(--text-55); }
.tg-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-style: normal; white-space: nowrap; }
.tg-badge .i { font-size: 12px; }
.tg-badge.held { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-72); }
.tg-badge.now { background: var(--warn-bg); color: var(--warn); }
.tg-badge.sent { background: var(--accent-tint); color: var(--accent-strong); }
.tg-toast { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 13px; }
.tg-toast .i { flex: none; font-size: 17px; }

/* Erholung: vier Szenen (Rahmen aus .fk-place/.fk-scene) */
.tg-scene { display: grid; place-items: center; padding: 0.8em; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg) 75%); }
.tg-scene-glow { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--bg)), var(--bg)); }
.tg-scene-card {
  width: 100%; display: flex; flex-direction: column; gap: 0.55em; padding: 0.8em 0.9em; border-radius: 0.6em; font-size: 0.8em;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgb(0 0 0 / 0.35);
}
.tg-scene-title { font-size: 0.8em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-55); }
.tg-mrow { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; font-size: 0.9em; }
.tg-mrow .tg-dots { grid-template-columns: repeat(10, 0.75em); gap: 0.2em; }
.tg-mrow .tg-dots i { height: 1em; }
.tg-lock { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8em; color: var(--accent-strong); }
.tg-scene-note { align-self: center; width: 88%; margin-top: 0; font-size: 0.72em; }
.tg-note-btn { align-self: flex-start; margin-top: 0.5em; font-size: 0.95em; }
.tg-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25em; }
.tg-week span { display: flex; flex-direction: column; align-items: center; gap: 0.1em; min-width: 0; min-height: 3.1em; padding: 0.35em 0 0.3em; border-radius: 0.35em; box-shadow: inset 0 0 0 1px var(--line); }
.tg-week small { font-size: 0.85em; color: var(--text-55); }
.tg-week i { font-size: 0.6em; font-style: normal; font-weight: 600; }
.tg-week .hol, .tg-week .off { background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.tg-week .hol i { color: var(--accent-strong); }
.tg-week .vac { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.tg-week .vac small { color: inherit; }
.tg-scene-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; font-size: 0.9em; }
.tg-scene-foot .mock-btn { font-size: 0.85em; }
.tg-saldo { font-size: 2.3em; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ok); }
.tg-gauge { position: relative; height: 0.55em; margin: 0.3em 0 1.3em; border-radius: 1em; background: color-mix(in srgb, var(--text) 10%, transparent); }
.tg-gauge > i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); }
.tg-gauge-mark { position: absolute; top: -0.3em; bottom: -0.3em; left: var(--l); width: 2px; background: var(--text-55); }
.tg-gauge-mark em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 0.15em; font-size: 0.75em; font-style: normal; color: var(--text-55); white-space: nowrap; }
.tg-scene-btn { align-self: flex-start; font-size: 0.85em; }

/* Organisation: Planungsfrist und Fairness */
.tg-org { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tg-org-card { display: flex; flex-direction: column; }
.tg-org-card > p:not(.flow) { margin-bottom: 20px; }
.tg-panel { margin-top: auto; padding: 16px 18px; border-radius: calc(var(--radius) - 2px); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.tg-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tg-panel-head .i { font-size: 18px; color: var(--accent-strong); }
.tg-panel-head b { font-weight: 600; }
.tg-panel-head .mock-tabs { margin-left: auto; font-size: 12px; }
.tg-panel-text { margin-top: 8px; color: var(--text-72); }
.tg-choice { margin-top: 10px; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tg-choice i { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-55); }
.tg-choice.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.tg-choice.on i { box-shadow: inset 0 0 0 5px var(--accent); }
.tg-choice span { display: flex; flex-direction: column; min-width: 0; }
.tg-choice b { font-weight: 600; }
.tg-choice small { font-size: 12.5px; color: var(--text-55); }
.tg-panel-actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; font-size: 15px; }
.tg-fair { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.tg-fair span { padding: 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-fair span:not(:nth-child(4n + 1)) { text-align: right; }
.tg-fair .h { align-self: end; overflow: visible; border-top: 0; font-size: 11px; font-weight: 600; color: var(--text-55); white-space: normal; }
.tg-fair .hi { border-radius: 4px; background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.tg-fair .f { font-weight: 600; color: var(--text-72); }

/* Belastungsübersicht */
.tg-load-tools { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tg-load-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.tg-load-btn .i { font-size: 14px; color: var(--accent-strong); }
.tg-table { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 13px; }
.tg-table > span {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; min-width: 0;
  padding: 7px 6px; border-radius: 5px; text-align: right; font-variant-numeric: tabular-nums;
}
.tg-table .h { justify-content: flex-end; padding: 0 6px 4px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--text-72); hyphens: manual; }
.tg-table .h:first-child, .tg-table .g { align-items: flex-start; text-align: left; }
.tg-table small { font-size: 10.5px; font-weight: 400; color: var(--text-55); }
.tg-table .g { font-weight: 500; hyphens: auto; }
.tg-table .ok { background: var(--ok-bg); color: var(--ok); }
.tg-table .mid { background: var(--warn-bg); color: var(--warn); }
.tg-table .hi { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.tg-legend { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12.5px; color: var(--text-72); }
.tg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tg-legend i { width: 12px; height: 12px; border-radius: 3px; }
.tg-legend i.ok { background: var(--ok); }
.tg-legend i.mid { background: var(--signal); }
.tg-legend i.hi { background: var(--bad); }
.tg-legend .i { font-size: 14px; }
.tg-legend-note { margin-left: auto; color: var(--text-55); }

@media (max-width: 1100px) {
  .tg-org { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tg-day, .tg-load { padding: 18px 14px; }
  .tg-mails li { gap: 8px; font-size: 13px; }
  .tg-table { gap: 3px; font-size: 11.5px; }
  .tg-table > span { padding: 6px 4px; }
  .tg-table .h { padding: 0 4px 4px; font-size: 10px; }
  .tg-table small { font-size: 9.5px; }
  .tg-table .h small { display: none; }
  .tg-fair { font-size: 12.5px; }
  .tg-fair span { padding: 6px 4px; }
  .tg-legend-note { margin-left: 0; }
}

/* ── Weniger Bewegung ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .enter, .js [data-reveal] { opacity: 1; transform: none; }
  .frame { transform: none; }
  .js .shot:not(.is-current) { opacity: 1; transform: none; }
}
