/* medienloge — die Seiten
   Gestaltung „Mischung“ (Markus' Wahl vom 29.10.2026): Kopf aus Glas und Foto-Bühne,
   das Raster aus zwölf Spalten mit Haarlinien und Maßschrift, die Gruppen als
   Querfahrt, der Drahtglobus. Aus „Tageslicht“: Leistungsmenü, Kontaktbogen, Laufband
   und die orange Fläche, die bei KI wächst.

   Farben nur über die Rollen aus marke.css (--grund, --text, --linie …), damit
   Tageslicht und Dunkelkammer aus denselben Regeln entstehen. Feste Farben stehen nur
   dort, wo etwas in beiden Darstellungen gleich bleibt: die Bühne über dem Foto, die
   Kacheln des Kontaktbogens und die orange Fläche.

   Bewegung kommt aus CSS; Kacheln, Schweben und die Wahl der Darstellung schaltet
   seite.js ein. Ohne Skript und bei reduzierter Bewegung steht alles still. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--stimme); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-kerning: normal; font-synthesis: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--unterstrich); text-decoration-thickness: .08em; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--orange); color: var(--tinte); }
main:focus { outline: none; }

.wrap { max-width: 92rem; margin-inline: auto; padding-inline: var(--rand); }
:root { --rand: clamp(1.25rem, 5vw, 5rem); --weich: cubic-bezier(.2, .75, .2, 1);
  /* Entschieden 30.10.2026: die Kacheln mit runden Ecken wie die Blätter einer
     Klappzahlen-Uhr – als Ausnahme in MARKE.md eingetragen; das Zeichen bleibt scharf. */
  --rundung: .55rem; }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.25rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label { font: 500 .75rem/1.4 var(--mass); letter-spacing: .1em; text-transform: uppercase; }
/* Beschreibende Zeilen (Marke, Website, Auffindbarkeit …) ohne Versalien */
.label.was { font-weight: 400; font-size: .8125rem; letter-spacing: .02em; text-transform: none; }
.text { max-width: 40rem; }

/* Der orange Punkt hinter großen Überschriften: als Element (.punkt) oder angehängt an
   den letzten Buchstaben (.ende, von bauen.py gesetzt – so bricht er nie allein um) */
.punkt, .ende::after { display: inline-block; width: .17em; height: .17em; margin-left: .05em; background: var(--orange); }
.ende::after { content: ""; }
.zeilen > span { display: block; }

.pfeil { width: .95em; height: .95em; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; transition: transform .25s var(--weich); }
.chevron { width: .7rem; height: .7rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--weich); }

.knopf { display: inline-flex; align-items: center; gap: .65rem; min-height: 3rem; padding: .75rem 1.25rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--text); border-radius: var(--rundung); transition: transform .3s var(--weich), background-color .2s, color .2s; }
.knopf:active { transform: scale(.97); transition-duration: .1s; }
.knopf.voll { background: var(--text); color: var(--auf-text); }
.knopf:not(.voll):hover { background: var(--hauch); }
.pfeil-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
.pfeil-link:hover { text-decoration: underline; }
.pfeil-link:hover .pfeil { transform: translateX(.3rem); }

/* Lücken: was Markus noch liefert, steht gestrichelt da – nichts ist erfunden */
.luecke { padding: .05em .35em; border: 1px dashed currentColor; background: var(--hauch);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.label .luecke { text-transform: none; letter-spacing: .02em; }

.sprung { position: fixed; left: 1rem; top: 1rem; z-index: 30; padding: .6rem 1rem; background: var(--text); color: var(--auf-text);
  transform: translateY(-200%); transition: transform .2s; }
.sprung:focus { transform: none; }

/* ======================================================================
   Kopf aus Glas, mit Haarlinie
   ====================================================================== */
.kopf { position: fixed; inset: 0 0 auto; z-index: 10; isolation: isolate; color: var(--text); }
.kopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glas);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.kopf::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--linie); }
.kopf-zeile { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.kopf .logo { margin-right: auto; flex: none; }
.kopf .logo img { width: 12rem; }
/* Das Logo in zwei Fassungen: auf Papier die helle, in der Dunkelkammer die dunkle.
   Die dunkle lädt erst, wenn sie gebraucht wird (loading="lazy" und versteckt). */
.logo-dunkel { display: none; }
:root[data-darstellung="dunkel"] .logo-hell { display: none; }
:root[data-darstellung="dunkel"] .logo-dunkel { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-darstellung="hell"]) .logo-hell { display: none; }
  :root:not([data-darstellung="hell"]) .logo-dunkel { display: block; }
}
.haupt { display: flex; gap: 1.5rem; align-items: center; font-size: .9375rem; }
.haupt > a { text-decoration: none; }
.haupt > a:hover { text-decoration: underline; }
.haupt > a[aria-current] { text-decoration: underline; text-decoration-color: currentColor; }
.kopf-rechts { display: flex; gap: .85rem; align-items: center; }
.kopf .knopf { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; }
/* Im Kopf bricht kein Wort um: Bei 1024 px standen „Über mich“ und „Projekt anfragen“
   sonst auf zwei Zeilen (20.11.2026). Das Kopf-Panel hat die Regel schon. */
.haupt > a, .mega > summary, .kopf-rechts > .knopf { white-space: nowrap; }
/* Knapp über 1024 px ist der Kopf auf Deutsch ein paar Pixel breiter als die Seite: Dort
   rücken die Teile zusammen, damit der Knopf rechts mit dem Seitenrand abschließt. */
@media (min-width: 64rem) and (max-width: 67.99rem) {
  .kopf-zeile { gap: 1rem; }
  .haupt { gap: 1.1rem; }
  .kopf-rechts { gap: .7rem; }
}

/* Sprachwahl: SV · DE · EN als Links auf dieselbe Seite in der anderen Sprache */
.sprachen { display: flex; gap: .15rem; font: 400 .75rem/1 var(--mass); letter-spacing: .06em; text-transform: uppercase; }
.sprachen a { display: grid; place-items: center; min-width: 2rem; min-height: 2.5rem; text-decoration: none; }
.sprachen a:hover { text-decoration: underline; }
.sprachen a[aria-current] { font-weight: 500; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: .35em; }

/* Tageslicht / Dunkelkammer: ein Knopf, der zeigt, wohin er schaltet – im Tageslicht der
   Mond, in der Dunkelkammer die Sonne. Ohne Skript bleibt er verborgen, die Seite
   folgt dann der Systemeinstellung. */
.darstellung { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--linie); border-radius: var(--rundung);
  background: none; color: inherit; cursor: pointer; transition: border-color .2s; }
.darstellung[hidden] { display: none; }
.darstellung:hover { border-color: var(--text); }
.darstellung svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.darstellung .sonne { display: none; }
:root[data-darstellung="dunkel"] .darstellung .sonne { display: block; }
:root[data-darstellung="dunkel"] .darstellung .mond { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-darstellung="hell"]) .darstellung .sonne { display: block; }
  :root:not([data-darstellung="hell"]) .darstellung .mond { display: none; }
}

/* Das Leistungsmenü, im Raster */
.mega > summary { display: inline-flex; align-items: center; gap: .4rem; padding-block: .5rem; cursor: pointer; list-style: none; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary:hover, .mega[open] > summary, .mega > summary.hier { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.mega[open] .chevron { transform: rotate(180deg); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 1px solid var(--linie);
  box-shadow: 0 1.5rem 3rem var(--schatten); font-size: 1rem; }
.mega-panel .wrap { padding-block: clamp(2rem, 4vw, 3rem); align-items: start; }
.mega-intro { grid-column: 1 / span 3; display: grid; align-content: space-between; gap: 1.5rem; align-self: stretch; }
.mega-titel { margin-top: .6rem; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.1rem); line-height: 1.05; letter-spacing: -.025em; }
/* YouTube und „Alle Leistungen“ untereinander, unten im Titelfeld */
.mega-wege { display: grid; gap: .65rem; justify-items: start; }
.mega-wege a[aria-current] { text-decoration: underline; }
.gruppe { grid-column: span 3; }
.gruppe-titel { display: flex; align-items: center; gap: .6rem; font-size: 1.375rem; line-height: 1.15; letter-spacing: -.015em; }
.gruppe-titel a { text-decoration: none; }
.gruppe-titel a:hover, .gruppe-titel a[aria-current] { text-decoration: underline; }
.gruppe-titel i { width: .5rem; height: .5rem; background: var(--orange); flex: none; }
.gruppe .was { margin-top: .4rem; }
.gruppe ul { margin-top: 1.1rem; border-top: 1px solid var(--text); }
.gruppe li > a, .gruppe li > span { display: flex; align-items: baseline; gap: .9rem; padding-block: .65rem; border-bottom: 1px solid var(--linie); text-decoration: none; }
.gruppe li > a:hover { text-decoration: underline; }
.gruppe li b, .vollbild li b, .tafel li b { display: inline-block; font: 500 .75rem/1 var(--mass); letter-spacing: .06em; min-width: 2ch; }

/* Das Kopf-Panel (nach ausgerichtet.digital): ein Knopf zeigt die Erreichbarkeit, dahinter
   Kontakt und der Schalter für Bewegung. Ein <details>, ohne Skript bedienbar; seite.js
   schließt es mit Escape und Klick daneben und setzt den Status, sobald Markus' Zeiten
   eingetragen sind. */
.status > summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .75rem;
  border: 1px solid var(--linie); border-radius: var(--rundung); cursor: pointer; list-style: none; font-size: .875rem; white-space: nowrap; }
.status > summary::-webkit-details-marker { display: none; }
.status > summary:hover, .status[open] > summary { border-color: var(--text); }
.status[open] .chevron { transform: rotate(180deg); }
.status-panel { position: fixed; top: 5rem; right: max(var(--rand), calc((100vw - 92rem) / 2 + var(--rand))); width: min(22rem, calc(100vw - 1.5rem));
  max-height: calc(100svh - 6rem); overflow: auto; display: grid; gap: .4rem; padding: 1.25rem 1.25rem 1.4rem;
  background: var(--grund); border: 1px solid var(--linie); border-radius: var(--rundung); box-shadow: 0 1.5rem 3rem var(--schatten); font-size: .9375rem; }
.status-panel .label { margin-top: .85rem; }
.status-panel .label:first-child { margin-top: 0; }
.status-liste { border-top: 1px solid var(--text); }
.status-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .45rem; border-bottom: 1px solid var(--linie); }
.status-liste a { text-decoration: none; }
.status-liste a:hover { text-decoration: underline; }
.status-liste li > span:not(.luecke) { font: 400 .75rem/1.6 var(--mass); letter-spacing: .04em; opacity: .8; }
.status-zeile { font-weight: 600; }
.status-zeiten { font: 400 .8125rem/1.5 var(--mass); letter-spacing: .02em; opacity: .85; }
.schalter { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.schalter input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--text); }

/* Das Menü am Handy: ein Knopf, dahinter alle Seiten über den ganzen Bildschirm. Ein
   <details>, funktioniert ohne Skript; seite.js schließt es mit Escape. Am Rechner aus. */
.menue { display: none; }
.menue > summary { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--text); border-radius: var(--rundung); cursor: pointer; list-style: none; }
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.menue .auf, .menue[open] .zu { display: none; }
.menue[open] .auf { display: block; }
.menue[open] > summary { background: var(--text); color: var(--auf-text); }
html:has(.menue[open]) { overflow: hidden; }
.vollbild { position: fixed; inset: 4.5rem 0 0; overflow: auto; overscroll-behavior: contain; background: var(--grund);
  padding: 1.75rem var(--rand) 2.5rem; display: grid; align-content: start; gap: 1.75rem; font-size: 1rem; }
.vollbild .label { margin-bottom: .6rem; }
.vollbild ul { border-top: 1px solid var(--text); }
.vollbild li a { display: flex; align-items: baseline; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--linie); text-decoration: none;
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.vollbild li a[aria-current] { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.vollbild .kontakt-kurz { display: grid; gap: .35rem; justify-items: start; font-size: .9375rem; }
.vollbild .kontakt-kurz a { text-decoration: none; }
.vollbild .kontakt-kurz > a:first-of-type { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.vollbild .sprachen { margin-top: .4rem; margin-left: -.5rem; }
.vollbild .kontakt-kurz .leise { font: 400 .8125rem/1.5 var(--mass); letter-spacing: .02em; opacity: .85; }

/* ======================================================================
   Die Bühne: Foto über den ganzen Bildschirm, darauf Papier – in beiden Darstellungen
   ====================================================================== */
.buehne { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--papier); overflow: hidden; background: var(--tinte); }
.buehne > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ankommen 2.4s var(--weich) both; }
@keyframes ankommen { from { transform: scale(1.06); } }
/* Mit Skript steht das Foto drei Sekunden still, dann zoomt es ein kleines Stück heran:
   zuerst zügig, dann immer ruhiger, bis es nach neun Sekunden steht. „Bewegung
   anhalten“ im Kopf-Panel hält es an (WCAG 2.2.2). */
.buehne.bewegt > img { animation: schweben 9s cubic-bezier(.25, .5, .35, 1) 3s both; }
@keyframes schweben { from { transform: none; } to { transform: scale(1.08) translate(-.8%, .4%); } }
.buehne::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(43 24 16 / .8) 0%, rgb(43 24 16 / .38) 40%, rgb(43 24 16 / 0) 66%); }
.buehne > .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem; align-items: end; }
.buehne .rechts { display: flex; flex-direction: column; align-items: flex-start; }
.buehne .zeile { margin-bottom: 1.5rem; }
.buehne h1 { font-size: clamp(3.2rem, 1rem + 6vw, 7.2rem); line-height: .98; letter-spacing: -.038em; }
.buehne .vorspann { font-size: 1.1875rem; line-height: 1.5; max-width: 26rem; }
.buehne .was + .vorspann { margin-top: .9rem; }
.buehne .wege { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
/* Startseite: der Einstiegstext so breit wie die beiden Knöpfe darunter, im Blocksatz.
   contain: inline-size lässt die Breite allein von den Knöpfen bestimmen. */
.einstieg { width: fit-content; max-width: 100%; }
.buehne .einstieg .vorspann { contain: inline-size; max-width: none; font-size: 1.0625rem; line-height: 1.55;
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.buehne .knopf { border-color: var(--papier); color: var(--papier); }
.buehne .knopf.voll { background: var(--papier); color: var(--tinte); }
.buehne .knopf:not(.voll):hover { background: rgb(247 243 238 / .12); }
.buehne .luecke { background: rgb(247 243 238 / .1); }
.buehne :focus-visible { outline-color: var(--papier); }
/* Unterseiten: die Bühne etwas niedriger, der Titel eine Zeile */
.buehne.seite { min-height: min(80svh, 52rem); }
.buehne.seite > .wrap { padding-top: 7rem; }
.buehne.seite h1 { font-size: clamp(2.8rem, 1rem + 5vw, 6.25rem); line-height: 1; }

/* ---------- Der Kontaktbogen: neun Felder, eines je Leistung, eines angezeichnet ---------- */
.bogen { width: min(100%, 25rem, 42svh); margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.bogen-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.bogen-gruppe { width: min(100%, 24rem); }
.feld { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--rundung); }
.motiv { position: absolute; inset: 0; display: grid; place-items: center; container-type: inline-size; background: center / cover no-repeat; }
.motiv svg { width: 46%; height: 46%; overflow: visible; }
.motiv .strich { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.motiv .fein { stroke-width: .75; opacity: .55; }
.motiv .flaeche { fill: currentColor; }
.motiv .aa { font-size: max(1.5rem, 38cqi); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.motiv .wort { font-size: max(1.5rem, 30cqi); letter-spacing: -.035em; line-height: 1; }
/* Die Kacheln tragen feste Farben: Sie sind Abzüge auf dem Bogen, keine Oberfläche */
.motiv.papier { background-color: var(--papier); box-shadow: inset 0 0 0 1px rgb(43 24 16 / .12); color: var(--tinte); }
.motiv.hauch { background-color: color-mix(in srgb, var(--tinte) 7%, var(--papier)); color: var(--tinte); }
.motiv.tinte { background-color: var(--tinte); color: var(--papier); }
.motiv.rost { background-color: var(--orange-text); color: var(--papier); }   /* „Aa“ 4,27 : 1, darum nie unter 24 px */
.motiv.orange { background-color: var(--orange); color: var(--tinte); }
.motiv.web { background-image: url("../bilder/feld-web.jpg"); }
.motiv.foto { background-image: url("../bilder/feld-foto.jpg"); }
.motiv.rundgang { background-image: url("../bilder/feld-rundgang.jpg"); }
.motiv.pano { background-image: url("../bilder/panorama-quadrat.jpg"); }
/* In der Dunkelkammer verschwände eine Tinten-Kachel im Grund: eine feine Kante */
:root[data-darstellung="dunkel"] .feld.klein .motiv.tinte { box-shadow: inset 0 0 0 1px rgb(247 243 238 / .22); }
@media (prefers-color-scheme: dark) {
  :root:not([data-darstellung="hell"]) .feld.klein .motiv.tinte { box-shadow: inset 0 0 0 1px rgb(247 243 238 / .22); }
}

/* Im Bogen sieht jedes Feld aus wie ein Blatt einer Klappzahlen-Uhr: ein Spalt teilt es
   in zwei Hälften, an der Achse liegt ein Schatten, oben fällt etwas Licht. */
.bogen .motiv { -webkit-mask: linear-gradient(#000 calc(50% - .5px), transparent calc(50% - .5px), transparent calc(50% + .5px), #000 calc(50% + .5px));
  mask: linear-gradient(#000 calc(50% - .5px), transparent calc(50% - .5px), transparent calc(50% + .5px), #000 calc(50% + .5px)); }
.bogen .feld::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to bottom, rgb(247 243 238 / .08), transparent 20%, transparent 46%, rgb(43 24 16 / .1) 49.7%, transparent 50.3%, transparent 86%, rgb(43 24 16 / .08)); }

/* Ein Feld klappt um wie bei einer Klappzahlen-Uhr: Die obere Hälfte des alten Motivs
   fällt nach vorn, dahinter erscheint im Schatten die obere Hälfte des neuen; dann
   schlägt die untere Hälfte des neuen herunter und federt nach. */
.feld.klappt { overflow: visible; }
.feld.klappt > .motiv { visibility: hidden; }
.klappe { position: absolute; inset: 0; perspective: 260px; }
.klappe .h { position: absolute; left: 0; right: 0; height: calc(50% - .5px); overflow: hidden; }
.klappe .oben { top: 0; border-radius: var(--rundung) var(--rundung) 0 0; }
.klappe .unten { bottom: 0; border-radius: 0 0 var(--rundung) var(--rundung); }
.klappe .h > .motiv { inset: auto; left: 0; width: 100%; height: calc(200% + 1px); }
.klappe .oben > .motiv { top: 0; }
.klappe .unten > .motiv { bottom: 0; }
.klappe .h::after { content: ""; position: absolute; inset: 0; background: var(--tinte); opacity: 0; pointer-events: none; }
.klappe .blatt { z-index: 2; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.klappe .blatt.oben { transform-origin: 50% calc(100% + .5px); animation: fallen .38s cubic-bezier(.45, 0, .9, .55) both; }
.klappe .blatt.oben::after { animation: dunkeln .38s cubic-bezier(.45, 0, .9, .55) both; }
.klappe .blatt.unten { transform-origin: 50% -.5px; animation: schlagen .44s linear .38s both; }
.klappe .blatt.unten::after { animation: aufhellen .3s ease-out .38s both; }
.klappe .oben:not(.blatt)::after { animation: aufhellen .5s ease-out both; }
.klappe .unten:not(.blatt)::after { animation: dunkeln .38s ease-in both; }
@keyframes fallen { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
@keyframes schlagen {
  0% { transform: rotateX(90deg); animation-timing-function: cubic-bezier(.5, 0, 1, .7); }
  52% { transform: rotateX(0deg); animation-timing-function: cubic-bezier(0, 0, .3, 1); }
  72% { transform: rotateX(20deg); animation-timing-function: cubic-bezier(.6, 0, 1, 1); }
  86% { transform: rotateX(0deg); animation-timing-function: ease-out; }
  93% { transform: rotateX(5deg); animation-timing-function: ease-in; }
  100% { transform: rotateX(0deg); }
}
@keyframes dunkeln { from { opacity: 0; } to { opacity: .45; } }
@keyframes aufhellen { from { opacity: .45; } to { opacity: 0; } }

/* Bewegung anhalten: ein Kontrollkästchen im Kopf-Panel, wirkt ohne Skript über :has()
   auf Globus und Foto; die Kacheln fragt seite.js (WCAG 2.2.2) */
html:has(#ruhe:checked) .meridian, html:has(#ruhe:checked) .buehne > img { animation-play-state: paused; }

/* Auf einen Blick: klein, im Raster */
.blick .wrap { padding-block: 1.1rem; align-items: center; }
.blick .label { grid-column: 1 / span 3; }
.blick ul { grid-column: 4 / span 9; display: flex; flex-wrap: wrap; gap: .5rem 2.75rem; }
.blick li { display: flex; align-items: baseline; gap: .55rem; font-size: .9375rem; }
.blick b { font: 400 1.5rem/1 var(--mass); letter-spacing: -.02em; }

/* ======================================================================
   Die drei Gruppen: Querfahrt mit dem Kopf im Raster
   ====================================================================== */
.strecke { border-top: 1px solid var(--linie); padding-block: clamp(4rem, 8vw, 7rem); }
.kopf-raster { align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kopf-raster > .label { grid-column: 1 / span 3; padding-bottom: .55rem; }
.kopf-raster h2 { grid-column: 4 / span 6; font-size: clamp(2.2rem, 1rem + 3vw, 4.25rem); line-height: 1; letter-spacing: -.035em; }
.fortschritt { grid-column: 10 / span 3; display: none; padding-bottom: .55rem; }
.fortschritt .label { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.fortschritt b { display: block; height: 2px; background: var(--linie); }
.fortschritt i { display: block; height: 100%; background: var(--text); transform-origin: left; }
.bahn { display: grid; gap: clamp(3.5rem, 8vw, 6rem); padding-inline: var(--rand); max-width: 92rem; margin-inline: auto; }
.tafel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: end; }
.sucher { position: relative; }
.ecke { position: absolute; width: clamp(1.25rem, 2.6vw, 2.5rem); aspect-ratio: 1; border: 0 solid currentColor; pointer-events: none; }
/* Die Sucherecken sind so rund wie die Kacheln; orange ist nur die Ecke der angezeichneten Tafel */
.ecke.lo { top: 0; left: 0; border-width: 1px 0 0 1px; border-top-left-radius: var(--rundung); }
.ecke.ro { top: 0; right: 0; border-width: 1px 1px 0 0; border-top-right-radius: var(--rundung); }
.ecke.lu { bottom: 0; left: 0; border-width: 0 0 1px 1px; border-bottom-left-radius: var(--rundung); }
.ecke.ru { bottom: 0; right: 0; border-width: 0 1px 1px 0; border-bottom-right-radius: var(--rundung); }
.angezeichnet .ecke.ru { border-color: var(--orange); border-width: 0 2px 2px 0; }
.tafel .rahmen { padding: clamp(.3rem, .45vw, .45rem); }
.tafel .bild { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--rundung) * .6); }
.tafel .bild > a { display: block; height: 100%; }
.tafel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--weich); }
.tafel .bild > a:hover img { transform: scale(1.03); }
.tafel .nr { display: block; margin-bottom: 1.25rem; }
.tafel h3 { font-size: clamp(2.2rem, 1rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -.035em; }
.tafel h3 a { text-decoration: none; }
.tafel h3 a:hover { text-decoration: underline; }
.tafel .was { margin-top: .9rem; }
.tafel .kurz { margin-top: 1rem; max-width: 30rem; }
.tafel ul { margin-top: 1.5rem; border-top: 1px solid var(--text); }
.tafel li { border-bottom: 1px solid var(--linie); }
.tafel li a { display: flex; align-items: baseline; gap: 1rem; padding-block: .8rem; text-decoration: none; font-size: 1.125rem; }
.tafel li a:hover { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.tafel li b { font-size: .8125rem; }
.tafel .marke { display: inline-block; margin-left: .75rem; background: var(--orange); color: var(--tinte); padding: .25rem .5rem; vertical-align: .35em; border-radius: calc(var(--rundung) * .5); }

/* Der Globus: Kugel eines 360°-Panoramas, sechs Meridiane drehen sich um die Achse */
.kugel { position: relative; background: var(--hauch); }
.kugel > svg { position: absolute; inset: 6% 8%; width: 84%; height: 88%; overflow: visible; }
.linie { fill: none; stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; }
.linie.fein { stroke-opacity: .45; }
.linie.stark { stroke-width: 1.6; }
.linie.strich { stroke-dasharray: 4 5; stroke-opacity: .6; }
.flaeche-orange { fill: var(--orange); }
.svg-text { font-family: var(--mass); font-weight: 500; font-size: 11px; letter-spacing: .12em; fill: var(--text); }
.meridian { transform-box: fill-box; transform-origin: center; transform: scaleX(var(--s));
  animation: drehen 28s ease-in-out infinite; animation-delay: var(--v); }
@keyframes drehen { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }

/* ---------- Arbeitsweise: drei Schritte, im Raster ---------- */
.abschnitt { border-top: 1px solid var(--linie); padding-block: clamp(3.5rem, 7vw, 6rem); }
.abschnitt > .wrap { align-items: start; }
.schritte { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.schritt { border-top: 1px solid var(--text); padding-top: 1.1rem; }
.schritt h3 { margin-top: 1.5rem; font-size: clamp(1.75rem, 1rem + 1.5vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; }
.schritt p { margin-top: .9rem; }

/* ---------- Die orange Fläche: KI ----------
   eingerückt statt randlos: ein angezeichnetes Feld auf dem Grund, kein Band */
.aussage { padding-block: clamp(3.5rem, 7vw, 6rem); border-radius: var(--rundung);
  margin: clamp(1.5rem, 3vw, 2.5rem) max(var(--rand), calc((100% - 92rem) / 2 + var(--rand))) clamp(3rem, 6vw, 5rem); }
.aussage > .wrap { max-width: none; padding-inline: clamp(1.5rem, 5vw, 5rem); }
.aussage .gross { grid-column: 1 / span 9; font-size: clamp(2.2rem, 1rem + 3.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; }
.aussage .punkt, .aussage .ende::after { background: var(--tinte); }
.aussage .label { grid-column: 1 / span 9; margin-top: 1.1rem; }
.aussage .text { grid-column: 1 / span 10; max-width: none; margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem; border-top: 1px solid var(--tinte); padding-top: 1.25rem; font-size: 1.125rem; line-height: 1.5; }
.aussage .text.eins { grid-template-columns: minmax(0, 1fr); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.4; }
.aussage .weiter { grid-column: 1 / span 9; margin-top: 2.5rem; }
.aussage .knopf { border-color: var(--tinte); color: var(--tinte); }
.aussage .knopf:hover { background: rgb(43 24 16 / .08); }

/* ---------- Abschnitte im Raster: Titel links, Inhalt rechts ---------- */
.abschnitt-titel { grid-column: 1 / span 3; padding-top: .45rem; }
.abschnitt .inhalt { grid-column: 4 / span 7; display: grid; gap: 1rem; }
.abschnitt .inhalt p { font-size: 1.125rem; line-height: 1.6; }
.abschnitt .gross-text { grid-column: 4 / span 8; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
.abschnitt .gross-text + .weiter { grid-column: 4 / span 8; margin-top: 1.75rem; }
.aussage + .abschnitt { border-top: 0; }

/* Die drei Leistungen einer Gruppe: Nummer und kleines Feld, Titel, Text, Umfang */
.unterpunkte { padding-block: clamp(3rem, 6vw, 5rem); }
.unterpunkt { border-top: 1px solid var(--linie); padding-block: clamp(1.75rem, 3.5vw, 2.75rem); align-items: start; scroll-margin-top: 5rem; }
.unterpunkt:first-child { border-top-color: var(--text); }
.unterpunkt-marke { grid-column: 1 / span 3; display: flex; align-items: flex-start; gap: 1.25rem; }
.unterpunkt-marke .label { padding-top: .2rem; min-width: 2ch; }
.feld.klein { width: clamp(3.5rem, 2.75rem + 2vw, 5rem); flex: none; }
.unterpunkt h2 { grid-column: 4 / span 4; font-size: clamp(1.75rem, 1rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; }
.unterpunkt .text { grid-column: 8 / span 5; font-size: 1.125rem; padding-top: .35rem; }
/* Der Umfang als Liste mit Würfeln in der Textfarbe – die Form aus dem Untertitel des Logos */
.umfang { margin-top: 1.1rem; display: grid; gap: .35rem; font-size: 1rem; }
.umfang li { position: relative; padding-left: 1.1rem; }
.umfang li::before { content: ""; position: absolute; left: 0; top: .62em; width: .32rem; height: .32rem; background: currentColor; }

/* Mit KI: auf den Gruppenseiten ein Band mit Haarlinie, bei Zukunftsfähig arbeiten die orange Fläche */
.mit-ki-band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.mit-ki-band > .wrap { border-top: 1px solid var(--text); padding-top: clamp(1.5rem, 3vw, 2.25rem); align-items: start; }
.mit-ki-band .label { grid-column: 1 / span 3; display: flex; align-items: center; gap: .55rem; padding-top: .45rem; }
.mit-ki-band .label i { width: .5rem; height: .5rem; background: var(--orange); }
.mit-ki-text { grid-column: 4 / span 7; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.4; letter-spacing: -.01em; }

/* Weitere Leistungen: zwei Wege, groß, mit Haarlinien */
.weitere { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.aussage + .weitere { padding-top: 0; }
.weitere .label { grid-column: 1 / span 3; padding-top: 1.35rem; }
.weitere ul { grid-column: 4 / span 9; border-top: 1px solid var(--text); }
.weitere li a { display: flex; align-items: baseline; gap: 1.25rem; padding-block: 1.1rem; border-bottom: 1px solid var(--linie); text-decoration: none; }
.weitere li a .titel { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.weitere li a .pfeil { margin-left: auto; align-self: center; width: 1.4rem; height: 1.4rem; }
.weitere li a:hover .titel { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.weitere li a:hover .pfeil { transform: translateX(.35rem); }

/* Beispiele: die 360°-Rundgänge als Liste mit Ort und Pfeil (wie „Weitere Leistungen“) */
.beispiele-inhalt { grid-column: 4 / span 9; }
.beispiele .hinweis { max-width: 40rem; margin-bottom: 1.25rem; font-size: 1.0625rem; }
.beispiele ul { border-top: 1px solid var(--text); }
.beispiele li a { display: flex; align-items: baseline; gap: 1.25rem; padding-block: .95rem; border-bottom: 1px solid var(--linie); text-decoration: none; }
.beispiele .titel { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.beispiele .ort { font: 400 .8125rem/1.4 var(--mass); letter-spacing: .04em; opacity: .85; }
.beispiele .pfeil { margin-left: auto; align-self: center; width: 1.2rem; height: 1.2rem; }
.beispiele li a:hover .titel { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.beispiele li a:hover .pfeil { transform: translateX(.35rem); }

/* Über mich: Porträt auf der Bühne, Eckdaten und Haltung als Liste */
.portraet { width: min(100%, 14rem); aspect-ratio: 4 / 5; margin-bottom: .75rem; display: grid; place-items: center; padding: 1rem;
  border: 1px dashed currentColor; border-radius: var(--rundung); background: rgb(43 24 16 / .62); text-align: center; font: 400 .8125rem/1.4 var(--mass); }
.portraet .luecke { border: 0; padding: 0; background: none; }
.liste { grid-column: 4 / span 9; border-top: 1px solid var(--text); }
.liste > div { display: grid; grid-template-columns: minmax(9rem, 3fr) minmax(0, 6fr); gap: 1.25rem; padding-block: .85rem; border-bottom: 1px solid var(--linie); }
.liste dt { font: 400 .8125rem/1.6 var(--mass); letter-spacing: .04em; padding-top: .15rem; }
.liste dd { font-size: 1.0625rem; }
.liste.haltung dt { font: 400 1.375rem/1.2 var(--stimme); letter-spacing: -.015em; padding-top: 0; }

/* ---------- YouTube: Sucher auf der Bühne, eigene Praxis, vier Pakete ----------
   Der Sucher ist Schmuck (aria-hidden): die Ecken der Tafeln, ein Drittel-Raster als
   Haarlinie und das REC-Feld als oranges Quadrat – Orange als Fläche, nie als Schrift.
   Er blinkt nicht: Ein pulsierender Punkt wäre Bewegung, die nichts sagt. */
.sucher-video { position: relative; width: min(100%, 22rem); aspect-ratio: 16 / 9; margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.sucher-video::before, .sucher-video::after { content: ""; position: absolute; border: 0 solid rgb(247 243 238 / .3); }
.sucher-video::before { inset: 0 calc(100% / 3); border-width: 0 1px; }
.sucher-video::after { inset: calc(100% / 3) 0; border-width: 1px 0; }
.sucher-video .rec { position: absolute; top: .85rem; left: 1rem; display: flex; align-items: center; gap: .45rem; font: 500 .75rem/1 var(--mass); letter-spacing: .1em; }
.sucher-video .rec i { width: .55rem; height: .55rem; background: var(--orange); }
.sucher-video .zeitcode { position: absolute; right: 1rem; bottom: .85rem; font: 400 .75rem/1 var(--mass); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* Aus eigener Praxis: Aussage, Text, drei Zahlen in der Maßschrift */
.erfahrung .inhalt { margin-top: 1.75rem; }
.zahlen { grid-column: 4 / span 9; margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem;
  border-top: 1px solid var(--text); padding-top: 1.1rem; }
.zahlen li { display: grid; gap: .55rem; align-content: start; }
.zahlen b { font: 400 clamp(2.4rem, 1.5rem + 2.4vw, 3.75rem)/1 var(--mass); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zahlen span { max-width: 16rem; font-size: .9375rem; }
.erfahrung .weiter { grid-column: 4 / span 8; margin-top: 1.75rem; }

/* Die Pakete: vier Spalten mit Linie oben wie die Schritte der Arbeitsweise, keine
   Kästen. Das empfohlene ist angezeichnet – orange Linie und der Vermerk. Die letzte
   Zeile (wer was macht) steht in allen vier auf gleicher Höhe. */
.pakete-einleitung { grid-column: 4 / span 6; margin-top: 1.1rem; font-size: 1.125rem; }
.paket-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem 1.25rem; }
.paket { display: flex; flex-direction: column; border-top: 1px solid var(--text); padding-top: 1.1rem; }
.paket.angezeichnet { border-top: 2px solid var(--orange); padding-top: calc(1.1rem - 1px); }
.paket-nr { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; min-height: 1.6rem; }
.paket .marke { background: var(--orange); color: var(--tinte); padding: .25rem .5rem; border-radius: calc(var(--rundung) * .5); }
.paket h3 { margin-top: 1.1rem; font-size: clamp(1.75rem, 1rem + 1.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; }
.preis { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.preis b { font: 500 clamp(2rem, 1.4rem + 1.4vw, 2.75rem)/1 var(--mass); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preis .ab, .preis .monat { font: 400 .8125rem/1.4 var(--mass); letter-spacing: .04em; }
.paket .kurz { margin-top: 1rem; }
.paket .dazu { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--linie); }
.paket .umfang { margin-top: .7rem; font-size: .9375rem; }
.paket .enthalten { margin-top: 1.25rem; font-size: .9375rem; }
.paket .enthalten .label { display: block; margin-bottom: .35rem; }
.paket .rolle { margin-top: auto; padding-top: 1.4rem; font-weight: 600; }
@media (min-width: 40rem) { .paket-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .paket-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Impressum, Datenschutz, Fehlerseite: kein Foto, nur der Grund */
.kopfbereich { padding-block: calc(4.5rem + clamp(3.5rem, 8vw, 7rem)) clamp(2.5rem, 5vw, 4rem); }
.kopfbereich .wrap { align-items: end; }
.kopfbereich .label { grid-column: 1 / span 3; padding-bottom: .9rem; }
.kopfbereich h1 { grid-column: 4 / span 9; font-size: clamp(2.8rem, 1rem + 5vw, 6.25rem); line-height: 1; letter-spacing: -.04em; }
.kopfbereich .text { grid-column: 4 / span 7; margin-top: 1.75rem; font-size: 1.125rem; }
.rechtstext .abschnitt { padding-block: clamp(2rem, 4vw, 3rem); }
.rechtstext .abschnitt-titel { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; padding-top: 0; }
.rechtstext .inhalt p { font-size: 1.0625rem; }
.stand { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.stand p { grid-column: 4 / span 9; font: 400 .8125rem/1.6 var(--mass); letter-spacing: .04em; opacity: .85; }

/* ======================================================================
   Kontakt und Fuß: auf Tinte, in der Dunkelkammer etwas heller als der Grund
   ====================================================================== */
.fuss { view-timeline-name: --fuss; }
.fuss > .wrap { padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.5rem; }
.fuss .kontakt { align-items: start; }
.fuss .fuss-titel { grid-column: 1 / span 3; padding-top: .6rem; opacity: .85; }
.fuss .kontakt-wege { grid-column: 4 / span 9; display: grid; gap: .45rem; justify-items: start; }
.fuss .aufruf { max-width: 38rem; margin-bottom: 1.75rem; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.4; letter-spacing: -.01em; }
.fuss .mail { margin-bottom: .4rem; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
.fuss .zeile { display: flex; flex-wrap: wrap; gap: .2rem .6rem; font-size: .9375rem; }
.fuss .zeile a { text-decoration: none; }
.fuss .zeile a:hover { text-decoration: underline; }
.fuss .leise { opacity: .8; }
.fuss .schluss { margin-top: clamp(2.75rem, 5vw, 3.75rem); padding-top: 1.1rem; border-top: 1px solid var(--linie); align-items: center;
  font: 400 .75rem/1.4 var(--mass); letter-spacing: .04em; }
.fuss .schluss .logo { grid-column: 1 / span 3; justify-self: start; }
.fuss .schluss .logo img { width: 6.5rem; }
.fuss .schluss-links { grid-column: 4 / span 6; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.fuss .schluss-links a { text-decoration: none; }
.fuss .schluss-links a:hover, .fuss .schluss-links a[aria-current] { text-decoration: underline; }
.fuss .schluss-rechts { grid-column: 10 / span 3; text-align: right; opacity: .8; }

/* Kasten unten rechts: springt zum Kontakt und blendet sich aus, wenn der Fuß kommt */
body { timeline-scope: --fuss; }
.zum-kontakt { position: fixed; right: 1rem; bottom: 1rem; z-index: 9; display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem; border: 1px solid var(--text); border-radius: var(--rundung); background: var(--text); color: var(--auf-text); text-decoration: none;
  font: 500 .75rem/1.2 var(--mass); letter-spacing: .06em; transition: background-color .2s, color .2s; }
.zum-kontakt:hover { background: var(--grund); color: var(--text); }
.zum-kontakt .pfeil { width: .8rem; height: .8rem; }

/* Am Handy steht statt des Kastens eine Leiste am unteren Rand (20.11.2026): Anrufen,
   WhatsApp, Projekt anfragen – das Gegenstück zum Kopf, aus demselben Glas. Der Kasten
   sprang nur ans Seitenende und verdeckte unterwegs Text. Schrift auf dem Glas hält auch
   über einem weißen Foto (Dunkelkammer 8,8 : 1) und über Tinte (Tageslicht 8,3 : 1).
   Die Leuchte vor „Anrufen“ zeigt wie im Kopf-Panel, ob das Telefon gerade geht
   (seite.js; die Farben der Leuchte stehen in start.css). Der Fuß bekommt unten so viel
   Platz, wie die Leiste hoch ist, damit sie Impressum und Datenschutz nie verdeckt.
   Auf dem Anfrageformular und der Danke-Seite baut bauen.py keine Leiste: Dort stünde
   sie beim Tippen über der Tastatur. */
.leiste { display: none; }
@media (max-width: 40rem) {
  .zum-kontakt { display: none; }
  .leiste { position: fixed; inset: auto 0 0; z-index: 9; isolation: isolate; display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
    color: var(--text); font-size: .9375rem; font-weight: 600; line-height: 1.2; }
  .leiste::before { content: ""; position: absolute; inset: 0; z-index: -1; border-top: 1px solid var(--linie); background: var(--glas);
    -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
  .leiste a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; padding-inline: .7rem;
    text-decoration: none; white-space: nowrap; transition: background-color .2s; }
  .leiste a + a { border-left: 1px solid var(--linie); }
  .leiste a:active { background: var(--hauch); }
  .leiste a:focus-visible { outline-offset: -4px; }
  .leiste .leiste-voll { flex-grow: 1.5; border-left: 0; background: var(--text); color: var(--auf-text); }
  .leiste .leiste-voll:active { background: color-mix(in srgb, var(--text) 86%, var(--grund)); }
  .fuss { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .seite-anfrage .fuss { padding-bottom: 0; }
}

/* ======================================================================
   Die Einstiegsseite unter / und die Fehlerseite: nur das Nötigste
   ====================================================================== */
.wahl { min-height: 100svh; display: grid; align-content: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.wahl-raster { display: grid; gap: clamp(2rem, 5vw, 3.5rem); width: 100%; }   /* im Raster schrumpfte der Rand-auto-Block sonst auf seinen Inhalt */
.wahl-logo { line-height: 0; }
.wahl-logo img { width: clamp(15.5rem, 10rem + 16vw, 30rem); }
.wahl-gruss { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .45em; font-size: clamp(2.6rem, 1rem + 7vw, 7rem); line-height: 1; letter-spacing: -.035em; }
.wahl-gruss i { display: inline-block; width: .16em; height: .16em; background: var(--orange); margin-top: .25em; }
.wahl-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2rem; border-top: 1px solid var(--text); padding-top: 1.5rem; }
.sprache { display: grid; gap: .4rem; text-decoration: none; }
.sprache-name { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); letter-spacing: -.03em; line-height: 1.05; }
.sprache:hover .sprache-name { text-decoration: underline; text-decoration-color: var(--unterstrich); }
.sprache-weiter { display: inline-flex; align-items: center; gap: .5rem; }
.sprache:hover .pfeil { transform: translateX(.35rem); }
.wahl-liste .rechtliches { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .9rem; font-size: .875rem; }
.fehler .wahl-liste p { margin-top: .5rem; }
.fehler-titel { font-size: clamp(4.5rem, 2rem + 9vw, 10rem); line-height: .9; letter-spacing: -.045em; }

/* ======================================================================
   Bewegung beim Scrollen, wo der Browser es kann
   ====================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Das angezeichnete Feld, groß: Orange wächst von unten rechts zur ganzen Fläche.
       Der Text darin steht still – eine Bewegung je Stelle genügt. */
    .aussage { animation: wachsen linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    @keyframes wachsen { from { clip-path: inset(calc(100% - 4.5rem) 0 0 calc(100% - 4.5rem) round var(--rundung)); } to { clip-path: inset(0 round var(--rundung)); } }
    /* erst nach dem Startbereich zeigen, vor dem Fuß wieder ausblenden */
    .zum-kontakt { animation: einblenden linear both, ausblenden linear both; animation-timeline: scroll(root), --fuss;
      animation-range: 55vh 75vh, entry 0% entry 30%; }
    @keyframes einblenden { from { opacity: 0; visibility: hidden; transform: translateY(.5rem); } }
    @keyframes ausblenden { to { opacity: 0; visibility: hidden; transform: translateY(.5rem); } }
  }
  /* Am Rechner läuft die Strecke quer: die Bühne bleibt stehen, die Tafeln ziehen durch */
  @media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
    .strecke { height: 360vh; padding: 0; view-timeline-name: --strecke; }
    .strecke-innen { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: 4.5rem;
      display: flex; flex-direction: column; justify-content: center; }
    .strecke .kopf-raster { width: 100%; }
    .fortschritt { display: block; }
    .fortschritt i { animation: fuellen linear both; animation-timeline: --strecke; animation-range: contain 4% contain 96%; }
    @keyframes fuellen { from { transform: scaleX(0); } }
    .bahn { display: flex; width: max-content; max-width: none; margin: 0; gap: 7vw; padding-right: calc(var(--rand) + 2vw);
      animation: fahren linear both; animation-timeline: --strecke; animation-range: contain 4% contain 96%; }
    @keyframes fahren { to { transform: translateX(calc(100vw - 100%)); } }
    /* die Tafeln füllen die stehende Bühne, damit oben und unten keine leere Fläche bleibt */
    .tafel { width: min(80vw, 78rem, 125svh); }
  }
}

/* ======================================================================
   Schmal
   ====================================================================== */
@media (max-width: 63.99rem) {
  .raster > * { grid-column: 1 / -1 !important; }
  .haupt, .kopf-rechts > .sprachen { display: none; }   /* beides steht dann im Menü */
  .kopf-rechts { gap: .6rem; }
  .menue { display: block; }
  .buehne > .wrap, .tafel { grid-template-columns: minmax(0, 1fr); }
  .buehne > .wrap { row-gap: 1.25rem; padding-top: 6rem; }
  .buehne .rechts { display: contents; }
  .bogen, .portraet, .sucher-video { order: -1; }
  .sucher-video { width: min(15rem, 66vw); margin-bottom: 0; }
  .bogen { width: min(17rem, 70vw); margin-bottom: 0; }
  .bogen-gruppe { width: min(16rem, 66vw); }
  .portraet { width: 9rem; margin-bottom: 0; }
  .blick ul { gap: .5rem 1.75rem; margin-top: .6rem; }
  .kopf-raster > .label, .fuss .fuss-titel, .abschnitt-titel, .mit-ki-band .label, .weitere .label, .kopfbereich .label { padding-top: 0; margin-bottom: 1rem; }
  .schritte { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .schritt h3 { margin-top: .9rem; }
  .unterpunkt h2 { margin-top: 1.25rem; }
  .unterpunkt .text { margin-top: .75rem; padding-top: 0; }
  .liste > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .fuss .schluss { row-gap: .7rem; }
  .fuss .schluss-rechts { text-align: left; }
  .stand p { margin-top: 0; }
}
@media (max-width: 40rem) {
  .kopf .logo img { width: 9.5rem; }
  /* am Handy reicht der Platz nicht: „Projekt anfragen“ steht auf der Bühne, im Menü und
     in der Leiste am unteren Rand; vom Kopf-Panel bleibt das Quadrat, sein Name wird nur vorgelesen */
  .kopf-rechts > .knopf { display: none; }
  .status > summary { padding-inline: .7rem; }
  .status-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .aussage .text { grid-template-columns: minmax(0, 1fr); }
  .kugel > svg { top: 15%; height: 81%; }
  .zahlen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 22.5rem) {
  .kopf .logo img { width: 8.25rem; }
  .kopf-rechts { gap: .4rem; }
  /* drei Wörter auf 320 px: etwas kleiner, damit „Starta ett projekt“ noch hineinpasst */
  .leiste { font-size: .8125rem; }
  .leiste a { gap: .4rem; padding-inline: .45rem; }
}

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

/* Drucken: der Inhalt, ohne Kopf, Bewegung und Fotos über die ganze Fläche */
@media print {
  .kopf, .zum-kontakt, .leiste, .bogen, .buehne > img, .menue { display: none !important; }
  .buehne { min-height: 0; color: var(--tinte); background: none; }
  .buehne::after { display: none; }
  .buehne > .wrap { padding-top: 2rem; }
  .strecke { height: auto !important; }
  .strecke-innen { position: static !important; height: auto !important; }
  .bahn { display: grid !important; width: auto !important; transform: none !important; }
}
