/* SyncVentura -- eine Datei, eigene Schrift (selbst gehostet), nichts von
   fremden Servern, kein JavaScript (die CSP verbietet es). Seiten entstehen
   mit bauen/bauen.py; Klassen hier sind die Bausteine dort.
   Ausbau zur Studio-Website 08.10.2026: Unterseiten, Menue fuer Handys,
   Fallstudien, Fragen, Aufruf-Band, Fuss mit Spalten. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2-variations"),
       url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Ersatzschrift mit angepassten Massen: bis die eigene Schrift da ist, nimmt
   der Text fast denselben Platz ein -- beim Tausch verrutscht nichts. Werte aus
   den Schriftdateien berechnet (Schibsted Grotesk gegen Arial/Liberation Sans). */
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  font-weight: 400 500;
  size-adjust: 104.32%;
  ascent-override: 93.61%;
  descent-override: 24.71%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
  font-weight: 600 900;
  size-adjust: 100.12%;
  ascent-override: 97.54%;
  descent-override: 25.75%;
  line-gap-override: 0%;
}

:root {
  --text: #0f172a;
  --gedaempft: #475569;
  --grund: #ffffff;
  --flaeche: #f6f7fb;
  --linie: #e2e8f0;
  --linie-stark: #cbd5e1;
  --akzent: #4f46e5;
  --akzent-tief: #4338ca;
  --akzent-leicht: #eef2ff;
  --auf-akzent: #ffffff;
  --akzent2: #0f766e;
  --akzent2-leicht: #e6f4f1;
  --band: #4338ca;
  --nacht: #121a3d;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --schrift: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kopfhoehe: 4.25rem;
  --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5'/%3E%3C/svg%3E");
  --schatten-ansicht: 0 24px 48px -20px rgb(15 23 42 / 30%), 0 2px 6px rgb(15 23 42 / 7%);
  --schatten-tafel: 0 24px 40px -24px rgb(15 23 42 / 35%);
  --auf-hell: #312e81;
  color-scheme: light;
}

/* DUNKEL IST DIE VORGABE (Entscheidung des Inhabers 08.10.2026: "standardmaessig
   sollte immer dunkel sein, das sieht besser aus"). Hell nur, wenn jemand
   umschaltet: der Server setzt dann data-thema="hell" am <html> (Cookie
   "thema", nginx-SSI, siehe nginx/site.conf). Die Werte oben in :root sind
   die helle Fassung. */
:root:not([data-thema="hell"]) {
  color-scheme: dark;
  --text: #e2e8f0;
  --gedaempft: #9aa7bb;
  --grund: #0b1020;
  --flaeche: #10172c;
  --linie: #1e293b;
  --linie-stark: #334155;
  --akzent: #a5b4fc;
  --akzent-tief: #c7d2fe;
  --akzent-leicht: #1c2348;
  --auf-akzent: #0b1020;
  --akzent2: #5eead4;
  --akzent2-leicht: #0f2a2c;
  --band: #272a6b;
  --nacht: #070b1c;
  --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230b1020' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5'/%3E%3C/svg%3E");
  --schatten-ansicht: 0 24px 48px -20px rgb(0 0 0 / 70%);
  --schatten-tafel: 0 24px 40px -24px rgb(0 0 0 / 80%);
  --auf-hell: #1e1b4b;
}

:root[data-thema="hell"] { color-scheme: light; }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  accent-color: var(--akzent);
  scrollbar-color: var(--linie-stark) transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--grund);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Fuss auch auf kurzen Seiten (Fehlerseite) unten */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

::selection { background: color-mix(in srgb, var(--akzent) 22%, transparent); color: var(--text); }

h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, li, dd { text-wrap: pretty; }

/* Lange Woerter und Adressen brechen um statt ueberzulaufen (gemessen bei
   200 % Schrift und 320 px Breite) */
h1, h2, h3, p, li, dt, dd, a { overflow-wrap: anywhere; }
p, dd { hyphens: auto; hyphenate-limit-chars: 10 4 4; }

a {
  color: var(--akzent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a, button, summary { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; }

.nur-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rahmen {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Sprunglink fuer Tastatur und Screenreader: erscheint erst beim Fokus */
.sprunglink {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--text);
  color: var(--grund);
  font-weight: 600;
  text-decoration: none;
}
.sprunglink:focus { top: 0.75rem; }
main:focus { outline: none; }
main, section[id] { scroll-margin-top: calc(var(--kopfhoehe) + 0.5rem); }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--grund) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf > .rahmen {
  display: flex;
  flex-wrap: wrap; /* bei grosser Schrift umbrechen statt seitlich ueberlaufen */
  align-items: center;
  gap: 0 1.75rem;
  min-height: var(--kopfhoehe);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.015em;
  flex: none;
}
.marke img { width: 2rem; height: 2rem; }

.navi { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; }

.navi a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 0.6rem;
  color: var(--gedaempft);
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color 150ms ease, background-color 150ms ease;
}

/* aktueller Bereich: Strich unter dem Wort, Farbe Text */
.navi a[aria-current] { color: var(--text); }
.navi a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--akzent);
}

.kopf-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-left: auto; }

.sprache {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  color: var(--gedaempft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}
/* Pille bleibt klein, die Tippflaeche reicht unsichtbar auf 44 px */
.sprache::after { content: ""; position: absolute; inset: -6px -4px; }

/* Umschalter hell/dunkel: zwei Verweise, sichtbar ist nur der zur jeweils
   anderen Darstellung. Die Regeln blenden nur AUS -- so gelten sie fuer den
   Knopf im Kopf und fuer die Zeile im Menue gleichermassen. */
.thema-knopf {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--linie-stark);
  border-radius: 0.7rem;
  color: var(--gedaempft);
  transition: color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.thema-knopf::after { content: ""; position: absolute; inset: -2px; }
.thema-knopf svg { width: 1.15rem; height: 1.15rem; }
.thema-knopf:active { transform: scale(0.97); }

:root:not([data-thema="hell"]) .zu-dunkel { display: none; }
:root[data-thema="hell"] .zu-hell { display: none; }

/* Menue fuer schmale Bildschirme: details/summary, ganz ohne JavaScript */
.menue { display: none; }
.menue > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--linie-stark);
  border-radius: 0.7rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary:active { transform: scale(0.97); }
.menue > summary svg { width: 1.1rem; height: 1.1rem; }
.menue .zu { display: none; }
.menue[open] .auf { display: none; }
.menue[open] .zu { display: block; }

.menue-tafel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - var(--kopfhoehe));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 1.25rem 1.5rem;
  background: var(--grund);
  border-bottom: 1px solid var(--linie-stark);
  box-shadow: var(--schatten-tafel);
}
.menue-tafel ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.menue-tafel li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--linie);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 550;
  text-decoration: none;
}
.menue-tafel li a[aria-current] { color: var(--akzent); }
.menue-tafel li a svg { width: 1rem; height: 1rem; color: var(--gedaempft); }
.menue-tafel .knopf { width: 100%; }
.menue-tafel .thema-zeile { margin: -0.75rem 0 1.25rem; }
.menue-tafel .thema-zeile a { color: var(--gedaempft); font-size: 1rem; font-weight: 500; }
.menue-tafel .thema-zeile svg { width: 1.15rem; height: 1.15rem; }

@keyframes sv-menue { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) {
  .menue[open] .menue-tafel { animation: sv-menue 200ms var(--ease-out); }
}

/* ---------------------------------------------------------------- Knoepfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf.voll { color: var(--auf-akzent); background: var(--akzent); }
.knopf.leise { color: var(--text); border: 1px solid var(--linie-stark); background: var(--grund); }
.knopf.hell { color: var(--auf-hell); background: #ffffff; }
.knopf.klein { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.95rem; }

.pfeil {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-left: 0.5rem;
  transition: transform 200ms var(--ease-out);
}

/* Textlink mit Pfeil ("Alle Projekte", "Zum Projekt") */
.mehr {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--akzent);
}
.mehr .pfeil { margin-left: 0.4rem; }

@media (hover: hover) and (pointer: fine) {
  .navi a:hover { color: var(--text); background: var(--flaeche); }
  .sprache:hover, .thema-knopf:hover { color: var(--text); border-color: var(--gedaempft); }
  .menue > summary:hover { border-color: var(--gedaempft); }
  .knopf.voll:hover { background: var(--akzent-tief); }
  .knopf.leise:hover { border-color: var(--gedaempft); }
  .knopf.hell:hover { background: #e0e7ff; }
  .knopf:hover .pfeil, .mehr:hover .pfeil { transform: translateX(3px); }
  .mehr:hover { text-decoration: underline; }
}

/* ---------------------------------------------------------------- Einstieg (Startseite) */
.held {
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, var(--akzent-leicht) 0%, color-mix(in srgb, var(--akzent-leicht) 35%, var(--grund)) 62%, var(--grund) 100%);
}

.held-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.held h1 {
  font-size: clamp(2.1rem, 8.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
  hyphens: auto; /* nur im Notfall (200 % Schrift): sauber trennen statt abschneiden */
}

.einleitung {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--gedaempft);
  max-width: 40rem;
  margin: 0 0 2.25rem;
}

/* Echte Ansichten aus Projekten: Nemero-Zeichnung hinten, EuKlar-Verwaltung
   davor, der Shop-Block vorn darueber */
.held-bild { position: relative; padding-bottom: 2.5rem; }

.ansicht {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--schatten-ansicht);
}
.ansicht img { display: block; }

/* Diagonal gestaffelt: Zeichnung oben links bleibt frei sichtbar, die
   EuKlar-Verwaltung rechts darunter, der Shop-Block an ihrer Ecke */
.ansicht-nemero {
  width: 68%;
  aspect-ratio: 16 / 10;
  background: #0e1319;
}
.ansicht-nemero img { width: 100%; height: 100%; object-fit: cover; }

.held-bild .ansicht-verwaltung {
  position: relative;
  width: 70%;
  margin: -13% 0 0 auto;
}

.ansicht-verwaltung { aspect-ratio: 16 / 10; }
/* Ausschnitt: Stand nach Art. 19 und Einrichtung, doppelt so gross */
.ansicht-verwaltung img { width: 200%; max-width: none; height: auto; margin-left: -50%; }

.ansicht-shop {
  position: absolute;
  left: 18%;
  bottom: 0;
  width: 27%;
  aspect-ratio: 4 / 5;
}
/* Ausschnitt: Produkttitel und GPSR-Block */
.ansicht-shop img { width: 360%; max-width: none; height: auto; margin: -6% 0 0 -181%; }

@keyframes sv-ansicht { from { opacity: 0; transform: translateY(28px) scale(0.98); } }
/* nur senkrecht: schraeg ragte auf schmalen Handys kurz ueber den Rand */
@keyframes sv-block { from { opacity: 0; transform: translateY(40px); } }
@keyframes sv-einblenden { from { opacity: 0; } }

/* Ein Bewegungsmoment beim Laden: die Ansichten legen sich nacheinander
   uebereinander. Text bewegt sich nie (sonst kommt der Inhalt spaeter). */
@media (prefers-reduced-motion: no-preference) {
  .held-bild .ansicht-nemero { animation: sv-ansicht 900ms var(--ease-out) 120ms both; }
  .held-bild .ansicht-verwaltung { animation: sv-ansicht 900ms var(--ease-out) 360ms both; }
  .held-bild .ansicht-shop { animation: sv-block 900ms var(--ease-out) 720ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .held-bild .ansicht { animation: sv-einblenden 400ms ease both; }
}

/* ---------------------------------------------------------------- Seitenkopf (Unterseiten) */
.seitenkopf {
  padding: 2rem 0 4.5rem;
  background: linear-gradient(180deg, var(--akzent-leicht) 0%, color-mix(in srgb, var(--akzent-leicht) 30%, var(--grund)) 70%, var(--grund) 100%);
}

.seitenkopf h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 2.5rem 0 1.25rem;
  max-width: 20ch;
  hyphens: auto;
}
.seitenkopf .einleitung { max-width: 46rem; }
.seitenkopf .einleitung:last-child { margin-bottom: 0; }

.pfad ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--gedaempft);
}
.pfad li { display: inline-flex; align-items: center; }
.pfad li + li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 0.7rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.pfad a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gedaempft); }
.pfad [aria-current] { color: var(--text); }

/* Fallstudie: Zeichen neben dem Namen, Eckdaten darunter */
.fall-titel { display: flex; align-items: center; gap: 1.1rem; margin: 2.5rem 0 1.25rem; }
.fall-titel img { width: 3.5rem; height: 3.5rem; flex: none; border-radius: 12px; }
.fall-titel h1 { margin: 0; }

.eckdaten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 100%), 1fr));
  gap: 1.25rem 2rem;
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie-stark);
}
.eckdaten dt { font-size: 0.85rem; color: var(--gedaempft); margin-bottom: 0.2rem; }
.eckdaten dd { margin: 0; font-weight: 550; }
.eckdaten dd a { font-weight: 550; }

/* ---------------------------------------------------------------- Abschnitte */
.abschnitt { padding: 6rem 0; }
.abschnitt.flaeche { background: var(--flaeche); border-block: 1px solid var(--linie); }
.abschnitt.eng { padding-top: 0; }

.abschnitt h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.unterzeile { color: var(--gedaempft); max-width: 44rem; margin: 0 0 3rem; font-size: 1.12rem; }

/* Ueberschrift links, Link rechts ("Alle Projekte") */
.abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 3rem;
}
.abschnitt-kopf .unterzeile { margin-bottom: 0; }

.fuss-link { margin-top: 2rem; }

/* Fliesstext-Abschnitt (Ausgangslage, Loesung, Wer wir sind) */
.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 4rem;
}
.zweispaltig h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.zweispaltig p { color: var(--gedaempft); margin: 0 0 1rem; max-width: 36rem; }

.hinweis {
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--flaeche);
  color: var(--gedaempft);
  font-size: 0.95rem;
  max-width: 46rem;
}
.hinweis svg { width: 1.1rem; height: 1.1rem; vertical-align: -0.2em; margin-right: 0.4rem; color: var(--akzent); }

/* Dunkles Band: Nachtblau mit Tuerkis aus dem Logo */
.abschnitt.dunkel {
  --text: #eef0ff;
  --gedaempft: #b6bddb;
  --linie: #24305f;
  --linie-stark: #2c3768;
  --akzent: #a5b4fc;
  --akzent-leicht: #1f2a5c;
  --akzent2: #5eead4;
  background: var(--nacht);
  color: var(--text);
}
.abschnitt.dunkel a { color: #c7d2fe; }
.abschnitt.dunkel .karte { background: #18224d; border-color: #2c3768; }

/* ---------------------------------------------------------------- Projekte */
.projekte { display: grid; gap: 2rem; }

.projekt {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--linie-stark);
  border-radius: 16px;
  overflow: hidden;
  background: var(--grund);
}
.projekt:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.projekt:nth-child(even) .projekt-bild { order: 2; }

.projekt-bild {
  position: relative;
  min-height: 20rem;
  display: grid;
  place-items: center;
  padding: 2.5rem;
  overflow: hidden;
}

.projekt-text { padding: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.projekt-text p { color: var(--gedaempft); margin: 0 0 1.25rem; }

.projekt-kopf { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.projekt-kopf img { width: 2.9rem; height: 2.9rem; flex: none; border-radius: 10px; }
.projekt-kopf > div { min-width: 0; }
.projekt-kopf h2, .projekt-kopf h3 { margin: 0 0 0.15rem; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.projekt-kopf h2 a, .projekt-kopf h3 a { color: inherit; text-decoration: none; }
.projekt-art { margin: 0 !important; font-size: 0.92rem; color: var(--gedaempft); }

.merkmale { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.5rem; }
.merkmale li { position: relative; padding-left: 1.35rem; }
.merkmale li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.55rem;
  height: 1.5px;
  background: var(--akzent);
}
.projekt-text .mehr { margin-top: auto; }

.status {
  display: inline-block;
  max-width: 100%;
  margin-left: 0.15rem;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--linie-stark);
  color: var(--gedaempft);
  vertical-align: 0.08em;
}
.status.bald { color: var(--akzent2); border-color: color-mix(in srgb, var(--akzent2) 45%, transparent); }

/* Bildflaechen je Projekt */
.bild-nemero { background: #0e1319; padding: 0; }
.bild-nemero img { width: 100%; height: 100%; object-fit: cover; }

.bild-euklar { background: var(--akzent-leicht); }
.bild-euklar .stapel { position: relative; width: 100%; max-width: 34rem; padding-bottom: 2.5rem; }
.bild-euklar .ansicht-verwaltung { width: 88%; }
.bild-euklar .ansicht-shop { left: auto; right: 0; width: 40%; }

.bild-rueckruf { background: var(--akzent2-leicht); }

/* Ablauf des Rueckruf-Monitors als einfache Darstellung aus HTML */
.fluss { width: 100%; max-width: 30rem; display: grid; justify-items: center; gap: 0; }
.quellen {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.quellen li {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: var(--grund);
  border: 1px solid color-mix(in srgb, var(--akzent2) 35%, var(--linie-stark));
  font-size: 0.9rem;
  font-weight: 550;
  text-align: center;
}
.fluss-pfeil { display: block; width: 2px; height: 1.6rem; margin: 0.3rem 0; background: var(--akzent2); position: relative; }
.fluss-pfeil::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--akzent2);
  border-bottom: 2px solid var(--akzent2);
  transform: translateX(-50%) rotate(45deg);
}
.fluss-karte {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--grund);
  border: 1px solid var(--linie-stark);
  text-align: center;
}
.fluss-karte strong { display: block; font-weight: 650; }
.fluss-karte span { color: var(--gedaempft); font-size: 0.92rem; }
.fluss-karte.treffer { border-color: var(--akzent2); }

@media (hover: hover) and (pointer: fine) {
  .projekt { transition: border-color 220ms ease; }
  .projekt:hover { border-color: var(--akzent); }
}

/* Weitere Arbeiten: schlichte Zeilen */
.weitere { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-stark); }
.weitere li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.5rem 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linie-stark);
}
.weitere h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.weitere p { margin: 0; color: var(--gedaempft); }

/* ---------------------------------------------------------------- Leistungen */
.leistungen-liste { list-style: none; margin: 0; padding: 0; }
.leistungen-liste li:first-child .leistung-link { border-top: 1px solid var(--linie-stark); }

.leistung-link {
  display: grid;
  grid-template-columns: auto minmax(0, 4fr) minmax(0, 6fr) auto;
  align-items: center;
  gap: 1rem 1.75rem;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--linie-stark);
  color: inherit;
  text-decoration: none;
}
.leistung-link h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.018em; }
.leistung-link p { margin: 0; color: var(--gedaempft); }
.leistung-link .pfeil { width: 1.25rem; height: 1.25rem; color: var(--akzent); }

.kachel {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--akzent-leicht);
  color: var(--akzent);
  flex: none;
}
.kachel svg { width: 1.35rem; height: 1.35rem; }

@media (hover: hover) and (pointer: fine) {
  .leistung-link { transition: background-color 180ms ease; }
  .leistung-link:hover { background: color-mix(in srgb, var(--akzent-leicht) 60%, transparent); }
  .leistung-link:hover .pfeil { transform: translateX(4px); }
  .leistung-link:hover h3 { color: var(--akzent); }
}

/* Leistungen-Uebersicht: eine Zeile je Bereich mit Stichpunkten */
.bereich {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--linie-stark);
}
.bereich:first-child { border-top: 1px solid var(--linie-stark); }
.bereich .kachel { margin-bottom: 1.1rem; }
.bereich h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.bereich p { color: var(--gedaempft); margin: 0 0 0.75rem; }
.bereich ul { margin: 0.35rem 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.bereich li { position: relative; padding-left: 1.35rem; }
.bereich li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.55rem;
  height: 1.5px;
  background: var(--akzent);
}

/* ---------------------------------------------------------------- Punkte (Text in Spalten) */
.punkte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 4rem;
}
.punkte.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.punkt { padding-top: 1.25rem; border-top: 1px solid var(--linie-stark); }
.punkt h3 { margin: 0 0 0.4rem; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }
.punkt p { margin: 0; color: var(--gedaempft); }
.punkt .kachel { margin-bottom: 1rem; }

/* Haken-Liste */
.liste-haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.liste-haken li { position: relative; padding-left: 2rem; color: var(--gedaempft); }
.liste-haken li strong { color: var(--text); font-weight: 600; }
.liste-haken li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--haken) center / 100% no-repeat, var(--akzent2);
}

/* Zwei Spalten: Ausgangslagen links, Technik rechts */
.raster { display: grid; gap: 3rem 4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.technik { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--linie-stark); }
.technik > div { padding: 0.9rem 0; border-bottom: 1px solid var(--linie-stark); }
.technik dt { font-weight: 600; margin-bottom: 0.15rem; }
.technik dd { margin: 0; color: var(--gedaempft); }

.technik.breit { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 2rem; border-top: 0; }
.technik.breit > div { border-bottom: 0; border-top: 1px solid var(--linie-stark); padding-top: 1rem; }

.abschnitt .liste-haken { max-width: 56rem; }

.untertitel { margin: 3.5rem 0 1.25rem; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- Ablauf */
.schritte {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11.5rem, 100%), 1fr));
  counter-reset: schritt;
}
.schritte > li { counter-increment: schritt; padding-top: 1rem; border-top: 2px solid var(--linie-stark); }
.schritte > li:first-child { border-top-color: var(--akzent); }
.schritte > li::before {
  content: counter(schritt);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--akzent);
}
.schritte h3, .schritte strong { display: block; margin: 0 0 0.3rem; font-size: 1.1rem; font-weight: 600; }
.schritte p { margin: 0; color: var(--gedaempft); }

/* Lange Fassung (Arbeitsweise): Zeilen mit Nummer links */
.schritte.lang { grid-template-columns: 1fr; gap: 0; }
.schritte.lang > li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 4fr) minmax(0, 7fr);
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--linie-stark);
}
.schritte.lang > li:last-child { border-bottom: 1px solid var(--linie-stark); }
.schritte.lang > li::before { margin: 0; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; }
.schritte.lang h3 { font-size: 1.3rem; letter-spacing: -0.015em; }

/* ---------------------------------------------------------------- Fragen */
.fragen { border-top: 1px solid var(--linie-stark); }
.frage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.5rem 4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--linie-stark);
}
.frage h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.012em; line-height: 1.35; }
.frage p { margin: 0; color: var(--gedaempft); }

/* ---------------------------------------------------------------- Bilder in Fallstudien */
.buehne { padding: 0 0 6rem; }
.buehne .projekt-bild { border-radius: 16px; min-height: 0; aspect-ratio: 16 / 8; }
/* Zeichnung ueber die ganze Breite; oben und unten leicht beschnitten */
.buehne .bild-nemero { aspect-ratio: 2 / 1; }
.buehne .bild-euklar .stapel { max-width: 46rem; }

.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.galerie figure { margin: 0; }
.galerie .ansicht { aspect-ratio: 792 / 552; box-shadow: none; border: 1px solid var(--linie-stark); }
.galerie .ansicht img { width: 100%; height: 100%; object-fit: cover; }
.galerie figcaption { margin-top: 0.75rem; color: var(--gedaempft); font-size: 0.92rem; }

.weiter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--linie-stark);
}
.weiter a { display: inline-flex; flex-direction: column; min-height: 44px; text-decoration: none; }
.weiter small { color: var(--gedaempft); font-size: 0.88rem; }
.weiter strong { font-size: 1.25rem; letter-spacing: -0.015em; color: var(--text); display: inline-flex; align-items: center; }
.weiter .pfeil { color: var(--akzent); }
@media (hover: hover) and (pointer: fine) {
  .weiter a:hover strong { color: var(--akzent); }
  .weiter a:hover .pfeil { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- Aufruf-Band */
.aufruf { background: var(--band); color: #eef0ff; padding: 4.5rem 0; }
.aufruf-innen {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: center;
}
.aufruf h2 { margin: 0 0 0.6rem; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.aufruf p { margin: 0; color: #d5d9fb; max-width: 38rem; font-size: 1.1rem; }
.aufruf-aktion { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: flex-end; }
.aufruf-aktion .adresse {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #eef0ff;
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, #eef0ff 45%, transparent);
}
.aufruf :focus-visible { outline-color: #ffffff; }

/* ---------------------------------------------------------------- Kontakt */
.karte {
  background: var(--grund);
  border: 1px solid var(--linie-stark);
  border-radius: 14px;
  padding: 1.75rem;
}
.karte h3 { margin: 0 0 0.75rem; font-size: 1.2rem; letter-spacing: -0.015em; }
.karte ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--gedaempft); }
.karte li { margin: 0.3rem 0; }

.mailkarte {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 2.25rem;
  max-width: 50rem;
}
.mailkarte .beschriftung { margin: 0; color: var(--gedaempft); font-size: 0.9rem; }
.mailkarte .adresse {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 150ms ease;
}
.mailkarte .klein { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .mailkarte .adresse:hover { color: var(--akzent); }
}

.ueber-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 4rem; align-items: start; }
.ueber-raster p { color: var(--gedaempft); max-width: 40rem; }

.klein { color: var(--gedaempft); font-size: 0.9rem; }
.mitte { margin-top: 2rem; }

/* ---------------------------------------------------------------- Rechtstexte */
.text { max-width: 48rem; padding-top: 3rem; padding-bottom: 5rem; }
.text h1 { font-size: 2.4rem; letter-spacing: -0.028em; margin: 0 0 1rem; line-height: 1.1; }
.text .pfad + h1 { margin-top: 1.75rem; }
.text h2 { font-size: 1.25rem; margin: 2.25rem 0 0.4rem; }
.text p, .text li { color: var(--text); }

/* ---------------------------------------------------------------- Fuss */
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); color: var(--gedaempft); font-size: 0.95rem; }

.fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: 2.5rem 2rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.fuss-marke p { margin: 0.75rem 0 0.5rem; max-width: 22rem; }
.fuss-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
.fuss-titel { margin: 0 0 0.35rem; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.fuss nav ul { list-style: none; margin: 0; padding: 0; }
.fuss nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gedaempft); text-decoration: none; }
.fuss nav a[aria-current] { color: var(--text); }

.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
  position: relative;
  font-size: 0.9rem;
}
.fuss-unten::before { content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; border-top: 1px solid var(--linie); }
.fuss-recht { margin-left: auto; display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.fuss-recht a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }

@media (hover: hover) and (pointer: fine) {
  .fuss nav a:hover { color: var(--text); text-decoration: underline; }
}

/* ---------------------------------------------------------------- Breite */
/* Kopf: ab hier passt die Navigation nicht mehr neben Logo und Knopf */
@media (max-width: 960px) {
  .navi, .kopf-cta { display: none; }
  .menue { display: block; }
  .technik.breit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; }
  .fuss-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuss-marke { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .held-raster { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .held-bild { max-width: 36rem; }
  .projekt, .projekt:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .projekt:nth-child(even) .projekt-bild { order: 0; }
  .projekt-bild { min-height: 0; aspect-ratio: 16 / 10; padding: 1.75rem; }
  .bild-nemero { padding: 0; }
  .bild-rueckruf { aspect-ratio: auto; }
  .leistung-link { grid-template-columns: auto minmax(0, 1fr) auto; }
  .leistung-link p { grid-column: 2 / 3; }
  .leistung-link .pfeil { grid-row: 1; grid-column: 3; }
  .bereich, .frage, .weitere li, .zweispaltig, .raster, .aufruf-innen, .ueber-raster { grid-template-columns: minmax(0, 1fr); }
  .bereich { gap: 0.75rem; }
  .frage { gap: 0.5rem; }
  .punkte.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritte.lang > li { grid-template-columns: 3rem minmax(0, 1fr); }
  .schritte.lang > li p { grid-column: 2; }
  .aufruf-aktion { justify-content: flex-start; }
  .galerie { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  :root { --kopfhoehe: 3.85rem; }
  .held { padding: 3.25rem 0 3.5rem; }
  .seitenkopf { padding: 1.25rem 0 3.25rem; }
  .seitenkopf h1, .fall-titel { margin-top: 1.75rem; }
  .abschnitt { padding: 4.25rem 0; }
  .buehne { padding-bottom: 4.25rem; }
  .einleitung { font-size: 1.1rem; }
  .punkte, .punkte.drei { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .projekt-text { padding: 1.6rem; }
  .projekt-bild { padding: 1.25rem; }
  .bild-nemero { padding: 0; }
  .karte { padding: 1.4rem; }
  .mailkarte { grid-template-columns: 1fr; }
  .technik.breit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; padding-top: 2.75rem; }
  .fuss-recht { margin-left: 0; }
  .knoepfe .knopf { flex: 1 1 auto; }
  .aufruf { padding: 3.5rem 0; }
  .quellen li { font-size: 0.82rem; padding: 0.5rem 0.4rem; }
  .fall-titel img { width: 2.9rem; height: 2.9rem; }
}

/* Schmale Handys: Umschalter steht im Menue statt im Kopf */
@media (max-width: 480px) {
  .kopf-rechts > .thema-knopf { display: none; }
}

/* Sehr schmale Handys (320 px): Kopf passt in eine Zeile */
@media (max-width: 360px) {
  .marke { font-size: 1rem; gap: 0.45rem; }
  .marke img { width: 1.75rem; height: 1.75rem; }
  .kopf > .rahmen { gap: 0 0.75rem; }
  .kopf-rechts { gap: 0.5rem; }
  .menue > summary { padding: 0 0.65rem; }
  .technik.breit { grid-template-columns: minmax(0, 1fr); }
}
