/* ============================================================
   DerPassiTech — Stylesheet
   Helles Werkstatt-Thema nach Kanal-Logo: warmes Grau, Schwarz,
   Glitch-Wortmarke. Bewusst Single-Theme.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #e4e2dc;          /* warmes Grau wie im Logo */
  --surface: #ebeae5;
  --surface-2: #dbd9d2;
  --line: #c8c5bc;
  --ink: #1a1918;
  --text: #1a1918;
  --muted: #5f5d56;
  /* Kupfer/Amber, bewusst sparsam eingesetzt: Haupt-Knopf und ein paar
     Hover-Zustaende, nicht der Fliesstext oder die Wortmarke. Beide Werte
     gegen alles geprueft, worauf sie tatsaechlich liegen (Knopf-Hintergrund,
     Text auf der Seite): mindestens 4.5:1. */
  --accent: #96521b;
  --accent-hover: #824717;
  /* Fuers Band (01/02/03): das bleibt in beiden Farbschemata dunkel, darum
     ein fester Wert statt einer zweiten Definition im Dark-Block. */
  --band-akzent: #d69544;
  --live: #c8341f;        /* Aufnahme-Rot für Stream/Video */
  --code-bg: #17161a;
  --code-text: #e6e3da;
  --code-muted: #8a887f;
  --code-accent: #ef6b52;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap-max: 80rem;
  --radius: 18px;
  --radius-klein: 12px;

  /* Glas: durchscheinende Flaeche, Lichtkante oben, weicher Tiefenschatten.
     Bewusst im warmen Grau der Marke statt im blauen Apple-Ton. */
  --glas: rgba(246, 245, 241, 0.55);
  --glas-stark: rgba(246, 245, 241, 0.72);
  --glas-weich: blur(14px) saturate(1.5);
  --kante: inset 0 1px 0 rgba(255, 255, 255, 0.85),
           inset 0 0 0 1px rgba(255, 255, 255, 0.35),
           inset 0 -1px 0 rgba(26, 25, 24, 0.05);
  --tiefe: 0 1px 2px rgba(26, 25, 24, 0.05), 0 10px 26px rgba(26, 25, 24, 0.09);
  --tiefe-hoch: 0 2px 4px rgba(26, 25, 24, 0.07), 0 18px 40px rgba(26, 25, 24, 0.14);
  --glas-fokus: rgba(250, 249, 246, 0.9);
  --glas-kopf: rgba(240, 239, 234, 0.5);
  --glas-menue: rgba(240, 239, 234, 0.72);
  --kopf-massiv: rgba(236, 235, 230, 0.96);
  --kopf-kante: rgba(26, 25, 24, 0.1);
  --kopf-glanz: rgba(255, 255, 255, 0.55);

  --text-weich: #3c3a36;
  --ok: #1f7a4d;
  --band-text: #b9b6ac;
  --ink-hover: #2b2926;
  --band-bg: #1a1918;
  --band-rand: transparent;
  --band-rand-innen: rgba(255, 255, 255, 0.12);
  --band-hover: #221f27;
  --band-ink: #e4e2dc;

  --platine: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjAiIGhlaWdodD0iMjYwIiB2aWV3Qm94PSIwIDAgMjYwIDI2MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMWExOTE4IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPjxwYXRoIGQ9Ik0wIDM4IEg1MiBsMTQgLTE4IEgxMTQgbDE0IDE4IEgxNjggbDE0IDE2IEgyMzAgbDE0IC0xNiBIMjYwIi8+PHBhdGggZD0iTTAgMTMyIEg5NiBsMTQgMjAgSDE1OCBsMTQgLTIwIEgyNjAiLz48cGF0aCBkPSJNMCAyMTQgSDMwIGwxNCAtMTYgSDkyIGwxNCAxNiBIMTUwIGwxNCAtMjAgSDIxMiBsMTQgMjAgSDI2MCIvPjxwYXRoIGQ9Ik03NCAwIFY2MCBsMTggMTQgVjEyMiBsLTE4IDE0IF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ibm9uZSIvPjwvZz48L3N2Zz4=");
  --platine-deckkraft: 0.24;
  --licht: rgba(255, 255, 255, 0.95);
  --schatten-fleck: rgba(26, 25, 24, 0.13);
  --streifen-schwach: rgba(255, 255, 255, 0.55);
  --streifen-stark: rgba(255, 255, 255, 0.75);
  --rand-dunkel: rgba(26, 25, 24, 0.14);
  --korn: 0.45;
}

/* ---------- Dunkler Modus: folgt der Einstellung von Handy und PC ---------- */

@media (prefers-color-scheme: dark) {
  .feld select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239d9a95' stroke-width='1.6'/%3E%3C/svg%3E");
  }
  :root {
    --bg: #16151a;
    --surface: #1e1d23;
    --surface-2: #27262d;
    --line: #35333d;
    --ink: #edeae3;
    --text: #edeae3;
    --muted: #9d9a95;
    --accent: #d69544;
    --accent-hover: #dfa459;
    --live: #ff6f56;
    --code-bg: #0e0d12;
    --code-text: #e6e3da;
    --code-muted: #8a887f;
    --code-accent: #ff8a6e;

    /* Glas wird im Dunkeln dunkler, die Lichtkante schwaecher. */
    --glas: rgba(52, 50, 60, 0.5);
    --glas-stark: rgba(60, 58, 68, 0.66);
    --kante: inset 0 1px 0 rgba(255, 255, 255, 0.13),
             inset 0 0 0 1px rgba(255, 255, 255, 0.05),
             inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    --tiefe: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.42);
    --tiefe-hoch: 0 2px 6px rgba(0, 0, 0, 0.45), 0 20px 44px rgba(0, 0, 0, 0.55);
    --glas-fokus: rgba(64, 62, 74, 0.8);
    --glas-kopf: rgba(28, 27, 33, 0.52);
    --glas-menue: rgba(28, 27, 33, 0.82);
    --kopf-massiv: rgba(24, 23, 28, 0.96);
    --kopf-kante: rgba(255, 255, 255, 0.09);
    --kopf-glanz: rgba(255, 255, 255, 0.07);

    --text-weich: #c9c5bd;
    --ok: #5fd39b;
    --band-text: #a5a29a;
    --ink-hover: #fdfbf6;
    --band-bg: #221f27;
    --band-rand: #35333d;
    --band-rand-innen: rgba(255, 255, 255, 0.09);
    --band-hover: #2b2833;
    --band-ink: #edeae3;

    --platine: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjAiIGhlaWdodD0iMjYwIiB2aWV3Qm94PSIwIDAgMjYwIDI2MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTllNmRmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPjxwYXRoIGQ9Ik0wIDM4IEg1MiBsMTQgLTE4IEgxMTQgbDE0IDE4IEgxNjggbDE0IDE2IEgyMzAgbDE0IC0xNiBIMjYwIi8+PHBhdGggZD0iTTAgMTMyIEg5NiBsMTQgMjAgSDE1OCBsMTQgLTIwIEgyNjAiLz48cGF0aCBkPSJNMCAyMTQgSDMwIGwxNCAtMTYgSDkyIGwxNCAxNiBIMTUwIGwxNCAtMjAgSDIxMiBsMTQgMjAgSDI2MCIvPjxwYXRoIGQ9Ik03NCAwIFY2MCBsMTggMTQgVjEyMiBsLTE4IDE0IFYyNjAiLz48cGF0aCBkPSJNMTk2IDAgVjE0MCBsLTE2IDE0IFYyMDIgbDE2IDE0IFYyNjAiLz48cGF0aCBkPSJNNzQgMzggbDAgLTIyIi8+PHBhdGggZD0iTTE5NiAxMzIgbDI0IDAiLz48cGF0aCBkPSJNMTMyIDEzMiBsMCAyNiIvPjxwYXRoIGQ9Ik03NCAyMTQgbC0yNiAwIi8+PGNpcmNsZSBjeD0iNzQiIGN5PSIzOCIgcj0iNS41IiBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjIuNiIvPjxjaXJjbGUgY3g9Ijc0IiBjeT0iMzgiIHI9IjEuNyIgZmlsbD0iI2U5ZTZkZiIgc3Ryb2t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2tlPSJub25lIi8+PGNpcmNsZSBjeD0iNzQiIGN5PSIxNiIgcj0iNS41IiBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjIuNiIvPjxjaXJjbGUgY3g9Ijc0IiBjeT0iMTYiIHI9IjEuNyIgZmlsbD0iI2U5ZTZkZiIgc3Ryb2tlPSJub25lIi8+PGNpcmNsZSBjeD0iMjIwIiBjeT0iMTMyIiByPSI1LjUiIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iMi42Ii8+PGNpcmNsZSBjeD0iMjIwIiBjeT0iMTMyIiByPSIxLjciIGZpbGw9IiNlOWU2ZGYiIHN0cm9rZT0ibm9uZSIvPjxjaXJjbGUgY3g9IjEzMiIgY3k9IjE1OCIgcj0iNS41IiBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjIuNiIvPjxjaXJjbGUgY3g9IjEzMiIgY3k9IjE1OCIgcj0iMS43IiBmaWxsPSIjZTllNmRmIiBzdHJva2U9Im5vbmUiLz48Y2lyY2xlIGN4PSI0OCIgY3k9IjIxNCIgcj0iNS41IiBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjIuNiIvPjxjaXJjbGUgY3g9IjQ4IiBjeT0iMjE0IiByPSIxLjciIGZpbGw9IiNlOWU2ZGYiIHN0cm9rZT0ibm9uZSIvPjwvZz48L3N2Zz4=");
    --platine-deckkraft: 0.2;
    --licht: rgba(255, 255, 255, 0.07);
    --schatten-fleck: rgba(0, 0, 0, 0.5);
    --streifen-schwach: rgba(255, 255, 255, 0.035);
    --streifen-stark: rgba(255, 255, 255, 0.06);
    --rand-dunkel: rgba(0, 0, 0, 0.55);
    --korn: 0.3;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  /* Fusszeile bleibt unten, auch wenn der Inhalt das Fenster nicht fuellt. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Textmarkierung passend zur Marke statt dem blauen Browser-Standard. */
::selection { background: var(--ink); color: var(--bg); }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 1.5rem; }
/* iPhone quer: Kerbe/Dynamic Island sitzt seitlich, sonst laege Text darunter. */
.wrap { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }

/* ---------- Typo-Rollen ---------- */

h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }

.display {
  font-stretch: 125%;
  font-weight: 870;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* ---------- Glitch-Wortmarke (wie das Kanal-Logo) ---------- */

.glitch {
  position: relative;
  display: block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: inherit;
  pointer-events: none;
}
/* verschobene Querstreifen wie im Logo */
.glitch::before {
  clip-path: inset(28% 0 52% 0);
  transform: translateX(0.06em);
}
.glitch::after {
  clip-path: inset(62% 0 18% 0);
  transform: translateX(-0.05em);
}

/* Sprunglink: nur sichtbar, wenn er den Tastaturfokus bekommt. */
.sprunglink {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-klein);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-decoration: none;
  transition: top 0.18s ease;
}
.sprunglink:focus { top: 0.75rem; }

/* ---------- Header ---------- */

.kopf-marke { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Als Homescreen-App reicht das Milchglas bis unter die Kerbe/Dynamic
     Island hoch, der Inhalt in .wrap bleibt darunter zentriert. */
  padding-top: env(safe-area-inset-top);
  /* Milchglas: die Platine scheint durch, die Navigation bleibt lesbar. */
  background: var(--glas-kopf);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border-bottom: 1px solid var(--kopf-kante);
  box-shadow: inset 0 -1px 0 var(--kopf-glanz), 0 6px 20px rgba(26, 25, 24, 0.07);
  transition: background-color 0.28s ease, border-color 0.28s ease,
              box-shadow 0.28s ease;
}
/* Ganz oben verschwindet der Balken, die Seite laeuft unter dem Logo
   durch. Die Klasse setzt JavaScript — ohne bleibt es beim Milchglas. */
.site-header.oben {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* Bei geoeffnetem Menue immer der volle Hintergrund. */
.site-header.oben.nav-open {
  background: var(--glas-kopf);
  border-bottom-color: var(--kopf-kante);
  box-shadow: inset 0 -1px 0 var(--kopf-glanz), 0 6px 20px rgba(26, 25, 24, 0.07);
}
/* Wo Milchglas fehlt, deckt der Balken staerker ab. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--kopf-massiv); }
  .site-header.oben.nav-open { background: var(--kopf-massiv); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .brand-top {
  font-stretch: 122%;
  font-weight: 880;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand .brand-sub {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--muted);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: 4.5rem 0 4rem; }
.logo-lockup {
  text-transform: uppercase;
  font-stretch: 118%;
  font-weight: 900;
  line-height: 0.96;
  font-size: clamp(3.2rem, 9.6vw, 10.5rem);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-lockup .l3 {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.52em;
  margin-top: 1.1rem;
  color: var(--ink);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.45rem;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.18s ease, background-color 0.18s ease;
}
/* Lichtreflex auf der Oberkante — das macht die Woelbung aus. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  z-index: -1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.965); }

.btn-primary::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--tiefe);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px) scale(1.015); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--tiefe-hoch); }
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 3px rgba(26, 25, 24, 0.12); }

.btn-ghost {
  color: var(--ink);
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  box-shadow: var(--kante), var(--tiefe);
}
.btn-ghost:hover { background: var(--glas-stark); transform: translateY(-1px) scale(1.015); box-shadow: var(--kante), var(--tiefe-hoch); }
.btn-ghost:active { box-shadow: var(--kante), 0 1px 3px rgba(26, 25, 24, 0.1); }


/* ---------- Portal-Kacheln (Startseite) ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile {
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--kante), var(--tiefe);
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.2s ease, background-color 0.2s ease;
}
.tile:hover { text-decoration: none; background: var(--glas-stark); transform: translateY(-4px);
  box-shadow: var(--kante), var(--tiefe-hoch); }
.tile:active { transform: translateY(-1px) scale(0.99); box-shadow: var(--kante), var(--tiefe); }
.tile-go { transition: transform 0.16s ease; }
.tile:hover .tile-go { transform: translateX(4px); }
.tile .glyph { width: 19px; height: 19px; opacity: 0.45; }
.tile h2 { font-size: 1.2rem; font-stretch: 118%; font-weight: 800; text-transform: uppercase; }
.tile p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.tile-go { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--ink); }


/* ---------- Plakat: Startseiten-Hero ----------
   Die Wortmarke laeuft absichtlich ueber den rechten Rand hinaus. Damit
   das keine Seitwaerts-Scrollleiste erzeugt, schneidet der Abschnitt ab
   (overflow: clip) — die Marke ragt aus ihrem Kasten, nicht aus der Seite. */

.hero-plakat {
  position: relative;
  overflow: clip;
  padding: 3.4rem 0 2.6rem;
}

.hero-plakat .logo-lockup {
  font-stretch: 125%;
  font-size: clamp(3rem, 15.5vw, 7rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  white-space: nowrap;
  margin-right: 0;
}

/* Jedes Wort schiebt sich aus seiner eigenen Maske nach oben. */
.hero-plakat .maske { overflow: hidden; display: block; }
@keyframes schub { from { transform: translateY(102%); } to { transform: none; } }
.hero-plakat .maske > .glitch { animation: schub 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero-plakat .maske:nth-child(2) > .glitch { animation-delay: 0.12s; }

/* Wortmarke links, Text und Knoepfe rechts daneben. Untereinander wuerde
   der Schriftzug den ganzen Bildschirm fuellen und vom Rest der Seite
   waere nichts mehr zu sehen. */
.hero-raster { display: flex; flex-direction: column; gap: 0.5rem; }
.hero-raster .l3 {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.8vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.52em;
  color: var(--muted);
  margin: 0;
}
.hero-fuss-rechts { display: flex; flex-direction: column; gap: 1.35rem; align-items: flex-start; margin-top: 1.5rem; }
.hero-raster .lead { max-width: 42ch; color: var(--text-weich); font-size: 1.06rem; margin: 0; }

@media (min-width: 940px) {
  .hero-plakat { padding: 3.2rem 0 2.6rem; }
  /* Die Groesse haengt an der Breite des Rasters, nicht an der des
     Fensters: die Inhaltsspalte hoert bei 80rem auf zu wachsen, das
     Fenster nicht — sonst waechst die Marke in die Textspalte hinein. */
  .hero-raster { container-type: inline-size; }
  .hero-plakat .logo-lockup { font-size: min(15rem, 14cqi); }
  .hero-raster {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.88fr);
    column-gap: 3rem;
    align-items: end;
  }
  .hero-raster .logo-lockup { grid-column: 1; grid-row: 1; }
  .hero-raster .l3 { grid-column: 1; grid-row: 2; margin-top: 0.5rem; }
  .hero-fuss-rechts { grid-column: 2; grid-row: 1 / span 2; align-items: flex-end; text-align: right; margin: 0 0 0.4rem; }
  .hero-raster .lead { text-align: right; }
}

/* Ein Impuls wandert die Leiterbahn entlang — das Muster im Hintergrund
   ist sonst nur Tapete. */
.hero-spur { position: absolute; inset: 0; pointer-events: none; opacity: 0.32; }
.hero-spur svg { width: 100%; height: 100%; display: block; }
.hero-spur .ruhig { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; opacity: 0.42; }
.hero-spur .puls-bahn { fill: none; stroke: var(--live); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 260; }
@keyframes spur { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1200; } }
.hero-spur .puls-bahn { animation: spur 9s linear infinite; }
.hero-spur .puls-bahn:nth-of-type(2) { animation-delay: -4.5s; }

/* ---------- Laufband ---------- */

.laufband {
  background: var(--band-bg);
  color: var(--band-text);
  overflow: hidden;
  padding: 0.8rem 0;
  border-top: 1px solid var(--band-rand);
  border-bottom: 1px solid var(--band-rand);
}
.laufband-inhalt { display: flex; width: max-content; }
.laufband span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
  padding-right: 2.1rem;
}
@keyframes lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.laufband-inhalt { animation: lauf 38s linear infinite; will-change: transform; }

/* ---------- Die drei Wege (schwarzes Band) ---------- */

.wege {
  background: var(--band-bg);
  color: var(--band-text);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border: 0;
}
.weg {
  padding: 2.3rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--band-rand-innen);
  transition: background-color 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.weg:last-child { border-right: 0; }
.weg:hover { text-decoration: none; background: var(--band-hover); }
.weg-nr {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--band-text);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), color 0.25s ease;
}
.weg:hover .weg-nr { transform: translateY(-3px); color: var(--band-akzent); }
.weg h2 {
  font-size: 1.28rem;
  font-stretch: 118%;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--band-ink);
  margin: 0.15rem 0 0;
}
.weg p { color: var(--band-text); font-size: 0.95rem; margin: 0; flex: 1; }
.weg-go {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--band-ink);
  opacity: 0.62;
  margin-top: 0.9rem;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.25s ease;
}
.weg:hover .weg-go { transform: translateX(6px); opacity: 1; }
.weg:focus-visible { outline: 2px solid var(--band-ink); outline-offset: -4px; }

/* ---------- Haltung, gross gesetzt ---------- */

.haltung .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.haltung h2 {
  font-size: clamp(1.9rem, 5.4vw, 4rem);
  font-stretch: 125%;
  font-weight: 870;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
}
.haltung p { max-width: 44ch; color: var(--text-weich); margin: 0 0 0.4rem; }

/* ---------- Live-Abzeichen in der Kopfzeile ---------- */

.live-abzeichen {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.live-abzeichen:hover { text-decoration: none; border-color: var(--ink); }
.ist-live .live-abzeichen { display: inline-flex; }
@keyframes puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }
.live-abzeichen .live-dot { animation: puls 2.4s ease-in-out infinite; margin-right: 0; }

/* Handy: die drei Wege stehen untereinander. */
@media (max-width: 860px) {
  .wege { grid-template-columns: 1fr; }
  .weg { border-right: 0; border-bottom: 1px solid var(--band-rand-innen); padding: 1.9rem 1.5rem 1.7rem; }
  .weg:last-child { border-bottom: 0; }
  .haltung .wrap { gap: 1.6rem; }
}

/* Ruhige Einstellung am Geraet legt alles still. */
@media (prefers-reduced-motion: reduce) {
  .hero-plakat .maske > .glitch,
  .laufband-inhalt,
  .hero-spur .puls-bahn,
  .live-abzeichen .live-dot { animation: none !important; }
  .hero-spur .puls-bahn { stroke-dasharray: none; opacity: 0.5; }
}

/* ---------- Hintergrund (liegt hinter allen Seiten) ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

/* Leiterbahnen wie auf einer Platine — das Material, an dem hier
   geloetet wird. Die Kachel ist nahtlos, deshalb faellt die
   Wiederholung nicht auf. */
.bg-platine {
  position: absolute;
  inset: 0;
  opacity: var(--platine-deckkraft);
  /* In der Mitte, wo der Text steht, laufen die Bahnen aus. */
  -webkit-mask-image: radial-gradient(120% 95% at 50% 42%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 45%, #000 100%);
  mask-image: radial-gradient(120% 95% at 50% 42%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 45%, #000 100%);
  background-image: var(--platine);
  background-size: 520px 520px;
}

/* Zwei weiche Lichtflecken, die langsam wandern, plus dunklere Raender. */
.bg-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 32% at 20% 16%, var(--licht), transparent 68%),
    radial-gradient(36% 30% at 84% 74%, var(--schatten-fleck), transparent 70%);
  animation: drift 30s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}
/* Laeuft erst an, wenn die Seite fertig geladen ist (Klasse per JS) --
   das Rastern der Verlaufsflaechen soll nicht ins Ladefenster fallen,
   das Lighthouse & Co. fuer Total Blocking Time messen. */
.bg-an .bg-glow { animation-play-state: running; }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* Ein heller Streifen wandert langsam durch — wie Licht ueber die Werkbank. */
.bg-scan {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 55%;
  top: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--streifen-schwach) 45%,
    var(--streifen-stark) 50%,
    var(--streifen-schwach) 55%,
    transparent 100%);
  animation: streifen 13s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
.bg-an .bg-scan { animation-play-state: running; }
@keyframes streifen {
  from { transform: translate3d(0, -70%, 0); }
  to   { transform: translate3d(0, 220%, 0); }
}

/* Abdunkelung zu den Raendern gibt der Flaeche Tiefe. */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 85% at 50% 38%, transparent 52%, var(--rand-dunkel) 100%);
}

/* Leichtes Korn, damit die Flaeche nicht digital-glatt wirkt. */
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: var(--korn);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
}

/* ---------- Bewegung ---------- */

/* Die Wortmarke zuckt gelegentlich, wie das Logo selbst */
.hero .glitch::before { animation: zuck-a 7s steps(1, end) infinite; }
.hero .glitch::after  { animation: zuck-b 7s steps(1, end) infinite; }
@keyframes zuck-a {
  0%, 88%, 100% { transform: translateX(0.06em); }
  90%           { transform: translateX(0.17em); }
  92%           { transform: translateX(-0.03em); }
  94%           { transform: translateX(0.11em); }
}
@keyframes zuck-b {
  0%, 89%, 100% { transform: translateX(-0.05em); }
  91%           { transform: translateX(-0.15em); }
  93%           { transform: translateX(0.04em); }
  95%           { transform: translateX(-0.1em); }
}

/* Einblenden beim Laden */
.hero .logo-lockup { animation: auftritt 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero p.lead       { animation: auftritt 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s both; }
.hero .hero-cta    { animation: auftritt 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both; }
@keyframes auftritt {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Beim Scrollen nachziehen (nur wenn JavaScript laeuft) */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.sichtbar {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal:nth-child(2).sichtbar { transition-delay: 0.08s; }
.js .reveal:nth-child(3).sichtbar { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .bg-glow, .bg-scan { animation: none; }
  .bg-scan { opacity: 0.5; }
  .js .reveal, .js .reveal.sichtbar { opacity: 1; transform: none; }
}

/* ---------- Abschnitte ---------- */

section { padding: 4.2rem 0; }
/* Sprungmarken enden unterhalb der Kopfzeile, nicht darunter. */
section[id], .article-head { scroll-margin-top: 84px; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-head .more { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }

/* ---------- Leistungen ---------- */

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service {
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  box-shadow: var(--kante), var(--tiefe);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.service:nth-child(even) { transform: translateY(14px); }
.service .glyph { width: 19px; height: 19px; opacity: 0.45; transition: color 0.2s ease, opacity 0.2s ease; }
.service:hover .glyph { color: var(--accent); opacity: 0.85; }
.service h2 { font-size: 1.15rem; font-stretch: 115%; font-weight: 780; text-transform: uppercase; letter-spacing: 0.02em; }
.service p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.service ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.service li { color: var(--muted); font-size: 0.95rem; padding-left: 1.1rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.35; }
.service .price {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}
/* Groesseres Tippfeld, ohne den sichtbaren Abstand zu veraendern:
   Polsterung zieht den klickbaren Bereich auf, der negative Rand
   gleicht das Layout wieder aus. */
.service .price a { display: inline-block; padding: 0.68rem 0; margin: -0.68rem 0; text-decoration-thickness: 1.5px; }

/* ---------- Ablauf ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step { position: relative; padding-top: 0.4rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1rem; font-stretch: 112%; font-weight: 740; text-transform: uppercase; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Stream / Kanal-Band ---------- */

.yt-band {
  background: var(--band-bg);
  border: 1px solid var(--band-rand);
  color: var(--code-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--tiefe);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.yt-band h2 { font-size: 1.4rem; font-stretch: 118%; font-weight: 800; text-transform: uppercase; }
.yt-band p { color: var(--band-text); max-width: 50ch; }
.yt-band strong { color: var(--code-text); }
.yt-band h2 { color: var(--code-text); }
.yt-band .btn-primary { background: #f4f2ec; color: #1a1918; }
.yt-band .btn-primary:hover { background: #fff; color: #1a1918; }
/* Der Aufnahmepunkt erscheint nur, wenn wirklich gestreamt wird — die
   Klasse setzt nav.js, nachdem live.php geantwortet hat. Ohne JavaScript
   oder ohne Antwort bleibt er aus. */
.live-dot {
  display: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 0.45rem;
  vertical-align: 1px;
}
.ist-live .live-dot { display: inline-block; }

/* ---------- Guide-Liste (Video-Index) ---------- */

.guide-list { display: flex; flex-direction: column; }
.guide-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1.15rem 0.4rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.guide-row { transition: background-color 0.16s ease; }
.guide-row:hover { text-decoration: none; background: var(--surface); }
.guide-row:active { background: var(--surface-2); }
.guide-row .go { transition: transform 0.16s ease; }
.guide-row:hover .go { transform: translateX(4px); }
.guide-row:last-child { border-bottom: 1px solid var(--line); }
.guide-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-klein);
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  box-shadow: var(--kante), 0 1px 3px rgba(26, 25, 24, 0.06);
  display: grid;
  place-items: center;
}
.guide-thumb svg { width: 26px; height: 26px; }
.guide-row h2 { font-size: 1.05rem; font-weight: 680; line-height: 1.3; }
.guide-row .meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  gap: 0 0.55rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}
.guide-row .meta span { white-space: nowrap; }
.guide-row .meta span:not(:last-child)::after { content: "·"; margin-left: 0.55rem; opacity: 0.65; }
.guide-row .go { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); white-space: nowrap; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

/* ---------- Linkliste (/links) ---------- */

.links-kopf { text-align: center; padding: 3.4rem 0 2.2rem; }
.links-kopf .eyebrow { display: flex; justify-content: center; }
.links-kopf h1 { margin: 0.7rem 0 0; }
.links-kopf p.lead { margin: 0.9rem auto 0; max-width: 34ch; text-align: center; }

.link-liste { display: flex; flex-direction: column; gap: 0.7rem; padding-bottom: 3.5rem; }
.link-zeile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  box-shadow: var(--kante), 0 1px 3px rgba(26, 25, 24, 0.06);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1), background-color 0.16s ease;
}
.link-zeile:hover { text-decoration: none; transform: translateY(-2px); }
.link-zeile:active { transform: translateY(0); }
.link-zeile .icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-klein);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.link-zeile .icon svg { width: 22px; height: 22px; }
/* Die vier Social-Icons in ihren echten Markenfarben, weisses Symbol
   darauf — der Rest (Werkstatt, Guides, Kontakt) bleibt neutral, dafuer
   gibt es keine Markenfarbe. */
.marke-youtube .icon { background: #ff0000; color: #fff; }
.marke-twitch .icon { background: #9146ff; color: #fff; }
.marke-instagram .icon { background: linear-gradient(135deg, #feda75, #d62976 60%, #4f5bd5); color: #fff; }
.marke-tiktok .icon { background: #000; color: #fff; }
.link-zeile .txt { flex: 1 1 auto; min-width: 0; }
.link-zeile .txt strong { display: flex; align-items: center; gap: 0.45rem; font-size: 1rem; font-weight: 700; }
/* Direktes Kind, nicht ".txt span": sonst würde das auch den
   .live-dot treffen, der im Twitch-Eintrag in .txt strong steckt,
   und ihn immer anzeigen statt nur bei echtem Stream. */
.link-zeile .txt > span { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.link-zeile .go { flex: 0 0 auto; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); transition: transform 0.16s ease; }
.link-zeile:hover .go { transform: translateX(4px); color: var(--ink); }

/* ---------- Artikel / Guide-Seite ---------- */

.article { padding: 3.5rem 0 4.5rem; }
.article-head { margin-bottom: 2.5rem; }
.article-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0.8rem 0 1rem; max-width: 22ch; }
.article-head .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); display: flex; gap: 1.2rem; flex-wrap: wrap; }

.article-body { max-width: 68ch; display: flex; flex-direction: column; gap: 1.15rem; }
/* Ohne min-width:0 waechst ein Flex-Kind auf seinen Inhalt, statt zu
   scrollen — breite Tabellen und Befehlsbloecke wuerden die Seite sprengen. */
.article-body > * { min-width: 0; }
.article-body h2 {
  font-size: 1.35rem;
  font-stretch: 112%;
  font-weight: 780;
  text-transform: uppercase;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.article-body h3 { font-size: 1.08rem; font-weight: 700; margin-top: 0.6rem; }
.article-body p { color: var(--text-weich); }
.article-body ul, .article-body ol { padding-left: 1.3rem; color: var(--text-weich); display: flex; flex-direction: column; gap: 0.4rem; }
.article-body strong { color: var(--ink); }

.video-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  border-left: 3px solid var(--live);
  box-shadow: var(--kante), var(--tiefe);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.video-cta svg { width: 34px; height: 34px; flex-shrink: 0; }
.video-cta .label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.video-cta a { font-weight: 680; }

.note {
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  border-left: 3px solid var(--ink);
  box-shadow: var(--kante), var(--tiefe);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  color: var(--text-weich);
  font-size: 0.95rem;
}
.note.warn { border-left-color: var(--live); }

/* Befehls-Blöcke — bewusst dunkel wie ein Terminal */
.cmd {
  background: var(--code-bg);
  border-radius: var(--radius-klein);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--tiefe);
  overflow: hidden;
}
.cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #2e2c33;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--code-muted);
}
.cmd pre {
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--code-text);
}
.cmd .c { color: var(--code-muted); }   /* Kommentar */
.cmd .p { color: var(--code-accent); }  /* Prompt-Zeichen */

/* Teileliste */
.parts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.parts th, .parts td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); }
.parts th { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.parts td:last-child { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }


/* ---------- Kontaktformular ---------- */

.form { display: flex; flex-direction: column; gap: 1.05rem; }
.form-intro { color: var(--muted); max-width: 44ch; }

.feld { display: flex; flex-direction: column; gap: 0.4rem; }
.feld label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.feld input,
.feld select,
.feld textarea {
  font: inherit;
  color: var(--ink);
  background: var(--glas);
  -webkit-backdrop-filter: var(--glas-weich);
  backdrop-filter: var(--glas-weich);
  border: 0;
  border-radius: var(--radius-klein);
  box-shadow: var(--kante), 0 1px 2px rgba(26, 25, 24, 0.04);
  padding: 0.85rem 0.95rem;
  width: 100%;
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}
.feld textarea { resize: vertical; min-height: 8.5rem; line-height: 1.55; }
.feld select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6962' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.feld input:hover, .feld select:hover, .feld textarea:hover { background: var(--glas-stark); }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  background: var(--glas-fokus);
  box-shadow: var(--kante), 0 0 0 3px rgba(26, 25, 24, 0.14);
}
.feld input:user-invalid, .feld textarea:user-invalid { box-shadow: var(--kante), 0 0 0 2px rgba(200, 52, 31, 0.5); }
.feld .hinweis { font-size: 0.85rem; color: var(--muted); }

.form-datenschutz {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

/* Fuer Menschen unsichtbar, aber nicht per display:none — sonst tragen
   manche Bots trotzdem etwas ein, ohne dass wir es merken. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-fuss { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.2rem; }
.form button[type="submit"] { border: 0; cursor: pointer; }
.form button[disabled] { opacity: 0.55; cursor: progress; }
.form-status { font-size: 0.93rem; color: var(--muted); }
.form-status.fertig { color: var(--ok); }
.form-status.schiefgelaufen { color: var(--live); }

/* ---------- Aufklappbare Fragen ---------- */

.fragen { border-bottom: 1px solid var(--line); max-width: 68ch; }
.frage { border-top: 1px solid var(--line); }
.frage summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.05rem 0;
  font-weight: 700;
  transition: color 0.16s ease;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary:hover { color: var(--muted); }
.frage summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.frage .pfeil {
  flex: none;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.frage[open] .pfeil { transform: rotate(-135deg) translate(-3px, -3px); }
.frage-inhalt { overflow: hidden; }
.frage-inhalt p { color: var(--text-weich); padding-bottom: 1.05rem; margin-top: -0.2rem; }

/* Textabschnitte auf breiten Schirmen: Überschrift links, Inhalt rechts.
   Sonst steht der Text schmal links und rechts bleibt die halbe Seite leer. */
@media (min-width: 1100px) {
  .section-zweispaltig .wrap {
    display: grid;
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 66ch);
    column-gap: 4rem;
    align-items: start;
  }
  /* Etwas kleiner, damit lange Wörter nicht mitten im Wort brechen. */
  .section-zweispaltig .section-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); }
  .section-zweispaltig .section-head {
    grid-column: 1;
    margin-bottom: 0;
    position: sticky;
    top: 100px;
    display: block;
  }
  .section-zweispaltig .article-body,
  .section-zweispaltig .fragen { grid-column: 2; margin-top: 0; }
  .section-zweispaltig .fragen { max-width: none; }
}

/* ---------- Seitenleiste langer Artikel ---------- */

.artikel-seitenleiste { display: none; }

@media (min-width: 1100px) {
  .article.hat-seitenleiste .wrap {
    display: grid;
    grid-template-columns: minmax(0, 68ch) minmax(230px, 1fr);
    column-gap: 4.5rem;
    align-items: start;
  }
  .article.hat-seitenleiste .article-head { grid-column: 1 / -1; }
  /* Die Eckdaten stehen in der Leiste, unter der Überschrift waeren sie doppelt. */
  .article.hat-seitenleiste .article-head .meta { display: none; }
  .article.hat-seitenleiste .article-body { grid-column: 1; }

  .artikel-seitenleiste {
    display: block;
    grid-column: 2;
    position: sticky;
    top: 92px;
    padding-top: 0.35rem;
  }
  .leisten-block + .leisten-block { margin-top: 1.8rem; }
  .leisten-titel {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 0.7rem;
  }
  .artikel-seitenleiste ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .artikel-seitenleiste li { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
  .artikel-seitenleiste a { color: var(--muted); text-decoration: none; }
  .artikel-seitenleiste a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

  /* Seiten ohne Leiste bekommen ihre Textspalte mittig, damit sie nicht
     verloren am linken Rand klebt. */
  .article:not(.hat-seitenleiste) .article-head,
  .article:not(.hat-seitenleiste) .article-body { margin-inline: auto; }
}

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
.contact-grid dl { display: flex; flex-direction: column; gap: 1rem; }
.contact-grid dt { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.contact-grid dd { font-size: 1.05rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
/* Homescreen-App: Fusszeile bleibt ueber dem Wischbalken lesbar. */
.site-footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer p, .site-footer a { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- Sehr grosse Bildschirme ---------- */

@media (min-width: 1700px) {
  html { font-size: 17.5px; }
  :root { --wrap-max: 86rem; }
}
@media (min-width: 2200px) {
  html { font-size: 19px; }
  :root { --wrap-max: 92rem; }
  .wrap { padding: 0 2.5rem; }
}


/* ---------- Responsiv ---------- */

@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .guide-row { grid-template-columns: 92px 1fr; }
  .guide-row .go { display: none; }
  .hero { padding: 3.2rem 0 3rem; }
}

/* Handy: kompakte Kopfzeile mit Menue-Knopf, das Menue klappt darunter auf. */
@media (max-width: 720px) {
  /* Im Kopf stehen hier nur Wortmarke und Menue-Knopf, beide kraeftig
     schwarz. Deshalb darf das Glas viel duenner sein als am Desktop. */
  :root { --glas-kopf: rgba(240, 239, 234, 0.3); }
  .site-header {
    /* Kraeftiger Weichzeichner: der Inhalt darunter wird zur Flaeche,
       statt als lesbarer Text mit der Wortmarke zu konkurrieren. */
    -webkit-backdrop-filter: blur(40px) saturate(1.9);
    backdrop-filter: blur(40px) saturate(1.9);
  }
  .site-header .wrap { min-height: 56px; }
  .brand .brand-top { font-size: 0.98rem; }
  .nav-toggle { display: grid; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 1.25rem 0.5rem;
    background: var(--glas-menue);
    -webkit-backdrop-filter: var(--glas-weich);
    backdrop-filter: var(--glas-weich);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(26, 25, 24, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .js .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { color: var(--ink); }
  /* Ohne JavaScript bleiben die Links als schlichte Zeile stehen. */
  html:not(.js) .site-nav { gap: 1rem; flex-wrap: wrap; }
  html:not(.js) .site-nav a { padding: 0.2rem 0; border-top: 0; }
  html:not(.js) .nav-toggle { display: none; }

  section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.6rem; }

  .hero { padding: 2.6rem 0 2.8rem; }
  .hero p.lead { font-size: 1.05rem; margin-top: 1.4rem; }
  .hero-cta { margin-top: 1.8rem; }
  .logo-lockup .l3 { letter-spacing: 0.4em; margin-top: 0.85rem; }

  .tile { padding: 1.4rem 1.3rem 1.3rem; gap: 0.55rem; }
  .service { padding: 1.4rem 1.3rem 1.3rem; }

  .yt-band { padding: 1.5rem; }
  .article { padding: 2.6rem 0 3.2rem; }
  .article-head { margin-bottom: 1.8rem; }
  .article-head h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); max-width: none; }
  .parts { font-size: 0.8rem; }
  /* Lange Woerter wie "Kreuzschraubendreher" werden getrennt, damit alle
     Spalten sichtbar bleiben statt seitlich wegzuscrollen. */
  .parts th, .parts td { padding: 0.4rem 0.45rem; hyphens: auto; }
  .parts th:first-child, .parts td:first-child { padding-left: 0; }
  .cmd pre { font-size: 0.78rem; padding: 0.85rem; }
  .cmd-head { padding: 0.45rem 0.85rem; }
  .article-body h2 { margin-top: 1.1rem; padding-top: 1.3rem; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .footer-links { gap: 0.9rem 1rem; }
}

@media (max-width: 720px) and (prefers-color-scheme: dark) {
  :root { --glas-kopf: rgba(28, 27, 33, 0.34); }
}

@media (max-width: 400px) {
  .btn { padding: 0.72rem 1.05rem; font-size: 0.8rem; }
  .guide-row { grid-template-columns: 72px 1fr; gap: 0.9rem; }
  .guide-row h2 { font-size: 1rem; }
}
