/* Entwurf „Kinetik“ – realwirtschaft neu.
   Schwarz und Weiß im Wechsel, eine Signalfarbe. Überschriften in Instrument Serif (gemischte Schreibweise, Marvin 19.11.2026),
   Text, Menü, Listen und Knöpfe in Archivo.
   Grundfassung ohne Bewegung zuerst, Bewegung über die Klasse .motion (main.js). */

@font-face {
  font-family: 'Archivo';
  src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url(fonts/instrument-serif-400.woff2) format('woff2'); /* SIL OFL 1.1, Lizenz in fonts/INSTRUMENT-SERIF-OFL.txt, Untermenge latin */
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --schwarz: #000;
  --weiss: #fff;
  --grau: #8a8a87;       /* Nebentext auf Schwarz */
  --grau-hell: #6b6b68;  /* Nebentext auf Weiß */
  --linie-d: rgb(255 255 255 / .14);
  --linie-h: rgb(0 0 0 / .14);
  --akzent: #ff4a1c;     /* Signalorange */
  /* Schriften: --f Fließtext, --fd Überschriften, --fu Menü, Listen, Knöpfe */
  --archivo: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f: var(--archivo);
  --fd: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --fu: var(--archivo);
  --wd: 400;        /* Instrument Serif hat nur diesen einen Schnitt */
  --sd: 100%;       /* Breite der Überschriften */
  --lhd: 1.14;      /* Faktor auf die Zeilenhöhe der Überschriften: Platz für Unterlängen (g, p, y) */
  --vd: none;       /* Überschriften in gemischter Schreibweise */
  --pad: clamp(16px, 3.6vw, 56px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--schwarz); color: var(--weiss); font: 400 1.0625rem/1.55 var(--f); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.skip { position: absolute; left: var(--pad); top: -80px; z-index: 300; background: var(--akzent); color: #000; padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 12px; }

.dark { background: var(--schwarz); color: var(--weiss); }
.light { background: var(--weiss); color: var(--schwarz); }

/* ---------- Schrift ---------- */
.mark, .display-xl, .display-l, .display-m {
  font-family: var(--fd); font-weight: var(--wd); font-stretch: var(--sd);
  text-transform: var(--vd); letter-spacing: -.005em;
}
.display-xl { font-size: clamp(3.4rem, 12.5vw, 14rem); line-height: calc(.84 * var(--lhd)); }
.display-l  { font-size: clamp(2.8rem, 8vw, 9rem); line-height: calc(.86 * var(--lhd)); }
.display-m  { font-size: clamp(2.3rem, 4.6vw, 5rem); line-height: calc(.9 * var(--lhd)); }
html { font-synthesis: none; }
/* Maske für Zeilen, die aus ihr heraussteigen. Unten Platz für Unterlängen (Polster, ohne das Layout zu verschieben), oben
   Luft für alles, was über die Großbuchstaben ragt (die Punkte auf „Über“): Die Zeilenhöhe ist kleiner als die Schrift.
   Oben schneidet deshalb clip-path statt overflow (ein Polster oben würde mehrzeilige Überschriften verschieben, weil
   negative Ränder zusammenfallen); seitlich schneidet overflow-x: clip wie bisher. */
.ln { display: block; overflow-x: clip; clip-path: inset(-.2em 0 0 0); padding-bottom: .22em; margin-bottom: -.22em; }
.ln > span { display: block; }
/* Der Schriftzug füllt genau die Breite (gemessen: 4,655 em für „realwirtschaft“ in Instrument Serif, mit etwas Luft 4,69) */
.hero, .intro, .footer { container-type: inline-size; }
.mark { font-size: calc((100cqw - 2 * var(--pad)) / 4.69); line-height: .8; white-space: nowrap; }
.akzent { color: var(--akzent); }
.light .akzent { color: #000; background: var(--akzent); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .9rem 1.35rem;
  font: 800 1rem/1 var(--fu); font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-akzent { background: var(--akzent); color: #000; }
.btn-akzent:hover { background: var(--weiss); }
.btn-ghost { border-color: var(--weiss); color: var(--weiss); }
.btn-ghost:hover { background: var(--weiss); color: #000; }
.btn-schwarz { background: #000; color: var(--weiss); cursor: pointer; }
.btn-schwarz:hover { background: var(--weiss); color: #000; }

/* ---------- Navigation: liegt im Differenz-Modus, auf Schwarz weiß, auf Weiß schwarz ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--pad);
  color: #fff; pointer-events: none; transition: color .2s ease;
}
html:not(.motion) .nav { background: #000; }
/* Glas hinter der Navigation (eigene Ebene, damit das Handy-Menü als position: fixed den ganzen Bildschirm behält):
   Frost, durchscheinende Füllung, helle Kante, leichter Schatten. Dunkles Glas über dunklen, helles über hellen Abschnitten.
   Erscheint, wenn der Schriftzug aus dem Hero gelandet ist. Leiste über die ganze Breite (Marvin, 19.11.2026, statt Kapsel). */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(8 8 8 / .5);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 10px 30px rgb(0 0 0 / .2);
  transition: opacity .4s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
[data-nav="dunkel"] .nav::before { background: rgb(255 255 255 / .6); border-color: rgb(0 0 0 / .08); box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
/* Über der Signalfarbe (Kontakt): Glas in der Signalfarbe getönt statt milchig weiß, folgt dem Akzent-Schalter */
[data-nav-grund="akzent"] .nav::before { background: color-mix(in srgb, var(--akzent) 72%, transparent); border-color: rgb(0 0 0 / .12); box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
.motion.mark-im-hero .nav::before { opacity: 0; }
html:not(.motion) .nav::before { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before { background: rgb(8 8 8 / .88); }
  [data-nav="dunkel"] .nav::before { background: rgb(255 255 255 / .92); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: #000; }
  [data-nav="dunkel"] .nav::before { background: #fff; }
}
/* Schriftfarbe der Navigation folgt dem Abschnitt darunter (main.js setzt data-nav) */
[data-nav="dunkel"] .nav { color: #000; }
[data-nav="dunkel"] .nav-cta { background: #000; color: #fff; }
.nav a, .nav-cta { pointer-events: auto; text-decoration: none; }
/* Marke „realwirtschaft | AGENCY“: gleiche Schrift und Laufweite wie der Schriftzug im Hero, damit der Flug genau aufgeht */
.nav-mark { display: inline-flex; align-items: baseline; flex: none; white-space: nowrap; font: var(--wd) 1.65rem/1 var(--fd); font-stretch: var(--sd); letter-spacing: -.005em; }
.nm-agency { display: inline-flex; align-items: baseline; gap: .3em; margin-left: .3em; transition: opacity .35s ease, transform .35s ease; }
/* Kachelmarke (Logo, src/components/Marke.astro): Block, Kacheln und eine glühende Kachel. Farbe aus der Schrift darum,
   die Glut flach in --akzent, auf der Orangefläche weiß. Wenn public/marke.js ein Zeichen zeigt (.heiss), glüht sie in der Skala. */
.marke { display: block; flex: none; overflow: visible; }
.marke rect { fill: currentColor; }
.marke .m-k { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center;
  transition: opacity .26s ease, transform .34s cubic-bezier(.3, 1.45, .5, 1); }
.marke .m-k.an { opacity: 1; transform: none; }
.marke .m-glut { fill: var(--akzent); transition: transform .42s cubic-bezier(.6, 0, .2, 1), opacity .25s ease; }
.marke.heiss .m-glut { fill: url(#rw-glut); }
[data-nav-grund="akzent"] .marke:not(.heiss) .m-glut { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .marke .m-k, .marke .m-glut { transition: none; } }
.nm-zeichen { width: 1.2em; height: 1.2em; margin-right: .42em; align-self: center; }
.nm-agency i { font-style: normal; opacity: .55; }
/* Solange der Schriftzug noch im Hero steht, ist die Marke oben leer; „| AGENCY“ kommt erst nach der Landung */
.motion.mark-im-hero .nm-wort { visibility: hidden; }
.motion.mark-im-hero .nm-agency { opacity: 0; transform: translateX(-.5em); }
/* Schmale Desktops: Marke und Menü etwas kompakter, damit das Menü nicht an „Anfrage senden“ stößt */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav-mark { font-size: 1.45rem; }
  .menu { gap: 1rem; font-size: .88rem; }
}
/* Handy: Platz links von „Anfrage senden“ und dem Menü-Knopf; auf sehr schmalen Geräten nur „realwirtschaft“ */
@media (max-width: 899px) { .nav-mark { font-size: min(1.1rem, 4.6vw); } }
/* Am Handy steht vor dem Wort die Kachelmarke, dann reicht der Platz bis „Anfrage senden“ nur für „realwirtschaft“ */
@media (max-width: 480px) { .nm-agency { display: none; } }
.menu { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); margin-left: auto; margin-right: 11.5rem; font: 700 .95rem/1 var(--fu); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; }
.menu a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-cta { position: fixed; z-index: 51; top: 12px; right: var(--pad); min-height: 44px; padding: .75rem 1.1rem;
  display: inline-flex; align-items: center; background: var(--akzent); color: #000; text-decoration: none;
  font: 800 .95rem/1 var(--fu); font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; }
.nav-cta:hover { background: #fff; }
.menu-toggle { display: none; }
.progress { position: fixed; z-index: 52; inset: 0 0 auto; height: 3px; background: var(--akzent); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.motion) .progress { display: none; }

@media (max-width: 899px) {
  .menu { display: none; }
  .nav-cta { right: calc(var(--pad) + 56px); }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; position: fixed; z-index: 51; top: 12px; right: var(--pad);
    width: 44px; height: 44px; background: var(--akzent); border: 0; cursor: pointer;
  }
  .menu-toggle i { display: block; width: 18px; height: 2px; background: #000; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .menu-offen .nav { color: #fff; }
  [data-nav="dunkel"] .menu-toggle { background: #000; }
  [data-nav="dunkel"] .menu-toggle i { background: #fff; }
  .menu-offen .menu {
    display: flex; flex-direction: column; position: fixed; inset: 0; margin: 0; padding: calc(var(--nav-h) + 2rem) var(--pad) 2rem;
    background: #000; gap: .2rem; z-index: 49; pointer-events: auto;
  }
  .menu-offen .menu a { font: var(--wd) 3.2rem/calc(1.05 * var(--lhd)) var(--fd); font-stretch: var(--sd); letter-spacing: 0; }
}
@media (max-width: 420px) { .nav-cta { padding: .75rem .8rem; font-size: .85rem; } }

/* ---------- Intro ---------- */
.intro { display: none; }
.motion .intro {
  display: block; position: fixed; inset: 0; z-index: 200; background: var(--akzent); color: #000;
  clip-path: inset(0 0 0 0);
}
.intro-mark { position: absolute; left: var(--pad); top: calc(var(--nav-h) + 1.5vh); }
.intro-mark span { display: inline-block; }

/* ---------- Raster und Wärme (aus der bisherigen Seite) ----------
   Raster: 14-px-Kacheln mit 2-px-Fuge, kaum heller als Schwarz, auf allen schwarzen Flächen.
   Wärme (Canvas aus waerme.js) liegt auf demselben Raster und zeigt nur, wo etwas passiert. */
.raster { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.raster::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 2px, transparent 2px) 0 0 / 14px 14px,
    linear-gradient(#000 2px, transparent 2px) 0 0 / 14px 14px,
    #121211;
}
.motion .raster::before { animation: atmen 7s ease-in-out infinite alternate; }
@keyframes atmen { from { opacity: .45; } to { opacity: 1; } }
.raster .waerme { position: absolute; left: 0; top: 0; }
.hero .lines { display: none; }
.kapitel, .footer { position: relative; }
.kapitel > :not(.raster), .footer > :not(.raster) { position: relative; z-index: 1; }
.motion .kapitel .kap-count { position: absolute; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .raster::before { animation: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0 var(--pad); pointer-events: none; }
.lines i { border-left: 1px solid var(--linie-d); height: 140%; }
.lines i:first-child { border-left: 0; }
.hero-mark { position: absolute; z-index: 1; left: var(--pad); top: calc(var(--nav-h) + 1.5vh); color: var(--akzent); }
.hero-person {
  position: absolute; z-index: 2; bottom: 0; left: 52%; translate: -50% 0;
  height: 90svh; width: auto; max-width: none;
  filter: grayscale(1) contrast(1.18) brightness(.92);
}
.hero-copy { position: absolute; z-index: 3; left: var(--pad); bottom: 7svh; width: min(36vw, 560px); display: grid; gap: 1.2rem; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.4vw, 4.8rem); }
/* Jede Zeile so breit wie ihr Text: Für den Flug wird um die Textmitte skaliert */
@media (min-width: 900px) { .hero-copy h1 .ln { width: max-content; white-space: nowrap; } }
.lead { font-size: 1.05rem; color: #d6d6d3; max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-stats { position: absolute; z-index: 3; right: var(--pad); bottom: 7svh; display: grid; gap: 1.3rem; text-align: right; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { font: var(--wd) clamp(2.4rem, 3.6vw, 3.8rem)/calc(.9 * var(--lhd)) var(--fd); font-stretch: var(--sd); }
.hero-stats dt { font-size: .85rem; color: var(--grau); }

/* ---------- Haltung ---------- */
.manifest { position: relative; min-height: 130vh; display: flex; flex-direction: column; justify-content: center; padding: 20vh var(--pad) 16vh; overflow: hidden; }
.manifest-text {
  position: relative; z-index: 2; max-width: 12.5em; margin: 0 auto; text-align: center;
  font: var(--wd) clamp(2.2rem, 4.7vw, 5.4rem)/calc(.92 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd);
}
.motion .manifest-text .w { color: #d4d4d1; }
.motion .manifest-text .akzent { background-size: 0% 100%; background-image: linear-gradient(var(--akzent), var(--akzent)); background-repeat: no-repeat; background-color: transparent; }

/* Der digitale Handwerkskasten: im Kasten geordnet (Grundfassung), mit Bewegung vorher verstreut */
.kasten {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  max-width: 62rem; margin: 7vh auto 0; padding: 1.3rem;
}
.kasten::before { /* der Kasten selbst */
  content: ''; position: absolute; inset: 0; border: 2px solid #000; border-radius: 6px; pointer-events: none;
  opacity: var(--rahmen, 1);
}
.werkzeug { position: relative; }
.wz {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  background: #000; color: #fff; padding: .8rem 1.05rem .75rem;
  font: 800 1rem/1 var(--fu); font-stretch: 78%; text-transform: uppercase; letter-spacing: .03em;
}
.wz i { width: 10px; height: 10px; background: var(--akzent); flex: none; }

/* ---------- Kapitel ---------- */
.kapitel { position: relative; padding: 18vh var(--pad) 14vh; }
.kapitel-label { font: 700 .95rem/1 var(--fu); font-stretch: 85%; color: var(--grau); margin-bottom: 3rem; }
.kapitel-grid { display: grid; gap: 16vh; }
/* Text links (Titel, Satz, Liste), die Szene groß rechts */
.kap {
  display: grid; align-items: start; column-gap: calc(var(--pad) * 1.5); row-gap: .8rem;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  grid-template-areas: "titel szene" "sub szene" "liste szene";
  grid-template-rows: auto auto 1fr;
}
.kap-titel { grid-area: titel; font-size: clamp(2.8rem, 6.6vw, 7.6rem); }
.kap-sub { grid-area: sub; font-size: 1.25rem; color: #d6d6d3; }
.kap-list { grid-area: liste; display: grid; gap: 0; margin-top: 1.4rem; max-width: 27rem; }
.kap-list li { position: relative; padding: .55rem 0; border-top: 1px solid var(--linie-d); font: 700 1.02rem/1.2 var(--fu); font-stretch: 85%; transition: color .3s, padding-left .3s; }
/* Der Listenpunkt, den die Szene gerade zeigt */
.kap-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--akzent); transform: scale(0); transition: transform .3s; }
.kap-list li.zeigt { padding-left: 1.3rem; }
.kap-list li.zeigt::before { transform: none; }
.kap-list:has(.zeigt) li:not(.zeigt) { color: #8f8f8b; }
.kap-count { display: none; }

/* Szenen: Geräte und Belege, wie sie im Betrieb wirklich aussehen. Namen und Zahlen sind ausgedacht. */
.szene { grid-area: szene; position: relative; display: grid; gap: 4rem; width: 100%; max-width: 40rem; font-size: .9rem; line-height: 1.35; }
.teil { position: relative; min-width: 0; }
/* Worum es in der Szene geht: derselbe Name wie in der Liste */
.teil-name { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font: 800 1.1rem/1 var(--fu); font-stretch: 85%; color: #fff; }
.teil-name i { width: 10px; height: 10px; flex: none; background: var(--akzent); }
.haken { display: inline-block; width: 14px; height: 14px; flex: none; background: currentColor; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }

/* Marketing: jemand sucht am Handy, die Anfrage landet im Postfach der Werkstatt */
.buehne { position: relative; display: flex; align-items: flex-start; min-height: 34rem; }
.phone {
  position: relative; flex: none; width: 17.5rem; height: 34rem; overflow: hidden;
  display: flex; flex-direction: column; gap: .75rem; padding: .7rem .95rem 1rem;
  background: #fff; color: #000; border: 9px solid #2b2b29; border-radius: 2.4rem;
}
.phone-bar { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 700; padding: 0 .5rem; }
.phone-netz { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.phone-netz i { width: 3px; background: #000; }
.phone-netz i:nth-child(1) { height: 4px; } .phone-netz i:nth-child(2) { height: 6px; }
.phone-netz i:nth-child(3) { height: 8px; } .phone-netz i:nth-child(4) { height: 10px; }
.g-wort { text-align: center; font: 700 1.45rem/1 var(--f); font-stretch: 100%; margin-top: .4rem; }
.p-search {
  display: flex; align-items: center; gap: .55rem; min-height: 2.6rem; padding: .5rem .95rem;
  border: 1px solid #cfcfcc; border-radius: 999px; box-shadow: 0 1px 5px rgb(0 0 0 / .1);
}
.g-lupe { position: relative; width: 13px; height: 13px; flex: none; border: 2px solid #6b6b68; border-radius: 50%; }
.g-lupe::after { content: ''; position: absolute; width: 2px; height: 6px; background: #6b6b68; right: -4px; bottom: -6px; rotate: -45deg; }
.p-caret { display: none; width: 2px; height: 1.15em; background: #000; margin-left: -.4rem; }
.g-treffer { display: grid; gap: .32rem; padding-bottom: .9rem; border-bottom: 1px solid var(--linie-h); }
.g-gesponsert { font-size: .76rem; font-weight: 700; }
.g-wer { display: flex; align-items: center; gap: .55rem; }
.g-fav { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 50%; background: #000; color: #fff; font: 800 .6rem/1 var(--f); font-style: normal; }
.g-wer span { display: grid; line-height: 1.2; font-size: .82rem; }
.g-wer small { font-size: .74rem; color: var(--grau-hell); }
.g-titel { font-size: 1.06rem; font-weight: 600; line-height: 1.25; }
.g-text, .g-sterne { font-size: .8rem; color: #4a4a47; }
.g-sterne span { color: var(--akzent); letter-spacing: 1px; }
.g-knoepfe { display: flex; gap: .45rem; margin-top: .25rem; }
.g-knoepfe span { position: relative; padding: .42rem .85rem; border: 1px solid #cfcfcc; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.g-knoepfe .g-anfrage { background: #000; color: #fff; border-color: #000; }
.p-tap { display: none; position: absolute; left: 50%; top: 50%; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; border-radius: 50%; background: var(--akzent); mix-blend-mode: screen; }
.g-organisch { display: grid; gap: .2rem; font-size: .8rem; color: #4a4a47; }
.g-organisch b { font-size: .96rem; font-weight: 600; color: #000; }
.g-gesendet { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .25rem; padding: 1rem 1.15rem 1.4rem; background: #000; color: #fff; font-size: .84rem; }
.g-gesendet b { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.g-gesendet .haken { color: var(--akzent); }
.postfach {
  position: absolute; left: 15rem; top: 17rem; width: min(19.5rem, 60%); display: grid; gap: .6rem; padding: 1rem 1.15rem 1.1rem;
  background: #fff; color: #000; border-top: 4px solid var(--akzent); box-shadow: 0 22px 60px rgb(0 0 0 / .55);
}
.pf-kopf { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 700; color: var(--grau-hell); }
.pf-betreff { display: flex; align-items: center; gap: .55rem; font-size: 1.04rem; font-weight: 800; font-stretch: 90%; }
.pf-betreff i { width: 9px; height: 9px; flex: none; background: var(--akzent); }
.postfach dl { display: grid; }
.postfach dl div { display: grid; grid-template-columns: 5.2rem 1fr; gap: .5rem; padding: .38rem 0; border-top: 1px solid var(--linie-h); font-size: .84rem; }
.postfach dt { color: var(--grau-hell); }
.postfach dd { font-weight: 700; }
.pf-fuss { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--grau-hell); }

/* Sales: der Außendienst nimmt den Auftrag am Tablet auf */
.tablet {
  display: grid; gap: .9rem; padding: 1.1rem 1.25rem 1.25rem;
  background: #fff; color: #000; border: 10px solid #2b2b29; border-radius: 1.4rem;
}
.t-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--linie-h); }
.t-bar b { font: 800 1.15rem/1 var(--fu); font-stretch: 85%; }
.t-bar span { font-size: .76rem; color: var(--grau-hell); }
.t-kunde { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.t-kunde span { display: grid; gap: .1rem; }
.t-kunde small { font-size: .72rem; color: var(--grau-hell); }
.t-kunde b { font-size: .9rem; }
.t-pos { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.t-pos th { padding: 0 0 .35rem; text-align: left; font-size: .72rem; font-weight: 600; color: var(--grau-hell); }
.t-pos td { padding: .45rem 0; border-top: 1px solid var(--linie-h); }
.t-pos th:not(:first-child), .t-pos td:not(:first-child) { padding-left: .8rem; text-align: right; white-space: nowrap; }
.t-pos td:last-child { font-weight: 700; }
.t-fuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .8rem; border-top: 2px solid #000; }
.t-summe { display: grid; }
.t-summe small { font-size: .72rem; color: var(--grau-hell); }
.t-summe b { font: 800 1.55rem/1 var(--fu); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.t-senden { padding: .8rem 1.15rem; background: var(--akzent); color: #000; font-weight: 800; font-stretch: 85%; transition: transform .15s, filter .15s; }
.t-ok { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .95rem; background: #000; color: #fff; font-size: .84rem; }
.t-ok b { display: block; }
.t-ok .haken { margin-top: .2rem; color: var(--akzent); }

/* Marketing, Social: jemand scrollt durch den Feed, die Anzeige kommt, Sofortformular */
.phone-feed { gap: .55rem; padding-left: 0; padding-right: 0; }
.phone-feed .phone-bar { padding: 0 1.4rem; }
.f-kopf { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem .45rem; border-bottom: 1px solid var(--linie-h); }
.f-kopf b { font: 800 1.15rem/1 var(--fu); font-stretch: 85%; }
.f-kopf span { display: flex; gap: .45rem; }
.f-kopf span i { width: 16px; height: 16px; border: 2px solid #000; border-radius: 5px; }
.f-fenster { flex: 1; min-height: 0; overflow: hidden; }
.f-band { display: grid; gap: .9rem; padding: .2rem 0 1rem; }
.f-post { display: grid; gap: .45rem; }
.f-wer { display: flex; align-items: center; gap: .55rem; padding: 0 1rem; }
.f-ava { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; border: 2px solid #000; font: 800 .6rem/1 var(--f); font-style: normal; }
.f-ad .f-ava { background: #000; color: #fff; }
.f-wer span { display: grid; line-height: 1.2; font-size: .82rem; }
.f-wer small { font-size: .72rem; color: var(--grau-hell); }
.f-gesponsert { justify-self: start; padding: 0 .25rem; }
.f-bild { background: #ecebe8; }
.f-bild svg { display: block; width: 100%; height: auto; fill: none; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; }
.f-bild .dick { stroke-width: 3; }
.f-bild .mass { stroke: var(--akzent); }
.f-bild text { fill: var(--akzent); stroke: none; font: 700 9px var(--f); text-anchor: middle; }
.f-text { padding: 0 1rem; font-size: .82rem; }
.f-cta { display: grid; gap: .5rem; padding: .1rem 1rem 0; font-size: .82rem; }
.f-knopf { position: relative; justify-self: stretch; padding: .55rem .8rem; background: #000; color: #fff; text-align: center; font-weight: 700; border-radius: 8px; }
.f-formular {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .45rem; padding: 1rem 1.1rem 1.3rem;
  background: #fff; border-top: 1px solid var(--linie-h); border-radius: 1.2rem 1.2rem 0 0; box-shadow: 0 -10px 30px rgb(0 0 0 / .18);
}
.ff-kopf { display: grid; margin-bottom: .2rem; }
.ff-kopf b { font-size: 1rem; }
.ff-kopf span { font-size: .74rem; color: var(--grau-hell); }
.ff-feld { display: grid; padding: .35rem .6rem; border: 1px solid #cfcfcc; border-radius: 6px; font-size: .82rem; }
.ff-feld small { font-size: .68rem; color: var(--grau-hell); }
.ff-ok { display: flex; align-items: center; gap: .45rem; margin-top: .2rem; padding: .55rem .7rem; background: #000; color: #fff; font-size: .82rem; font-weight: 700; }
.ff-ok .haken { color: var(--akzent); }
/* Ohne Bewegung steht die Anzeige oben im Feed */
html:not(.motion) .f-vorher { display: none; }

/* Sales, Onlineshop: Produkt, Warenkorb, Bezahlen, Bestellung eingegangen */
.browser { overflow: hidden; background: #fff; color: #000; border: 1px solid #2b2b29; border-radius: .7rem; }
.b-leiste { display: flex; align-items: center; gap: .9rem; padding: .55rem .8rem; background: #2b2b29; color: #d6d6d3; font-size: .74rem; }
.b-punkte { display: flex; gap: 5px; }
.b-punkte i { width: 9px; height: 9px; border-radius: 50%; background: #6b6b68; }
.b-tab { padding: .25rem .8rem; background: #3b3b38; border-radius: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-seite { position: relative; min-height: 23rem; }
.s-kopf { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--linie-h); }
.s-kopf b { font: 800 1.05rem/1 var(--fu); font-stretch: 85%; }
.s-nav { display: flex; gap: .9rem; font-size: .8rem; color: #4a4a47; }
.s-korb { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; }
.s-zahl { display: grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px; background: var(--akzent); font: 800 .72rem/1 var(--f); font-style: normal; }
.s-produkt { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 1.3rem; padding: 1.2rem 1.1rem 1.4rem; }
.s-bild { display: grid; place-items: center; padding: 1rem; background: #efeeea; }
.s-bild svg { width: 72%; height: auto; fill: none; stroke: #000; stroke-width: 1.6; stroke-linejoin: round; }
.s-bild text { fill: #000; stroke: none; font: 700 13px var(--f); text-anchor: middle; }
.s-bild text.gross { font-size: 19px; font-weight: 900; }
.s-info { display: grid; gap: .45rem; align-content: start; }
.s-info small { font-size: .74rem; color: var(--grau-hell); }
.s-name { font: 800 1.45rem/1 var(--fu); font-stretch: 85%; }
.s-info p { font-size: .82rem; color: #4a4a47; }
.s-info .s-preis { font-size: 1.15rem; font-weight: 800; color: #000; }
.s-menge { display: flex; align-items: center; justify-self: start; border: 1px solid #cfcfcc; border-radius: 6px; }
.s-menge > * { position: relative; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; font-weight: 700; }
.s-knopf { position: relative; padding: .7rem 1rem; background: #000; color: #fff; text-align: center; font-weight: 700; border-radius: 6px; }
.s-korb-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(16rem, 58%); display: flex; flex-direction: column; gap: .55rem;
  padding: 1rem 1.05rem; background: #fff; border-left: 1px solid var(--linie-h); box-shadow: -16px 0 40px rgb(0 0 0 / .14);
}
.sk-kopf { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .5rem; border-bottom: 1px solid var(--linie-h); }
.sk-kopf b { font-size: 1rem; }
.sk-kopf span { font-size: .74rem; color: var(--grau-hell); }
.sk-zeile { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; }
.sk-summe { padding-top: .45rem; border-top: 1px solid var(--linie-h); font-weight: 800; font-size: .9rem; }
.sk-zahlung { display: flex; gap: .35rem; margin-top: .3rem; }
.sk-zahlung span { flex: 1; padding: .4rem 0; border: 1px solid #cfcfcc; border-radius: 6px; text-align: center; font-size: .72rem; font-weight: 700; transition: background .25s, color .25s; }
.sk-zahlung .sk-wahl.an, html:not(.motion) .sk-zahlung .sk-wahl { background: #000; color: #fff; border-color: #000; }
.sk-knopf { position: relative; margin-top: auto; padding: .7rem; background: var(--akzent); text-align: center; font-weight: 800; font-stretch: 90%; border-radius: 6px; }
.s-danke { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1.1rem; background: #000; color: #fff; font-size: .82rem; }
.s-danke b { display: block; font-size: .92rem; }
.s-danke .haken { margin-top: .2rem; color: var(--akzent); }

/* Operations: was im Hintergrund von selbst passiert, ohne Fläche auf dem Raster */
.netz { position: relative; width: 100%; aspect-ratio: 60 / 43; }
.netz svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.netz line { stroke: rgb(255 255 255 / .22); stroke-width: 2; }
.netz line.weg { stroke: #fff; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.knoten {
  position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%;
  display: grid; gap: .15rem; width: 9.6rem; padding: .55rem .75rem .6rem;
  border: 1px solid rgb(255 255 255 / .6); background: rgb(0 0 0 / .74);
}
.knoten b { font-size: .98rem; font-weight: 800; font-stretch: 85%; }
.knoten span { font-size: .74rem; color: var(--grau); line-height: 1.25; }
.knoten .k-status { color: var(--akzent); }
.knoten.neben { opacity: .42; }
.n-paket { display: none; position: absolute; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--akzent); font-style: normal; }
.n-paket b { position: absolute; left: 20px; top: -1px; font: 700 .72rem/1 var(--f); color: #fff; white-space: nowrap; transition: opacity .2s; }
.n-paket.steht b { opacity: 0; }

.abgleich { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4.5rem; }
.abgleich svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.abgleich line { stroke: #fff; stroke-width: 2; stroke-dasharray: 1 1; }
.ab-kopf { margin-bottom: .55rem; font-size: .76rem; font-weight: 700; color: var(--grau); }
.ab-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; margin-bottom: .6rem; padding: .6rem .75rem;
  border: 1px solid rgb(255 255 255 / .45); background: rgb(0 0 0 / .74); font-size: .84rem;
}
.ab-zeile b { font-weight: 800; font-stretch: 85%; }
.ab-zeile span { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-zeile small { grid-column: 1 / -1; font-size: .74rem; color: var(--grau); }
.ab-rechts .ab-zeile small { color: var(--akzent); }
.ab-fazit { display: flex; align-items: center; gap: .55rem; margin-top: .6rem; font-weight: 700; font-size: .92rem; }
.ab-fazit .haken { color: var(--akzent); }

/* Mit Bewegung: Schritte, die noch nicht dran sind, fehlen (Grundfassung zeigt alles) */
.motion .p-search.tippt .p-caret { display: block; animation: blinken .8s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.motion :is(.g-treffer, .g-organisch, .g-gesendet, .postfach, .t-pos tbody tr, .t-ok, .f-formular, .ff-ok, .s-korb-panel, .s-danke, .ab-fazit) {
  opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.motion :is(.g-treffer, .g-organisch, .t-ok, .ff-ok, .ab-fazit) { transform: translateY(10px); }
.motion :is(.g-gesendet, .f-formular, .s-danke) { transform: translateY(100%); }
.motion .postfach { transform: translate(28px, 12px); }
.motion .s-korb-panel { transform: translateX(40px); }
.motion :is(.g-treffer, .g-organisch, .g-gesendet, .postfach, .t-pos tbody tr, .t-ok, .f-formular, .ff-ok, .s-korb-panel, .s-danke, .ab-fazit).an { opacity: 1; transform: none; }
.motion .p-tap { display: block; opacity: 0; transform: scale(.3); transition: opacity .25s, transform .35s ease-out; }
.motion .p-tap.an { opacity: .9; transform: scale(1); }
.motion .t-senden.an { transform: scale(.97); filter: brightness(.8); }
.motion .f-gesponsert { transition: background .3s, color .3s; }
.motion .f-gesponsert.an { background: var(--akzent); color: #000; }
.motion .n-paket { display: block; }
.motion .knoten[data-schritt] { opacity: .32; transition: opacity .35s; }
.motion .knoten[data-schritt].an { opacity: 1; border-color: #fff; }
.motion .knoten:not(.an) .k-status { visibility: hidden; }
.motion .ab-rechts .ab-zeile { transition: border-color .3s; }
.motion .ab-rechts .ab-zeile.an { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .motion .p-search.tippt .p-caret { animation: none; } }

/* Organigramm: alle drei Bereiche als eine Abteilung. Spalten füllt main.js aus den Kapitel-Listen. */
.organigramm { --stiel: 1.6rem; display: grid; margin-top: 16vh; }
.org-titel { font-size: clamp(2.3rem, 4.2vw, 4.6rem); margin-bottom: 2.4rem; }
/* Das Wechselwort im Titel (orange): alle Wörter liegen übereinander, sichtbar ist das mit .an; die Breite folgt dem Wort */
.org-wechsel { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; transition: width .45s cubic-bezier(.6, 0, .2, 1); }
.org-wort { grid-area: 1 / 1; justify-self: start; white-space: nowrap; color: var(--akzent); }
.motion .org-wort { transform: translateY(130%); transition: transform .45s cubic-bezier(.6, 0, .2, 1); }
.motion .org-wort.an { transform: none; }
.motion .org-wort.weg { transform: translateY(-130%); }
/* Die Spalte zum Wechselwort tritt hervor, die anderen treten zurück */
.org-spalte { transition: opacity .35s ease; }
.org-spalten.fokus .org-spalte { opacity: .28; }
.org-spalten.fokus .org-spalte.aktiv { opacity: 1; }
.org-kopf { justify-self: center; display: grid; justify-items: center; gap: .3rem; border: 2px solid #fff; padding: .75rem 1.7rem .85rem; }
.org-kopf span { font-size: .85rem; color: var(--grau); }
.org-kopf b { font: var(--wd) 2rem/calc(1 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
.org-stiel { justify-self: center; width: 2px; height: var(--stiel); background: #fff; transform-origin: top; }
.org-spalten { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--pad); padding-top: var(--stiel); }
.org-balken { position: absolute; top: 0; left: 0; right: calc((100% - 2 * var(--pad)) / 3); height: 2px; background: #fff; }
.org-spalte { position: relative; }
.org-stub { position: absolute; left: 0; top: calc(-1 * var(--stiel)); width: 2px; height: var(--stiel); background: #fff; transform-origin: top; }
.org-bereich { display: flex; align-items: center; gap: .6rem; padding: .5rem 0 .6rem .85rem; border-left: 2px solid #fff; font: var(--wd) 1.8rem/calc(1 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
.org-bereich::before { content: ''; width: 10px; height: 10px; background: var(--akzent); flex: none; }
.org-liste li { padding: .42rem 0; border-top: 1px solid var(--linie-d); font: 700 .98rem/1.25 var(--fu); font-stretch: 85%; }

/* Am Desktop mit Bewegung: die drei Kapitel liegen übereinander und wechseln, dann kommt das Organigramm */
@media (min-width: 900px) {
  .motion .kapitel { height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 4vh) var(--pad) 6vh; display: flex; flex-direction: column; }
  .motion .kapitel-label { margin-bottom: 0; }
  .motion .kapitel-grid {
    flex: 1; min-height: 0; gap: 0; column-gap: calc(var(--pad) * 1.5); row-gap: .8rem; align-items: center;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    grid-template-areas: "titel szene" "sub szene" "liste szene"; grid-template-rows: auto auto auto; align-content: center;
  }
  .motion .kap { display: contents; }
  .motion .kap-titel { align-self: end; }
  .motion .kap-sub, .motion .kap-list { align-self: start; }
  .motion .szene { align-self: center; justify-self: center; gap: 0; }
  .motion .teil { grid-area: 1 / 1; }
  .motion .kap-count { display: flex; align-items: center; gap: .45rem; position: absolute; right: var(--pad); bottom: 5vh; }
  .kap-count .sq { width: 12px; height: 12px; border: 2px solid var(--akzent); }
  .kap-count .sq.an { background: var(--akzent); }
  .kap-nr { font: var(--wd) 1.4rem/calc(1 * var(--lhd)) var(--fd); font-stretch: var(--sd); margin-left: .5rem; }
  .motion .chat { height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 4vh) var(--pad) 6vh; }
  .motion .c-karten > * { grid-area: 1 / 1; }
  .motion .kapitel .organigramm {
    position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--nav-h) + 4vh + 2rem); bottom: 6vh;
    margin: 0; align-content: center;
  }
}

/* ---------- Zusammenarbeit: der Chat ---------- */
.chat {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: center;
  column-gap: calc(var(--pad) * 1.5); padding: 16vh var(--pad) 12vh;
}
.chat > :not(.raster) { position: relative; z-index: 1; }
html:not(.motion) .chat { align-items: start; }
.chat-lead { margin-top: 1.6rem; max-width: 26rem; font-size: 1.15rem; color: #d6d6d3; }
.chat-fakten { display: grid; margin-top: 3rem; max-width: 26rem; }
.chat-fakten li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--linie-d); font-size: 1rem; }
.chat-fakten li:last-child { border-bottom: 1px solid var(--linie-d); }
.chat-fakten i { width: 10px; height: 10px; flex: none; background: var(--akzent); }
.chat-fakten b { font-weight: 800; font-stretch: 85%; }

.chat-szene { display: flex; align-items: flex-start; gap: 2.4rem; }
.phone-chat { gap: .45rem; padding: .7rem 0 .85rem; }
.phone-chat .phone-bar { padding: 0 1.4rem; }
.c-kopf { display: flex; align-items: center; gap: .6rem; padding: .25rem .95rem .6rem; border-bottom: 1px solid var(--linie-h); }
.c-ava { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; background: #000; color: #fff; font: 900 .72rem/1 var(--f); font-style: normal; box-shadow: inset 0 -3px 0 var(--akzent); }
.c-kopf span { display: grid; line-height: 1.2; }
.c-kopf b { font-size: .92rem; }
.c-kopf small { font-size: .72rem; color: var(--grau-hell); }
/* Der Verlauf hängt unten: Neue Nachrichten schieben die alten nach oben */
.c-fenster { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.c-verlauf { display: flex; flex-direction: column; gap: .45rem; padding: .4rem .75rem .5rem; }
.c-tag { align-self: center; margin: .35rem 0 .1rem; padding: .18rem .6rem; border-radius: 999px; background: #f0efec; font-size: .66rem; font-weight: 700; color: var(--grau-hell); }
.c-msg { max-width: 84%; padding: .5rem .7rem .35rem; border-radius: .95rem; font-size: .8rem; line-height: 1.38; }
.c-msg time { display: block; margin-top: .15rem; text-align: right; font-size: .62rem; color: var(--grau-hell); }
.von-ihm { align-self: flex-start; background: #fff; border: 1px solid #cfcfcc; border-bottom-left-radius: .25rem; }
.von-uns { align-self: flex-end; background: #000; color: #fff; border-left: 3px solid var(--akzent); border-bottom-right-radius: .25rem; }
.von-uns time { color: #9a9a96; }
.c-notiz b { display: block; margin-bottom: .15rem; }
.c-notiz p + p { margin-top: .4rem; }
.c-bild { overflow: hidden; margin: -.15rem -.3rem .45rem; border-radius: .6rem; background: #ecebe8; }
.c-bild svg { display: block; width: 100%; height: auto; fill: none; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; }
.c-bild .dick { stroke-width: 3; }
.c-tippt { align-self: flex-end; display: flex; gap: 4px; padding: .6rem .75rem; border-radius: .95rem; background: #000; }
.c-tippt i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.motion .c-tippt i { animation: tippen 1s ease-in-out infinite; }
.motion .c-tippt i:nth-child(2) { animation-delay: .15s; }
.motion .c-tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes tippen { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
html:not(.motion) .c-tippt { display: none; }
.c-eingabe { display: flex; justify-content: space-between; align-items: center; margin: .3rem .75rem 0; padding: .45rem .5rem .45rem .9rem; border: 1px solid #cfcfcc; border-radius: 999px; font-size: .78rem; color: var(--grau-hell); }
.c-eingabe i { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--akzent); }

/* Was erledigt wurde, neben dem Handy */
.c-karten { display: grid; gap: 1rem; flex: 1; max-width: 21rem; margin-top: 5rem; }
.c-erledigt { display: grid; gap: .65rem; align-content: start; padding: 1rem 1.1rem 1.1rem; background: #fff; color: #000; border-top: 4px solid var(--akzent); box-shadow: 0 22px 60px rgb(0 0 0 / .5); font-size: .84rem; }
.ce-kopf { display: flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; color: var(--grau-hell); }
.ce-kopf .haken { color: #000; }
.ce-banner { padding: .6rem .75rem; background: #000; color: #fff; font-size: .8rem; font-weight: 700; }
.c-erledigt dl { display: grid; }
.c-erledigt dl div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; padding: .38rem 0; border-top: 1px solid var(--linie-h); }
.c-erledigt dt { color: var(--grau-hell); }
.c-erledigt dd { font-weight: 700; }
.ce-post { display: grid; gap: .5rem; }
.ce-post .c-bild { margin: 0; border-radius: 0; }
.ce-post p { font-size: .8rem; }
.ce-preise { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ce-preise th { padding-bottom: .3rem; text-align: left; font-size: .7rem; font-weight: 600; color: var(--grau-hell); }
.ce-preise td { padding: .4rem 0; border-top: 1px solid var(--linie-h); }
.ce-preise :is(th, td):not(:first-child) { padding-left: .6rem; text-align: right; white-space: nowrap; }
.ce-preise td:nth-child(2) { color: var(--grau-hell); text-decoration: line-through; }
.ce-preise td:last-child { font-weight: 800; }
.ce-fuss { font-size: .78rem; color: var(--grau-hell); }
.ce-titel { font: 800 1.05rem/1.2 var(--fu); font-stretch: 85%; }
.ce-liste { display: grid; gap: .3rem; }
.ce-liste li { position: relative; padding-left: 1rem; }
.ce-liste li::before { content: ''; position: absolute; left: 0; top: .45rem; width: 6px; height: 6px; background: var(--akzent); }

/* Mit Bewegung: was noch nicht dran ist, fehlt; was dazukommt, rutscht herein */
.motion .c-verlauf > :not(.an) { display: none; }
.motion .c-verlauf > .an { animation: reinrutschen .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes reinrutschen { from { opacity: 0; transform: translateY(10px); } }
.motion .c-erledigt { opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.motion .c-erledigt.an { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .motion .c-verlauf > .an { animation: none; } }

/* ---------- Kachel-Übergang ---------- */
.kacheln { display: none; }
.motion .kacheln { display: grid; background: #fff; overflow: hidden; }
.kacheln i { background: #000; }

/* ---------- Projekte ---------- */
.belege { position: relative; overflow: hidden; padding: 16vh 0 14vh; }
.ghost {
  position: absolute; top: 4vh; left: 0; white-space: nowrap; pointer-events: none;
  font: var(--wd) 24vw/calc(.8 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd);
  color: transparent; -webkit-text-stroke: 1.5px #dcdcd8;
}
.belege-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding: 0 var(--pad); }
.belege-track { position: relative; margin-top: 7vh; padding: 0 var(--pad); }
.belege-row { display: grid; gap: 3rem; }

/* Ein Projekt: Screenshot links, rechts Branche, Titel, Fingerabdruck, Link */
.projekt {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.8rem; align-items: start;
  padding-top: 1.2rem; border-top: 4px solid #000;
}
.p-schirm { overflow: hidden; border: 1px solid #2b2b29; border-radius: .7rem; background: #fff; }
.p-bild { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 10; background: #efeeea; }
/* Das Bild füllt den Rahmen, ohne ihn zu strecken: oben bündig, unten wird abgeschnitten (16:10 hier, 16:9 auf der Projektseite) */
.p-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p-bild span { font-size: .8rem; color: #8f8f8b; }
.p-info { display: grid; gap: .75rem; align-content: start; }
.p-branche { display: flex; align-items: center; gap: .55rem; font: 700 .85rem/1.2 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.p-branche::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--akzent); }
.projekt h3 { font: var(--wd) clamp(1.9rem, 2.5vw, 2.6rem)/calc(.92 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
.p-link { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; font-size: .9rem; }
.p-link a { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Fingerabdruck: das Organigramm in klein, gemacht ist farbig */
.fp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .15rem 1rem; margin-top: .2rem; }
.fp-spalte { display: grid; gap: .12rem; align-content: start; }
.fp ul { display: grid; gap: .12rem; }
.fp-bereich { margin-bottom: .2rem; font: var(--wd) .95rem/calc(1 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
.fp li { display: flex; align-items: center; gap: .4rem; font-size: .74rem; line-height: 1.3; color: #a9a9a5; }
.fp li i { width: 8px; height: 8px; flex: none; border: 1.5px solid #cfcfcc; }
.fp li.an { color: #000; font-weight: 700; }
.fp li.an i { border-color: var(--akzent); background: var(--akzent); }
.fp-summe { grid-column: 1 / -1; margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--linie-h); font-size: .8rem; color: var(--grau-hell); }
.fp-summe b { color: #000; }
/* Mit Bewegung leuchtet der Fingerabdruck auf, wenn das Projekt ins Bild läuft */
.motion .fp li { transition: color .3s; }
.motion .fp li i { transition: background-color .3s, border-color .3s; }
.motion .projekt:not(.leuchtet) .fp li.an { color: #a9a9a5; font-weight: 400; }
.motion .projekt:not(.leuchtet) .fp li.an i { border-color: #cfcfcc; background: transparent; }
.motion .projekt.leuchtet .fp li.an, .motion .projekt.leuchtet .fp li.an i { transition-delay: calc(var(--n) * 45ms); }

@media (min-width: 900px) {
  .motion .belege { height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 6vh) 0 0; }
  .motion .belege-row { display: flex; gap: calc(var(--pad) * 1.5); width: max-content; }
  .motion .projekt { width: min(56rem, 64vw); }
}
@media (max-width: 899px) {
  .belege-track { padding: 0; }
  .belege-row { display: flex; overflow-x: auto; gap: 1.2rem; padding: 0 var(--pad) 1rem; scrollbar-width: thin; }
  .projekt { flex: 0 0 min(86vw, 24rem); grid-template-columns: 1fr; gap: 1rem; }
  .fp { gap: .15rem .6rem; }
  .fp li { font-size: .7rem; }
}

/* ---------- So arbeiten wir ---------- */
.ablauf, .fragen { position: relative; padding: 16vh var(--pad); }
.ablauf > :not(.raster), .fragen > :not(.raster) { position: relative; z-index: 1; }
.schiene { margin-top: 9vh; height: 3px; background: var(--linie-d); }
.schiene-fuell { position: absolute; inset: 0; background: var(--akzent); transform-origin: 0 50%; }
.schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pad); }
.schritte li { position: relative; display: grid; gap: .7rem; align-content: start; padding-top: 2.2rem; }
.schritte .sq { position: absolute; top: -9px; left: 0; width: 16px; height: 16px; background: #000; border: 2px solid var(--akzent); transition: background-color .2s ease; }
.schritte .sq.an, html:not(.motion) .schritte .sq { background: var(--akzent); }
.schritte .nr { font: var(--wd) clamp(3.4rem, 6vw, 6.4rem)/calc(.85 * var(--lhd)) var(--fd); font-stretch: var(--sd); }
.schritte h3 { font: var(--wd) clamp(1.5rem, 2vw, 2rem)/calc(1 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
.schritte p { color: #d6d6d3; max-width: 22rem; }
/* Zum Schluss: der erste Schritt */
.ablauf-schluss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 2rem; margin-top: 10vh; padding-top: 2rem; border-top: 1px solid var(--linie-d); }
.ablauf-klein { max-width: 30rem; color: #d6d6d3; font-size: 1rem; }

/* ---------- Fragen ---------- */
.fragen-liste { margin-top: 7vh; max-width: 64rem; border-top: 1px solid var(--linie-d); }
.fragen details { border-bottom: 1px solid var(--linie-d); }
.fragen summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.35rem 0; font: 800 clamp(1.3rem, 2.2vw, 1.9rem)/1.15 var(--fu); font-stretch: 72%;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: '+'; flex: none; color: var(--akzent); font-weight: 900; font-size: 1.4em; line-height: .7; transition: transform .2s ease; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen summary:hover { color: var(--akzent); }
.fragen details p { padding: 0 0 1.5rem; max-width: 46rem; color: #d6d6d3; font-size: 1.05rem; }

/* ---------- Über mich ---------- */
.ueber { padding: 16vh var(--pad); }
/* Foto links (bleibt beim Scrollen stehen), rechts Werdegang, Name mit Purpose und direkter Draht */
.ueber-grid { margin-top: 7vh; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 2.4rem calc(var(--pad) * 1.5); align-items: start; }
.ueber-foto { position: sticky; top: calc(var(--nav-h) + 4vh); margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: #fff; }
.ueber-foto img { width: 100%; height: 100%; object-fit: cover; }
.ueber-foto figcaption { position: absolute; left: 0; bottom: 0; padding: .45rem .75rem; background: #000; color: #fff; font: 700 .85rem/1.2 var(--fu); font-stretch: 85%; }
/* Rechte Spalte: Werdegang, darunter der Name und der direkte Draht; das Foto links bleibt dabei stehen */
.ueber-spalte { display: grid; align-content: start; min-width: 0; }
.werdegang { display: grid; gap: 1rem; }
.ueber-lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 34rem; }
/* Die Verben im Absatz werden fett und orange. Fett über eine Kontur statt über die Schriftstärke,
   damit die Zeilen beim Scrollen nicht umbrechen und springen. Ohne Bewegung stehen sie gleich fett da. */
.verben-fett, .verben-fett .b { color: var(--akzent); -webkit-text-stroke: .042em currentColor; }
.motion .verben-fett { color: inherit; -webkit-text-stroke: 0; }
.motion .verben-fett .b { color: inherit; -webkit-text-stroke: 0 currentColor; transition: color .18s ease, -webkit-text-stroke-width .18s ease; }
.motion .verben-fett .b.an { color: var(--akzent); -webkit-text-stroke-width: .042em; }
/* Der Satz für Screenreader wird beim Kopieren nicht mitgenommen, sonst stünden die Verben doppelt in der Zwischenablage */
.verben-fett .sr-only { user-select: none; -webkit-user-select: none; }
/* Warum der Name: groß als geteiltes Wortbild. Links realwirtschaft (für wen), rechts AGENCY (wozu),
   dazwischen ein Strich, der beim Scrollen nach unten wächst (--linie) und beim Purpose endet. */
.warum { margin-top: 14vh; display: grid; justify-items: center; text-align: center; container-type: inline-size; }
.warum-titel { font: 800 1rem/1 var(--fu); font-stretch: 85%; color: var(--grau-hell); margin-bottom: 1.4rem; }
.warum-split {
  --linie: 1; --spalt: clamp(1.4rem, 3vw, 3rem);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--spalt) * 2); width: 100%;
}
.warum-split::before { /* der Strich */
  content: ''; position: absolute; left: 50%; top: .1em; bottom: -5rem; width: 4px; margin-left: -2px; background: #000;
  transform-origin: top; transform: scaleY(var(--linie)); font-size: clamp(2.4rem, calc((100cqw - 6rem) / 9.46), 6rem);
}
.w-seite { display: grid; gap: 1.4rem; align-content: start; }
.w-links { justify-items: end; text-align: right; }
.w-rechts { justify-items: start; text-align: left; }
.w-seite dt { position: relative; z-index: 2; }
/* Die Wortgröße folgt der Spaltenbreite: „realwirtschaft“ (4,73 em in Instrument Serif) passt genau in seine Hälfte */
.w-wort { font: var(--wd) clamp(2.4rem, calc((100cqw - 6rem) / 9.46), 6rem)/calc(.85 * var(--lhd)) var(--fd); font-stretch: var(--sd); color: #000; text-decoration: none; }
.w-seite dd { max-width: 26rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.purpose { position: relative; max-width: none; margin-top: 6rem; padding-top: 1.4rem; font: var(--wd) clamp(1.8rem, 5.2cqw, 3.6rem)/calc(.95 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
/* Jeder Satz auf eine eigene Zeile: links die Verantwortung, darunter die Agency */
.purpose span { display: block; }
.purpose::before { content: ''; position: absolute; left: 50%; top: -1rem; width: 16px; height: 16px; margin-left: -8px; background: var(--akzent); }

/* realwirtschaft und AGENCY öffnen je eine Vorschau-Karte wie bei Wikipedia: beim Darüberfahren, beim Fokus und beim Tippen.
   Das Wort selbst ist kein Link, zum Artikel führt der Link unten in der Karte. */
.begriff-wrap { position: relative; display: inline-block; }
.begriff { padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; text-decoration: underline dotted; text-decoration-thickness: .05em; text-underline-offset: .1em; }
.begriff:hover, .begriff-wrap.offen .begriff { color: var(--akzent); }
/* Die Zeile mit der offenen Karte liegt über der anderen (am Handy stehen beide Wörter untereinander) */
.w-seite dt:has(.begriff-wrap:is(:hover, :focus-within, .offen)) { z-index: 30; }
.vorschau {
  position: absolute; left: 0; top: calc(100% + .9rem); z-index: 20; display: grid; gap: .45rem; width: min(20rem, 82vw); padding: 1rem 1.1rem 1.05rem;
  background: #fff; color: #000; border: 1px solid #000; box-shadow: 0 18px 48px rgb(0 0 0 / .22);
  font: 400 .92rem/1.45 var(--f); font-stretch: 100%; text-transform: none; letter-spacing: normal; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.vorschau::before { content: ''; position: absolute; left: 1.4rem; top: -7px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #000; border-top: 1px solid #000; transform: rotate(45deg); }
/* Unsichtbare Brücke über den Abstand zum Wort, damit die Karte offen bleibt, wenn die Maus zum Link hinunterfährt */
.vorschau::after { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 1rem; }
.vorschau small { font-size: .74rem; font-weight: 700; color: var(--grau-hell); }
.vorschau b { font: 800 1.08rem/1.2 var(--fu); font-stretch: 90%; }
.vorschau-link { justify-self: start; margin-top: .15rem; font-size: .82rem; font-weight: 700; color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.vorschau-link:hover { color: #000; }
.begriff-wrap:hover .vorschau, .begriff-wrap:focus-within .vorschau, .begriff-wrap.offen .vorschau {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease .25s, transform .2s ease .25s, visibility 0s linear .25s;
}
.begriff-wrap.zu .vorschau { opacity: 0; visibility: hidden; }
/* Links steht das Wort rechtsbündig: die Karte hängt dort an der rechten Kante */
.w-links .vorschau { left: auto; right: 0; }
.w-links .vorschau::before { left: auto; right: 1.4rem; }

/* Der direkte Draht: Mail und Nummer groß, davor Icons für Mail, Anruf und WhatsApp */
.ueber-direkt { margin-top: 10vh; display: grid; gap: 1.4rem; padding-top: 1.4rem; border-top: 2px solid #000; }
.direkt-satz { font: var(--wd) clamp(1.5rem, 2.4vw, 2.3rem)/calc(1 * var(--lhd)) var(--fd); font-stretch: var(--sd); text-transform: var(--vd); }
.direkt-wege { display: grid; gap: .8rem; }
/* Icons in fester Spalte (Platz für zwei), damit Mail und Nummer bündig untereinander stehen */
.direkt-wege li { display: grid; grid-template-columns: calc(2 * 2.75rem + .5rem) minmax(0, 1fr); align-items: center; column-gap: 1rem; }
.direkt-icons { display: flex; gap: .5rem; }
.direkt-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; background: #000; color: #fff; transition: background-color .15s ease, color .15s ease; }
.direkt-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.direkt-icon:hover, .direkt-icon:focus-visible { background: var(--akzent); color: #000; }
.direkt-text { font: 800 clamp(1.05rem, 1.6vw, 1.35rem)/1.2 var(--fu); font-stretch: 85%; color: #000; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
/* Am Handy bricht die Adresse nach dem @ um, nicht am Bindestrich */
.direkt-text .nobr { white-space: nowrap; }
.direkt-text:hover, .direkt-text:focus-visible { color: var(--akzent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kontakt ---------- */
.akzent-flaeche { background: var(--akzent); color: #000; }
.kontakt { padding: 16vh var(--pad) 12vh; }
.kontakt-grid { margin-top: 7vh; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: calc(var(--pad) * 1.5); align-items: start; }
.anfrage { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem var(--pad); }
.field { display: grid; gap: .35rem; }
.field.wide, .form-foot, .form-datenschutz { grid-column: 1 / -1; }
/* Honigtopf: für Menschen unsichtbar, Bots füllen ihn aus */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-datenschutz { margin-top: -.6rem; font-size: .88rem; }
.form-datenschutz a { font-weight: 700; text-underline-offset: 3px; }
.field span { font: 700 .95rem/1.2 var(--fu); font-stretch: 85%; }
.field input, .field textarea {
  font: 600 1.2rem/1.35 var(--f); color: #000; background: transparent; border: 0; border-bottom: 2px solid #000; border-radius: 0;
  padding: .5rem 0; resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-width: 4px; padding-bottom: calc(.5rem - 2px); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status:empty { display: none; }
.form-status { font-weight: 700; }
/* Versand fehlgeschlagen: Hinweis mit den direkten Kontaktwegen statt des Danks */
.form-fehler { font-weight: 700; }
.form-fehler a { text-decoration: underline; text-underline-offset: .2em; }
.kontakt :focus-visible { outline-color: #000; }
.direkt li { display: grid; padding: 1rem 0; border-top: 2px solid #000; }
.direkt span { font-size: .9rem; }
.direkt a { font: 800 1.15rem/1.3 var(--fu); font-stretch: 85%; text-decoration: none; overflow-wrap: anywhere; }
.direkt a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 8vh 0 0; overflow: hidden; }
.footer-mark { padding: 0 var(--pad); color: var(--akzent); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem var(--pad) 5.5rem; border-top: 1px solid var(--linie-d); margin-top: 3vh; font-size: .95rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }

/* ---------- Unterseiten: Rechtliches, 404, Projekte (unterseite.js, projekt.js) ----------
   Gleicher Rahmen wie die Startseite: Glas-Navigation mit Marke, Footer mit Schriftzug, Instrument Serif für Überschriften,
   Archivo für Text. Ruhig: keine Szenen, kein Lenis. Die Marke steht hier von Anfang an in der Navigation. */
html.unterseite .nav { background: none; }
html.unterseite .nav::before { display: block; }
html.unterseite.atmet .raster::before { animation: atmen 7s ease-in-out infinite alternate; }
.seite { padding: calc(var(--nav-h) + 12vh) var(--pad) 16vh; }
.seite-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.seite-kopf { position: sticky; top: calc(var(--nav-h) + 5vh); display: grid; gap: 1.4rem; align-content: start;
  max-height: calc(100vh - var(--nav-h) - 8vh); overflow-y: auto; scrollbar-width: none; } /* auf niedrigen Bildschirmen bleibt das Inhaltsverzeichnis erreichbar */
.seite-stand { font: 700 .9rem/1.3 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.dark .seite-stand { color: var(--grau); }
/* Inhaltsverzeichnis der Datenschutzerklärung: die Abschnitte sind nummeriert, die Liste folgt ihnen */
.seite-inhalt { display: grid; gap: .1rem; margin-top: .6rem; font: 700 .92rem/1.3 var(--fu); font-stretch: 85%; }
.seite-inhalt a { display: flex; gap: .7rem; padding: .42rem 0; border-top: 1px solid var(--linie-h); text-decoration: none; color: var(--grau-hell); transition: color .15s ease; }
.seite-inhalt a span { min-width: 1.4rem; color: #000; }
.seite-inhalt a:hover, .seite-inhalt a.an { color: #000; }
.seite-inhalt a.an span { color: var(--akzent); }

.text { max-width: 44rem; }
.text h2 { margin: 3.4rem 0 1rem; font: var(--wd) clamp(1.7rem, 2.4vw, 2.3rem)/1.1 var(--fd); scroll-margin-top: calc(var(--nav-h) + 2rem); }
.text h2:first-child { margin-top: 0; }
.text p, .text address, .text ul { margin-bottom: 1rem; font-size: 1.0625rem; line-height: 1.65; }
.text address { font-style: normal; }
.text ul { display: grid; gap: .45rem; }
.text li { position: relative; padding-left: 1.3rem; }
.text li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--akzent); }
.text a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text a:hover { color: var(--akzent); }
.text .kurz { padding: 1.3rem 1.4rem; background: #f1f1ef; }
.text .kurz li { font-weight: 600; }
.todo { display: inline-block; padding: .1rem .5rem; border: 1px dashed #b5b5b1; font: 600 .78rem/1.4 var(--fu); color: var(--grau-hell); vertical-align: middle; }

/* Impressum: die Pflichtangaben als Steckbrief, darunter der Text */
.steckbrief { display: grid; margin-bottom: 4rem; border-top: 2px solid #000; }
.steckbrief > div { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.2fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie-h); }
.steckbrief dt { font: 700 .9rem/1.4 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.steckbrief dd { font-size: 1.0625rem; line-height: 1.55; }
.steckbrief a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Sub-Auftragsverarbeiter: Tabelle über die volle Breite, am Handy als Karten (Inhalt unverändert, nur Marvin ändert ihn) */
.seite-breit .text { max-width: 50rem; }
.seite-breit .seite-kopf { position: static; margin-bottom: 4rem; }
.tabelle { margin: 1.6rem 0 2.6rem; overflow-x: auto; }
.tabelle table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.tabelle th { padding: .7rem .8rem .7rem 0; border-bottom: 2px solid #000; text-align: left; vertical-align: bottom; font: 700 .82rem/1.25 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.tabelle td { padding: .85rem .8rem .85rem 0; border-bottom: 1px solid var(--linie-h); vertical-align: top; }
.tabelle td:first-child { font-weight: 700; }
.tabelle td:nth-child(2) { font-weight: 600; }

/* 404 */
.seite-404 { position: relative; display: grid; align-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 6vh) var(--pad) 10vh; overflow: hidden; }
.seite-404 > :not(.raster) { position: relative; z-index: 1; }
.seite-404 p { max-width: 32rem; margin: 2rem 0 2.4rem; font-size: 1.15rem; line-height: 1.55; color: #d6d6d3; }
.seite-404 .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Projektseite (projekt.html?p=…, Inhalt aus projekt.js) ---------- */
.pk { position: relative; padding: calc(var(--nav-h) + 10vh) var(--pad) 10vh; overflow: hidden; }
.pk > :not(.raster) { position: relative; z-index: 1; }
.pk-zurueck { display: inline-block; margin-bottom: 3.5rem; font: 700 .9rem/1 var(--fu); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); text-decoration: none; }
.pk-zurueck:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.pk .p-branche { color: var(--grau); margin-bottom: 1.4rem; }
.pk h1 { max-width: 15ch; }
.pk-lead { max-width: 38rem; margin-top: 2.2rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: #d6d6d3; }
.pk-fakten { display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--linie-d); }
.pk-fakten dt { font: 700 .82rem/1.3 var(--fu); font-stretch: 85%; color: var(--grau); }
.pk-fakten dd { margin-top: .35rem; font: var(--wd) clamp(1.5rem, 2.2vw, 2.1rem)/1.1 var(--fd); }

.pk-schau { padding: 0 var(--pad); background: linear-gradient(#000 0 50%, #fff 50% 100%); }
.pk-schau .p-schirm { max-width: 1180px; margin: 0 auto; }
.pk-schau .p-bild { aspect-ratio: 16 / 9; }

.pk-umfang, .pk-strecke { padding: 14vh var(--pad); }
.pk-umfang { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.pk-umfang h2, .pk-strecke > h2 { font: var(--wd) clamp(2.2rem, 4vw, 4.2rem)/calc(.95 * var(--lhd)) var(--fd); }
.pk-umfang .fp { gap: .4rem 2rem; }
.pk-umfang .fp-bereich { font-size: 1.5rem; margin-bottom: .6rem; }
.pk-umfang .fp li { font-size: .98rem; gap: .6rem; }
.pk-umfang .fp li i { width: 11px; height: 11px; }
.pk-umfang .fp-summe { margin-top: 1.4rem; padding-top: 1rem; font-size: .95rem; }

.pk-strecke { border-top: 1px solid var(--linie-h); }
.pk-strecke > h2 { margin-bottom: 9vh; }
.schritt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.schritt + .schritt { margin-top: 12vh; }
/* abwechselnd: Bild mal rechts, mal links, immer in der breiteren Spalte */
.schritt:nth-child(odd of .schritt) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.schritt:nth-child(odd of .schritt) .s-bild-rahmen { order: 2; }
.s-bild-rahmen { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 10; background: #f1f1ef; border: 1px solid #dcdcd8; }
.s-bild-rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.schritt h3 { margin-top: .9rem; font: var(--wd) clamp(1.7rem, 2.5vw, 2.5rem)/1.05 var(--fd); }
.schritt p { max-width: 30rem; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.6; }

.pk-weiter { position: relative; padding: 14vh var(--pad); overflow: hidden; }
.pk-weiter > :not(.raster) { position: relative; z-index: 1; }
.pk-weiter-label { font: 700 .9rem/1 var(--fu); font-stretch: 85%; color: var(--grau); }
.pk-weiter-link { display: block; max-width: 18ch; margin-top: 1.4rem; color: #fff; text-decoration: none; transition: color .2s ease; }
.pk-weiter-link:hover { color: var(--akzent); }
.pk-weiter-link small { display: block; margin-bottom: .8rem; font: 700 .9rem/1.3 var(--fu); font-stretch: 85%; color: var(--grau); }
.pk-weiter .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 10vh; padding-top: 2rem; border-top: 1px solid var(--linie-d); align-items: center; }
.pk-weiter .actions p { margin-right: auto; font: var(--wd) clamp(1.6rem, 2.4vw, 2.4rem)/1.1 var(--fd); }

/* ---------- Blog „Was zuletzt geschah“ (blog.html, beitrag.html, Inhalt aus daten.js über blog.js) ---------- */
.blog-intro { max-width: 24rem; font-size: 1.1rem; line-height: 1.55; }
.eintraege { display: grid; border-top: 2px solid #000; }
.eintrag { display: grid; grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 4fr); gap: 1.5rem; padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--linie-h); color: inherit; text-decoration: none; }
.e-kw span { display: block; font: var(--wd) clamp(1.8rem, 2.6vw, 2.6rem)/1 var(--fd); }
.e-kw time { display: block; margin-top: .5rem; font: 700 .85rem/1.3 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.eintrag h2 { font: var(--wd) clamp(1.6rem, 2.3vw, 2.3rem)/1.08 var(--fd); transition: color .15s ease; }
.eintrag:hover h2, .eintrag:focus-visible h2 { color: var(--akzent); }
.e-text { max-width: 40rem; margin-top: .8rem; font-size: 1.0625rem; line-height: 1.6; color: #2b2b29; }
.e-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1rem; }

.beitrag .pk-zurueck { margin-bottom: 2.4rem; color: var(--grau-hell); }
.beitrag .pk-zurueck:hover { color: #000; }
.beitrag-kopf { display: grid; gap: 1.4rem; max-width: 62rem; margin-bottom: 6rem; }
.beitrag-kopf h1 { max-width: 22ch; }
.b-vorspann { max-width: 42rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; }
.b-projekt { display: grid; gap: .7rem; padding: 1.3rem 1.4rem 1.5rem; border: 1px solid var(--linie-h); border-top: 3px solid var(--akzent); color: inherit; text-decoration: none; transition: border-color .15s ease; }
.b-projekt small { font: 700 .82rem/1.3 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.b-projekt b { font: var(--wd) 1.6rem/1.1 var(--fd); }
.b-projekt:hover { border-color: #000; border-top-color: var(--akzent); }
.b-weiter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 12vh; padding-top: 1.6rem; border-top: 2px solid #000; }
.b-nachbar { display: grid; gap: .6rem; color: inherit; text-decoration: none; font: var(--wd) clamp(1.3rem, 1.8vw, 1.7rem)/1.15 var(--fd); }
.b-nachbar small { font: 700 .82rem/1.3 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
.b-nachbar:hover { color: var(--akzent); }
.b-nachbar.aelter { grid-column: 2; text-align: right; justify-items: end; } /* älterer Beitrag immer rechts, auch allein */

@media (max-width: 899px) {
  .seite { padding-top: calc(var(--nav-h) + 7vh); padding-bottom: 12vh; }
  .seite-grid, .pk-umfang { grid-template-columns: 1fr; row-gap: 2.6rem; }
  .seite-kopf { position: static; }
  .seite-inhalt { display: none; }
  .eintrag { grid-template-columns: 1fr; gap: .9rem; }
  .e-kw { display: flex; align-items: baseline; gap: .8rem; }
  .e-kw time { margin-top: 0; }
  .beitrag-kopf { margin-bottom: 3.5rem; }
  .b-weiter { grid-template-columns: 1fr; }
  .b-nachbar.aelter { grid-column: auto; text-align: left; justify-items: start; }
  .steckbrief > div { grid-template-columns: 1fr; gap: .25rem; }
  .pk { padding-top: calc(var(--nav-h) + 6vh); }
  .pk-zurueck { margin-bottom: 2.4rem; }
  .pk-umfang .fp { grid-template-columns: 1fr; gap: 1.6rem; }
  .schritt { grid-template-columns: 1fr; row-gap: 1.4rem; }
  .schritt:nth-child(odd of .schritt) { grid-template-columns: 1fr; }
  .schritt:nth-child(odd of .schritt) .s-bild-rahmen { order: 0; }
  .schritt + .schritt { margin-top: 8vh; }
}
@media (max-width: 699px) {
  /* Tabellen als Karten: jede Zeile ein Block, die Spaltennamen davor */
  .tabelle table, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle thead { display: none; }
  .tabelle tr { padding: 1rem 0; border-bottom: 1px solid var(--linie-h); }
  .tabelle td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .6rem; padding: .25rem 0; border: 0; }
  .tabelle td::before { content: attr(data-label); font: 700 .8rem/1.45 var(--fu); font-stretch: 85%; color: var(--grau-hell); }
}

/* ---------- Handy ---------- */
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .hero { min-height: auto; padding-bottom: 3rem; display: flex; flex-direction: column; }
  .hero-mark { position: relative; top: auto; margin-top: calc(var(--nav-h) + 1rem); padding: 0 var(--pad); left: 0; }
  .motion .intro-mark { top: calc(var(--nav-h) + 1rem); }
  .hero-person { position: relative; left: auto; translate: none; height: auto; width: min(86vw, 420px); margin: -4vw auto 0; }
  .hero-copy, .hero-stats { position: relative; left: auto; right: auto; bottom: auto; width: auto; padding: 0 var(--pad); }
  .hero-copy { margin-top: -2rem; }
  .hero-copy h1 { font-size: 13vw; }
  .hero-stats { margin-top: 2.2rem; grid-template-columns: repeat(3, 1fr); text-align: left; gap: 1rem; }
  .hero-stats dd { font-size: 2.2rem; }
  .hero-stats dt { font-size: .78rem; line-height: 1.25; }

  .manifest { min-height: auto; padding: 14vh var(--pad); }
  .manifest-text { font-size: 10.5vw; }
  .kasten { justify-content: flex-start; gap: .5rem; padding: 1rem; margin-top: 2.5rem; }
  .wz { font-size: .9rem; padding: .7rem .85rem .65rem; white-space: normal; }

  .kap { grid-template-columns: 1fr; grid-template-areas: "titel" "sub" "szene" "liste"; grid-template-rows: auto; }
  .szene { max-width: none; margin-top: 1.4rem; gap: 3.5rem; }
  .buehne { flex-direction: column; align-items: center; min-height: 0; }
  .s-produkt { grid-template-columns: 1fr; }
  .s-bild { padding: .6rem; }
  .s-bild svg { width: 34%; }
  .s-nav { display: none; }
  .s-korb-panel { width: 78%; }
  .netz { aspect-ratio: 1 / 1.05; }
  .knoten { width: 6.6rem; padding: .45rem .5rem; }
  .knoten b { font-size: .8rem; }
  .knoten span { font-size: .66rem; }
  .abgleich { column-gap: 1.6rem; }
  .ab-zeile { grid-template-columns: 1fr; padding: .5rem .55rem; font-size: .76rem; }
  .ab-zeile span { text-align: left; }
  .postfach { position: relative; left: auto; top: auto; width: 88%; margin: -1.5rem 0 0 auto; }
  /* Hier sitzt das Postfach rechtsbündig: vor dem Erscheinen nur nach unten versetzt, sonst ragt es über den Rand
     und die Seite lässt sich in WebKit seitlich schieben */
  .motion .postfach { transform: translate(0, 12px); }
  .tablet { padding: .9rem .9rem 1rem; border-width: 7px; }
  .t-bar span { display: none; }
  .t-kunde { grid-template-columns: 1fr 1fr; }
  .t-kunde span:first-child { grid-column: 1 / -1; }
  .t-pos th:nth-child(3), .t-pos td:nth-child(3) { display: none; }
  .t-fuss { flex-wrap: wrap; }
  .kap-titel { font-size: 15vw; }
  .organigramm { margin-top: 12vh; }
  .org-titel { font-size: 9vw; margin-bottom: 1.8rem; }
  .org-kopf { justify-self: start; justify-items: start; }
  .org-stiel, .org-balken, .org-stub { display: none; }
  .org-spalten { grid-template-columns: 1fr; row-gap: 2rem; padding-top: 2rem; }

  .chat { grid-template-columns: 1fr; row-gap: 3rem; padding: 14vh var(--pad) 10vh; }
  .chat-fakten { margin-top: 2rem; }
  .chat-szene { flex-direction: column; align-items: center; gap: 2rem; }
  .c-karten { max-width: none; width: 100%; margin-top: 0; }
  /* Am Handy bleibt das Handy stehen, der Chat läuft mit dem Scroll; die Antworten sagen schon, was erledigt ist */
  .motion .chat-spur { height: 240svh; }
  .motion .chat-szene { position: sticky; top: calc(var(--nav-h) + 1rem); }
  .motion .c-karten { display: none; }

  .ueber-grid, .kontakt-grid, .anfrage { grid-template-columns: 1fr; }
  .ueber-foto { position: relative; top: auto; max-width: 22rem; }
  .warum { justify-items: start; text-align: left; }
  .warum-split { grid-template-columns: 1fr; row-gap: 2.6rem; }
  .warum-split::before { display: none; }
  .w-links, .w-rechts { justify-items: start; text-align: left; }
  .w-links .vorschau { left: 0; right: auto; }
  .w-links .vorschau::before { left: 1.4rem; right: auto; }
  .purpose { margin-top: 3rem; max-width: none; }
  .purpose::before { left: 0; margin-left: 0; }
  .schiene { display: none; }
  .schritte { grid-template-columns: 1fr; gap: 2.4rem; margin-top: 7vh; }
  .schritte li { padding-top: 0; padding-left: 2.2rem; }
  .schritte .sq { top: .5rem; }
  .ablauf-schluss { margin-top: 7vh; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Einwilligung (Zustimmung.astro, zustimmung.js) ----------
   „Schwarze Kachel“ (Marvin, 21.11.2026): kleine schwarze Karte unten links, „Kurz gefragt.“ in Instrument Serif, rechts
   die Kachelmarke mit der glühenden Kachel. Liegt über dem Inhalt, unter der Navbar mit dem Handy-Menü (50) und dem Intro
   (200). Versteckt per hidden, nie per Verschieben aus dem Bild (WebKit zählt Verschobenes zur Seitenbreite).
   „Ablehnen“ und „Akzeptieren“ sind gleich groß und gleich gestaltet (Recht); die Signalfarbe erst beim Darüberfahren. */
.zustimmung {
  position: fixed; z-index: 45; left: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); display: grid; gap: .85rem; padding: 1.25rem 1.25rem 1.2rem;
  color: var(--weiss); background: #000; border: 1px solid rgb(255 255 255 / .16); box-shadow: 0 18px 50px rgb(0 0 0 / .35);
}
.zustimmung[hidden], .z-wahl[hidden] { display: none; }
.z-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.z-titel { font: var(--wd) 1.7rem/1.05 var(--fd); font-stretch: var(--sd); }
.z-marke { width: 26px; height: 26px; }
.z-text { font: 400 .9rem/1.45 var(--f); color: rgb(255 255 255 / .86); }
.z-links { display: flex; flex-wrap: wrap; gap: .2em 1em; margin-top: .35em; white-space: nowrap; }
.z-links a, .z-einstellungen { color: var(--weiss); text-decoration: underline; text-underline-offset: .18em; }
/* „Einstellungen“ sieht aus wie die Links daneben, die Fläche zum Tippen ist trotzdem 24 px hoch */
.z-einstellungen { display: inline-block; min-height: 24px; padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
.z-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.z-knopf {
  min-height: 44px; padding: .7rem .9rem; cursor: pointer; background: transparent; color: var(--weiss); border: 1px solid rgb(255 255 255 / .6);
  font: 800 .85rem/1 var(--fu); font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.z-knopf:hover { background: var(--akzent); border-color: var(--akzent); color: #000; }
.z-wahl { display: grid; gap: .75rem; padding-top: .8rem; border-top: 1px solid rgb(255 255 255 / .14); }
.z-schalter { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; cursor: pointer; }
.z-schalter input { width: 18px; height: 18px; margin: .12rem 0 0; accent-color: var(--akzent); cursor: pointer; }
.z-name { font: 700 .95rem/1.3 var(--f); }
.z-erklaerung { grid-column: 2; font: 400 .85rem/1.45 var(--f); color: rgb(255 255 255 / .7); }
.z-speichern { justify-self: start; }
@media (max-width: 899px) {
  .zustimmung { left: 16px; right: 16px; width: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .z-speichern { justify-self: stretch; }
}
/* Knopf „Cookie-Einstellungen“ im Footer: sieht aus wie die Links daneben */
.footer-cookies { padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-cookies:hover { text-decoration: underline; }
/* Datenschutzseite: Einstellungen ändern (hell) und Abschnitte je Dienst */
.z-seite { display: grid; gap: .9rem; margin: 1.4rem 0 .5rem; padding: 1.3rem 1.4rem; background: #f1f1ef; }
.z-seite[hidden] { display: none; }
.z-seite .z-erklaerung { color: var(--grau-hell); }
.z-seite .btn { justify-self: start; min-height: 44px; }
.z-status:empty { display: none; }
.text h3 { margin: 2.2rem 0 .6rem; font: 700 1.1rem/1.3 var(--f); }
.text h3 .kat { margin-left: .4rem; font: 600 .78rem/1 var(--fu); color: var(--grau-hell); }
