/* demand-unterricht.de – Gestaltung */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Var-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Marke";
  src: url("../fonts/JetBrainsMono-Bold-Marke.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono Marke";
  src: url("../fonts/JetBrainsMono-Regular-Marke.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-Var-Latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f7f4;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --surface-2: #f5f4f0;
  --ink: #111c2e;
  --ink-2: #3d495b;
  --muted: #677285;
  --line: #e4e0d7;
  --line-strong: #cfcabe;
  --brand: #12355b;
  --brand-hover: #0b2745;
  --on-brand: #ffffff;
  --accent: #0d7482;
  --accent-bright: #5fd6d3;
  --accent-soft: #e2f2f2;
  /* Schriftzug, abgestimmt auf das D: oben blau, unten türkis, die Zeichen jeweils in der anderen Farbe */
  --wm-name: #2667ad;
  --wm-klammer: #3dbcc6;
  --wm-sub: #1f828a;
  --wm-sub-zeichen: #2667ad;
  --wm-cursor: #2aa7b2;
  --live: #11774a;
  --live-soft: #e0f3e8;
  --soon: #8f5d00;
  --soon-soft: #fbefd8;
  --frame-bar: #eceff3;
  --footer-bg: #0e1f35;
  --footer-ink: #c9d3e0;
  --shadow-sm: 0 1px 2px rgba(17, 28, 46, .06), 0 1px 1px rgba(17, 28, 46, .04);
  --shadow-md: 0 10px 28px -12px rgba(17, 28, 46, .22), 0 2px 6px rgba(17, 28, 46, .06);
  --shadow-lg: 0 40px 70px -30px rgba(17, 28, 46, .45), 0 16px 30px -18px rgba(17, 28, 46, .25);
  --radius: 16px;
  --radius-sm: 10px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

/* Am Bildschirm immer dunkel, unabhängig von der Einstellung des Browsers; ausgedruckt bleibt es hell */
@media screen {
  :root:not([data-theme="light"]) {
    --bg: #0b121c;
    --bg-alt: #0f1824;
    --surface: #141e2d;
    --surface-2: #19253a;
    --ink: #e8edf4;
    --ink-2: #bfc9d6;
    --muted: #8e9aac;
    --line: #223149;
    --line-strong: #30425f;
    --brand: #2a5f98;
    --brand-hover: #3570b0;
    --on-brand: #ffffff;
    --accent: #56c7cf;
    --accent-bright: #7fe3df;
    --accent-soft: rgba(86, 199, 207, .13);
    --wm-name: #6a9fe0; --wm-klammer: #4aced7; --wm-sub: #4aced7; --wm-sub-zeichen: #6a9fe0; --wm-cursor: #4aced7;
    --live: #5fd49a;
    --live-soft: rgba(95, 212, 154, .13);
    --soon: #f0bd5e;
    --soon-soft: rgba(240, 189, 94, .13);
    --frame-bar: #1c283b;
    --footer-bg: #080e17;
    --footer-ink: #a9b5c5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 16px 30px -18px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b121c; --bg-alt: #0f1824; --surface: #141e2d; --surface-2: #19253a;
  --ink: #e8edf4; --ink-2: #bfc9d6; --muted: #8e9aac; --line: #223149; --line-strong: #30425f;
  --brand: #2a5f98; --brand-hover: #3570b0; --on-brand: #ffffff;
  --accent: #56c7cf; --accent-bright: #7fe3df; --accent-soft: rgba(86, 199, 207, .13);
  --wm-name: #6a9fe0; --wm-klammer: #4aced7; --wm-sub: #4aced7; --wm-sub-zeichen: #6a9fe0; --wm-cursor: #4aced7;
  --live: #5fd49a; --live-soft: rgba(95, 212, 154, .13); --soon: #f0bd5e; --soon-soft: rgba(240, 189, 94, .13);
  --frame-bar: #1c283b; --footer-bg: #080e17; --footer-ink: #a9b5c5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 16px 30px -18px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.35rem, 4.6vw + .5rem, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 2.2vw + .8rem, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; }
p { margin: 0; }
code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }

.eyebrow {
  font: 650 .78rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, .4vw + 1rem, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 38em; }

/* ------------------------------------------------------------ Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: #fff; color: #10263f; }
.btn-light:hover { background: #eef3f8; color: #10263f; }
.btn-lg { padding: 13px 20px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn .ic { width: 1.05em; height: 1.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------------ Kopfbereich */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
/* Schriftzug im Code-Stil: Demand() / {Unterricht;} */
.wm { --mono: "JetBrains Mono Marke", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; position: relative; }
.wm .brand-name { font: 700 1.2rem/1.08 var(--mono); letter-spacing: -.02em; white-space: nowrap; color: var(--wm-name); }
.wm .brand-sub { font: 400 .84rem/1.1 var(--mono); letter-spacing: 0; text-transform: none; color: var(--wm-sub); margin-top: 3px; white-space: nowrap; }
.wm .brand-name .t { color: var(--wm-klammer); }
.wm .brand-sub .t { color: var(--wm-sub-zeichen); }
/* Fußbereich ist immer dunkel: dort gelten die Farben der dunklen Darstellung */
.site-footer .wm { --wm-name: #6a9fe0; --wm-klammer: #4aced7; --wm-sub: #4aced7; --wm-sub-zeichen: #6a9fe0; }
.wm .brand-name, .wm .brand-sub { display: block; min-height: 1.08em; }
/* Tippen (nur Startseite, nur mit JavaScript): Zeichen fehlen, bis sie „getippt“ werden; der Cursor hängt
   immer hinter dem letzten Zeichen der Zeile */
.wm-tippen .wm[data-tippen] .wm-z { display: none; }
.wm-tippen .wm[data-tippen] .wm-z.da { display: inline; }
.wm-cursor { display: inline-block; position: relative; width: 0; height: 1.04em; vertical-align: -.2em; }
.wm-cursor::after {
  content: ""; position: absolute; left: 1px; top: 0; bottom: 0; width: 2px; border-radius: 1px;
  background: var(--wm-cursor);
}
.wm-cursor.blinkt::after { animation: wm-blink 1.06s steps(1, end) infinite; }
.wm-cursor.weg::after { opacity: 0; transition: opacity .6s ease; animation: none; }
@keyframes wm-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* das D (assets/img/logo-d.svg); Höhe wie der zweizeilige Schriftzug */
.logo-mark { flex: none; display: block; width: auto; height: 40px; }
.site-footer .logo-mark { height: 36px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav .btn { margin-left: 6px; }

/* ------------------------------------------------------------ Startbereich */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 78% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 78% 40%, #000 20%, transparent 72%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-bright) 26%, transparent), transparent 62%);
  filter: blur(10px); opacity: .6;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hl { background: linear-gradient(transparent 64%, color-mix(in srgb, var(--accent-bright) 45%, transparent) 64%, color-mix(in srgb, var(--accent-bright) 45%, transparent) 92%, transparent 92%); padding: 0 .06em; }
.hero-facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .93rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ic { color: var(--accent); }

.frame { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--frame-bar); border-bottom: 1px solid var(--line); position: relative; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dbe1; display: block; }
.frame-bar i:nth-child(1) { background: #f26d5f; }
.frame-bar i:nth-child(2) { background: #f4bf4f; }
.frame-bar i:nth-child(3) { background: #5cc569; }
.frame-bar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); white-space: nowrap; }

.hero-visual { position: relative; padding: 0 0 56px 40px; }
.frame-main { width: 112%; max-width: none; }
.frame-sub { position: absolute; left: -8px; bottom: 0; width: 46%; transform: rotate(-1.2deg); }
.toast {
  position: absolute; left: 0; top: 16%;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow-md);
  font-size: .88rem; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.toast strong { display: block; color: var(--ink); }
.toast span:not(.toast-ic) { color: var(--muted); }
.toast-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--live-soft); color: var(--live); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .toast, .pill-live .dot::after { animation: none !important; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------ Abschnitte */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 + p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }

/* ------------------------------------------------------------ Projektkarten */
.projects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.project-main { grid-column: span 3; }
.project-soon { grid-column: span 2; }
.project-soon .project-body { padding-top: 24px; }
.project-soon h3 { font-size: 1.35rem; }
.project-soon .chips li { background: var(--surface-2); color: var(--muted); }
.project-soon { border-style: dashed; border-color: var(--line-strong); box-shadow: none; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.project-soon:hover { transform: none; box-shadow: none; }
/* Ungerade Zahl an Projekten mit eigener Seite: Projekte in Vorbereitung gestapelt in der freien Spalte */
.project-stack { grid-column: span 3; display: grid; grid-auto-rows: 1fr; gap: 24px; }
.project-stack > .project-soon, .project-stack > .project-placeholder { grid-column: auto; }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.project:not(.project-placeholder):hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.project-media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 7.2;
  padding: 30px 34px 0;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #ffffff 16%, transparent), transparent 60%),
    linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 55%, #06121f));
}
.project-media img { width: 100%; border-radius: 9px 9px 0 0; box-shadow: 0 -2px 30px rgba(0, 0, 0, .25); transition: transform .4s ease; transform-origin: 50% 0; }
.project:hover .project-media img { transform: translateY(-4px); }
.project-initial { display: grid; place-items: center; height: 100%; color: #fff; font: 600 4rem/1 var(--serif); opacity: .9; }
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.project-fach { font-size: .82rem; color: var(--muted); font-weight: 550; }
.project h3 { font: 600 1.75rem/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.project:not(.project-feature) h3 { font-size: 1.4rem; }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { color: var(--accent); }
.project-body > p { color: var(--ink-2); }
.project-body .btn-row { margin-top: auto; padding-top: 24px; }
.project-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed var(--line); }
.project-meta dt, .factbox dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; }
.project-meta dd { margin: 3px 0 0; font-weight: 550; font-size: .95rem; }

.project-placeholder {
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 28px; background: transparent; box-shadow: none;
  border: 1.5px dashed var(--line-strong);
}
.project-placeholder h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.project-placeholder p { color: var(--muted); max-width: 24em; }
.ph-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.ph-ic .ic { width: 24px; height: 24px; }

.pill { display: inline-flex; align-items: center; gap: 7px; font: 650 .75rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; letter-spacing: .01em; }
.pill-live { background: var(--live-soft); color: var(--live); }
.pill-soon { background: var(--soon-soft); color: var(--soon); }
.pill-past { background: var(--surface-2); color: var(--muted); }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.pill-live .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------ Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: var(--shadow-sm); }
.step-n { position: absolute; top: 22px; right: 24px; font: 600 2.6rem/1 var(--serif); color: color-mix(in srgb, var(--ink) 12%, transparent); }
.step-ic, .feature-ic, .tool-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.step-ic .ic, .feature-ic .ic, .tool-ic .ic { width: 22px; height: 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p, .feature p, .tool p { color: var(--ink-2); font-size: .97rem; }

/* ------------------------------------------------------------ Merkmale */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.feature h3 { margin-bottom: 8px; }

/* ------------------------------------------------------------ Aufruf-Band */
.cta-band-wrap { padding-top: 0; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, #ffffff 14%, transparent), transparent 60%),
    linear-gradient(120deg, var(--p), color-mix(in srgb, var(--p) 50%, #06121f));
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 36em; }
.cta-band .btn-light { color: #10263f; }

/* ------------------------------------------------------------ Projektseite */
.phero { padding: 28px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--p) 9%, var(--bg)), var(--bg) 70%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 36px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 550; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 64px; align-items: start; }
.phero h1 { margin-bottom: 18px; }
.phero-plain { padding-bottom: clamp(56px, 7vw, 96px); }
.soon-note { margin-top: 22px; color: var(--soon); background: var(--soon-soft); padding: 12px 16px; border-radius: 12px; font-size: .95rem; max-width: 36em; }
.btn-row:empty { display: none; }
.factbox { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; box-shadow: var(--shadow-sm); }
.factbox > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.factbox > div:last-child { border-bottom: 0; }
.factbox dt { display: flex; align-items: center; gap: 8px; }
.factbox dt .ic { color: var(--accent); width: 15px; height: 15px; }
.factbox dd { margin: 5px 0 0; font-weight: 600; }
.frame-wide { margin: 56px auto 0; max-width: 1120px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; transform: translateY(1px); }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; text-align: left; color: inherit; font: inherit; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 64px; align-items: start; }
.split h2 { margin-bottom: 20px; }
.prose-p { color: var(--ink-2); font-size: 1.07rem; margin-bottom: 16px; max-width: 40em; }
.prose-p strong { color: var(--ink); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.side-card .chips { margin: 12px 0 26px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--live); margin-top: 3px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; position: relative; }
.tl-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font: 650 1.05rem/1 var(--sans); position: relative; z-index: 1; }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.tl-mails { font-size: .8rem; font-weight: 650; color: var(--muted); background: var(--surface-2); padding: 4px 9px; border-radius: 7px; }
.tl-body p { color: var(--ink-2); font-size: .97rem; }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.tool .tool-ic { margin-bottom: 0; }
.tool h3 { margin-bottom: 4px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.gallery figure { margin: 0; }
.gallery .frame { box-shadow: var(--shadow-md); transition: box-shadow .2s, transform .2s; }
.gallery .frame:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gallery figcaption { margin-top: 14px; color: var(--ink-2); font-size: .95rem; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(12, 20, 32, .72); color: #fff; opacity: 0; transition: opacity .2s; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 12, 20, .82); backdrop-filter: blur(3px); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-cap { color: #e6ecf3; text-align: center; margin-top: 12px; font-size: .95rem; }
.lb-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #10263f; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); }

/* ------------------------------------------------------------ Rechtstexte */
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal h3 { margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 8px; }
.legal strong { color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.toc a { font-size: .85rem; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.toc a:hover { border-color: var(--line-strong); color: var(--ink); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--soon-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--soon) 35%, transparent); padding: 14px 16px; border-radius: 12px; margin: 8px 0 24px; font-size: .95rem; }
.notice .ic { color: var(--soon); margin-top: 2px; }
.missing { background: var(--soon-soft); color: var(--soon); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.notfound { min-height: 55vh; display: flex; align-items: center; }
.notfound h1 { margin-bottom: 16px; }

/* ------------------------------------------------------------ Fußbereich */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 64px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.foot-brand p { margin-top: 16px; max-width: 30em; color: #9fb0c4; }
.foot-h { font: 650 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8fa0b6; margin-bottom: 14px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { color: #e1e8f1; text-decoration: none; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fa0b6; font-size: .86rem; }

/* ------------------------------------------------------------ Anpassung an kleinere Bildschirme */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 0 48px 24px; max-width: 760px; }
  .frame-main { width: 100%; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-main, .project-soon, .project-stack { grid-column: span 1; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .phero-grid, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 9px; margin-left: 0; }
  .nav .btn .ic { width: 1.2em; height: 1.2em; }
  .brand-name, .wm .brand-name { font-size: 1.08rem; }
  .wm .brand-sub { font-size: .78rem; }
  .hero-visual { padding: 0 0 28px 0; }
  .frame-sub { display: none; }
  .toast { left: 10px; top: auto; bottom: 0; font-size: .82rem; }
  .projects { grid-template-columns: 1fr; }
  .project-main, .project-soon, .project-stack { grid-column: auto; }
  .project-stack { grid-auto-rows: auto; }
  .project-media { padding: 18px 18px 0; aspect-ratio: 16 / 9; }
  .project-body { padding: 22px 20px 22px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .tools { grid-template-columns: 1fr; }
  .btn-row .btn-lg { flex: 1 1 auto; }
  .timeline::before { left: 17px; }
  .timeline li { grid-template-columns: 36px 1fr; gap: 12px; }
  .tl-n { width: 36px; height: 36px; font-size: .95rem; }
  .tl-body { padding: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .lb-close { top: 8px; right: 8px; }
}

/* ------------------------------------------------------------ Download (Projekte als Programm) */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  display: grid; grid-template-columns: 48px 1fr 28px; gap: 16px; align-items: center;
  padding: 18px 20px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.dl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }
.dl-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.dl-ic .ic { width: 24px; height: 24px; }
.dl-body { display: grid; gap: 3px; min-width: 0; }
.dl-sys { font-weight: 700; font-size: 1.05rem; }
.dl-hint { color: var(--ink-2); font-size: .92rem; }
.dl-meta { color: var(--muted); font-size: .8rem; word-break: break-all; }
.dl-arrow { color: var(--brand); display: grid; place-items: center; }
.dl-arrow .ic { width: 22px; height: 22px; }
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.install-step { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.install-step h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.install-step p { color: var(--ink-2); font-size: .95rem; }
.dl-details { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.dl-details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.dl-details summary:hover { color: var(--ink); }
.dl-details-body { padding: 4px 16px 16px; font-size: .92rem; }
.dl-details-body p { margin: 8px 0; }
.dl-details-body a { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dl-details-body a:hover { text-decoration: underline; }
.dl-details-body .ic { width: 16px; height: 16px; }
.dl-details-body code { font-size: .82rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.hashes { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.hashes li { display: grid; gap: 2px; }
.hashes code { word-break: break-all; }
.muted { color: var(--muted); }
.foot-soon { color: #8fa0b6; }
.foot-soon small { font-size: .8em; }

/* ------------------------------------------------------------ Kopfzeile: großes D mit Schriftzug
   Oben 50 % größer; beim Scrollen wird die Kopfzeile flacher und das Logo kleiner. */
.site-header .bar { height: 96px; transition: height .3s ease; }
.site-header .brand { gap: 16px; transform-origin: left center; transition: transform .3s ease; }
.site-header .logo-mark { height: 60px; }
.site-header .wm .brand-name { font-size: 1.8rem; }
.site-header .wm .brand-sub { font-size: 1.26rem; margin-top: 4px; }
.site-header.scrolled .bar { height: 72px; }
.site-header.scrolled .brand { transform: scale(.7); }
@media (max-width: 640px) {
  .site-header .bar { height: 80px; }
  .site-header .brand { gap: 13px; }
  .site-header .logo-mark { height: 54px; }
  .site-header .wm .brand-name { font-size: 1.62rem; }
  .site-header .wm .brand-sub { font-size: 1.17rem; }
  .site-header.scrolled .bar { height: 62px; }
  .site-header.scrolled .brand { transform: scale(.72); }
}

/* ------------------------------------------------------------ Diashow im Startbereich
   Alle Bilder liegen übereinander; das aktive wird mit Animation hereingeholt. Die Zeit (10 s) läuft
   im Fortschrittsbalken; ist er voll, kommt das nächste Bild. Ohne JavaScript steht das erste Bild. */
@property --show-p { syntax: "<color>"; inherits: true; initial-value: #2e6bd8; }
.hero { transition: --show-p 1.2s ease; }
.hero::after { background: radial-gradient(circle, color-mix(in srgb, color-mix(in srgb, var(--show-p) 45%, var(--accent-bright)) 30%, transparent), transparent 62%); }
.hero-visual.show { padding: 0; }
.show-stage { display: grid; position: relative; }
.show .slide { grid-area: 1 / 1; position: relative; padding: 0 0 56px 40px; min-width: 0; }
.show:not(.show-js) .slide:not(.is-active) { visibility: hidden; }
.show:not(.show-js) .show-nav { display: none; }
.show-js .slide { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .6s ease, visibility 0s linear .6s; }
.show-js .slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; transition: opacity .35s ease; }
.show-js .slide.is-leaving { visibility: visible; z-index: 1; }
.show-js .slide:not(.is-active):not(.is-leaving) .toast { animation: none; }
.show .frame-main { position: relative; }
.show .frame-main::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: translateX(-130%) skewX(-18deg);
}
.show .toast-mail .toast-ic, .show .toast-network .toast-ic, .show .toast-lock .toast-ic, .show .toast-chart .toast-ic { background: var(--accent-soft); color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .show-js .slide.is-active .frame-main { animation: show-rein 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .show-js .slide.is-active .frame-main::after { animation: show-glanz 1.4s .5s ease-out both; }
  .show-js .slide.is-active .frame-sub { animation: show-sub-rein 1s .22s cubic-bezier(.16, 1, .3, 1) both; }
  .show-js .slide.is-active .toast { animation: show-toast-rein .7s 1s cubic-bezier(.34, 1.56, .64, 1) both, float 6s 1.7s ease-in-out infinite; }
  .show-js .slide.is-active .toast-ic { animation: show-ic .6s 1.35s cubic-bezier(.34, 1.56, .64, 1) both; }
  .show-js .slide.is-leaving .frame-main { animation: show-raus .6s ease-in both; }
  .show-js .slide.is-leaving .frame-sub, .show-js .slide.is-leaving .toast { animation: show-raus-klein .45s ease-in both; }
}
@keyframes show-rein {
  from { opacity: 0; transform: perspective(1600px) translate3d(64px, 0, 0) rotateY(-11deg) scale(.95); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes show-raus { to { opacity: 0; transform: perspective(1600px) translate3d(-44px, 0, 0) rotateY(7deg) scale(.96); filter: blur(6px); } }
@keyframes show-sub-rein {
  from { opacity: 0; transform: translate3d(-40px, 34px, 0) rotate(-8deg) scale(.9); }
  to { opacity: 1; transform: rotate(-1.2deg); }
}
@keyframes show-raus-klein { to { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes show-toast-rein { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes show-ic { 0% { transform: scale(.3) rotate(-25deg); } 70% { transform: scale(1.15) rotate(4deg); } 100% { transform: none; } }
@keyframes show-glanz { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(330%) skewX(-18deg); } }

.show-nav { display: flex; align-items: center; gap: 16px; margin: 20px 0 0 40px; }
.show-projekt { display: inline-flex; align-items: center; gap: 9px; min-width: 12.5em; font: 650 .86rem/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.show-farbe { width: 9px; height: 9px; border-radius: 50%; background: var(--show-p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--show-p) 20%, transparent); transition: background-color 1.2s; }
.show-name { display: inline-block; transition: opacity .2s ease, transform .2s ease; }
.show-name.wechsel { opacity: 0; transform: translateY(5px); }
.show-steps { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.show-step { appearance: none; border: 0; background: none; padding: 10px 0; margin: 0; width: 34px; flex: 0 1 34px; min-width: 16px; cursor: pointer; border-radius: 4px; }
.show-step.neu { margin-left: 14px; }
.show-bar { display: block; height: 4px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--ink) 13%, transparent); transition: background-color .2s; }
.show-step:hover .show-bar { background: color-mix(in srgb, var(--ink) 24%, transparent); }
.show-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wm-name), var(--wm-klammer)); transform: scaleX(0); transform-origin: left center; }
.show-step.fertig .show-fill { transform: scaleX(1); }
.show-js .show-step.is-active .show-fill { animation: show-zeit 10s linear forwards; }
.show.is-pausiert .show-step.is-active .show-fill { animation-play-state: paused; }
@keyframes show-zeit { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.show-pause { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; margin-left: auto; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); }
.show-pause:hover { color: var(--ink); border-color: var(--line-strong); }
.show-pause .ic { width: 15px; height: 15px; }
.show-pause .ic:last-child, .show.is-angehalten .show-pause .ic:first-child { display: none; }
.show.is-angehalten .show-pause .ic:last-child { display: block; fill: currentColor; }
/* Pfeil rechts mittig: erscheint, sobald die Maus über der Diashow ist, und blättert zum nächsten Bild */
.show-weiter {
  position: absolute; z-index: 5; top: calc(50% - 28px); transform: translate(10px, -50%);
  /* nah an den rechten Rand des großen Bildes (es ragt 12 % über die Spalte hinaus), aber nie aus dem Fenster */
  right: max(calc(22px - 12%), calc(-8px - (100vw - min(100vw, 1200px)) / 2));
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); box-shadow: var(--shadow-md);
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease, border-color .15s, color .15s;
}
.show-weiter .ic { width: 22px; height: 22px; }
.show-js:hover .show-weiter, .show-weiter:focus-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.show-weiter:hover { border-color: var(--accent); color: var(--accent); }
.show:not(.show-js) .show-weiter { display: none; }
@media (hover: none) { .show-js .show-weiter { opacity: .9; pointer-events: auto; transform: translate(0, -50%); } }
@media (max-width: 1060px) {
  .show .slide { padding: 0 0 48px 24px; }
  .show-weiter { top: calc(50% - 24px); right: 12px; }
  .show-nav { margin-left: 24px; }
}
@media (max-width: 640px) {
  .show .slide { padding: 0 0 34px 0; }
  .show-nav { margin-left: 0; gap: 10px; }
  .show-projekt { min-width: 0; font-size: .8rem; }
  .show-projekt .show-name { display: none; }
  .show-weiter { top: calc(50% - 17px); right: 8px; width: 40px; height: 40px; }
  .show-step { width: 22px; }
  .show-step.neu { margin-left: 8px; }
}

/* ------------------------------------------------------------ Konzept */
.konzept-kopf { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 44px; }
.konzept-kopf .section-head { margin-bottom: 0; }
.zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.zahl { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; box-shadow: var(--shadow-sm); }
.zahl dd {
  order: -1; margin: 0 0 8px; font: 600 2.5rem/1 var(--serif); font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--wm-name), var(--wm-klammer)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zahl dt { font-size: .88rem; line-height: 1.35; color: var(--muted); }
.zahl dt strong { display: block; color: var(--ink); font-weight: 650; }
.konzept .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.konzept .feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.konzept .feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--wm-name), var(--wm-klammer)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.konzept .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.konzept .feature:hover::before { transform: scaleX(1); }
.konzept .feature-ic { background: linear-gradient(135deg, color-mix(in srgb, var(--wm-name) 16%, transparent), color-mix(in srgb, var(--wm-klammer) 22%, transparent)); color: var(--wm-name); }
.konzept .feature > p:not(.feature-bsp) { margin-bottom: 18px; }
.feature-bsp { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: .88rem; line-height: 1.45; color: var(--muted); }
.feature-bsp span { display: block; margin-bottom: 3px; font: 700 .68rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
/* sanft einblenden, wenn ein Abschnitt ins Bild kommt (nur mit JavaScript und ohne reduzierte Bewegung) */
.zeigen-warte { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.zeigen-warte.sichtbar { opacity: 1; transform: none; }
@media (max-width: 1060px) {
  .konzept-kopf { grid-template-columns: 1fr; align-items: start; }
  .konzept .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .zahlen { gap: 10px; }
  .zahl { padding: 14px 14px 12px; }
  .zahl dd { font-size: 2rem; }
  .konzept .features { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Lernpfad: Umschalter Standard / Fortgeschritten */
.dl-lizenz { margin-top: 22px; font-size: .86rem; color: var(--muted); max-width: 62em; }
.pfad-wahl { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; margin: 0 0 32px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; box-shadow: inset 0 1px 2px rgba(17, 28, 46, .06); }
.pfad-wahl[hidden] { display: none; }
.pfad-tab { position: relative; z-index: 1; appearance: none; border: 0; background: none; margin: 0; cursor: pointer; display: inline-flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 650 .98rem/1 var(--sans); color: var(--ink-2); transition: color .3s ease; white-space: nowrap; }
.pfad-tab small { font-size: .78rem; font-weight: 600; color: var(--muted); transition: color .3s ease; }
.pfad-tab:hover { color: var(--ink); }
.pfad-tab.is-active, .pfad-tab.is-active:hover { color: #fff; }
.pfad-tab.is-active small { color: rgba(255, 255, 255, .82); }
.pfad-schieber {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: linear-gradient(120deg, var(--p, var(--brand)), color-mix(in srgb, var(--p, var(--brand)) 62%, #0b1a33));
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--p, var(--brand)) 80%, transparent);
  transition: transform .5s cubic-bezier(.34, 1.3, .64, 1);
}
.pfad-wahl[data-wahl="1"] .pfad-schieber { transform: translateX(100%); }
.pfad-titel { margin: 0 0 18px; }
.pfad + .pfad { margin-top: 40px; }
.js-pfade .pfad-titel { display: none; }
.js-pfade .pfad + .pfad { margin-top: 0; }
.pfad[hidden] { display: none; }
.pfade { position: relative; }
.timeline li { transform-origin: top center; }
@media (prefers-reduced-motion: no-preference) {
  .pfad.rollt .timeline { perspective: 900px; }
  .pfad.rollt { animation: pfad-ausrollen 1.15s cubic-bezier(.22, 1, .36, 1) both; }
  .pfad.rollt .timeline::before { transform-origin: top; animation: pfad-linie 1.2s .1s cubic-bezier(.22, 1, .36, 1) both; }
  .pfad.rollt li { animation: pfad-kapitel .6s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .pfad.rollt-weg { animation: pfad-einrollen .32s ease-in both; }
}
@keyframes pfad-ausrollen { from { clip-path: inset(-24px -24px 100% -24px); } to { clip-path: inset(-24px -24px -48px -24px); } }
@keyframes pfad-einrollen { to { clip-path: inset(-24px -24px 100% -24px); opacity: .3; } }
@keyframes pfad-linie { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pfad-kapitel { from { opacity: 0; transform: translateY(-22px) rotateX(-35deg); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .pfad-wahl { display: grid; width: 100%; }
  .pfad-tab { padding: 12px 10px; font-size: .92rem; flex-direction: column; align-items: center; gap: 4px; }
}

/* Galerie mit vielen Bildern: drei Spalten */
.gallery-viele { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.gallery-viele figcaption { font-size: .9rem; }
@media (max-width: 1060px) { .gallery-viele { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery-viele { grid-template-columns: 1fr; } }

/* Galerie mit genau drei Bildern: nebeneinander, auf schmalen Bildschirmen untereinander */
.gallery-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.gallery-drei figcaption { font-size: .92rem; }
@media (max-width: 860px) { .gallery-drei { grid-template-columns: 1fr; } }

/* Quellcode und Code signing policy unter den Downloads */
.dl-quelle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.dl-quelle .ic { width: 16px; height: 16px; color: var(--accent); }
.dl-quelle a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.dl-quelle a:hover { color: var(--accent); text-decoration: underline; }
