/* =====================================================================================
   Vorlage 46 Architekturbüro · Lichtmaß Architekten · Raster, Abschnitte, Modell
   1 Grund   2 Kopf (Schriftfeld-Leiste)   3 Blatt 01 Studie   4 Blatt 02 Entwurf (klebend)
   5 Blatt 03 Leistung   6 Blatt 04 Projekte   7 Blatt 05 Büro   8 Blatt 06 Jobs
   9 Blatt 07 Kontakt   10 Fuß   11 Auftritte und Bewegungsstufen   12 Handy
   ===================================================================================== */

/* ---------- 1 · Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--kopf); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--schrift); font-size: 17px; line-height: 1.6; font-weight: 400;
  font-feature-settings: "kern", "tnum" 0; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bergblau); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bergblau-tief); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 4vw, 56px); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.1vw, 46px); letter-spacing: -0.02em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--bergblau); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinte); color: #fff; padding: 10px 16px; }
.sprung:focus { top: 12px; }
.behaelter { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.leise { color: var(--leise); }
.klein { font-size: 13px; color: var(--leise); line-height: 1.5; }

.marke {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bergblau); margin-bottom: 18px;
}
.marke-hell { color: #9fc0de; }
.marke-laerche { color: var(--laerche-text); }

/* Knöpfe: Rechteck mit kleiner Ecke, wie geschnittener Karton */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  background: var(--bergblau); color: #fff; border: 1px solid var(--bergblau); border-radius: var(--radius);
  font: 500 15px/1 var(--schrift); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--weich), color .25s var(--weich), border-color .25s var(--weich);
}
.knopf:hover { background: var(--bergblau-tief); border-color: var(--bergblau-tief); color: #fff; }
.knopf-linie { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf-linie:hover { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.knopf-leise { background: transparent; color: var(--tinte); border-color: var(--beton-3); min-height: 44px; padding: 0 16px; font-size: 14px; }
.knopf-leise:hover { background: var(--weiss); color: var(--tinte); border-color: var(--tinte); }
.knopf-laerche { background: var(--laerche); border-color: var(--laerche); }
.knopf-laerche:hover { background: #9a4813; border-color: #9a4813; }

/* Blatt: jeder Abschnitt ist ein Planblatt */
.blatt { position: relative; padding: var(--abstand) 0; }
.blatt-kopf { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.blatt-kopf h2 + p { margin-top: 20px; font-size: 18px; }

/* ---------- 2 · Kopf: Schriftfeld-Leiste ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf);
  background: rgba(245, 244, 240, 0.97); border-bottom: 1px solid var(--tinte);
}
.kopf-innen { display: flex; align-items: stretch; height: 100%; padding: 0 0 0 var(--rand); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--tinte); text-decoration: none; padding-right: 22px; border-right: 1px solid var(--beton-2); }
.logo:hover { color: var(--tinte); }
.logo-zeichen { width: 30px; height: 30px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo-text span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--leise); }
.schriftfeld { display: flex; }
.schriftfeld a, .kopf-tel {
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px; min-width: 96px;
  border-right: 1px solid var(--beton-2); color: var(--tinte); text-decoration: none; position: relative;
  transition: background-color .25s var(--weich);
}
.schriftfeld a:hover, .kopf-tel:hover { background: var(--weiss); color: var(--tinte); }
.sf-l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); line-height: 1.3; }
.sf-w { font-size: 14px; font-weight: 500; line-height: 1.3; }
.schriftfeld a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bergblau); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--weich); }
.schriftfeld a.ist-aktiv::after { transform: scaleX(1); }
.schriftfeld a.ist-aktiv .sf-w { color: var(--bergblau); }
.kopf-tel { margin-left: auto; border-left: 1px solid var(--beton-2); border-right: 0; }
.knopf-kopf { align-self: center; margin: 0 var(--rand) 0 16px; min-height: 40px; padding: 0 18px; font-size: 14px; }
.menue { display: none; }

/* ---------- 3 · Blatt 01 · Besonnungsstudie ---------- */
.blatt-studie { padding: calc(var(--kopf) + 24px) 0 40px; }
.studie {
  display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "text modell" "werkzeug modell"; column-gap: clamp(28px, 3.2vw, 56px);
  max-width: 1640px; margin: 0 auto; padding: 0 var(--rand);
}
.studie-text { grid-area: text; padding-top: clamp(8px, 2vh, 28px); }
.studie-text .einleitung { margin-top: 22px; font-size: 18px; line-height: 1.55; color: #33373b; max-width: 30em; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.studie-modell { grid-area: modell; position: relative; min-width: 0; }
.werkzeug { grid-area: werkzeug; align-self: start; padding-top: clamp(28px, 5vh, 56px); }

.buehne {
  position: relative; margin: 0; overflow: hidden; border: 1px solid var(--beton-2); border-radius: var(--radius-blatt);
  height: clamp(460px, calc(100svh - var(--kopf) - 64px - 112px), 780px); background: #dcdad5; border-bottom: 0;
}
.modell { width: 100%; height: 100%; display: block; }
#modell-studie { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#modell-studie.zieht { cursor: grabbing; }
.modell text { font-family: var(--mono); font-size: 13px; }

.nordpfeil { position: absolute; left: 18px; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tinte); pointer-events: none; }
.nordpfeil svg { width: 38px; height: 38px; }
.nordpfeil span { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.vorfuehrung {
  position: absolute; right: 16px; bottom: 16px; padding: 8px 14px; background: var(--tinte); color: #fff; font-size: 13px;
  border-radius: var(--radius); pointer-events: none; transition: opacity .5s var(--weich), transform .5s var(--weich);
}
html.js .vorfuehrung { opacity: 0; transform: translateY(6px); }
html.js .vorfuehrung.ist-an { opacity: 1; transform: none; }
.vorfuehrung.ist-an { opacity: 1; transform: none; }

/* Schriftfeld der Studie: liegt unter dem Modell wie das Schriftfeld unter einem Plan */
.tafel {
  margin: 0; background: var(--weiss); border: 1px solid var(--tinte);
  display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.35fr; font-size: 14px; line-height: 1.3;
}
.tafel > div { padding: 7px 12px 8px; border-right: 1px solid var(--beton-2); min-width: 0; }
.tafel > div:nth-child(4n) { border-right: 0; }
.tafel > div:nth-child(-n+4) { border-bottom: 1px solid var(--beton-2); }
.tafel dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); }
.tafel dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.tafel b { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.tafel .jetzt { display: block; font-size: 12.5px; font-weight: 400; color: var(--leise); margin-top: 2px; }
.tafel .jetzt.sonnig { color: var(--gras); }
.tafel-projekt dd { font-weight: 600; }

/* Werkzeug: Stichtag, Sonnenbahn, Uhrzeit */
.anleitung { font-size: 15px; color: var(--leise); margin-bottom: 14px; max-width: 30em; }
.tage { display: flex; margin: 0; padding: 0; border: 1px solid var(--tinte); border-radius: var(--radius); position: relative; }
.tage input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.tage label {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px;
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .3s var(--weich), color .3s var(--weich);
}
.tage label:not(:first-of-type) { border-left: 1px solid var(--tinte); }
.tage input:checked + label { background: var(--tinte); color: #fff; }
.tage input:focus-visible + label { outline: 2px solid var(--bergblau); outline-offset: 2px; position: relative; z-index: 1; }
.tage input:not(:checked) + label:hover { background: var(--weiss); }

.bahn-feld { display: grid; grid-template-columns: minmax(150px, 196px) 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.bahn { width: 100%; height: auto; touch-action: none; cursor: pointer; overflow: visible; }
.bahn-ring { fill: none; stroke: var(--beton-3); stroke-width: 1; }
.bahn-ring.leise { stroke: var(--beton-2); }
.bahn-achse { fill: none; stroke: var(--beton-2); stroke-width: 1; stroke-dasharray: 2 3; }
.bahn-hr { font: 500 11px var(--mono); fill: var(--tinte); text-anchor: middle; }
.bahn-grad { font: 400 9px var(--mono); fill: var(--leise); }
.bahn-bogen { fill: none; stroke: var(--beton-3); stroke-width: 1.2; transition: stroke .4s var(--weich), stroke-width .4s var(--weich); }
.bahn-bogen.ist-aktiv { stroke: var(--laerche); stroke-width: 2.4; }
.bahn-stunden circle { fill: var(--laerche); }
.bahn-stunden text { font: 400 9px var(--mono); fill: var(--laerche-text); text-anchor: middle; }
.bahn-strahl { fill: none; stroke: var(--laerche); stroke-width: 1; stroke-dasharray: 3 3; }
.bahn-sonne circle { fill: var(--laerche); stroke: #fff; stroke-width: 2; }
.bahn-sonne .bahn-hof { fill: var(--laerche); fill-opacity: 0.16; stroke: none; }
.bahn-titel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte); font-weight: 500; line-height: 1.5; }
.bahn-titel span { color: var(--leise); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.bahn-wert { margin-top: 12px; font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bahn-wert small { font-size: 14px; font-weight: 400; letter-spacing: 0; margin-left: 6px; color: var(--leise); }
.bahn-klein { margin-top: 10px; font-size: 13px; color: var(--leise); }

.uhr-feld { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 18px; }
.uhr-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--laerche) var(--anteil, 50%), var(--beton-3) var(--anteil, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--beton-3); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--laerche); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--laerche); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--laerche), 0 2px 6px rgba(20, 24, 28, .25); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--laerche); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--laerche), 0 2px 6px rgba(20, 24, 28, .25); }
input[type="range"]:focus-visible { outline: 2px solid var(--bergblau); outline-offset: 2px; }

/* ---------- 4 · Blatt 02 · Vom Grundstück zum Haus ---------- */
.blatt-entstehung { padding-bottom: 0; }
.blatt-entstehung > .blatt-kopf { max-width: var(--breite); margin-left: auto; margin-right: auto; padding: 0 var(--rand); margin-bottom: 0; }
.blatt-entstehung > .blatt-kopf h2, .blatt-entstehung > .blatt-kopf p { max-width: 720px; }
.bau {
  display: grid; grid-template-columns: minmax(300px, 0.36fr) minmax(0, 0.64fr); column-gap: clamp(24px, 3vw, 56px);
  max-width: 1640px; margin: 0 auto; padding: 0 var(--rand);
}
.bau-buehne {
  grid-column: 2; grid-row: 1; position: sticky; top: var(--kopf); align-self: start;
  height: calc(100svh - var(--kopf)); padding: 22px 0; z-index: 1;
}
.bau-buehne .modell { border: 1px solid var(--beton-2); border-radius: var(--radius-blatt); background: #dcdad5; overflow: hidden; }
.bau-feld { position: absolute; left: 1px; top: 23px; display: flex; background: rgba(255, 255, 255, 0.96); border-right: 1px solid var(--tinte); border-bottom: 1px solid var(--tinte); font-size: 14px; }
.bau-feld span { display: flex; flex-direction: column; padding: 7px 14px 8px; border-right: 1px solid var(--beton-2); min-width: 86px; }
.bau-feld span:last-child { border-right: 0; }
.bau-feld i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); }
.bau-feld b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bau-leiste { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bau-leiste li { width: 44px; height: 3px; background: rgba(21, 24, 27, 0.18); position: relative; overflow: hidden; }
.bau-leiste li::after { content: ""; position: absolute; inset: 0; background: var(--bergblau); transform: scaleX(var(--f, 0)); transform-origin: left; }
html.bau-nacht .bau-leiste li { background: rgba(255, 255, 255, 0.25); }
html.bau-nacht .bau-leiste li::after { background: #ffd28a; }
.bau-schritte { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.schritt { min-height: 100svh; display: flex; align-items: center; }
.schritt:first-child { min-height: 90svh; }
/* Letzter Schritt mit Nachlauf (unteres Polster): das Modell bleibt stehen, bis der Abend ganz da ist,
   und die Karte klebt dabei in der Mitte, damit links nichts leer wird. js/entstehung.js rechnet das Polster heraus. */
.schritt:last-child { flex-direction: column; align-items: flex-start; padding: calc(50svh - 170px) 0 0; }
.schritt-nachlauf { flex: none; height: 45svh; }
.schritt:last-child .schritt-karte { position: sticky; top: calc(50svh - 150px); }
.schritt-karte {
  background: var(--weiss); border: 1px solid var(--beton-2); padding: 28px 28px 26px; max-width: 420px;
  transition: opacity .5s var(--weich), transform .6s var(--weich), border-color .5s var(--weich);
}
html.js .bau-an .schritt-karte { opacity: 0.32; transform: scale(0.97); }
html.js .bau-an .schritt.ist-aktiv .schritt-karte { opacity: 1; transform: none; border-color: var(--tinte); }
.schritt-nr { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bergblau); margin-bottom: 14px; font-weight: 500; }
.schritt h3 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 14px; }
.schritt p + p { margin-top: 0; }
.schritt-wert { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--beton-2); font-size: 15px; color: var(--leise); }
.schritt-wert b { color: var(--tinte); font-weight: 500; font-size: 18px; }

/* ---------- 5 · Blatt 03 · Leistung (dunkles Band) ---------- */
.blatt-dunkel { background: var(--beton-4); color: var(--nacht-text); }
.blatt-dunkel .leise { color: var(--nacht-leise); }
.blatt-dunkel :focus-visible { outline-color: #fff; }
.phasen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.18); position: relative; }
.phasen::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #ffd28a; transform: scaleX(var(--linie, 1)); transform-origin: left; transition: transform 1.4s var(--weich); }
.phasen li { padding: 26px 18px 8px 0; position: relative; }
.phasen li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--beton-4); border: 1px solid #ffd28a; border-radius: 50%; }
.phase-nr { display: block; font-family: var(--mono); font-size: 13px; color: #ffd28a; margin-bottom: 14px; }
.phasen h3 { font-size: 18px; margin-bottom: 10px; }
.phasen p { font-size: 15px; color: var(--nacht-leise); line-height: 1.55; }
.phasen .phase-dauer { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: #d3dbe2; }
.honorar { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-size: 16px; color: var(--nacht-leise); }
.honorar b { color: var(--nacht-text); font-weight: 500; }

/* ---------- 6 · Blatt 04 · Projekte ---------- */
.blatt-projekte { background: var(--papier); }
.zahlen { list-style: none; margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--tinte); border-bottom: 1px solid var(--beton-2); }
.zahlen li { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.zahlen li + li { padding-left: 20px; border-left: 1px solid var(--beton-2); }
.zahlen b { font-size: clamp(44px, 5vw, 68px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gras); }
.zahlen span { font-size: 15px; color: var(--leise); }
.plaene { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.plan { grid-column: span 5; background: var(--weiss); border: 1px solid var(--beton-2); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.plan-gross, .plan-breit { grid-column: span 7; }
.plan .bild-platzhalter { flex: 1; aspect-ratio: auto; min-height: clamp(260px, 26vw, 400px); }
.bild-platzhalter {
  margin: 0; position: relative; aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: 16px;
  background: repeating-linear-gradient(135deg, #eceae5 0 1px, #f4f3ef 1px 9px); border: 1px solid var(--beton-2);
}
.bild-platzhalter figcaption { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--leise); background: rgba(255, 255, 255, 0.92); padding: 8px 10px; max-width: 36em; }
.plan-feld { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--tinte); font-size: 14px; }
.plan-feld > div { padding: 7px 10px 8px; border-bottom: 1px solid var(--beton-2); min-width: 0; }
.plan-feld > div:nth-child(even) { border-left: 1px solid var(--beton-2); }
.plan-feld > div:last-child, .plan-feld > div:nth-last-child(2):nth-child(even) { border-bottom: 0; }
.plan-feld .plan-titel { grid-column: 1 / -1; border-left: 0 !important; }
.plan-feld .plan-titel + div { border-left: 0; }
.plan-feld .plan-titel ~ div:nth-child(odd) { border-left: 1px solid var(--beton-2); }
.plan-feld .plan-titel ~ div:nth-child(even) { border-left: 0; }
.plan-feld dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); }
.plan-feld dd { margin: 2px 0 0; font-weight: 500; }
.plan-titel dd { font-size: 19px; letter-spacing: -0.01em; }
.stimmen { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(56px, 7vw, 96px); }
.stimme { margin: 0; padding-top: 22px; border-top: 1px solid var(--tinte); }
.stimme blockquote { margin: 0; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; font-weight: 300; letter-spacing: -0.01em; }
.stimme figcaption { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--leise); }

/* ---------- 7 · Blatt 05 · Büro ---------- */
.blatt-buero { background: var(--weiss); border-top: 1px solid var(--beton-2); }
.buero-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.buero-raster .blatt-kopf { margin-bottom: 0; }
.zeiten { margin: 36px 0 0; border-top: 1px solid var(--tinte); font-size: 15px; }
.zeiten > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--beton-2); }
.zeiten dt { color: var(--leise); }
.zeiten dd { margin: 0; font-weight: 500; text-align: right; }
.zeiten .ist-heute dt, .zeiten .ist-heute dd { color: var(--bergblau); }
.heute[hidden] { display: none; }
.heute { display: inline-block; margin-left: 8px; padding: 1px 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bergblau); color: #fff; border-radius: 2px; vertical-align: 2px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bild-portrait { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.team h3 { font-size: 18px; }
.team p { margin-top: 6px; font-size: 15px; color: var(--leise); line-height: 1.5; }

/* ---------- 8 · Blatt 06 · Jobs ---------- */
.blatt-jobs { background: var(--laerche-hell); }
.stellen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stelle { background: var(--weiss); border-top: 3px solid var(--laerche); padding: 26px 26px 24px; display: flex; flex-direction: column; }
.stelle-art { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--laerche-text); margin-bottom: 12px; }
.stelle h3 { font-size: 22px; margin-bottom: 12px; }
.stelle > p:not(.stelle-art):not(.stelle-geld) { font-size: 15.5px; color: #33373b; }
.stelle ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--leise); }
.stelle li { padding: 7px 0 7px 18px; border-top: 1px solid var(--beton-1); position: relative; }
.stelle li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--laerche); }
.stelle-geld { margin-top: auto !important; padding-top: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stelle-praktikum { border-top-color: var(--gras); }
.stelle-praktikum .stelle-art { color: var(--gras); }
.stelle-praktikum li::before { background: var(--gras); }
.bewerben { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px 40px; align-items: center; padding: 26px 28px; background: var(--weiss); border: 1px solid var(--beton-2); }
.bewerben h3 { font-size: 20px; }
.bewerben ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: b; font-size: 15px; color: var(--leise); }
.bewerben li { counter-increment: b; padding-left: 30px; position: relative; }
.bewerben li::before { content: counter(b); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border: 1px solid var(--laerche); border-radius: 50%; font: 500 11px/19px var(--mono); text-align: center; color: var(--laerche-text); }
.bewerben b { color: var(--tinte); font-weight: 500; }

/* ---------- 9 · Blatt 07 · Kontakt ---------- */
.blatt-kontakt { background: var(--nacht); color: var(--nacht-text); }
.blatt-kontakt :focus-visible { outline-color: #fff; }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.kontakt-text > p:not(.marke) { margin-top: 20px; font-size: 18px; color: var(--nacht-leise); max-width: 32em; }
.kontakt-text address { margin-top: 26px; font-size: 17px; line-height: 1.7; }
.kontakt-text a { color: #bcd6ee; }
.kontakt-text a:hover { color: #fff; }
.karte { margin: 34px 0 0; border: 1px solid rgba(255, 255, 255, 0.16); background: var(--nacht-2); }
.karte-bild { width: 100%; height: auto; }
.karte-berg { fill: #223041; }
.karte-inn { fill: none; stroke: #2f5f8a; stroke-width: 9; stroke-linecap: round; }
.karte-strasse { fill: none; stroke: #2c3a49; stroke-width: 4; }
.karte-bahn { fill: none; stroke: #5b6b7b; stroke-width: 1.5; stroke-dasharray: 8 5; }
.karte-bhf { fill: #5b6b7b; }
.karte-weg { fill: none; stroke: #e3894a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.karte-ziel circle { fill: var(--laerche); fill-opacity: 0.35; }
.karte-ziel .karte-punkt { fill: #ffd28a; fill-opacity: 1; }
.karte-name { font: 400 11px var(--mono); fill: #9fb0c0; letter-spacing: 0.06em; }
.karte-name-ziel { fill: #ffd28a; font-weight: 500; }
.karte figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--nacht-leise); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.formular { background: var(--weiss); color: var(--tinte); padding: clamp(24px, 3vw, 36px); border-top: 3px solid var(--bergblau); }
.formular-titel { font-size: 24px; margin-bottom: 22px; }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 16px/1.4 var(--schrift); color: var(--tinte);
  background: var(--weiss); border: 1px solid var(--beton-3); border-radius: var(--radius);
}
.feld textarea { resize: vertical; min-height: 104px; }
.feld input::placeholder { color: #6d7176; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--bergblau); outline-offset: 1px; border-color: var(--bergblau); }
.formular .knopf { width: 100%; margin-top: 6px; }
.formular-meldung { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--gras); font-weight: 500; }
.formular .klein { margin-top: 6px; }

/* ---------- 10 · Fuß ---------- */
.fuss { background: #0b1219; color: var(--nacht-leise); padding: 64px 0 28px; font-size: 15px; }
.fuss a { color: #c8d6e3; }
.fuss a:hover { color: #fff; }
.fuss :focus-visible { outline-color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.fuss-raster p + p, .fuss-raster address + p { margin-top: 10px; }
.fuss-logo { color: var(--nacht-text); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.fuss-links { display: flex; gap: 18px; }
.fuss-demo { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.fuss-zeile { width: 100%; max-width: none; margin: 26px 0 0; text-align: center; font-size: 12.5px; color: #8d99a4; }
.fuss-zeile a { color: #b7c4cf; }
.anruf-leiste { display: none; }

/* ---------- 11 · Auftritte und Bewegungsstufen ---------- */
html.js:not([data-bewegung="starr"]) [data-auftritt] { opacity: 0; transform: translateY(16px) scale(0.985); transition: opacity .8s var(--weich), transform .9s var(--weich); }
html.js:not([data-bewegung="starr"]) [data-auftritt].ist-da { opacity: 1; transform: none; }
/* Planblätter: das Foto öffnet sich wie eine Maske von unten */
html.js:not([data-bewegung="starr"]) .plan[data-auftritt] { transform: none; }
html.js:not([data-bewegung="starr"]) .plan[data-auftritt] .bild-platzhalter { clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--weich) .1s; }
html.js:not([data-bewegung="starr"]) .plan[data-auftritt].ist-da .bild-platzhalter { clip-path: inset(0 0 0 0); }
/* Phasen: die Linie zeichnet sich */
html.js:not([data-bewegung="starr"]) .phasen[data-auftritt] { transform: none; --linie: 0; }
html.js:not([data-bewegung="starr"]) .phasen[data-auftritt].ist-da { --linie: 1; }
html.js:not([data-bewegung="starr"]) .phasen[data-auftritt] li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--weich), transform .7s var(--weich); }
html.js:not([data-bewegung="starr"]) .phasen[data-auftritt].ist-da li { opacity: 1; transform: none; }
.phasen li:nth-child(2) { transition-delay: .08s !important; } .phasen li:nth-child(3) { transition-delay: .16s !important; }
.phasen li:nth-child(4) { transition-delay: .24s !important; } .phasen li:nth-child(5) { transition-delay: .32s !important; }
.phasen li:nth-child(6) { transition-delay: .4s !important; } .phasen li:nth-child(7) { transition-delay: .48s !important; }
/* Karte: der Weg zeichnet sich vom Bahnhof zum Büro */
html.js:not([data-bewegung="starr"]) .kontakt-text[data-auftritt] .karte-weg { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--weich) .3s; }
html.js:not([data-bewegung="starr"]) .kontakt-text[data-auftritt].ist-da .karte-weg { stroke-dashoffset: 0; }
html.js:not([data-bewegung="starr"]) .kontakt-text[data-auftritt] .karte-ziel { opacity: 0; transition: opacity .6s var(--weich) 1.5s; }
html.js:not([data-bewegung="starr"]) .kontakt-text[data-auftritt].ist-da .karte-ziel { opacity: 1; }
/* Ohne Aufbau am Scroll (starr, kein JavaScript): Karten voll sichtbar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---------- 12 · Schmalere Bildschirme und Handy ---------- */
@media (max-width: 1379px) {
  .phasen { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .phasen::before { display: none; }
  .phasen li { border-top: 1px solid rgba(255, 255, 255, 0.18); }
}
@media (max-width: 1279px) {
  .schriftfeld a { min-width: 0; padding: 0 13px; }
  .kopf-tel { display: none; }
}
@media (max-width: 1099px) {
  .schriftfeld, .kopf-tel, .knopf-kopf { display: none; }
  .logo { border-right: 0; }
  .menue { display: flex; margin-left: auto; position: static; }
  .menue summary {
    list-style: none; display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 var(--rand) 0 18px;
    border-left: 1px solid var(--beton-2); cursor: pointer; font-size: 14px; font-weight: 500;
  }
  .menue summary::-webkit-details-marker { display: none; }
  .menue-blatt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
  .menue-zeichen { width: 18px; height: 10px; border-top: 1.5px solid var(--tinte); border-bottom: 1.5px solid var(--tinte); }
  .menue[open] .menue-zeichen { height: 0; border-bottom: 0; transform: rotate(0); }
  .menue:not([open]) .menue-liste { display: none; }
  .menue-liste { position: absolute; left: 0; right: 0; top: var(--kopf); background: var(--weiss); border-bottom: 1px solid var(--tinte); padding: 6px var(--rand) 14px; display: grid; grid-template-columns: 1fr 1fr; }
  .menue-liste a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--tinte); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--beton-1); }
  .menue-liste a.ist-aktiv { color: var(--bergblau); }
  .menue-liste .sf-l { width: 22px; }

  /* Reihenfolge am Handy: Text, Modell, Werkzeug, Schriftfeld */
  .studie { display: flex; flex-direction: column; }
  .studie-modell { display: contents; }
  .studie-text { order: 0; padding-top: 6px; margin-bottom: 26px; }
  .buehne { order: 1; height: clamp(320px, 62vw, 640px); border-bottom: 1px solid var(--beton-2); }
  .werkzeug { order: 2; padding-top: 22px; max-width: 640px; }
  .tafel { order: 3; margin-top: 26px; }
  .phasen { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; border-top: 0; }
  .phasen::before { display: none; }
  .phasen li { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-right: 22px; }
  .plaene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan { grid-column: span 1; }
  .plan-gross, .plan-breit { grid-column: 1 / -1; }
  .plan .bild-platzhalter { min-height: 0; flex: none; aspect-ratio: 4 / 3; }
  .plan-gross .bild-platzhalter, .plan-breit .bild-platzhalter { aspect-ratio: 16 / 9; }
  .buero-raster, .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .stellen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stelle-praktikum { grid-column: 1 / -1; }
  .bewerben { grid-template-columns: minmax(0, 1fr); }
  .honorar { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  /* Aufbau am Handy: das Modell klebt oben, die Karten laufen darunter durch */
  .bau { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .bau-buehne { grid-column: 1; grid-row: 1; height: 56svh; padding: 10px var(--rand) 8px; background: var(--papier); }
  .bau-buehne .modell { height: 100%; }
  .bau-feld { left: calc(var(--rand) + 1px); top: 11px; font-size: 12.5px; }
  .bau-feld span { min-width: 0; padding: 5px 10px 6px; }
  .bau-leiste { bottom: 22px; }
  .bau-leiste li { width: 30px; }
  .bau-schritte { grid-column: 1; grid-row: 2; padding: 0 var(--rand); }
  .schritt, .schritt:first-child { min-height: 78svh; align-items: flex-start; padding-top: 14px; }
  .schritt:last-child { padding: 14px 0 0; }
  .schritt:last-child .schritt-karte { width: 100%; }
  .schritt-nachlauf { height: 40svh; }
  .schritt-karte, .schritt:last-child .schritt-karte { max-width: none; padding: 18px 20px 16px; position: sticky; top: calc(var(--kopf) + 56svh + 10px); }
  .schritt h3 { font-size: 23px; margin-bottom: 10px; }
  .schritt-karte > p:not(.schritt-nr) { font-size: 15.5px; line-height: 1.55; }
  .schritt-wert { margin-top: 12px !important; padding-top: 10px; }
}
@media (max-width: 699px) {
  body { font-size: 16px; padding-bottom: 56px; }
  .logo-text span { display: none; }
  .menue-blatt { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .studie-text .einleitung { font-size: 17px; }
  .knoepfe .knopf { flex: 1 1 auto; }
  .buehne { height: 300px; }
  .nordpfeil { left: 10px; top: 10px; }
  .nordpfeil svg { width: 30px; height: 30px; }
  .vorfuehrung { left: 10px; right: 10px; bottom: 10px; text-align: center; font-size: 12px; }
  .tafel { grid-template-columns: 1fr 1fr; font-size: 13.5px; }
  .tafel > div { border-right: 0; border-bottom: 1px solid var(--beton-2); }
  .tafel > div:nth-child(odd) { border-right: 1px solid var(--beton-2); }
  .tafel > div:nth-last-child(-n+2) { border-bottom: 0; }
  .tafel b { font-size: 18px; }
  .tage label { font-size: 13px; }
  .bahn-feld { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
  .bahn-wert { font-size: 36px; }
  .uhr-feld { grid-template-columns: minmax(0, 1fr) auto; }
  .uhr-label { grid-column: 1 / -1; margin-bottom: -10px; }
  .zahlen { grid-template-columns: 1fr 1fr; }
  .zahlen li:nth-child(3) { padding-left: 0; border-left: 0; }
  .zahlen li:nth-child(n+3) { border-top: 1px solid var(--beton-2); }
  .plaene, .stellen, .team, .stimmen { grid-template-columns: minmax(0, 1fr); }
  .plan .bild-platzhalter, .plan-gross .bild-platzhalter, .plan-breit .bild-platzhalter { aspect-ratio: 3 / 2; }
  .phasen { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 14px; }
  .team h3 { font-size: 16px; }
  .team p { font-size: 14px; }
  .bild-portrait { padding: 8px; }
  .bild-portrait figcaption { font-size: 10.5px; padding: 6px 7px; }
  .bewerben ol { grid-template-columns: minmax(0, 1fr); }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); }
  .bau-buehne { height: 46svh; }
  .schritt-karte, .schritt:last-child .schritt-karte { top: calc(var(--kopf) + 46svh + 10px); }
  .bau-feld span:nth-child(1) { display: none; }
  .anruf-leiste {
    display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 60; height: 56px;
    background: var(--bergblau); color: #fff; text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums;
  }
  .anruf-leiste span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #cfe0ef; }
  .anruf-leiste:hover { color: #fff; }
}
