/* =========================================================================
   RIGHINI Garten- und Landschaftsbau, Signature-Variante
   "Erst fertig im Plan, dann fertig im Garten", zweite Fassung

   Leitidee: Bei Righini existiert jeder Garten zweimal, einmal massstabsgetreu
   im Rechner und einmal draussen im Boden. Die Seite ist als Planblatt gebaut,
   aber auf hellem Papier: Raster, Masketten, Legende, ein raeumlicher Schnitt
   durch den Bodenaufbau, eine Materialpalette und eine Baumscheibe.
   Was beim Scrollen passiert, treibt eine einzige Buehnen-Mechanik in seite.js.
   Alles liegt lokal, es wird nichts von fremden Servern geladen.
   ========================================================================= */

/* --- Schriften ---------------------------------------------------------- */
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Darker Grotesque";
  src: url("../fonts/darker-grotesque-400-800-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; 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: "Darker Grotesque";
  src: url("../fonts/darker-grotesque-400-800-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/fragment-mono-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; 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: "Fragment Mono";
  src: url("../fonts/fragment-mono-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-700-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; 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: "Inter";
  src: url("../fonts/inter-400-700-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Palette ------------------------------------------------------------ */
/* Hausfarben des Betriebs: RAL 1015 Hellelfenbein und RAL 8023 Orangebraun
   (Termin 23.09.2026). Sie tragen die Seite. Rot und Gruen kommen aus dem
   Logo und bleiben Akzente: Gruen fuer Blattnummern, Legende und Haken, Rot
   fuer Pflichtfelder, Fehler und das laufende Jahr in der Baumscheibe. */
:root {
  --ral-1015:   #E6D2B5;   /* Hellelfenbein, Hausfarbe */
  --ral-8023:   #A65E2E;   /* Orangebraun, Hausfarbe */

  --papier:     #F7F0E4;   /* Grundflaeche, aufgehelltes RAL 1015 */
  --papier-2:   #EFE4D1;   /* zweite Flaeche */
  --papier-3:   #E6D2B5;   /* RAL 1015 selbst, fuer Spuren und Flaechen */
  --linie:      #DCCAAC;   /* Planlinie */
  --linie-2:    #C5AE8B;   /* kraeftigere Planlinie */

  --tinte:      #261C15;   /* Fliesstext und Ueberschriften */
  --tinte-2:    #554739;   /* Sekundaertext */
  --tinte-3:    #74645A;   /* Beschriftungen */

  --marke:      #A65E2E;   /* RAL 8023: Knoepfe, Flaechen, Zeichen */
  --marke-text: #8A4B23;   /* RAL 8023 abgedunkelt: Text auf hellem Grund */
  --marke-tief: #7E4420;   /* Hover der Knoepfe */
  --marke-licht:#E3A877;   /* RAL 8023 aufgehellt: auf dunklem Grund */
  --marke-lasur: rgba(166,94,46,.12);

  --laub:       #5E8C36;   /* Logo-Gruen, auf hellem Grund lesbar */
  --laub-hell:  #79A750;   /* Logo-Gruen, gemessen */
  --laub-licht: #E3A877;   /* auf dunklem Grund */
  --laub-text:  #3F6221;   /* Logo-Gruen fuer kleine Schrift, 6,2:1 auf Papier */
  --laub-lasur: rgba(94,140,54,.12);
  --rot:        #C0352F;   /* Logo-Rot (#D33C37), fuer Text abgedunkelt */
  --wasser:     #4E6E78;   /* Wasser und Technik */

  /* Dunkle Buehnen: nur dort, wo ein Koerper Tiefe braucht. Warmes Dunkel
     aus dem Orangebraun, wie feuchter Boden, statt des frueheren Gruenschwarz. */
  --nacht:      #2A2019;
  --nacht-2:    #352920;
  --auf-nacht:  #F3EADB;
  --auf-nacht-2:#DCCBB3;
  --linie-dunkel: #4A3A2D;

  --schatten-1: 0 1px 2px rgba(38,28,21,.05), 0 3px 10px rgba(38,28,21,.06);
  --schatten-2: 0 2px 5px rgba(38,28,21,.06), 0 14px 30px -10px rgba(38,28,21,.18);
  --schatten-3: 0 4px 10px rgba(38,28,21,.07), 0 30px 60px -22px rgba(38,28,21,.3);

  --r-klein: 5px;
  --r-mittel: 12px;
  --r-gross: 18px;

  --breite: 1760px;        /* auf 16:9 bis an die Raender (Robin, 22.10.2026) */
  --rand: clamp(22px, 4vw, 80px);
  --secpad: 104px;
  --kopf: 112px;           /* wird per JS auf die echte Hoehe gesetzt */
  --uebergang: .22s cubic-bezier(.4, 0, .2, 1);
}

/* --- Grundlagen --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.66;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: "Darker Grotesque", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0 0 .38em;
  color: var(--tinte);
}
h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.62rem); line-height: 1.06; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }

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

.nur-lesbar {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nur-lesbar input { width: 1px; }

.springen {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--marke); color: #fff;
  padding: .7em 1.2em; border-radius: var(--r-klein); text-decoration: none; font-weight: 700;
  transition: top var(--uebergang);
}
.springen:focus { top: 12px; }

/* --- Plan-Bausteine ----------------------------------------------------- */
.mono {
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinte-3);
}

.bahn { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
@media (max-width: 560px) { .bahn { width: min(100% - 28px, var(--breite)); } }

section[id] { scroll-margin-top: calc(12px - var(--secpad)); }

.abschnitt { padding-block: var(--secpad); position: relative; }
.abschnitt--eng { --secpad: 74px; }
/* Die warmen Baender stehen in RAL 1015 selbst: Die Hausfarbe soll man sehen,
   nicht nur ahnen. Auf dem dunkleren Grund ruecken Linien und Spuren eine
   Stufe nach, sonst verschwinden Kartenrahmen und Trennlinien. */
.abschnitt--warm {
  background: var(--ral-1015);
  --linie: #CDB591; --linie-2: #B29772; --papier-3: #DAC29E; --tinte-3: #66574B; --laub-text: #3B5C1F;
}

/* Das Planraster liegt als feines Netz unter den Abschnitten. */
/* Das Netz gehoert hinter den Inhalt. Ohne z-index malt das absolut gesetzte
   ::before ueber die Hintergrundflaechen der nicht positionierten Kaesten, und
   die Linien laufen quer durch das Formular. */
.raster-grund > * { position: relative; z-index: 1; }
.raster-grund::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .8;
  background-image:
    linear-gradient(to right, var(--linie) 1px, transparent 1px),
    linear-gradient(to bottom, var(--linie) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 82%);
}

/* Dunkle Buehne: nur fuer die raeumlichen Szenen */
.abschnitt--buehne { background: var(--nacht); color: var(--auf-nacht); }
.abschnitt--buehne h2, .abschnitt--buehne h3 { color: var(--auf-nacht); }
.abschnitt--buehne .vorspann { color: var(--auf-nacht-2); }
.abschnitt--buehne .mono { color: #B4A18A; }
.abschnitt--buehne .blattnummer .mono { color: var(--laub-licht); }
.abschnitt--buehne .blattnummer::after { background: var(--linie-dunkel); }
.abschnitt--buehne.raster-grund::before {
  background-image:
    linear-gradient(to right, var(--linie-dunkel) 1px, transparent 1px),
    linear-gradient(to bottom, var(--linie-dunkel) 1px, transparent 1px);
  opacity: .55;
}

/* Ueberschrift links, Vorspann rechts, die Blattnummer als Linie darueber.
   Vorher stand beides in einer schmalen Spalte, und rechts blieb die halbe
   Breite leer. Der Vorspann behaelt seine Zeilenlaenge, er rutscht nur
   daneben statt darunter. */
.kopfzeile-gruppe { margin-bottom: 48px; position: relative; }
.kopfzeile-gruppe > h2 { max-width: 18ch; }
@media (min-width: 940px) {
  .kopfzeile-gruppe {
    display: grid; align-items: end; gap: 10px 56px;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  }
  .kopfzeile-gruppe > .blattnummer { grid-column: 1 / -1; margin-bottom: 8px; }
  .kopfzeile-gruppe > h2 { margin-bottom: 0; }
  .kopfzeile-gruppe > .vorspann { margin-bottom: .35em; max-width: 54ch; }
}
.blattnummer { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.blattnummer .mono { color: var(--laub-text); }
.blattnummer::after { content: ""; flex: 1; height: 1px; background: var(--linie-2); max-width: 180px; }

.vorspann { font-size: 1.08rem; color: var(--tinte-2); max-width: 62ch; }

/* --- Knoepfe ------------------------------------------------------------ */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .92em 1.7em; border: 1px solid transparent; border-radius: var(--r-klein);
  background: var(--marke); color: #fff;
  font: inherit; font-weight: 700; font-size: .96rem; line-height: 1.15;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  box-shadow: var(--schatten-2);
  transition: transform var(--uebergang), background var(--uebergang), box-shadow var(--uebergang);
}
.knopf::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.34) 50%, transparent 66%);
  transform: translateX(-130%); transition: transform .62s ease;
}
.knopf:hover { transform: translateY(-2px); background: var(--marke-tief); box-shadow: var(--schatten-3); }
.knopf:hover::after { transform: translateX(130%); }
.knopf--linie {
  background: transparent; color: var(--tinte); border-color: var(--linie-2); box-shadow: none;
}
.knopf--linie:hover { background: rgba(38,28,21,.05); border-color: var(--marke); box-shadow: none; }
.abschnitt--buehne .knopf--linie,
.hero .knopf--linie { color: var(--auf-nacht); border-color: rgba(243,234,219,.32); }
.abschnitt--buehne .knopf--linie:hover,
.hero .knopf--linie:hover { background: rgba(243,234,219,.1); border-color: var(--marke-licht); }
.knopf--klein { padding: .66em 1.2em; font-size: .87rem; }

/* Gilt fuer Verweise und fuer Knoepfe. Ohne den Rahmen- und Flaechenausgleich
   zeichnet der Browser um einen button-Knopf seinen Vorgabe-Rahmen, und der
   Textverweis bekommt einen grauen Kasten. */
.textlink {
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--marke-text); font: inherit; font-weight: 600; text-decoration: none;
  border: 0; border-bottom: 1px solid rgba(138,75,35,.4);
  padding: 0 0 1px; background: none; cursor: pointer; text-align: left;
  transition: color var(--uebergang), border-color var(--uebergang), gap var(--uebergang);
}
.textlink:hover { color: var(--tinte); border-color: var(--tinte); gap: .7em; }
.abschnitt--buehne .textlink { color: var(--marke-licht); border-color: rgba(227,168,119,.4); }
.abschnitt--buehne .textlink:hover { color: var(--auf-nacht); border-color: var(--auf-nacht); }
.pfeil { width: 1em; height: 1em; flex: none; }

/* --- Kopfbereich -------------------------------------------------------- */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 90;
  background: rgba(247,240,228,.9);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--uebergang), background var(--uebergang);
}
.kopf.geschrumpft { border-bottom-color: var(--linie); background: rgba(247,240,228,.97); }


.navi-zeile .bahn {
  display: flex; align-items: center; gap: 22px;
  min-height: 78px; padding-block: 10px;
  transition: min-height var(--uebergang);
}
.kopf.geschrumpft .navi-zeile .bahn { min-height: 62px; }

.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marke img { width: auto; height: 60px; transition: height var(--uebergang); }
.kopf.geschrumpft .marke img { height: 48px; }
/* Der Name steht im Logo selbst (gezeichnete Schrift), daneben nur das Gewerk */
.marke-text {
  font-family: "Fragment Mono", monospace; line-height: 1.35; max-width: 11em;
  font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--tinte-3);
}

.navi { margin-left: auto; }
.navi ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.navi a {
  display: block; padding: .5em .74em; border-radius: 6px;
  text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap;
  color: var(--tinte-2); transition: background var(--uebergang), color var(--uebergang);
}
.navi a:hover { background: rgba(38,28,21,.06); color: var(--tinte); }
.navi a[aria-current="true"], .navi a[aria-current="page"] { color: var(--marke-text); font-weight: 600; }
.schublade nav a[aria-current="page"] { color: var(--marke-licht); }

.kopf-tat { flex: none; }

.burger {
  display: none; flex: none; width: 46px; height: 46px;
  border: 1px solid var(--linie-2); border-radius: 8px; background: transparent;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.burger span { display: block; position: relative; width: 20px; height: 2px; background: var(--tinte); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--tinte);
  transition: transform var(--uebergang), top var(--uebergang);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.schublade {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 350px); z-index: 95;
  background: var(--nacht); color: var(--auf-nacht); border-left: 1px solid var(--linie-dunkel);
  transform: translateX(102%); visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
  display: flex; flex-direction: column; padding: 20px 22px 28px;
  overflow-y: auto; overscroll-behavior: contain;
}
.schublade.auf { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.schublade-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.schublade-kopf img { height: 54px; width: auto; }
.schublade-zu {
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(243,234,219,.24);
  background: transparent; color: var(--auf-nacht); cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.schublade nav ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 1px; }
.schublade nav a {
  display: block; padding: .72em .7em; border-radius: 6px; text-decoration: none;
  font-size: 1.02rem; color: var(--auf-nacht);
}
.schublade nav a:hover { background: rgba(243,234,219,.09); }
.schublade-fuss { margin-top: auto; display: grid; gap: 12px; font-size: .9rem; color: var(--auf-nacht-2); }
.schublade-fuss a { color: var(--auf-nacht); }
.schleier {
  position: fixed; inset: 0; z-index: 94; background: rgba(30,22,16,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.schleier.auf { opacity: 1; visibility: visible; transition-delay: 0s; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--kopf) + 52px); padding-bottom: 0;
  background: var(--papier);
}
.hero-bild { position: absolute; inset: 0; z-index: -3; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.hero-schleier {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(36,26,19,.90) 0%, rgba(36,26,19,.72) 42%, rgba(36,26,19,.24) 76%, rgba(36,26,19,.44) 100%),
    linear-gradient(to top, var(--papier) 1px, rgba(36,26,19,.55) 8%, rgba(36,26,19,.06) 52%);
}
.hoehenlinien {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .42; color: var(--ral-1015);
}
.hoehenlinien svg { width: 100%; height: 100%; }

.hero-inhalt { max-width: 54rem; padding-bottom: 64px; }
.hero h1 { color: #fff; margin-bottom: .22em; }
.hero h1 .zeile2 { color: var(--marke-licht); display: block; }
.hero-vorspann { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #EFE5D5; max-width: 44rem; margin-bottom: 1.7em; }
.hero .mono { color: #D2BE9F; }
.hero-tat { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.sterne { display: inline-flex; gap: 2px; color: #E7B84B; }
.sterne svg { width: 15px; height: 15px; }

/* --- Auftakt ----------------------------------------------------------- */
.auftakt {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px;
  background-color: var(--ral-1015);
  background-image:
    linear-gradient(to right, rgba(138,75,35,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138,75,35,.10) 1px, transparent 1px);
  background-size: 68px 68px;
  background-position: center center;
}
/* Ohne Skript: das Logo steht ruhig in der Mitte des ersten Bildschirms. */
.auftakt-logo {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
}
.auftakt-logo img { display: block; width: auto; height: min(72vh, 76vw); }
.auftakt-hinweis {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0; color: var(--marke-text); font-size: .7rem; letter-spacing: .26em;
  text-transform: uppercase;
}
.auftakt-hinweis i {
  display: block; width: 1px; height: 46px; background: var(--marke-text);
  transform-origin: top; animation: hinweis-strich 2.2s cubic-bezier(.6,0,.3,1) infinite;
}
@keyframes hinweis-strich {
  0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
/* Ueber der festen Kontaktleiste am unteren Rand */
@media (max-width: 720px) { .auftakt-hinweis { bottom: 72px; } }

/* Mit Skript: beide Zeichen sind fest im Fenster und werden aus dem
   Scrollstand an ihr Ziel gerechnet. Ueber dem Kopf, damit das Logo dort
   landet und nicht darunter verschwindet. */
html.auftakt-an .auftakt-logo {
  position: fixed; left: 0; top: 0; right: auto; z-index: 92;
  transform-origin: 0 0; pointer-events: none;
}
/* Bewusst ohne will-change: Damit legt Chrome die Ebene einmal in der kleinen
   Ausgangsgroesse an und skaliert die fertigen Pixel hoch. Logo und Siegel
   waren dadurch im grossen Zustand verpixelt (Robin, 22.10.2026). Ohne den
   Hinweis zeichnet der Browser bei jedem Schritt in der echten Groesse neu. */
/* Solange der Auftakt laeuft, steht das echte Logo unsichtbar an seinem
   Platz: Seine Lage ist das Ziel des Flugs. Das Siegel bleibt die ganze Zeit
   sichtbar in seiner Ecke. */
html.auftakt-laeuft .kopf .marke img { visibility: hidden; }
html.auftakt-an:not(.auftakt-laeuft) .auftakt-logo { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .auftakt { display: none; }
  .auftakt-hinweis i { animation: none; }
}

/* --- Jubilaeumssiegel --------------------------------------------------- */
/* Farben als Eigenschaften, damit dasselbe Siegel auf Papier (Auftakt) und
   auf dem Foto (Hero) stehen kann. */
.siegel {
  --s-flaeche: var(--papier); --s-ring: var(--marke-text); --s-schrift: var(--tinte);
  --s-band: var(--marke); --s-bandschrift: var(--papier);
  display: block; width: 100%; height: auto; overflow: visible;
}
.siegel-flaeche { fill: var(--s-flaeche); }
.siegel-ring { fill: none; stroke: var(--s-ring); }
.siegel-oben, .siegel-unten, .siegel-seit, .siegel-zahl {
  font-family: "Darker Grotesque", "Arial Narrow", sans-serif; fill: var(--s-schrift);
}
.siegel-oben  { font-size: 28px; font-weight: 800; letter-spacing: .2em; }
.siegel-unten { font-size: 13.5px; font-weight: 700; letter-spacing: .15em; }
.siegel-seit  { font-family: "Fragment Mono", monospace; font-size: 10.5px; letter-spacing: .24em; fill: var(--s-ring); }
.siegel-band-flaeche { fill: var(--s-band); }
.siegel-zahl { font-size: 41px; font-weight: 800; letter-spacing: .08em; fill: var(--s-bandschrift); }

/* Bezug fuer das Bewertungsfeld unten rechts im Hero */
.hero .bahn { position: relative; }

/* Jahresmarke in der Kopfzeile, neben dem Logo (Robin, 02.12.2026: nicht
   schwebend halb ueber der Leiste). Pinselstrich aus Enzos Jubilaeumsvorlage,
   darauf die Zahl in einer fetten Schmalschrift wie dort. Die Zahl rechnet
   seite.js jedes Jahr neu. */
.jahresmarke { display: flex; align-items: center; gap: 10px; flex: none; height: 54px;
  padding-left: 20px; border-left: 1px solid var(--linie); transition: height var(--uebergang); }
.jm-zahl { height: 100%; width: auto; overflow: visible; }
.jm-zahl text { font: 400 104px/1 "Anton", "Arial Narrow", sans-serif; fill: #17120E; }
.jm-text { display: grid; gap: 6px; line-height: 1; }
.jm-text b { font: 700 .9rem/1 "Inter", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--tinte); }
.jm-text span { font: 500 .74rem/1 "Inter", sans-serif; letter-spacing: .06em; color: var(--tinte-3); }
.kopf.geschrumpft .jahresmarke { height: 44px; }
@media (max-width: 720px) {
  .jahresmarke { height: 40px; padding-left: 12px; gap: 7px; }
  .kopf.geschrumpft .jahresmarke { height: 36px; }
  .jm-text b { font-size: .72rem; letter-spacing: .2em; }
  .jm-text span { font-size: .64rem; }
}

/* Zweiter Weg als ruhiger Verweis mit Pfeil, kein zweiter Knopf */
.hero-verweis {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px;
  color: #fff; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px;
  transition: gap var(--uebergang), border-color var(--uebergang);
}
.hero-verweis:hover { gap: .85em; border-color: var(--marke-licht); }
.hero-verweis .pfeil { width: 1.1em; height: 1.1em; }
.hero-tat { align-items: center; gap: 14px 30px; }

/* Schriftfeld mit der Google-Bewertung, unten rechts auf dem Blatt */
.hero-schriftfeld {
  position: absolute; right: 0; bottom: 64px; width: 300px;
  display: flex; flex-direction: column;
  background: rgba(247,240,228,.96); color: var(--tinte);
  border: 1px solid rgba(38,28,21,.16); border-radius: var(--r-gross); overflow: hidden;
  box-shadow: var(--schatten-3);
}
/* Oberer Teil fuehrt ohne Gleiten zu den Bewertungen auf der Seite, nur die
   Fusszeile geht zu Google (Robin, 27.10.2026). Abgerundet wie die
   Bewertungskarten weiter unten, die Zellen bleiben. */
.hs-haupt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); color: inherit; text-decoration: none; transition: background var(--uebergang); }
.hs-haupt:hover { background: #fff; }
.hs-haupt > span { padding: 10px 14px; border-top: 1px solid var(--linie-2); }
.hs-kopf {
  grid-column: 1 / -1; border-top: 0 !important; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tinte-2); background: var(--ral-1015);
}
.hs-note { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; padding-block: 12px 14px !important; }
.hs-note b { font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 3.2rem; line-height: 1; }
.hs-note > span:not(.sterne) { color: var(--tinte-2); font-size: .9rem; }
.hs-note .sterne { margin-left: auto; align-self: center; color: #D9A23A; }
.hs-note .sterne svg { width: 17px; height: 17px; }
.hs-zelle { display: flex; flex-direction: column; gap: 2px; }
.hs-zelle + .hs-zelle { border-left: 1px solid var(--linie-2); }
.hs-zelle .mono { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-3); }
.hs-zelle b { font-family: "Darker Grotesque", sans-serif; font-size: 1.7rem; line-height: 1; font-weight: 800; }
.hs-fuss {
  display: flex; align-items: center; justify-content: space-between; padding: 11px 14px;
  border-top: 1px solid var(--linie-2); text-decoration: none;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--marke-text);
  transition: background var(--uebergang);
}
.hs-fuss:hover { background: var(--ral-1015); }
.hs-fuss svg { width: 16px; height: 16px; }
/* .hero .mono faerbt sonst auch hier hell ein, und auf dem hellen Feld war
   die Schrift kaum zu lesen. */
.hero .hero-schriftfeld .hs-kopf { color: var(--tinte-2); }
.hero .hero-schriftfeld .hs-zelle .mono { color: var(--tinte-3); }
.hero .hero-schriftfeld .hs-fuss { color: var(--marke-text); }
@media (max-width: 1099px) {
  .hero-schriftfeld { position: relative; right: auto; bottom: auto; margin: 0 0 40px; width: min(100%, 360px); }
}

/* Legende unter dem Hero, auf Papier */
.legende {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--linie); background: var(--papier); position: relative;
}
@media (min-width: 620px)  { .legende { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .legende { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.legende-punkt {
  padding: 24px 26px 26px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 8px;
}
.legende-punkt:last-child { border-right: 0; }
.legende-zeichen { width: 30px; height: 30px; color: var(--laub); }
.legende-punkt > b {
  font-family: "Darker Grotesque", sans-serif; font-weight: 800;
  font-size: 2.5rem; line-height: .9; color: var(--tinte);
}
.legende-punkt > b .einheit { font-size: .44em; color: var(--laub); margin-left: .1em; }
.legende-punkt > span { font-size: .87rem; color: var(--tinte-2); line-height: 1.42; }

/* =========================================================================
   Buehnen: Abschnitte, deren Inhalt am Scrollstand haengt.
   Die Mechanik steht in seite.js, hier nur die Darstellung.
   ========================================================================= */
.buehne-spur { position: relative; }            /* hohe Spur, gibt den Weg vor */
.buehne-halt {
  position: sticky; top: var(--kopf);
  height: calc(100vh - var(--kopf)); min-height: 540px;
  display: flex; align-items: center; overflow: hidden;
}
.buehne-fortschritt {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--linie); z-index: 3;
}
.abschnitt--buehne .buehne-fortschritt { background: var(--linie-dunkel); }
.buehne-fortschritt i {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--marke);
}
.abschnitt--buehne .buehne-fortschritt i { background: var(--marke-licht); }

/* Die Ueberschrift steht in der Buehne selbst und bleibt sichtbar, solange
   die Animation laeuft. Vorher stand sie davor und war weg, sobald die
   Buehne haftete (Robin, 22.10.2026: "warum ist beim Scrollen nicht mehr
   die Ueberschrift zu sehen, der Platz waere ja da"). */
.abschnitt--nur-buehne { padding-top: 0; scroll-margin-top: -12px; }
.buehne-halt.mit-kopf {
  flex-direction: column; align-items: stretch; justify-content: center;
  gap: clamp(14px, 3vh, 40px); padding-block: clamp(18px, 3.4vh, 44px);
}
.buehne-halt.mit-kopf > .bahn { flex: 0 1 auto; min-height: 0; }
.buehne-kopf .kopfzeile-gruppe { margin-bottom: 0; }
.buehne-kopf .blattnummer { margin-bottom: 10px; }
.buehne-kopf h2 { font-size: clamp(2rem, 3.4vw, 3.5rem); max-width: none; }
.buehne-kopf .vorspann { font-size: 1rem; }
/* Bodenaufbau und Jahresringe: Blattnummer, Ueberschrift und Vorspann stehen
   uebereinander oben in der Textspalte, die Zeichnung fuellt die andere
   Spalte in voller Hoehe. Vorher lagen Ueberschrift und Vorspann
   nebeneinander und gegeneinander versetzt (Robin, 27.10.2026). */
.buehne-titel { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--linie-2); }
.abschnitt--buehne .buehne-titel { border-bottom-color: var(--linie-dunkel); }
.buehne-titel .blattnummer { margin-bottom: 12px; }
.buehne-titel h2 { font-size: clamp(2rem, 3.1vw, 3.3rem); margin-bottom: .32em; max-width: none; }
.buehne-titel .vorspann { font-size: 1rem; margin: 0; max-width: 60ch; }
@media (max-width: 959px) {
  /* Schmal: Ueberschrift zuerst, dann Zeichnung, dann die Erklaerung */
  .aufbau-text, .jahr-text { display: contents; }
  .buehne-titel { order: -1; }
}
.buehne-kopf--gestapelt .kopfzeile-gruppe { display: block; }
.buehne-kopf--gestapelt .vorspann { margin: .4em 0 0; max-width: 72ch; }

/* Doppelblick: die Ueberschrift liegt oben im Bild, auf einem Verlauf */
.buehne-kopf--auf-bild {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4; width: auto;
  padding: clamp(22px, 4vh, 44px) max(var(--rand), calc((100% - var(--breite)) / 2)) 120px;
  background: linear-gradient(to bottom, rgba(20,14,10,.86) 0%, rgba(20,14,10,.6) 50%, rgba(20,14,10,0) 100%);
  pointer-events: none;
}
.buehne-kopf--auf-bild h2 { color: #fff; text-shadow: 0 2px 22px rgba(15,10,7,.5); }
.buehne-kopf--auf-bild .vorspann { display: none; }   /* steht unten im Bild schon */
.buehne-kopf--auf-bild { padding-bottom: 90px; }

/* --- Doppelblick: Planansicht und Ausfuehrung --------------------------- */
/* Beide Ebenen zeigen dasselbe Bild in derselben Groesse, die Planansicht ist
   aus dem Luftbild gewonnen. Deshalb sitzt jede Kante per Konstruktion an
   derselben Stelle, und die Ueberblendung deckt sich wirklich.

   Die Buehne fuellt das ganze Sichtfenster. Das loest drei Dinge auf einmal:
   das Bild ist so gross wie moeglich, der Text hat Platz und liegt im Bild,
   und es gibt keine Ecken mehr, die oben anders aussehen koennten als unten. */
.doppel-halt { padding: 0; display: block; }
.doppel-rahmen {
  position: absolute; inset: 0; overflow: hidden; background: var(--nacht-2);
  /* Nachlauf: die Maske ist bei 68 Prozent des Weges fertig, der Rest der Spur
     ist Standzeit. Wer schnell scrollt, kommt trotzdem durch. */
  --q: min(1, calc(var(--p, 0) / .68));
  --schnitt: calc(var(--q) * 152% - 26%);
}
.doppel-rahmen > img,
.doppel-rahmen > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.doppel-rahmen > img { object-fit: cover; }

/* Das Luftbild wird von links oben nach rechts unten aufgezogen, mit weicher
   Kante. Zwei Schreibweisen, weil WebKit die Maske noch mit Praefix erwartet. */
.doppel-tat {
  -webkit-mask-image: linear-gradient(108deg, #000 var(--schnitt), rgba(0,0,0,0) calc(var(--schnitt) + 17%));
  mask-image: linear-gradient(108deg, #000 var(--schnitt), rgba(0,0,0,0) calc(var(--schnitt) + 17%));
}
/* Der helle Strich, der der Kante vorauslaeuft. */
.doppel-schnitt {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(108deg,
    rgba(227,168,119,0) calc(var(--schnitt) + 5%),
    rgba(227,168,119,.9)  calc(var(--schnitt) + 8%),
    rgba(255,255,255,.95) calc(var(--schnitt) + 9%),
    rgba(227,168,119,0)   calc(var(--schnitt) + 13%));
  opacity: calc(min(1, var(--q) * 14) * (1 - max(0, (var(--q) - .88) * 8.4)));
}
/* Die Beschriftung der Planebene: kommt nach dem ersten Drittel und geht
   wieder, bevor das Foto ganz oben liegt. */
.doppel-marken {
  z-index: 2; pointer-events: none;
  opacity: calc(min(1, max(0, (var(--q) - .08) * 5.5)) * (1 - max(0, (var(--q) - .45) * 3)));
  /* Die Beschriftung gehoert zur Zeichnung. Dieselbe Maske wie beim Luftbild,
     nur andersherum, damit sie ueber dem Foto verschwindet statt darauf zu
     liegen. */
  -webkit-mask-image: linear-gradient(108deg, rgba(0,0,0,0) var(--schnitt), #000 calc(var(--schnitt) + 17%));
  mask-image: linear-gradient(108deg, rgba(0,0,0,0) var(--schnitt), #000 calc(var(--schnitt) + 17%));
}
.doppel-marken .fuehrung { stroke: #261C15; stroke-width: 1.4; fill: none; stroke-linecap: round; }
.doppel-marken .punkt { fill: #261C15; }
.doppel-marken text {
  font-family: "Fragment Mono", monospace; font-size: 17px;
  letter-spacing: .04em; fill: #261C15;
  paint-order: stroke fill; stroke: #F7F0E4; stroke-width: 4px; stroke-linejoin: round;
}
.doppel-marken .klein { font-size: 14px; fill: #554739; }

.doppel-stempel {
  position: absolute; z-index: 4; top: 20px;
  font-family: "Fragment Mono", monospace; font-size: .7rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--auf-nacht);
  background: rgba(27,19,13,.84); border: 1px solid rgba(243,234,219,.22);
  border-radius: var(--r-klein); padding: .34em .9em;
}
.doppel-stempel--plan { left: 22px; opacity: calc(1 - max(0, (var(--q) - .35) * 2.2)); }
.doppel-stempel--bau { right: 22px; opacity: calc(max(0, (var(--q) - .45)) * 2.2); }
/* unter die Ueberschrift im Bild, sonst lag der Stempel auf ihr */
@media (min-width: 900px) { .doppel-stempel { top: 168px; } }
/* Schmal steht die Ueberschrift oben im Bild: Stempel darunter, nie auf ihr */
@media (max-width: 899px) { .doppel-stempel { top: 132px; } }

/* Der Text liegt im Bild, auf einem Verlauf, der von unten aufsteigt. */
.doppel-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 150px 0 38px;
  background: linear-gradient(to top,
    rgba(20,14,10,.9) 0%, rgba(20,14,10,.74) 34%, rgba(20,14,10,.3) 68%, rgba(20,14,10,0) 100%);
}
.doppel-text h3 {
  color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: .26em;
  text-shadow: 0 2px 22px rgba(15,10,7,.55);
}
.doppel-text p {
  color: #F0E7D8; font-size: 1rem; max-width: 56ch; margin: 0;
  text-shadow: 0 1px 16px rgba(15,10,7,.6);
}
.doppel-hinweis {
  font-family: "Fragment Mono", monospace; font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: #E3A877; margin-top: 18px;
  display: flex; align-items: center; gap: 10px;
  opacity: calc(1 - max(0, (var(--q) - .08) * 4));
}
.doppel-hinweis::after {
  content: ""; width: 46px; height: 1px; background: currentColor; transform-origin: left center;
  animation: hinweisStrich 1.9s ease-in-out infinite;
}
@keyframes hinweisStrich {
  0%, 100% { transform: scaleX(.35); opacity: .45; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* --- Bodenaufbau: raeumliche Explosionszeichnung ------------------------ */
.aufbau-halt .bahn:not(.buehne-kopf) {
  display: grid; gap: 30px 48px; grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 960px) { .aufbau-halt .bahn:not(.buehne-kopf) { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 30px 72px; } }

.aufbau-bild { position: relative; min-width: 0; }
.aufbau-bild svg { width: 100%; height: auto; max-height: calc(100vh - var(--kopf) - 70px); display: block; margin-inline: auto; }
.aufbau-bild .stapel { transform: translateY(calc(var(--p, 0) * var(--mitte, 0px))); }
.schicht { transform: translateY(calc(var(--p, 0) * var(--hub, 0px))); }
.schicht-marke { opacity: var(--marke, 0); }
.schicht-name { font: 600 15px Inter, sans-serif; fill: var(--auf-nacht); }
.schicht-mass { font: 12px "Fragment Mono", monospace; fill: #B4A18A; }
.fahne { stroke: var(--linie-dunkel); }
.fahne-punkt { fill: var(--marke-licht); }
.gefaelle path { stroke: var(--marke-licht); }
.gefaelle-spitze { fill: var(--marke-licht); stroke: none; }
.gefaelle text { font: 12px "Fragment Mono", monospace; fill: var(--marke-licht); }
.gefaelle { opacity: calc(1 - min(1, var(--p, 0) * 4)); }

.aufbau-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: .3em; }
.aufbau-text p { color: var(--auf-nacht-2); font-size: .97rem; }
.aufbau-hinweis { margin-top: 18px; }
.aufbau-liste { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.aufbau-liste li {
  display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding: .62em 0; border-top: 1px solid var(--linie-dunkel);
  font-size: .92rem; color: #B4A18A; transition: color var(--uebergang);
}
.aufbau-liste li:last-child { border-bottom: 1px solid var(--linie-dunkel); }
.aufbau-liste li > i {
  font-family: "Fragment Mono", monospace; font-style: normal; font-size: .74rem; color: #8C7866;
}
.aufbau-liste li > b { font-weight: 600; color: var(--auf-nacht-2); }
.aufbau-liste li > span { font-family: "Fragment Mono", monospace; font-size: .76rem; }
.aufbau-liste li.hier > b { color: var(--marke-licht); }
.aufbau-liste li.hier > i { color: var(--marke-licht); }
.aufbau-liste li.hier > span { color: var(--auf-nacht-2); }

/* Niedrige Bildschirme (Laptop, Browser nicht im Vollbild): Die Bühne ist so hoch
   wie das Fenster, die Textspalte war höher und wurde unten abgeschnitten
   (Enzo im Abnahmetermin, 01.12.2026). Abstände und Schrift werden dort enger. */
@media (min-width: 901px) and (max-height: 860px) {
  .aufbau-halt .buehne-titel, .ringe-halt .buehne-titel { padding-bottom: 14px; margin-bottom: 14px; }
  .aufbau-halt .buehne-titel .blattnummer, .ringe-halt .buehne-titel .blattnummer { margin-bottom: 6px; }
  .aufbau-halt .buehne-titel h2, .ringe-halt .buehne-titel h2 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); margin-bottom: .22em; }
  .aufbau-halt .buehne-titel .vorspann, .ringe-halt .buehne-titel .vorspann { font-size: .93rem; line-height: 1.5; }
  .aufbau-text h3 { font-size: 1.35rem; }
  .aufbau-text p { font-size: .92rem; line-height: 1.5; margin-bottom: .5em; }
  .aufbau-liste { margin-top: 12px; }
  .aufbau-liste li { padding: .4em 0; font-size: .88rem; }
  .aufbau-hinweis { margin-top: 10px !important; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .aufbau-halt .buehne-titel .vorspann, .ringe-halt .buehne-titel .vorspann { display: none; }
  .aufbau-halt .buehne-titel, .ringe-halt .buehne-titel { padding-bottom: 10px; margin-bottom: 10px; }
}
@media (min-width: 1040px) and (max-height: 700px) {
  .gewerke-spur { padding: 4px; }
  .gewerke-spur button { height: clamp(31px, calc((100vh - var(--kopf) - 190px) / 10.4), 42px); font-size: .84rem; }
  .gewerke-spur svg { width: 22px; height: 22px; }
  .gewerke-halt .buehne-kopf .vorspann { display: none; }
  .gewerk-knopf { margin-top: 14px; }
}

/* --- Gewerke: Durchlauf ------------------------------------------------- */
.gewerke-halt .bahn:not(.buehne-kopf) {
  display: grid; gap: 26px 52px; grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 1040px) {
  .gewerke-halt .bahn:not(.buehne-kopf) { grid-template-columns: 300px minmax(0, 1fr); }
}

/* Die Leiste ist die Legende des Plans (Blatt 04 heisst so): jedes Gewerk
   mit seinem Zeichen, seiner Nummer und seinem Namen auf hellem Papier, in
   festen Spalten und mit Haarlinien dazwischen. Das laufende Gewerk liegt als
   weisse Karte obenauf, Zeichen und Nummer in Orangebraun. Der dunkle
   Kasten von vorher ist weg (Robin, 11.11.2026: "richtig haesslich"). */
.gewerke-spur { display: none; }
@media (min-width: 1040px) {
  .gewerke-spur {
    display: grid; align-content: center; gap: 0;
    background: rgba(247,240,228,.72); border: 1px solid var(--linie-2);
    border-radius: var(--r-gross); padding: 8px;
  }
}
.gewerke-spur button {
  position: relative;
  display: grid; grid-template-columns: 30px 2em minmax(0, 1fr); align-items: center; gap: 12px;
  border: 1px solid transparent; border-radius: var(--r-mittel); background: none;
  /* Alle zehn Zeilen gleich hoch, auch die mit zweizeiligem Namen, und so
     hoch, dass die ganze Legende auch auf einem 768er Schirm hineinpasst */
  height: clamp(42px, calc((100vh - var(--kopf) - 260px) / 10.4), 58px);
  padding: 4px 12px; cursor: pointer; text-align: left;
  font: 600 .9rem/1.15 "Inter", system-ui, sans-serif; color: var(--tinte-2);
  transition: background var(--uebergang), color var(--uebergang), box-shadow var(--uebergang), border-color var(--uebergang);
}
/* Haarlinie zwischen zwei Zeilen, nicht an der laufenden Karte */
.gewerke-spur button + button::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px; background: var(--linie);
}
.gewerke-spur button[aria-current="true"]::before,
.gewerke-spur button[aria-current="true"] + button::before { opacity: 0; }
.gewerke-spur svg { width: 26px; height: 26px; color: var(--tinte-3); transition: color var(--uebergang); }
.gewerke-spur button b {
  font: 400 .78rem/1 "Fragment Mono", monospace; color: var(--tinte-3); letter-spacing: .04em;
}
.gewerke-spur button span { min-width: 0; }
.gewerke-spur button:hover { background: rgba(255,255,255,.5); color: var(--tinte); }
.gewerke-spur button[aria-current="true"] {
  background: #fff; color: var(--tinte); border-color: var(--linie);
  box-shadow: 0 1px 2px rgba(38,28,21,.06), 0 8px 22px rgba(38,28,21,.10);
}
.gewerke-spur button[aria-current="true"] svg,
.gewerke-spur button[aria-current="true"] b { color: var(--marke); }

/* Knopf zur Leistungsseite, bei allen zehn Gewerken derselbe Wortlaut */
.gewerk-knopf { margin-top: 26px; }
#gewerke .gewerk-inhalt > .mono { color: var(--marke-text); }

/* Alle zehn Blaetter liegen in derselben Rasterzelle. Damit richtet sich die
   Hoehe nach dem laengsten Blatt, und nichts springt beim Wechsel. */
.gewerk-buehne { display: grid; min-width: 0; }
.gewerk-blatt {
  grid-area: 1 / 1; min-width: 0;
  display: grid; align-items: center; gap: 24px 40px;
  grid-template-columns: minmax(0, 1fr);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  /* Das abtretende Blatt verschwindet sofort, nur das kommende blendet ein.
     Blenden beide gleichzeitig, liest man beide Texte uebereinander. */
  transition: none;
}
@media (min-width: 760px) { .gewerk-blatt { gap: 26px 52px; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); } }
.gewerk-blatt.hier {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s ease, transform .44s cubic-bezier(.2,.7,.3,1);
}

.gewerk-bild {
  position: relative; margin: 0; border-radius: var(--r-gross); overflow: hidden;
  border: 1px solid var(--linie); background: var(--papier-3); box-shadow: var(--schatten-2);
  aspect-ratio: 4 / 3;
}
@media (min-width: 760px) {
  .gewerk-bild { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--kopf) - 330px); }
}
/* Auf breiten Schirmen quer, damit das Foto die Breite nutzt statt als
   schmaler Streifen neben viel Leere zu stehen. */
@media (min-width: 1280px) {
  .gewerk-bild { aspect-ratio: 3 / 2; }
  .gewerk-blatt { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.gewerk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gewerk-nr {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: "Fragment Mono", monospace; font-size: 3.1rem; line-height: 1;
  color: var(--papier); padding: 0 .3em .14em .26em;
  text-shadow: 0 2px 18px rgba(24,17,12,.75);
}
/* Ein Verlauf unter der Nummer, damit sie auf jedem Bild steht. */
.gewerk-bild::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44%;
  background: linear-gradient(to top, rgba(24,17,12,.62), rgba(24,17,12,0));
  pointer-events: none;
}
.gewerk-zeichen {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 54px; height: 54px; color: var(--papier);
  background: rgba(28,20,14,.78); border: 1px solid rgba(243,234,219,.36);
  border-radius: var(--r-klein); padding: 9px;
}
.gewerk-inhalt { min-width: 0; }
.gewerk-inhalt > .mono { color: var(--laub-text); }
.gewerk-inhalt h3 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin: .16em 0 .3em; }
.gewerk-inhalt p { color: var(--tinte-2); max-width: 52ch; margin-bottom: 20px; font-size: 1.02rem; }
.gewerk-inhalt .liste-haken { margin: 0; }

/* --- Referenzen --------------------------------------------------------- */
.filterleiste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--linie-2); background: transparent; color: var(--tinte-2);
  border-radius: var(--r-klein); padding: .55em 1.1em; font: inherit; font-size: .88rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background var(--uebergang), color var(--uebergang), border-color var(--uebergang);
}
.chip:hover { border-color: var(--marke); color: var(--tinte); }
.chip[aria-pressed="true"] { background: var(--marke); border-color: var(--marke); color: #fff; font-weight: 700; }
.chip-zahl { opacity: .6; margin-left: .45em; font-variant-numeric: tabular-nums; }

.projekte { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px)  { .projekte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .projekte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Auf 16:9 vier nebeneinander: elf Gaerten und die Anfrage-Kachel gehen in
   drei vollen Reihen auf. */
@media (min-width: 1500px) { .projekte { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.projekt {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--linie); border-radius: var(--r-gross); background: #fff;
  overflow: hidden; box-shadow: var(--schatten-1);
  transition: border-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.projekt:hover { border-color: var(--linie-2); transform: translateY(-3px); box-shadow: var(--schatten-3); }
.projekt-bild { display: block; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.projekt-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.projekt:hover .projekt-bild img { transform: scale(1.05); }
.projekt-nr {
  position: absolute; left: 12px; top: 12px;
  font-family: "Fragment Mono", monospace; font-size: .7rem; letter-spacing: .06em;
  background: rgba(20,14,10,.8); border: 1px solid rgba(243,234,219,.2);
  color: var(--auf-nacht); padding: .28em .7em; border-radius: 4px;
}
.projekt-zahl {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(20,14,10,.8); color: var(--auf-nacht);
  border-radius: var(--r-klein); padding: .28em .72em; font-size: .76rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .4em;
}
.projekt-zahl svg { width: 13px; height: 13px; }
.projekt-text { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.projekt-text h3 { font-size: 1.34rem; margin-bottom: .16em; }
.projekt-text p { font-size: .9rem; color: var(--tinte-2); margin: 0; }
.projekt-knopf {
  border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer;
}
.projekt-knopf::after { content: ""; position: absolute; inset: 0; }
.projekt-knopf:focus-visible { outline: none; }
.projekt-knopf:focus-visible::after { outline: 3px solid var(--marke); outline-offset: -3px; border-radius: var(--r-gross); }
.projekt-marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.marken-tag {
  font-family: "Fragment Mono", monospace;
  font-size: .68rem; letter-spacing: .04em; color: var(--tinte-3);
  border: 1px solid var(--linie); border-radius: 4px; padding: .22em .55em;
}
.projekt[hidden] { display: none; }

.projekt--tat {
  border-color: var(--nacht); color: var(--auf-nacht);
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20110.1%2079.6%22%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.09%22%20fill-rule%3D%22evenodd%22%20d%3D%22M65%200%20L67%201%20L69%201%20L71%202%20L72%203%20L73%204%20L74%206%20L75%208%20L75%2012%20L75%2015%20L75%2019%20L74%2022%20L73%2024%20L72%2026%20L70%2028%20L67%2030%20L63%2032%20L58%2035%20L54%2037%20L51%2038%20L50%2040%20L50%2040%20L51%2041%20L53%2041%20L56%2041%20L61%2040%20L66%2039%20L73%2039%20L80%2039%20L88%2039%20L95%2039%20L101%2039%20L104%2039%20L107%2040%20L105%2041%20L99%2042%20L90%2043%20L76%2044%20L66%2045%20L58%2045%20L54%2046%20L52%2047%20L51%2047%20L50%2048%20L49%2049%20L49%2051%20L50%2052%20L53%2052%20L58%2052%20L64%2052%20L71%2052%20L77%2051%20L84%2049%20L92%2048%20L97%2047%20L100%2047%20L101%2048%20L100%2051%20L97%2053%20L93%2056%20L88%2059%20L82%2063%20L74%2066%20L65%2069%20L55%2072%20L44%2075%20L35%2077%20L28%2077%20L24%2076%20L21%2074%20L19%2072%20L16%2071%20L14%2070%20L11%2069%20L9%2068%20L7%2067%20L6%2066%20L6%2065%20L7%2064%20L11%2062%20L17%2060%20L25%2058%20L32%2056%20L36%2054%20L39%2053%20L39%2051%20L37%2051%20L33%2051%20L25%2053%20L15%2055%20L8%2056%20L4%2057%20L2%2056%20L3%2055%20L7%2054%20L12%2052%20L19%2050%20L28%2047%20L35%2045%20L40%2044%20L42%2042%20L43%2041%20L43%2040%20L42%2039%20L42%2039%20L40%2039%20L39%2038%20L37%2037%20L35%2036%20L33%2033%20L31%2031%20L30%2028%20L29%2025%20L29%2021%20L30%2018%20L31%2015%20L33%2012%20L35%209%20L39%207%20L43%205%20L48%203%20L54%202%20L58%201%20L61%200%20L62%200%20L62%200%20L63%200%20L64%200Z%22%2F%3E%3C%2Fsvg%3E") no-repeat right -26px bottom -20px / 178px auto,
    radial-gradient(100% 116% at 96% 2%, rgba(121,167,80,.34) 0%, rgba(121,167,80,0) 56%),
    radial-gradient(86% 108% at 0% 100%, rgba(166,94,46,.22) 0%, rgba(166,94,46,0) 58%),
    var(--nacht);
}
.projekt--tat:hover { transform: none; border-color: var(--nacht); box-shadow: var(--schatten-1); }
.projekt--tat .projekt-text { padding: 30px 28px 28px; justify-content: space-between; gap: 20px; }
.projekt--tat h3 { color: #fff; font-size: 1.6rem; margin-bottom: .2em; }
.projekt--tat p { color: var(--auf-nacht-2); font-size: .93rem; margin: 0; }
.tat-kicker {
  font-family: "Fragment Mono", monospace; display: block;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--laub-licht); margin: 0 0 .9em;
}
.tat-aktion { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
.tat-fuss { font-size: .84rem; color: #B4A18A; margin: 0; }

/* Lichtkasten */
.lichtkasten {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(25,18,13,.96); padding: 20px; place-items: center;
}
.lichtkasten.auf { display: grid; }
.lk-rahmen { width: min(100%, 1220px); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lk-kopf { display: flex; align-items: flex-start; gap: 16px; color: var(--auf-nacht); }
.lk-kopf h3 { margin: 0 0 .1em; font-size: 1.7rem; color: var(--auf-nacht); }
.lk-kopf p { color: var(--auf-nacht-2); font-size: .87rem; margin: 0; }
.lk-zu {
  margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(243,234,219,.28); background: transparent; color: var(--auf-nacht);
  cursor: pointer; font-size: 1.35rem; line-height: 1;
}
.lk-zu:hover { background: rgba(243,234,219,.1); }
.lk-buehne { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.lk-buehne img { max-width: 100%; max-height: min(70vh, 740px); width: auto; border-radius: var(--r-mittel); }
.lk-fuss { display: flex; align-items: center; gap: 12px; }
.lk-blaettern {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  padding: .78em 1.1em; border-radius: var(--r-klein); border: 1px solid rgba(243,234,219,.28);
  background: transparent; color: var(--auf-nacht); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.lk-blaettern:hover:not(:disabled) { background: rgba(243,234,219,.1); }
.lk-blaettern:disabled { opacity: .32; cursor: default; }
.lk-blaettern svg { width: 16px; height: 16px; flex: none; }
.lk-zaehler { font-family: "Fragment Mono", monospace; color: #B4A18A; font-size: .82rem; flex: none; }

/* Auswahl auf der Startseite: drei Gaerten und der Weg zu allen. Bei drei
   Spalten bleiben zwei Gaerten stehen, damit die Reihe aufgeht. */
@media (min-width: 1180px) and (max-width: 1499px) {
  .projekte--auswahl .projekt:nth-child(3) { display: none; }
}
.projekt--mehr { background: var(--nacht); border-color: var(--nacht); }
.projekt--mehr:hover { transform: translateY(-3px); }
.projekt-mehr-verweis {
  height: 100%; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 30px 28px; color: var(--auf-nacht); text-decoration: none;
}
.projekt-mehr-verweis b { font-family: "Darker Grotesque", sans-serif; font-size: clamp(1.8rem, 2.4vw, 2.4rem); line-height: 1; color: #fff; }
.projekt-mehr-verweis > span:not(.tat-kicker) { color: var(--auf-nacht-2); font-size: .93rem; }
.projekt-mehr-verweis .pfeil { width: 34px; height: 34px; color: var(--marke-licht); margin-top: 8px; transition: transform var(--uebergang); }
.projekt-mehr-verweis:hover .pfeil { transform: translateX(6px); }

/* --- Unterseiten ------------------------------------------------------- */
.unterseite { padding-top: var(--kopf); }
.seitenkopf { background: var(--ral-1015); padding: clamp(40px, 6vw, 84px) 0; }
.seitenkopf-raster { display: grid; gap: 32px 64px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .seitenkopf-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.seitenkopf h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); margin-bottom: .3em; }
.seitenkopf .vorspann { font-size: 1.12rem; }
.seitenkopf-bild {
  margin: 0; border-radius: var(--r-gross); overflow: hidden; box-shadow: var(--schatten-3);
  aspect-ratio: 16 / 10;
}
.seitenkopf-bild img { width: 100%; height: 100%; object-fit: cover; }

/* Platzhalter fuer Texte, die vom Kunden kommen. Klar als solcher zu
   erkennen, aber im Layout der fertigen Seite. */
.platzhalter-text {
  border: 1px dashed var(--linie-2); border-radius: var(--r-gross); background: #fff;
  padding: 34px 36px; display: grid; gap: 12px; min-height: 260px; align-content: center;
}
.platzhalter-text .mono { color: var(--marke-text); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.platzhalter-text p { margin: 0; color: var(--tinte-2); font-size: 1.05rem; max-width: 62ch; }
.lesebahn { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .lesebahn { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; } }
/* Solange kein Haltungstext gepflegt ist: Belege als volle Reihe statt halb leerer Spalte */
.haltung-text:empty { display: none; }
@media (min-width: 760px) {
  .lesebahn:has(> .haltung-text:empty) { grid-template-columns: minmax(0, 1fr); }
  .lesebahn:has(> .haltung-text:empty) .haltung-belege { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.haltung-belege { display: grid; gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; }
.haltung-belege > div { background: var(--papier); padding: 22px 24px; display: grid; gap: 6px; align-content: center; }
.haltung-belege .mono { color: var(--laub-text); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.haltung-belege p { margin: 0; color: var(--tinte-2); font-size: .95rem; }
.gedichte { max-width: 980px; }

/* Baustellen-Tagebuch: das Geruest steht auch ohne Eintraege */
.tagebuch { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .tagebuch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tagebuch-eintrag {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--schatten-1);
}
.tagebuch-eintrag > :not(.tagebuch-bild) { margin-inline: 24px; }
.tagebuch-bild {
  aspect-ratio: 4 / 3; background: var(--papier-2); margin-bottom: 18px;
  display: grid; place-items: center;
}
.tagebuch-bild img { width: 100%; height: 100%; object-fit: cover; }
.tagebuch-bild .mono { color: var(--tinte-3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.tagebuch-datum { color: var(--marke-text); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.tagebuch-eintrag h3 { font-size: 1.35rem; margin-bottom: .3em; }
.tagebuch-eintrag > p:last-child { color: var(--tinte-2); font-size: .94rem; margin-bottom: 24px; }
.tagebuch-eintrag--leer { box-shadow: none; border-style: dashed; background: rgba(255,255,255,.55); }
.tagebuch-eintrag--leer .tagebuch-bild { background: repeating-linear-gradient(135deg, var(--papier-2) 0 12px, var(--papier) 12px 24px); }


/* --- Anfrage-Strecke --------------------------------------------------- */
/* Beide Spalten gleich hoch: Ist die linke Spalte laenger als der Schritt rechts,
   waechst der Formularkasten mit, die Knoepfe sitzen unten (Robin, 01.12.2026). */
.weg { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: stretch; --schritte: 7; }
@media (min-width: 1000px) { .weg { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; } }
.weg-seite { display: grid; gap: 28px; align-content: start; }
@media (min-width: 1000px) { .weg-seite { position: sticky; top: calc(var(--kopf) + 24px); align-self: start; } }
.weg-leiste ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie-2); }
.weg-schritt[disabled] { cursor: not-allowed; opacity: .5; }
.weg-schritt[disabled]:hover { background: transparent; color: var(--tinte-2); }
.weg-danach { border: 1px solid var(--linie); border-radius: var(--r-gross); background: var(--papier-2); padding: 22px 22px 20px; }
.weg-danach > .mono { color: var(--marke-text); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.weg-danach ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: danach; }
.weg-danach li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; counter-increment: danach; }
.weg-danach li::before {
  content: counter(danach); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--nacht); color: var(--auf-nacht); font-size: .82rem; font-weight: 700;
}
.weg-danach li b { font-size: .95rem; }
.weg-danach li span { font-size: .88rem; color: var(--tinte-2); line-height: 1.45; }
.weg-danach-fuss { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--linie); font-size: .9rem; color: var(--tinte-2); }
.weg-danach-fuss a { color: var(--marke-text); font-weight: 700; }
@media (max-width: 999px) { .weg-danach { display: none; } }
.weg-ohne { min-height: 0; }

/* Fragen: Auswahl als Kacheln, alle in einer Gruppe gleich groß */
.weg-tafel { display: grid; gap: 6px; }
.weg-tafel[hidden] { display: none; }
.weg-tafel h2:focus { outline: none; }
.weg-tafel > .feld, .weg-tafel > .weg-reihe { margin-bottom: 18px; }
.weg-frage { gap: 10px; }
.weg-hinweis { margin: -4px 0 2px; font-size: .88rem; color: var(--tinte-3); }
.weg-wahl { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
@media (min-width: 560px) {
  .weg-wahl--2, .weg-wahl--3, .weg-wahl--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .weg-wahl--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weg-wahl--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Bleibt eine Antwort allein in der letzten Reihe, nimmt sie die ganze Reihe ein,
   statt neben zwei leeren Feldern zu stehen (etwa „Noch offen“ beim Budget). */
@media (min-width: 560px) and (max-width: 899px) { .weg-wahl--2 > .weg-option:last-child:nth-child(odd), .weg-wahl--3 > .weg-option:last-child:nth-child(odd), .weg-wahl--4 > .weg-option:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .weg-wahl--2 > .weg-option:last-child:nth-child(odd), .weg-wahl--3 > .weg-option:last-child:nth-child(3n+1), .weg-wahl--4 > .weg-option:last-child:nth-child(4n+1) { grid-column: 1 / -1; } }
.weg-option {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 54px; padding: 10px 14px; text-align: left; font: inherit; font-size: .95rem; line-height: 1.3;
  color: var(--tinte); background: var(--papier); border: 1px solid var(--linie-2); border-radius: var(--r-klein);
  cursor: pointer; transition: border-color var(--uebergang), background var(--uebergang), box-shadow var(--uebergang);
}
.weg-option:hover { border-color: var(--marke); background: #fff; }
.weg-option:focus-visible { outline: none; border-color: var(--marke); box-shadow: 0 0 0 3px rgba(166,94,46,.2); }
.weg-option i {
  width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--linie-2);
  border-radius: 5px; background: #fff; transition: background var(--uebergang), border-color var(--uebergang);
}
.weg-option--eins i { border-radius: 50%; }
/* Woerter nie mitten im Wort umbrechen ("Nachmittag / s"), sondern an der Silbe */
.weg-option > span { overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
.weg-option i svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.weg-option[aria-checked="true"] { border-color: var(--marke); background: #fff; box-shadow: inset 0 0 0 1px var(--marke); }
.weg-option[aria-checked="true"] i { background: var(--marke); border-color: var(--marke); }
.weg-option[aria-checked="true"] i svg { opacity: 1; }
.feld.falsch .weg-option { border-color: var(--rot); }
.weg-anderes, .weg-dazu { margin: 4px 0 0; max-width: 520px; }
.weg-dazu[hidden] { display: none; }
.weg-reihe .weg-frage { margin-bottom: 0; }

/* Stil: je Zeile gefällt mir oder eher nicht */
.weg-urteile { display: grid; gap: 8px 28px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
@media (min-width: 760px) { .weg-urteile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.weg-urteil {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 6px 0 6px 2px; border-bottom: 1px solid var(--linie);
}
.weg-urteil-name { font-size: .95rem; }
.weg-urteil-paar { display: grid; grid-template-columns: repeat(2, 116px); border: 1px solid var(--linie-2); border-radius: var(--r-klein); overflow: hidden; }
.weg-urteil-knopf {
  height: 38px; border: 0; background: var(--papier); font: inherit; font-size: .84rem; color: var(--tinte-2); cursor: pointer;
  transition: background var(--uebergang), color var(--uebergang);
}
.weg-urteil-knopf + .weg-urteil-knopf { border-left: 1px solid var(--linie-2); }
.weg-urteil-knopf:hover { background: #fff; color: var(--tinte); }
.weg-urteil-knopf--ja[aria-pressed="true"] { background: var(--laub); color: #fff; }
.weg-urteil-knopf--nein[aria-pressed="true"] { background: var(--tinte-2); color: #fff; }
@media (max-width: 519px) {
  .weg-urteil { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 0; }
  .weg-urteil-paar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 340px) and (max-width: 559px) {
  .weg-wahl--3, .weg-wahl--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Abzweige: Bereiche wählen, die Fragen öffnen sich darunter */
.weg-bereiche { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (min-width: 760px) { .weg-bereiche { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.weg-bereich {
  position: relative; display: grid; align-content: center; justify-items: start; gap: 10px;
  min-height: 112px; padding: 16px; text-align: left; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.25;
  color: var(--tinte); background: var(--papier); border: 1px solid var(--linie-2); border-radius: var(--r-mittel);
  cursor: pointer; transition: border-color var(--uebergang), background var(--uebergang), box-shadow var(--uebergang);
}
.weg-bereich > svg { width: 30px; height: 30px; color: var(--marke); }
.weg-bereich i {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--linie-2); border-radius: 5px; background: #fff;
}
.weg-bereich i svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.weg-bereich:hover { border-color: var(--marke); background: #fff; }
.weg-bereich:focus-visible { outline: none; border-color: var(--marke); box-shadow: 0 0 0 3px rgba(166,94,46,.2); }
.weg-bereich[aria-checked="true"] { background: #fff; border-color: var(--marke); box-shadow: inset 0 0 0 1px var(--marke); }
.weg-bereich[aria-checked="true"] i { background: var(--marke); border-color: var(--marke); }
.weg-bereich[aria-checked="true"] i svg { opacity: 1; }
.weg-aeste { display: grid; gap: 14px; margin-top: 8px; }
.weg-ast { border: 1px solid var(--linie); border-radius: var(--r-gross); background: var(--papier); padding: 20px 22px 6px; }
.weg-ast[hidden] { display: none; }
.weg-ast-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.weg-ast-kopf svg { width: 26px; height: 26px; color: var(--marke); flex: none; }
.weg-ast-kopf h3 { font-size: 1.3rem; margin: 0; }
.weg-ast .weg-option { background: #fff; }

/* Dateien: feste Spalten Name, Größe, Entfernen */
.weg-ablage .datei-flaeche { height: 132px; }
.weg-dateiliste { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--linie); }
.weg-dateiliste[hidden] { display: none; }
.weg-datei {
  display: grid; grid-template-columns: minmax(0, 1fr) 112px 36px; align-items: center; gap: 12px;
  min-height: 46px; border-bottom: 1px solid var(--linie); font-size: .92rem;
}
.weg-datei-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weg-datei-groesse { text-align: right; color: var(--tinte-3); font-size: .84rem; font-variant-numeric: tabular-nums; }
.weg-datei .datei-weg { position: static; }

/* Übersicht vor dem Absenden */
.weg-uebersicht { display: grid; gap: 12px; margin-bottom: 14px; }
.weg-ue-teil { border: 1px solid var(--linie); border-radius: var(--r-mittel); background: var(--papier); padding: 14px 18px; }
.weg-ue-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.weg-ue-kopf h3 { font-size: 1.15rem; margin: 0; }
.weg-ue-aendern {
  flex: none; width: 88px; height: 34px; border: 1px solid var(--linie-2); border-radius: var(--r-klein);
  background: #fff; font: inherit; font-size: .84rem; color: var(--marke-text); cursor: pointer;
}
.weg-ue-aendern:hover { border-color: var(--marke); }
.weg-uebersicht dl { margin: 0; }
.weg-ue-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.weg-ue-zeile:last-child { border-bottom: 0; }
@media (min-width: 700px) { .weg-ue-zeile { grid-template-columns: 230px minmax(0, 1fr); } }
.weg-uebersicht dt { font-size: .82rem; color: var(--tinte-3); line-height: 1.45; }
.weg-uebersicht dd { margin: 0; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.weg-zustimmung .zustimmung { margin: 0; }
.weg-zustimmung { margin-bottom: 8px !important; }
.weg-schritt {
  width: 100%; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: center; gap: 8px;
  min-height: 56px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--linie-2);
  background: transparent; color: var(--tinte-2); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--uebergang), color var(--uebergang);
}
.weg-schritt:hover { background: var(--papier-2); color: var(--tinte); }
.weg-schritt .mono { font-size: .78rem; color: var(--tinte-3); }
.weg-schritt b { font-weight: 600; }
.weg-schritt[aria-current="step"] { background: var(--nacht); color: var(--auf-nacht); }
.weg-schritt[aria-current="step"] .mono { color: var(--marke-licht); }
.weg-schritt.erledigt .mono { color: var(--laub-text); }
@media (max-width: 999px) {
  .weg-leiste ol { display: grid; grid-template-columns: repeat(var(--schritte), minmax(0, 1fr)); border: 0; gap: 6px; }
  .weg-schritt { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 44px; border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 6px; }
  .weg-schritt b { display: none; }
}
.weg-buehne {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--r-gross); box-shadow: var(--schatten-1);
  padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; min-height: 520px;
}
.weg-buehne .melder:empty { display: none; }
.weg-buehne .weg-knoepfe { margin-top: auto; }
.weg-fortschritt { height: 4px; background: var(--papier-3); border-radius: 2px; overflow: hidden; }
.weg-fortschritt i { display: block; height: 100%; width: calc(var(--weg, 1) / var(--schritte) * 100%); background: var(--marke); transition: width .4s ease; }
.weg-buehne[hidden] { display: none; }
.weg-buehne .melder { margin-bottom: 0; }
.weg-tafel h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: .2em; }
.weg-zaehler { color: var(--marke-text); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.weg-vorspann { color: var(--tinte-2); font-size: 1.05rem; margin-bottom: 22px; }
.weg-knoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.weg-knoepfe .knopf { width: 100%; }
.knopf[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Jahresringe -------------------------------------------------------- */
.ringe-halt .bahn:not(.buehne-kopf) {
  display: grid; gap: 32px 52px; grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 960px) { .ringe-halt .bahn:not(.buehne-kopf) { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }

.scheibe { position: relative; min-width: 0; }
.scheibe svg { width: 100%; height: auto; max-height: calc(100vh - var(--kopf) - 90px); display: block; margin-inline: auto; }
.scheibe-grund { fill: #F2E6D1; }
.scheibe-rand { stroke: var(--linie-2); }
.scheibe-rinde { fill: #8C6E52; }
.scheibe-kern { fill: var(--marke); }
.ring { stroke: #CFB58F; stroke-width: 1; opacity: 0; transition: opacity .28s ease; }
.ring.da { opacity: .95; }
.ring--marke { stroke: var(--marke); stroke-width: 2.4; }
.ring.jetzt { stroke: var(--rot); stroke-width: 3; opacity: 1; }
/* Die laufende Jahreszahl ist eine Marke auf der Scheibe, kein Plakat. Gross
   gesetzt wirkte sie wie ein Fremdkoerper im Holz. */
.scheibe-jahr {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: "Fragment Mono", monospace; font-size: clamp(.9rem, 1.5vw, 1.1rem);
  letter-spacing: .04em; line-height: 1;
  color: var(--tinte); background: rgba(247,240,228,.94); border: 1px solid var(--linie-2);
  border-radius: var(--r-klein); padding: .5em .95em; white-space: nowrap;
  box-shadow: 0 6px 26px -18px rgba(42,32,25,.6);
}

.jahr-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.jahr-marke-zeile {
  color: var(--marke-text); margin-bottom: .7em;
}
.jahr-marke-zeile span { color: var(--tinte); font-size: 1.25em; }
/* Feste Mindesthoehe, damit die Jahresknoepfe darunter nicht wandern, wenn ein
   laengerer Text oder ein Zitat kommt. */
.jahr-block { min-height: 250px; }
@media (max-width: 899px) { .jahr-block { min-height: 0; } }
.jahr-text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .3em; }
.jahr-text p { color: var(--tinte-2); font-size: 1.04rem; max-width: 56ch; }
.jahr-zitat {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--linie-2);
  font-family: "Darker Grotesque", sans-serif; font-weight: 700; font-size: 1.55rem;
  line-height: 1.08; color: var(--tinte);
}
/* Alle Jahre in einer Reihe, gleich breit, auch auf dem Handy (vorher brachen
   zwei in eine zweite, breitere Reihe um). */
.jahr-leiste {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-top: 26px;
  border-top: 1px solid var(--linie-2); border-bottom: 1px solid var(--linie-2);
}
.jahr-marke {
  flex: 1 1 auto; border: 0; border-left: 1px solid var(--linie); background: transparent;
  color: var(--tinte-2); padding: .72em .9em; font: inherit; font-size: .88rem; cursor: pointer;
  font-family: "Fragment Mono", monospace; text-align: center;
  transition: background var(--uebergang), color var(--uebergang);
}
.jahr-marke:first-child { border-left: 0; }
@media (max-width: 640px) { .jahr-marke { padding: .72em .1em; font-size: clamp(.72rem, 3.2vw, .86rem); text-align: center; letter-spacing: 0; } }
.jahr-marke:hover { background: var(--papier-3); color: var(--tinte); }
.jahr-marke[aria-pressed="true"] { background: var(--nacht); color: var(--auf-nacht); }

/* --- Bewertungen -------------------------------------------------------- */
.stimmen-kopf { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .stimmen-kopf { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }

.note-kasten {
  border: 1px solid var(--linie); border-radius: var(--r-gross); background: #fff;
  padding: 28px 26px; text-align: center; box-shadow: var(--schatten-1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
/* Die Zeilenhoehe muss mindestens der Schriftgroesse entsprechen. Bei .82
   ragte das Komma der 4,8 aus seiner Zeile heraus und lag auf den Sternen. */
.note-kopf { display: grid; gap: 12px; justify-items: center; }
.note-zahl {
  font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 5rem;
  line-height: 1; color: var(--tinte); display: block;
}
.note-kasten .sterne { justify-content: center; }
.note-kasten .sterne svg { width: 19px; height: 19px; }
.note-kasten p { font-size: .87rem; color: var(--tinte-2); margin: 0; }
.balken-liste { display: grid; gap: 7px; }
.balken-zeile {
  display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 2.2em; gap: 10px; align-items: center;
  font-family: "Fragment Mono", monospace; font-size: .74rem; color: var(--tinte-3);
}
.balken-spur { height: 6px; border-radius: 999px; background: var(--papier-3); overflow: hidden; }
/* display:block ist Pflicht: als span in einem span bliebe der Fueller inline,
   und inline-Elemente ignorieren width und height. Die Spur bliebe leer. */
.balken-fuell {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--marke), var(--marke));
  transition: width .9s cubic-bezier(.22,.8,.3,1);
}
.balken-zeile > span:last-child { text-align: right; }

.stimmen { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .stimmen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Die Karten fuellen die Hoehe des Notenkastens daneben, oben und unten
   buendig. Vorher stand der Kasten links unten ueber (Robin, 22.10.2026). */
@media (min-width: 900px) { .stimmen { height: 100%; grid-auto-rows: minmax(0, 1fr); gap: 24px; } }
/* margin: 0 ist Pflicht: Die Karten sind figure-Elemente, und der Browser
   gibt figure von sich aus 40 px Rand links und rechts und 1em oben und unten.
   Dadurch waren die Karten schmaler als ihre Spalte und schlossen unten nicht
   mit dem Notenkasten ab. */
.stimme {
  margin: 0; border: 1px solid var(--linie); border-radius: var(--r-gross); background: #fff;
  padding: 24px 24px 22px; display: flex; flex-direction: column; box-shadow: var(--schatten-1);
}
.stimme .sterne { margin-bottom: .8em; }
.stimme blockquote { margin: 0 0 18px; font-size: clamp(.96rem, 1vw, 1.08rem); line-height: 1.6; color: var(--tinte); }
.stimme blockquote::before { content: "\201E"; }
.stimme blockquote::after  { content: "\201C"; }
.stimme-fuss { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.stimme-kuerzel {
  width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--marke-lasur); color: var(--marke-text); font-weight: 700; font-size: .82rem;
  font-family: "Fragment Mono", monospace;
}
/* Direkte Kindselektoren. Ein .stimme-fuss span wuerde auch das Kuerzel treffen,
   ihm display:grid nehmen und damit seine Zentrierung und Farbe zerstoeren. */
.stimme-wer > b { display: block; font-size: .9rem; color: var(--tinte); }
.stimme-wer > span { display: block; font-size: .76rem; color: var(--tinte-3); }

/* Die Stimmen kommen abwechselnd von links und rechts herein. */
.stimme.zeigen { transform: translate(var(--von, 0), 16px); }
.stimme.zeigen.da { transform: none; }
/* Vor dem Einfliegen stehen die Karten 42 px seitlich versetzt. Auf schmalen
   Schirmen ragte die rechte damit aus dem Fenster. Der Abschnitt schneidet
   das ab, ohne selbst zu einem Scrollbereich zu werden. */
#stimmen { overflow-x: clip; }

/* --- Karriere ----------------------------------------------------------- */
/* Erst das Team, dann die Stellen (Robin, 22.10.2026: "das sieht sehr trist
   aus, drei weisse Kaesten ohne Bild"). Teamfoto und Inklusion stehen gleich
   hoch nebeneinander. */
.karriere-band { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
@media (min-width: 1000px) { .karriere-band { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } }
.karriere-team {
  margin: 0; border-radius: var(--r-gross); overflow: hidden; box-shadow: var(--schatten-2);
  aspect-ratio: 1700 / 728; min-height: 100%;
}
.karriere-team img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.karriere-inklusion {
  display: flex; flex-direction: column; border-radius: var(--r-gross); overflow: hidden;
  background: var(--nacht); color: var(--auf-nacht); box-shadow: var(--schatten-2);
}
/* Das Foto waechst mit, der Text steht unten: kein leerer dunkler Streifen. */
.karriere-inklusion img { width: 100%; flex: 1 1 auto; min-height: 220px; height: 0; object-fit: cover; object-position: 50% 28%; }
.karriere-inklusion > div { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.karriere-inklusion .mono { color: var(--marke-licht); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.karriere-inklusion p { margin: 0; color: var(--auf-nacht-2); font-size: .95rem; }

/* Die Karten teilen sich ein Raster (subgrid): Bild, Art, Titel, Text,
   Vorteile und die beiden Fusszeilen stehen in allen drei Karten auf
   derselben Hoehe, egal wie lang der Titel ist. */
.stellen { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.stelle {
  display: flex; flex-direction: column;
  border: 1px solid var(--linie); border-radius: var(--r-gross); background: #fff;
  box-shadow: var(--schatten-1); overflow: hidden;
}
.stelle > :not(.stelle-bild) { margin-inline: 26px; }
.stelle-bild { margin: 0 0 22px; aspect-ratio: 16 / 10; overflow: hidden; }
.stelle-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stelle:hover .stelle-bild img { transform: scale(1.03); }
.stelle-art {
  justify-self: start; align-self: start;
  font-family: "Fragment Mono", monospace;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: #7E4420; background: rgba(166,94,46,.13); border-radius: var(--r-klein); padding: .34em .75em;
  display: inline-block; margin-bottom: 12px; width: max-content;
}
.stelle-art.dauerhaft { color: #3F5F1F; background: var(--laub-lasur); }
.stelle h3 { font-size: clamp(1.45rem, 1.7vw, 1.8rem); margin-bottom: .3em; }
.stelle > p { color: var(--tinte-2); font-size: .98rem; margin-bottom: 14px; }
.stelle-bieten { margin: 0 0 20px; }
.stelle-bieten li { font-size: .93rem; }
.stelle-fuss { padding: 16px 0 26px; }
.stelle-fuss .knopf { width: 100%; }
/* Hinter den Grundregeln, sonst gewinnt display: flex und das Raster greift nicht */
@media (min-width: 1080px) {
  .stellen { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); column-gap: 26px; row-gap: 0; }
  .stelle { grid-row: span 7; display: grid; grid-template-rows: subgrid; }
}

/* Blatt 09: die ganze Ausschreibung steht in einem eigenen Fenster, nicht in
   einem Aufklapper. Ein Aufklapper haette das Kartenraster auseinandergezogen
   und die beiden Nachbarkarten leer mitwachsen lassen. */
.stelle-mehr { border-top: 1px solid var(--linie); margin-top: auto; padding-top: 16px; }
.stelle-mehr .textlink { font-size: .92rem; }
.stelle-mehr-text { margin: 0; font-size: .92rem; color: var(--tinte-2); }
.stelle--initiativ { background: var(--papier); border-style: dashed; box-shadow: none; }
@media (min-width: 1080px) { .stellen[data-anzahl="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stellen-leer { border: 1px dashed var(--linie-2); border-radius: var(--r-gross); background: var(--papier); padding: 40px 32px; text-align: center; }
.stellen-leer h3 { margin-bottom: .3em; }
.stellen-leer p { margin: 0; color: var(--tinte-2); }
@media (min-width: 1080px) { .stellen-leer { grid-column: 1 / -1; } }

/* Das Team aus der Werkstatt: Portraets im Hochformat, alle gleich gross */
.team-block { margin: 6px 0 34px; }
.team-kopf { display: grid; gap: 8px; margin-bottom: 16px; }
.team-kopf .mono { color: var(--laub-text); font-size: .74rem; letter-spacing: .12em; margin: 0; }
.team-kopf h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0; }
.team-raster { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) { .person figcaption { padding: 8px 9px 10px; } .person figcaption b { font-size: .86rem; } .person figcaption span { font-size: .74rem; } .person-kuerzel { font-size: 2.2rem; } }
@media (min-width: 640px) { .team-raster { gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .team-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.person { margin: 0; background: #fff; border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; box-shadow: var(--schatten-1); display: flex; flex-direction: column; }
.person-bild { aspect-ratio: 3 / 4; background: var(--papier-2); display: grid; place-items: center; }
.person-bild img { width: 100%; height: 100%; object-fit: cover; }
.person-kuerzel { font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 3.4rem; color: var(--linie-2); }
.person figcaption { padding: 12px 14px 14px; display: grid; gap: 2px; }
/* Name und Aufgabe brechen um statt abgeschnitten zu werden; die Karten einer
   Reihe bleiben trotzdem gleich hoch, weil das Raster sie streckt. */
.person figcaption { align-content: start; flex: 1; }
.person figcaption b { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.person figcaption span { font-size: .86rem; line-height: 1.35; color: var(--tinte-3); min-height: 1.3em; overflow-wrap: anywhere; hyphens: auto; }

/* Haltung und Poesie aus der Werkstatt */
.fliesstext { max-width: 68ch; }
.fliesstext p { font-size: 1.12rem; line-height: 1.7; color: var(--tinte); margin: 0 0 1.1em; }
/* Formatierter Text aus dem Editor der Verwaltung */
.fliesstext h3, .gedicht-text--html h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 1.4em 0 .4em; }
.fliesstext ul, .fliesstext ol, .gedicht-text--html ul, .gedicht-text--html ol { font-size: 1.12rem; line-height: 1.7; margin: 0 0 1.1em; padding-left: 1.4em; }
.fliesstext li, .gedicht-text--html li { margin: 0 0 .35em; }
.fliesstext li > ul, .fliesstext li > ol { margin: .35em 0 0; }
.fliesstext blockquote, .gedicht-text--html blockquote { margin: 0 0 1.1em; padding-left: 1.4em; font-style: italic; color: var(--tinte-2); font-size: 1.12rem; line-height: 1.7; }
.fliesstext a, .gedicht-text--html a { color: var(--marke-text); text-underline-offset: 3px; }
.gedicht-text--html { white-space: normal; }
.gedicht-text--html p { margin: 0 0 .9em; }
.gedicht { padding: 34px 0; border-top: 1px solid var(--linie-2); }
.gedicht:first-child { border-top: 0; padding-top: 0; }
.gedicht h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .5em; }
.gedicht-text { white-space: pre-line; font-size: 1.15rem; line-height: 1.75; color: var(--tinte); margin: 0 0 14px; }
.gedicht-verfasser { font-family: "Fragment Mono", monospace; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--marke-text); margin: 0; }

/* Der Lichtkasten fuer Bilder braucht keine Flaeche, ein Textfenster schon.
   Deshalb hier eine eigene, deckende Karte auf demselben dunklen Grund. */
.stellenfenster .sf-rahmen {
  width: min(100%, 1180px); max-height: 100%; gap: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--papier); color: var(--tinte);
  border: 1px solid var(--linie-2); border-radius: var(--r-gross);
  box-shadow: 0 40px 90px -40px rgba(18,13,9,.85);
}
.stellenfenster .lk-kopf { padding: 24px 24px 16px; color: var(--tinte); align-items: flex-start; }
.stellenfenster .lk-kopf h3 { color: var(--tinte); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.stellenfenster .lk-kopf .mono { color: var(--marke-text); margin-bottom: .3em; }
.stellenfenster .lk-zu { border-color: var(--linie-2); color: var(--tinte-2); }
.stellenfenster .lk-zu:hover { background: var(--papier-3); color: var(--tinte); }
.stellenfenster .lk-fuss {
  padding: 16px 24px 20px; border-top: 1px solid var(--linie);
  justify-content: space-between; align-items: center;
}
.sf-reiter {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 24px 16px; border-bottom: 1px solid var(--linie);
}
.sf-reiter button {
  border: 1px solid var(--linie-2); background: transparent; color: var(--tinte-2);
  border-radius: 7px; padding: .46em .9em; cursor: pointer;
  font-family: "Fragment Mono", monospace; font-size: .76rem; line-height: 1.2;
}
.sf-reiter button:hover { border-color: var(--marke); color: var(--tinte); }
.sf-reiter button[aria-selected="true"] {
  background: var(--nacht); border-color: var(--nacht); color: var(--auf-nacht);
}
.sf-inhalt {
  padding: 22px 24px 24px; overflow-y: auto; overscroll-behavior: contain;
  max-height: min(56vh, 560px);
}
.sf-inhalt > .mono { display: block; margin: 1.4em 0 .3em; color: var(--marke-text); }
.sf-inhalt > .mono:first-child { margin-top: 0; }
.sf-fuss { gap: 18px; flex-wrap: wrap; }
/* Foto der Stelle links, Text rechts. Schmal steht das Foto als Band oben. */
.sf-bild { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--papier-2); }
.sf-bild img { width: 100%; height: 100%; object-fit: cover; }
.sf-rechts { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
@media (min-width: 960px) {
  .stellenfenster .sf-rahmen { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); height: min(760px, 100%); }
  .sf-bild { aspect-ratio: auto; height: 100%; }
  .sf-rechts .sf-inhalt { flex: 1; max-height: none; }
}
.sf-inhalt { display: grid; gap: 14px; align-content: start; }
@media (min-width: 720px) { .sf-inhalt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-gruppe { background: #fff; border: 1px solid var(--linie); border-radius: var(--r-mittel); padding: 18px 20px; }
.sf-gruppe:first-child { grid-column: 1 / -1; }

/* Gewerke (Robin, 02.12.2026): jedes Gewerk ein eigener Block in einem hellen
   Ton aus seinem Video, unten eine Linie, auf der ein kleines Piktogramm steht.
   "Mehr dazu" klappt den langen Text im Block auf. */

.leistung { position: relative; padding-block: clamp(48px, 6vw, 92px) 0; background: var(--ton, transparent);
  box-shadow: 0 0 0 100vmax var(--ton, transparent); clip-path: inset(0 -100vmax); }
.leistung-text .gewerk-mehr { margin-top: 22px; }
.gewerk-mehr .klapp, .gv-zu .klapp { width: 16px; height: 16px; transition: transform .25s ease; }
.gewerk-mehr[aria-expanded="true"] .klapp { transform: rotate(180deg); }
.gewerk-voll { order: 3; grid-column: 1 / -1; padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px); background: rgba(255,255,255,.62);
  border: 1px solid rgba(38,28,21,.08); border-radius: var(--r-gross); }
.gewerk-voll:not([hidden]) { animation: gv-auf .35s ease both; }
@keyframes gv-auf { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.gv-text h4 { font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.1;
  margin: 1.2em 0 .35em; color: var(--tinte); break-after: avoid; }
.gv-text h4:first-child { margin-top: 0; }
.gv-text p { color: var(--tinte-2); margin: 0 0 .75em; orphans: 3; widows: 3; }
.gv-text .liste-haken { margin: .4em 0 .9em; break-inside: avoid; }
@media (min-width: 960px) { .gv-text { column-count: 2; column-gap: 56px; } }
.gv-zu { margin-top: 18px; }
/* Boden: Linie ueber die Breite, das Piktogramm steht darauf, auf der Seite des Texts */
.gewerk-boden { order: 4; grid-column: 1 / -1; position: relative; height: 64px; margin-top: clamp(16px, 2.5vw, 32px);
  border-bottom: 1.5px solid rgba(38,28,21,.28); }
.gewerk-pikto { position: absolute; bottom: -1px; right: 3%; width: 128px; height: 60px; color: rgba(38,28,21,.78); overflow: visible; }
.leistung--gespiegelt .gewerk-pikto { right: auto; left: 3%; }
.gewerk-pikto .pk-flaeche { fill: var(--ton, var(--papier)); }
.gewerk-pikto .pk-akzent { fill: rgba(166,94,46,.22); }
.gewerk-pikto .pk-erde { fill: #CDB18C; }
.gewerk-pikto .pk-stein { fill: #DCD6CC; }
.gewerk-pikto .pk-metall { fill: #B9BEC1; }
.gewerk-pikto .pk-holz { fill: #D7B184; }
.gewerk-pikto .pk-gruen { fill: #9DBB6E; }
.gewerk-pikto .pk-licht { fill: #F0C85A; }
.gewerk-pikto .pk-wasser-strich { stroke: #5F8FBF; }
@media (max-width: 959px) {
  .gewerk-pikto, .leistung--gespiegelt .gewerk-pikto { right: 0; left: auto; width: 104px; height: 49px; }
  .gewerk-boden { height: 52px; }
}
.sf-gruppe h4 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-family: "Darker Grotesque", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--tinte);
}
.sf-gruppe h4 svg { width: 26px; height: 26px; padding: 4px; border-radius: var(--r-klein); background: var(--marke-lasur); color: var(--marke-text); flex: none; }
.sf-gruppe .liste-haken li { font-size: .95rem; }
.sf-fuss .mono { color: var(--tinte-3); font-size: .74rem; max-width: 42ch; }

.liste-haken { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: .42em; }
.liste-haken li { position: relative; padding-left: 1.5em; font-size: .9rem; color: var(--tinte-2); }
.liste-haken li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  background: var(--laub); border-radius: 2px; transform: rotate(45deg);
}
.abschnitt--buehne .liste-haken li { color: var(--auf-nacht-2); }
.abschnitt--buehne .liste-haken li::before { background: var(--laub-licht); }

/* --- Kontakt ------------------------------------------------------------ */
.kontakt-spalten { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 940px) { .kontakt-spalten { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.formular-kasten {
  border: 1px solid var(--linie); border-radius: var(--r-gross); background: #fff;
  padding: 32px 30px; display: flex; flex-direction: column; box-shadow: var(--schatten-1);
}
.feld-reihe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 520px) { .feld-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.feld[hidden] { display: none; }
.feld > label, .feld-titel {
  font-family: "Fragment Mono", monospace; font-size: .7rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--tinte-3);
}
.feld .pflicht { color: var(--rot); }
.feld input, .feld textarea {
  font: inherit; font-size: .96rem; color: var(--tinte);
  padding: .78em .95em; border: 1px solid var(--linie-2); border-radius: var(--r-klein);
  background: var(--papier); width: 100%;
  transition: border-color var(--uebergang), box-shadow var(--uebergang), background var(--uebergang);
}
.feld textarea { resize: vertical; min-height: 130px; }
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--marke); background: #fff; box-shadow: 0 0 0 3px rgba(166,94,46,.2);
}
.feld input::placeholder, .feld textarea::placeholder { color: var(--tinte-3); }
.feld-fehler { font-size: .8rem; color: var(--rot); display: none; }
.feld.falsch input, .feld.falsch textarea, .feld.falsch .waehler-knopf { border-color: var(--rot); }
.feld.falsch .feld-fehler { display: block; }
/* Bei einer Bewerbung ist die Nachricht freiwillig */
.ist-bewerbung .feld[data-feld="nachricht"] .pflicht { display: none; }

/* --- Unterlagen zur Bewerbung -------------------------------------------- */
.unterlagen-hinweis { text-transform: none; letter-spacing: .02em; margin-left: .5em; color: var(--tinte-3); opacity: .85; }
.unterlagen-raster { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .unterlagen-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.datei { position: relative; min-width: 0; }
/* Das echte Feld bleibt bedienbar (Tastatur, Bildschirmleser), ist aber unsichtbar */
.datei-feld { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.datei-flaeche {
  display: grid; justify-items: center; align-content: center; gap: 6px;
  height: 128px; padding: 12px 14px; cursor: pointer; text-align: center;
  border: 1px dashed var(--linie-2); border-radius: var(--r-mittel); background: var(--papier);
  transition: border-color var(--uebergang), background var(--uebergang), box-shadow var(--uebergang);
}
.datei-flaeche svg { width: 28px; height: 28px; color: var(--marke); }
.datei-flaeche b { font-size: .95rem; line-height: 1.25; color: var(--tinte); }
.datei-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .8rem; line-height: 1.3; color: var(--tinte-3);
}
.datei-flaeche:hover, .datei.zieht .datei-flaeche { border-color: var(--marke); background: #fff; }
.datei-feld:focus-visible + .datei-flaeche { border-color: var(--marke); box-shadow: 0 0 0 3px rgba(166,94,46,.2); }
.datei.gewaehlt .datei-flaeche { border-style: solid; border-color: var(--laub, #5E8C34); background: #fff; }
.datei.gewaehlt .datei-name { color: var(--tinte-2); font-weight: 600; }
.datei-weg {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 6px;
  display: grid; place-items: center; border: 0; border-radius: var(--r-klein);
  background: none; color: var(--tinte-3); cursor: pointer;
}
.datei-weg[hidden] { display: none; }
.datei-weg:hover { background: var(--papier-2); color: var(--tinte); }
.datei-weg svg { width: 16px; height: 16px; }
.feld.falsch .datei-flaeche { border-color: var(--rot); }
@media (max-width: 519px) {
  .datei-flaeche { height: 68px; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; gap: 2px 12px; padding: 10px 44px 10px 14px; }
  .datei-flaeche b, .datei-flaeche .datei-name { grid-column: 2; }
  .datei-flaeche svg { grid-row: span 2; }
}

.waehler { position: relative; }
.waehler-knopf {
  width: 100%; display: flex; align-items: center; gap: 10px;
  font: inherit; font-size: .96rem; text-align: left; cursor: pointer;
  padding: .78em .95em; border: 1px solid var(--linie-2); border-radius: var(--r-klein);
  background: var(--papier); color: var(--tinte);
  transition: border-color var(--uebergang), box-shadow var(--uebergang), background var(--uebergang);
}
.waehler-knopf:hover { border-color: var(--marke); }
.waehler-knopf[aria-expanded="true"] { border-color: var(--marke); background: #fff; box-shadow: 0 0 0 3px rgba(166,94,46,.2); }
.waehler-knopf .wert { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waehler-knopf .wert.leer { color: var(--tinte-3); }
.waehler-knopf svg { width: 15px; height: 15px; flex: none; color: var(--tinte-3); transition: transform var(--uebergang); }
.waehler-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.waehler-liste {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--linie-2); border-radius: var(--r-klein);
  box-shadow: var(--schatten-3); padding: 6px; margin: 0; list-style: none;
  max-height: 268px; overflow-y: auto; display: none;
}
.waehler.auf .waehler-liste { display: block; }
.waehler-liste li { padding: .58em .72em; border-radius: 4px; cursor: pointer; font-size: .93rem; }
.waehler-liste li:hover, .waehler-liste li.markiert { background: var(--marke-lasur); }
.waehler-liste li[aria-selected="true"] { color: var(--marke-text); font-weight: 600; }

.zustimmung { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 18px; }
.schalter {
  flex: none; width: 24px; height: 24px; margin-top: 1px; padding: 0;
  border: 1px solid var(--linie-2); border-radius: 5px; background: var(--papier);
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--uebergang), border-color var(--uebergang);
}
.schalter svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity var(--uebergang), transform var(--uebergang); }
.schalter[aria-checked="true"] { background: var(--marke); border-color: var(--marke); }
.schalter[aria-checked="true"] svg { opacity: 1; transform: scale(1); }
.zustimmung .beschriftung { font-size: .86rem; color: var(--tinte-2); line-height: 1.5; cursor: pointer; }
.zustimmung a { color: var(--marke-text); }

.formular-fuss { margin-top: auto; padding-top: 6px; }
.formular-hinweis { font-size: .82rem; color: var(--tinte-3); margin: 14px 0 0; }
.melder { border-radius: var(--r-klein); padding: 14px 16px; font-size: .9rem; margin-bottom: 18px; display: none; }
.melder.zeigen { display: block; }
.melder.gut { background: var(--laub-lasur); color: #3F5F1F; }
.melder.boese { background: rgba(166,94,46,.12); color: #9A2B26; }
.melder a { color: inherit; font-weight: 700; }

.kontakt-seite { display: flex; flex-direction: column; gap: 20px; }
.nap-kasten {
  border: 1px solid var(--nacht); border-radius: var(--r-gross); background: var(--nacht);
  color: var(--auf-nacht); padding: 30px 30px 26px;
}
.nap-kasten h3 { color: var(--auf-nacht); margin-bottom: .5em; }
.nap-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.nap-liste li { display: flex; gap: 13px; align-items: flex-start; font-size: .95rem; }
.nap-liste svg { width: 19px; height: 19px; flex: none; color: var(--marke-licht); margin-top: 2px; }
.nap-liste a { color: var(--auf-nacht); text-decoration: none; font-weight: 600; }
.nap-liste a:hover { color: var(--marke-licht); }
.nap-liste span { color: var(--auf-nacht-2); }
.oeffnung { display: grid; gap: 4px; }
.oeffnung div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--auf-nacht-2); max-width: 22rem; }
.oeffnung div b { color: var(--auf-nacht); font-weight: 600; }
.oeffnung-hinweis { margin-top: 4px; font-size: .78rem; color: var(--auf-nacht-2); opacity: .8; }
/* Laufender Zustand ueber den Zeiten. Die Zeile hat immer ihre Hoehe, auch
   ohne Skript, damit darunter nichts springt. */
.oeffnung-status {
  display: flex; align-items: center; gap: 9px; min-height: 1.6em; margin-bottom: 6px;
  font-size: .9rem; font-weight: 600; color: var(--auf-nacht);
}
.oeffnung-status i {
  width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--auf-nacht-2);
}
.oeffnung-status[data-zustand="offen"] i {
  background: var(--laub-licht); box-shadow: 0 0 0 4px rgba(168,203,124,.18);
}
.oeffnung-status[data-zustand="zu"] i { background: #E07B6F; }
.oeffnung div.heute, .oeffnung div.heute b { color: #fff; }

.karten-kasten {
  flex: 1; min-height: 250px; position: relative; overflow: hidden;
  border-radius: var(--r-gross); border: 1px solid var(--linie);
  background: var(--papier-2); display: flex; flex-direction: column;
}
.karten-platzhalter {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 30px 26px;
}
.karten-platzhalter svg { width: 32px; height: 32px; color: var(--marke-text); }
.karten-platzhalter p { font-size: .87rem; color: var(--tinte-2); max-width: 34ch; margin: 0; }
.karten-kasten iframe { display: block; width: 100%; height: 100%; border: 0; flex: 1; }

/* --- Fuss --------------------------------------------------------------- */
.fuss { background: var(--nacht); color: var(--auf-nacht-2); padding: 60px 0 24px; font-size: .92rem; }
.fuss-raster {
  display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr);
  padding-bottom: 32px; border-bottom: 1px solid var(--linie-dunkel);
}
@media (min-width: 800px) { .fuss-raster { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.fuss img.zeichen { height: 56px; width: auto; margin-bottom: 16px; }
.fuss h4 {
  font-family: "Fragment Mono", monospace; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: #A08D7A; margin: 0 0 1.1em; font-weight: 400;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fuss a { color: var(--auf-nacht-2); text-decoration: none; }
.fuss a:hover { color: var(--auf-nacht); }
.fuss-unten {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  padding-top: 20px; font-size: .82rem; color: #A08D7A;
}
.fuss-recht { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }

/* --- Mobile Anrufleiste ------------------------------------------------- */
.anrufleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 1px; background: var(--linie-dunkel); border-top: 1px solid var(--linie-dunkel);
}
.anrufleiste a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em .5em; text-decoration: none; font-weight: 600; font-size: .92rem;
  background: var(--nacht); color: var(--auf-nacht);
}
.anrufleiste a.haupt { background: var(--marke); color: #fff; }
.anrufleiste svg { width: 17px; height: 17px; }

/* --- Einblenden --------------------------------------------------------- */
.zeigen { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.zeigen.da { opacity: 1; transform: none; }

/* --- Rechtsseiten ------------------------------------------------------- */
.rechtsseite { padding-top: calc(var(--kopf) + 56px); padding-bottom: 84px; }
.rechtsseite .bahn { width: min(100% - 44px, 810px); }
.rechtsseite h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: .3em; color: var(--tinte); }
.rechtsseite h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--linie); }
.rechtsseite h2:first-of-type { margin-top: 1.2em; }
.rechtsseite h3 { font-size: 1.16rem; margin-top: 1.6em; }
.rechtsseite p, .rechtsseite li { color: var(--tinte-2); }
.rechtsseite ul { padding-left: 1.25em; display: grid; gap: .4em; margin: 0 0 1.1em; }
.rechtsseite a:not(.knopf) { color: var(--marke-text); }
.rechtsseite .stand { font-family: "Fragment Mono", monospace; font-size: .78rem; color: var(--tinte-3); }
.rechtsseite address { font-style: normal; }
.hinweis-kasten {
  background: var(--papier-2); border: 1px solid var(--linie);
  border-radius: var(--r-mittel); padding: 20px 22px; margin: 1.4em 0 1.6em;
}
.hinweis-kasten p { margin: 0; font-size: .93rem; }
.hinweis-kasten p + p { margin-top: .7em; }
.hinweis-kasten b { color: var(--tinte); }
.danke-mitte { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.danke-mitte .bahn { width: min(100% - 40px, 640px); }
.danke-zeichen {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center; background: var(--marke-lasur); color: var(--marke-text);
}
.danke-zeichen svg { width: 34px; height: 34px; }
.danke-mitte .knopf { margin-top: 24px; }
.danke-logo { display: block; width: 150px; height: auto; margin: 0 auto 28px; }
@media (max-width: 720px) { .danke-logo { width: 116px; } }

/* --- Umbrueche ---------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --secpad: 80px; }
  .kopf-tat { display: none; }
}
/* Sieben Menuepunkte, Logo und Knopf brauchen rund 1170 px Bahn. Darunter
   uebernimmt das Menue hinter dem Knopf, sonst laeuft die Kopfzeile ueber. */
@media (max-width: 1365px) {
  .navi { display: none; }
  .kopf-tat { margin-left: auto; }
  .burger { display: flex; margin-left: 14px; }
}
@media (max-width: 1080px) { .burger { margin-left: auto; } }
@media (max-width: 900px) {
  /* Auf schmalen Schirmen laufen die Buehnen ohne Haften durch, sonst wird das
     Bild kleiner als der Text darunter und der Sinn der Bewegung geht verloren.
     Sie zeigen dann ihren Endzustand, dafuer sorgt seite.js. */
  .buehne-halt { position: static; height: auto; min-height: 0; padding-block: 4px; }
  .buehne-spur { height: auto !important; }
  .buehne-fortschritt { display: none; }
  /* Ausnahme Doppelblick: die Buehne bleibt auch schmal eine Buehne und fuellt
     das Sichtfenster. Gerade hier lebt die Seite von der Bewegung. */
  [data-buehne="doppel"] { height: 420vh !important; }
  [data-buehne="doppel"] .buehne-halt {
    position: sticky; top: var(--kopf); height: calc(100vh - var(--kopf));
    min-height: 420px; padding-block: 0;
  }
  [data-buehne="doppel"] .buehne-fortschritt { display: block; }
  .doppel-text { padding: 110px 0 30px; }
  .doppel-text p { font-size: .95rem; }
  .doppel-marken text { font-size: 34px; }
  .doppel-marken .klein { font-size: 27px; }
  .gewerk-blatt { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .gewerk-buehne { display: grid; gap: 54px; }
}
@media (max-width: 720px) {
  :root { --secpad: 64px; }
  /* Bei dieser Bildbreite waere die Beschriftung der Planebene nur noch
     ein paar Pixel hoch. Die Ueberblendung wirkt auch ohne sie. */
  .doppel-marken { display: none; }
  body { font-size: 16px; padding-bottom: 52px; }
  .marke-text { display: none; }
  .marke img { height: 48px; }
  .kopf.geschrumpft .marke img { height: 42px; }
  .hero-tat .knopf { flex: 1 1 100%; }
  .anrufleiste { display: flex; }
  .formular-kasten { padding: 24px 20px; }
  .nap-kasten { padding: 24px 22px; }
  .lichtkasten { padding: 12px; }
  .lk-buehne img { max-height: 56vh; }
  .legende-punkt { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .zeigen { opacity: 1; transform: none; }
  .stimme.zeigen { transform: none; }
  /* Der Doppelblick zeigt ohne Bewegung beide Haelften nebeneinander: links die
     Planansicht, rechts die Ausfuehrung. Sonst saehe man nur das Foto, und der
     Sinn des Blattes waere weg. */
  .doppel-rahmen { --q: 1; --schnitt: 50%; }
  .doppel-schnitt { opacity: .9; }
  .doppel-stempel--plan, .doppel-stempel--bau { opacity: 1; }
  .doppel-marken { opacity: 0; }
  .doppel-hinweis { display: none; }
  /* Buehnen laufen ohne Haften durch und zeigen ihren Endzustand. */
  .buehne-halt { position: static; height: auto; min-height: 0; }
  .buehne-spur { height: auto !important; }
  .gewerk-blatt { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .gewerk-buehne { display: grid; gap: 54px; }
  .ring { opacity: .95; }
}

/* Startseite auf dem Handy: die zehn Gewerke als kurze Liste statt zehn
   ganzer Blaetter untereinander. Die ausfuehrliche Fassung steht auf der
   Leistungsseite, jede Zeile fuehrt dorthin (Robin, 01.12.2026). */
@media (max-width: 899px) {
  #gewerke .gewerk-buehne { gap: 10px; grid-template-columns: minmax(0, 1fr); }
  #gewerke .gewerk-blatt {
    position: relative; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center;
    background: #fff; border: 1px solid var(--linie); border-radius: var(--r-klein); padding: 8px 12px 8px 8px;
  }
  #gewerke .gewerk-bild { aspect-ratio: 1 / 1; max-height: none; border-radius: 6px; }
  #gewerke .gewerk-nr, #gewerke .gewerk-zeichen, #gewerke .gewerk-bild::after,
  #gewerke .gewerk-inhalt p, #gewerke .gewerk-inhalt .liste-haken { display: none; }
  #gewerke .gewerk-inhalt > .mono { font-size: .68rem; }
  #gewerke .gewerk-inhalt h3 { font-size: 1.22rem; margin: .12em 0 0; }
  #gewerke .gewerk-knopf { position: absolute; inset: 0; margin: 0; opacity: 0; border-radius: inherit; }
  #gewerke .gewerk-blatt:focus-within { box-shadow: 0 0 0 3px rgba(166,94,46,.25); }
}

/* --- Druck -------------------------------------------------------------- */
/* ------------------------------------------------ Blattleiste (Uebersicht) */
/* Oben im Kopf stehen nur Seiten, die Abschnitte der Uebersicht fuehrt diese
   Leiste. Sie steht rechts in einer eigenen Spalte, die der Seite wirklich
   abgezogen wird: Nichts laeuft mehr darunter durch (Robin, 11.11.2026). Mit
   dem Kopf zusammen bildet sie einen Rahmen um die Seite. Das offene Blatt
   ist ausgeschrieben, senkrecht wie auf einem Ordnerruecken, und immer gleich
   hoch, egal wie lang sein Name ist. Erst ab 1366 px Breite und 700 px Hoehe;
   darunter liegt das Menue im Burger, und die Spalte entfaellt. */
.blattleiste { display: none; }
@media (min-width: 1366px) and (min-height: 700px) {
  :root { --leiste: 88px; }
  body.mit-blattleiste { padding-right: var(--leiste); }
  /* Der Kopf endet buendig mit dem Inhalt, nicht ueber der Leiste */
  body.mit-blattleiste .kopf { padding-right: var(--leiste); }
  /* Der Auftakt bleibt bildschirmbreit, die Leiste ist dabei ausgeblendet */
  body.mit-blattleiste .auftakt { margin-right: calc(-1 * var(--leiste)); }
  .blattleiste {
    display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px;
    position: fixed; z-index: 70; right: 0; top: var(--kopf); bottom: 0; width: var(--leiste);
    /* oben Platz fuer das Siegel, das in der Ecke steht */
    padding: calc(clamp(72px, 6.2vw, 112px) + 34px) 12px 22px;
    background: var(--papier); border-left: 1px solid var(--linie);
    transition: opacity .35s ease;
  }
  .auftakt-laeuft .blattleiste { opacity: 0; pointer-events: none; }
  .blattleiste-kopf {
    font-family: "Fragment Mono", monospace; font-size: .6rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--tinte-3); text-align: center;
  }
  .blattleiste ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .blattleiste a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    height: 36px; padding-top: 9px; overflow: hidden;
    border-radius: var(--r-klein); text-decoration: none; color: var(--tinte-3);
    font-family: "Fragment Mono", monospace; font-size: .8rem; line-height: 1;
    transition: height .4s cubic-bezier(.3,.7,.2,1), background var(--uebergang), color var(--uebergang);
  }
  .blattleiste a b { font-weight: 400; flex: none; }
  .blattleiste a span {
    margin-top: 14px; writing-mode: vertical-rl; transform: rotate(180deg);
    font: 700 .92rem/1 "Inter", system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap;
    opacity: 0; transition: opacity .25s ease;
  }
  .blattleiste a:hover { background: var(--marke-lasur); color: var(--marke-text); }
  .blattleiste a[aria-current="true"] { height: 156px; background: var(--marke); color: #fff; }
  .blattleiste a[aria-current="true"] span { opacity: 1; transition-delay: .12s; }
  /* Die anderen Blaetter nennen ihren Namen beim Zeigen, links neben der Leiste */
  .blattleiste a:not([aria-current="true"]):hover::after,
  .blattleiste a:not([aria-current="true"]):focus-visible::after {
    content: attr(data-name); position: fixed; right: calc(var(--leiste) + 10px);
    transform: translateY(-2px); white-space: nowrap; pointer-events: none;
    background: var(--nacht); color: var(--papier); border-radius: var(--r-klein);
    padding: 7px 11px; font: 600 .84rem/1.2 "Inter", system-ui, sans-serif;
  }
}

/* ------------------------------------------- Karriere auf der Uebersicht */
/* Nur ein Verweis: Team, ganze Ausschreibungen und Bewerbung stehen auf der
   Karriereseite. Die drei Zeilen sind gleich hoch, das Foto daneben endet
   buendig mit Zeilen und Knopf. */
.karriere-kurz { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.karriere-kurz-bild { margin: 0; border-radius: var(--r-gross); overflow: hidden; box-shadow: var(--schatten-1); aspect-ratio: 1700 / 728; }
.karriere-kurz-bild img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .karriere-kurz { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .karriere-kurz-bild { position: relative; aspect-ratio: auto; min-height: 340px; }
  .karriere-kurz-bild img { position: absolute; inset: 0; }
}
.karriere-kurz-liste { display: grid; grid-template-rows: repeat(3, 1fr) auto; gap: 12px; }
.stelle-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 16px;
  padding: 18px 22px; background: #fff; border: 1px solid var(--linie); border-radius: var(--r-mittel);
  text-decoration: none; color: var(--tinte);
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
}
.stelle-zeile .stelle-art { grid-column: 1; margin-bottom: 8px; }
.stelle-zeile b { grid-column: 1; font-family: "Darker Grotesque", sans-serif; font-size: 1.45rem; line-height: 1.1; }
.stelle-zeile .pfeil { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 22px; height: 22px; color: var(--marke-text); transition: transform var(--uebergang); }
.stelle-zeile:hover { border-color: var(--marke); box-shadow: var(--schatten-1); }
.stelle-zeile:hover .pfeil { transform: translateX(4px); }
.karriere-kurz-liste .knopf { justify-content: center; }

/* ------------------------------------------------------ Seite Leistungen */
.seitenkopf-tat { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.leistung-index-nav { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 56px); }
.leistung-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-auto-rows: 1fr; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .leistung-index { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.leistung-index a {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 8px; height: 100%; padding: 16px 16px 18px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--r-mittel);
  text-decoration: none; color: var(--tinte);
  transition: border-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.leistung-index a:hover { border-color: var(--marke); transform: translateY(-2px); box-shadow: var(--schatten-1); }
.li-zeichen { width: 36px; height: 36px; padding: 5px; border-radius: var(--r-klein); background: var(--marke-lasur); color: var(--marke-text); }
.leistung-index b { font-family: "Fragment Mono", monospace; font-weight: 400; font-size: .72rem; letter-spacing: .1em; color: var(--tinte-3); }
.leistung-index li { min-width: 0; }
.leistung-index span { font-family: "Darker Grotesque", sans-serif; font-weight: 700; font-size: 1.22rem; line-height: 1.05; hyphens: auto; overflow-wrap: break-word; }

.leistungen { display: grid; gap: 0; }
.leistung { display: grid; gap: 28px 72px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) {
  .leistung { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .leistung--gespiegelt .leistung-bild { order: 2; }
}
.leistung-bild { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-gross); overflow: hidden; box-shadow: var(--schatten-3); }
.leistung-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Filme der alten Seite laufen still ueber dem Foto, nur solange sichtbar (Termin 01.12.2026) */
.leistung-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.leistung-film.laeuft { opacity: 1; }
.leistung-marke { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.leistung-zeichen { width: 46px; height: 46px; padding: 7px; border-radius: var(--r-klein); background: var(--marke-lasur); color: var(--marke-text); flex: none; }
.leistung-marke .mono { color: var(--marke-text); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.leistung h2 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); margin-bottom: .35em; }
.leistung-text > p { color: var(--tinte-2); font-size: 1.08rem; max-width: 56ch; }
.leistung-text .liste-haken { margin-top: 18px; }

.leistung-weiter { display: grid; gap: 28px; }
.leistung-weiter .kopfzeile-gruppe { margin-bottom: 0; }
/* Breit: Ueberschrift links, Vorspann und Knoepfe rechts in derselben Spalte
   wie bei allen anderen Abschnittskoepfen, damit keine leere Mitte entsteht. */
@media (min-width: 940px) {
  .leistung-weiter { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 0 56px; align-items: end; }
  .leistung-weiter .kopfzeile-gruppe { display: contents; }
  .leistung-weiter .blattnummer { grid-column: 1 / -1; margin-bottom: 8px; }
  .leistung-weiter h2 { grid-column: 1; grid-row: 2 / span 2; margin-bottom: 0; }
  .leistung-weiter .vorspann { grid-column: 2; grid-row: 2; margin-bottom: 24px; }
  .leistung-weiter .zwei-knoepfe { grid-column: 2; grid-row: 3; }
}
.zwei-knoepfe { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .zwei-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zwei-knoepfe .knopf { justify-content: center; text-align: center; }

/* Tagebuch zuerst und gross: der neueste Eintrag links ueber zwei Zeilen,
   die beiden davor rechts als Querkarten. Alle drei schliessen buendig ab,
   das leere Geruest hat dieselbe Form. */
@media (min-width: 960px) {
  .tagebuch { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .tagebuch > .tagebuch-eintrag:first-child { grid-row: 1 / 3; }
  .tagebuch > .tagebuch-eintrag:first-child .tagebuch-bild { aspect-ratio: auto; flex: 1 1 auto; min-height: 340px; }
  .tagebuch > .tagebuch-eintrag:first-child h3 { font-size: clamp(1.7rem, 2.3vw, 2.3rem); }
  .tagebuch > .tagebuch-eintrag:first-child > p:last-child { font-size: 1.02rem; }
  .tagebuch > .tagebuch-eintrag:not(:first-child) {
    display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    min-height: 220px;
  }
  .tagebuch > .tagebuch-eintrag:not(:first-child) .tagebuch-bild { grid-row: 1 / 4; aspect-ratio: auto; margin: 0; }
  .tagebuch > .tagebuch-eintrag:not(:first-child) > :not(.tagebuch-bild) { margin-inline: 22px; }
  .tagebuch > .tagebuch-eintrag:not(:first-child) .tagebuch-datum { margin-top: 22px; }
}
.tagebuch-weitere { display: grid; gap: 24px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .tagebuch-weitere { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .tagebuch-eintrag--fuell { display: none; } }
.tagebuch-bild { margin-inline: 0; margin-top: 0; overflow: hidden; }
/* Im grossen Raster gibt der Text die Hoehe vor, nicht das Foto: Das Bild
   liegt absolut in seiner Flaeche und fuellt sie. */
@media (min-width: 960px) {
  .tagebuch > .tagebuch-eintrag .tagebuch-bild { position: relative; }
  .tagebuch > .tagebuch-eintrag .tagebuch-bild img { position: absolute; inset: 0; }
}
/* Tagebuch in Reihen: Breite nach Format, alle Fotos einer Reihe gleich hoch */
.tagebuch.tagebuch--reihen { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.tagebuch-reihe { display: flex; gap: 24px; align-items: stretch; }
.tagebuch-reihe > .tagebuch-eintrag { flex-basis: 0; flex-shrink: 1; min-width: 0; }
.tagebuch-reihe .tagebuch-bild { position: relative; aspect-ratio: 4 / 3; margin-bottom: 18px; }
.tagebuch-reihe .tagebuch-eintrag--hoch .tagebuch-bild { aspect-ratio: 3 / 4; }
.tagebuch-reihe .tagebuch-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tagebuch-reihe .tagebuch-eintrag h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
@media (max-width: 759px) {
  .tagebuch-reihe { flex-direction: column; }
  .tagebuch-reihe > .tagebuch-eintrag { flex-basis: auto; }
}
.tagebuch-weiter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; margin-top: 28px; }
.textlink--leise { color: var(--tinte-2); border-color: var(--linie-2); font-weight: 500; }

/* Leere Karten zeigen angedeutete Zeilen, damit das Geruest nicht halb leer wirkt. */
.tagebuch-eintrag--leer[aria-hidden="true"] :is(.tagebuch-datum, h3, p) {
  background: var(--papier-2); border-radius: 4px; color: transparent; user-select: none;
}
.tagebuch-eintrag--leer[aria-hidden="true"] .tagebuch-datum { width: 32%; }
.tagebuch-eintrag--leer[aria-hidden="true"] h3 { width: 72%; }
.tagebuch-eintrag--leer[aria-hidden="true"] > p:last-child { width: 86%; height: 2.6em; }

@media print {
  .kopf, .schublade, .schleier, .anrufleiste, .lichtkasten, .filterleiste,
  .hero-tat, .karten-kasten, .formular-kasten, .hoehenlinien,
  .buehne-fortschritt, .gewerke-spur { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; padding: 0; }
  .hero { padding-top: 0; }
  .hero-bild, .hero-schleier { display: none; }
  h1, h2, h3, .hero h1, .hero h1 .zeile2 { color: #000 !important; }
  .abschnitt, .abschnitt--buehne, .fuss, .nap-kasten, .stimme, .projekt { background: #fff !important; color: #000 !important; }
  p, li, .vorspann { color: #222 !important; }
  .abschnitt { padding-block: 18pt; }
  .buehne-halt { position: static; height: auto; }
  .gewerk-blatt { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  a { text-decoration: none; color: #000; }
  .zeigen { opacity: 1; transform: none; }
}

/* Hinweis auf „Ihr Weg“: kleine Aufträge gehören ins Kontaktformular */
.weg-kleinauftrag { margin: 14px 0 0; max-width: 60ch; font-size: .95rem; color: var(--tinte-2); padding-top: 14px; border-top: 1px solid var(--linie); }
.weg-kleinauftrag a { color: var(--marke-text); font-weight: 600; }
