/* RED Baufeld – Entwurf 1: gemeinsamer Stil aller Seiten */
/* Schriften lokal (OFL-1.1, aus @fontsource 5.3) – keine Anfragen an Google */
@font-face { font-family: Jost; font-style: normal; font-weight: 400; font-display: swap; src: url("schriften/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Jost; font-style: normal; font-weight: 500; font-display: swap; src: url("schriften/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Jost; font-style: normal; font-weight: 600; font-display: swap; src: url("schriften/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("schriften/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations"), url("schriften/source-serif-4-latin-opsz-normal.woff2") format("woff2"); }

:root {
  --rot: #8e2331;
  --rot-dunkel: #741c28;
  --anthrazit: #25272a;
  --papier: #f6f3ee;
  --weiss: #ffffff;
  --linie: #ddd7ce;
  --text: #2b2d30;
  --grau: #63666a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Jost, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --breite: 1240px;
}
/* Jost hat eine kleine x-Höhe: Fließtext optisch angleichen, Serifen-Überschriften ausnehmen */
body { font-size-adjust: 0.5; }
:is(h1, h2, h3, .zahlen dt) { font-size-adjust: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--weiss); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--anthrazit); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.dachzeile { font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rot); margin: 0 0 22px; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rot); padding-bottom: 3px; color: var(--anthrazit); }
.textlink:hover { color: var(--rot); }
.knopf { display: inline-block; font: 500 15px/1 var(--sans); text-decoration: none; padding: 16px 26px; border: 1px solid var(--rot); background: var(--rot); color: #fff; transition: background .15s; }
.knopf:hover { background: var(--rot-dunkel); }
.knopf.hell { background: transparent; color: var(--anthrazit); border-color: var(--anthrazit); }
.knopf.hell:hover { background: var(--anthrazit); color: #fff; }

/* Kopf */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linie); }
header .innen { display: flex; align-items: center; gap: 32px; height: 84px; }
header .logo img { height: 40px; width: auto; }
header nav { margin-left: auto; display: flex; gap: 30px; }
header nav a { font: 500 15px/1 var(--sans); text-decoration: none; color: var(--text); padding: 8px 0; border-bottom: 1px solid transparent; }
header nav a:hover { border-color: var(--rot); color: var(--rot); }
header .tel { font: 500 15px/1 var(--sans); text-decoration: none; color: var(--grau); white-space: nowrap; }
header .knopf { padding: 12px 18px; font-size: 14px; }
header .logo { flex-shrink: 0; }
header nav .tel { display: none; }
.menueknopf { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: 500 15px/1 var(--sans); color: var(--anthrazit); cursor: pointer; }
.menueknopf .striche { position: relative; width: 22px; height: 2px; background: currentColor; transition: background .15s; }
.menueknopf .striche::before, .menueknopf .striche::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
.menueknopf .striche::before { top: -7px; }
.menueknopf .striche::after { top: 7px; }
.menueknopf[aria-expanded="true"] .striche { background: transparent; }
.menueknopf[aria-expanded="true"] .striche::before { transform: translateY(7px) rotate(45deg); }
.menueknopf[aria-expanded="true"] .striche::after { transform: translateY(-7px) rotate(-45deg); }

/* Einstieg */
.einstieg { background: var(--papier); padding: 0; overflow: hidden; }
.einstieg .innen { position: relative; display: flex; align-items: center; min-height: clamp(600px, 55vw, 780px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.einstieg .text { position: relative; z-index: 1; max-width: 500px; }
.einstieg h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.08; letter-spacing: -0.015em; }
.einstieg .unterzeile { font-size: clamp(18px, 1.6vw, 21px); color: var(--grau); max-width: 30em; margin: 28px 0 40px; }
.einstieg .aktionen { display: flex; flex-wrap: wrap; gap: 14px; }
/* Strichzeichnung des Gebäudes: steht auf der Unterkante des Abschnitts */
.einstieg figure { margin: 0; position: absolute; top: 20px; bottom: 0; right: calc(var(--rand) - 70px); pointer-events: none; }
.einstieg figure img { height: 100%; width: auto; max-width: none; }

/* Kennzahlen */
.zahlen { padding: 0; border-bottom: 1px solid var(--linie); }
.zahlen dl { display: grid; grid-template-columns: repeat(var(--spalten, 4), 1fr); margin: 0; }
.zahlen dl > div { padding: 40px 28px 40px 0; }
.zahlen dl > div + div { padding-left: 28px; border-left: 1px solid var(--linie); }
.zahlen dt { font: 400 clamp(30px, 3.2vw, 44px)/1.1 var(--serif); color: var(--anthrazit); white-space: nowrap; }
.zahlen dd { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--grau); }

/* Unternehmen */
.unternehmen .innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 104px); align-items: center; }
.unternehmen figure { margin: 0; }
.unternehmen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.unternehmen figcaption { margin-top: 12px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.unternehmen h2 { margin-bottom: 28px; }
.unternehmen .text { max-width: 34em; }

/* Leistungen */
.leistungen { background: var(--papier); }
.leistungen .kopfzeile, .projekte .kopfzeile, .team .kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.leistungen ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--anthrazit); }
.leistungen li { padding: 28px 28px 0 0; }
.leistungen li + li { padding-left: 28px; border-left: 1px solid var(--linie); }
.leistungen .nr { font: 500 13px/1 var(--sans); color: var(--rot); letter-spacing: .08em; }
.leistungen h3 { font-size: 25px; line-height: 1.2; margin: 18px 0 14px; }
.leistungen li p { font-size: 15.5px; line-height: 1.6; color: var(--grau); }

/* Projekte */
.projekte .raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.projekt { text-decoration: none; display: block; }
.projekt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.projekt:hover img { opacity: .9; }
/* Projektdaten wie in Entwurf 2: Ort und Status, darunter Kennwerte als Tabelle */
.projekt .ort { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); margin: 20px 0 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.projekt .ort > * { white-space: nowrap; }
.projekt .ort b { font-weight: 600; color: var(--rot); }
.projekt h3 { font-size: 24px; line-height: 1.25; }
.projekt dl { margin: 16px 0 0; border-top: 1px solid var(--linie); font-size: 14.5px; }
.projekt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.projekt dt { color: var(--grau); }
.projekt dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--anthrazit); }

/* Meilensteine: Papierton wie Leistungen und Kontakt (Wunsch Weiland, 19.10.2026) */
.meilensteine { background: var(--papier); }
.meilensteine .innen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); }
.meilensteine .einleitung p { color: var(--grau); margin-top: 24px; max-width: 24em; }
.meilensteine table { width: 100%; border-collapse: collapse; }
.meilensteine tr { border-top: 1px solid var(--linie); }
.meilensteine tr:first-child { border-top-color: var(--anthrazit); }
.meilensteine tr:last-child { border-bottom: 1px solid var(--linie); }
.meilensteine td { padding: 17px 0; vertical-align: top; font-size: 16px; }
.meilensteine td:first-child { width: 7.5em; font-variant-numeric: tabular-nums; color: var(--rot); font-weight: 500; }
.meilensteine td strong { font-weight: 500; color: var(--anthrazit); }

/* Team */
.team .raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.team figure { margin: 0; }
.team .bild { overflow: hidden; aspect-ratio: 4 / 5; background: var(--papier); }
/* Bilder aus teamfotos.swift: einheitlicher Hintergrund und Ausschnitt */
.team img { width: 100%; height: 100%; object-fit: cover; }
.team figcaption { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--grau); }
.team figcaption strong { display: block; font: 500 16px/1.3 var(--sans); color: var(--anthrazit); margin-bottom: 2px; }

/* Kontakt */
.kontakt { background: var(--papier); }
.kontakt .innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 104px); }
.kontakt h2 { margin-bottom: 28px; }
.kontakt address { font-style: normal; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--linie); display: grid; gap: 6px; }
.kontakt address a { text-decoration: none; }
.kontakt address a:hover { color: var(--rot); }
.kontakt form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kontakt label { display: grid; gap: 8px; font: 500 14px/1.2 var(--sans); color: var(--anthrazit); }
.kontakt .breit { grid-column: 1 / -1; }
.kontakt input, .kontakt textarea { font: 400 16px/1.4 var(--sans); padding: 13px 14px; border: 1px solid #c9c2b7; background: #fff; color: var(--text); border-radius: 0; width: 100%; }
.kontakt input:focus, .kontakt textarea:focus { outline: 2px solid var(--rot); outline-offset: -1px; }
.kontakt .hinweis { font-size: 13.5px; color: var(--grau); margin: 0; }
.kontakt [aria-invalid="true"] { border-color: var(--rot); box-shadow: inset 3px 0 0 var(--rot); }
.kontakt .meldung { margin: 0; padding: 14px 16px; font-size: 15px; background: #fff; border-left: 3px solid var(--grau); }
.kontakt .meldung.ok { border-left-color: #2f6b3a; }
.kontakt .meldung.fehler { border-left-color: var(--rot); color: var(--rot); }
.kontakt .knopf:disabled { opacity: .6; cursor: wait; }
.honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß */
footer { background: var(--anthrazit); color: #a9a8a5; font-size: 14.5px; }
footer .oben { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 48px; }
footer .logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
footer h2 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .unten { border-top: 1px solid #44474b; padding-top: 22px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Unterseiten ---------- */
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
header nav a[aria-current="page"] { color: var(--rot); border-color: var(--rot); }
.kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }

/* Seitenkopf mit Pfad */
.seitenkopf { background: var(--papier); padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.pfad { font-size: 14px; color: var(--grau); margin: 0 0 clamp(28px, 4vw, 48px); }
.pfad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pfad li + li::before { content: "/"; margin-right: 10px; color: #b4ada3; }
.pfad a { text-decoration: none; }
.pfad a:hover { color: var(--rot); }
.seitenkopf h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -0.015em; }
.seitenkopf .einleitung { font-size: clamp(18px, 1.5vw, 20px); color: var(--grau); max-width: 34em; margin: 24px 0 0; }

/* Kasten Pressekontakt (Übersicht und Meldung) */
.kontaktkasten { border-top: 1px solid var(--anthrazit); padding-top: 20px; font-size: 15.5px; }
.kontaktkasten h2, .kontaktkasten h3 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rot); margin: 0 0 16px; }
.kontaktkasten strong { display: block; font-weight: 500; color: var(--anthrazit); }
.kontaktkasten p { margin: 0 0 12px; }
.kontaktkasten a { text-decoration: none; }
.kontaktkasten a:hover { color: var(--rot); }

/* Presse-Übersicht */
.presse-kopf .innen { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.meta { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta .art { color: var(--rot); }
.meta time { font-variant-numeric: tabular-nums; }
.presse-liste { padding-top: clamp(40px, 5vw, 56px); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.filter span { font-size: 14px; color: var(--grau); margin-right: 6px; }
.filter button { font: 500 14px/1 var(--sans); padding: 11px 16px; min-height: 44px; border: 1px solid var(--linie); background: #fff; color: var(--text); cursor: pointer; }
.filter button:hover { border-color: var(--anthrazit); }
.filter button[aria-pressed="true"] { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }
.meldungen { list-style: none; margin: 0; padding: 0; }
.meldungen li { border-bottom: 1px solid var(--linie); }
.meldungen a { display: grid; grid-template-columns: 9em minmax(0, 1fr) 220px; gap: clamp(20px, 3vw, 40px); padding: 32px 0; text-decoration: none; align-items: start; }
.meldungen time { font-variant-numeric: tabular-nums; color: var(--grau); font-size: 15px; padding-top: 4px; }
.meldungen h3 { font-size: 25px; line-height: 1.25; margin: 0 0 10px; }
.meldungen p { color: var(--grau); font-size: 16px; margin: 0; }
.meldungen img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.meldungen a:hover h3 { color: var(--rot); }
.medienberichte .hinweis { color: var(--grau); margin: 0 0 8px; max-width: 46em; }
.meldungen [hidden] { display: none; }
.medienberichte { padding-bottom: clamp(48px, 6vw, 80px); }
.medienberichte h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 12px; }
.material { background: var(--papier); }
.material .innen { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); }
.downloads { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.downloads li { border-top: 1px solid var(--linie); }
.downloads a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; }
.downloads a:hover { color: var(--rot); }
.downloads small { color: var(--grau); font-size: 13.5px; white-space: nowrap; }

/* Pressemitteilung */
.artikel-kopf h1 { max-width: 20em; }
.artikel-kopf .meta { margin-bottom: 22px; }
.artikel { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.artikel .innen { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.artikel .titelbild { margin: 0 0 48px; }
.artikel .titelbild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.artikel figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--grau); }
.lauftext { max-width: 40em; font-size: 18px; line-height: 1.7; }
.lauftext .vorspann { font-size: 21px; line-height: 1.55; color: var(--anthrazit); }
.lauftext h2 { font-size: 28px; margin: 48px 0 18px; }
.lauftext blockquote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--rot); }
.lauftext blockquote p { font: 400 clamp(22px, 2vw, 26px)/1.4 var(--serif); color: var(--anthrazit); margin-bottom: 14px; }
.lauftext blockquote .quelle { font: 400 15px/1.5 var(--sans); color: var(--grau); margin: 0; }
.platzhalter { background: #fbf3d9; padding: 0 4px; }
.ueber { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--linie); font-size: 15.5px; color: var(--grau); }
.ueber h2 { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--anthrazit); margin: 0 0 14px; }
.randspalte { position: sticky; top: 112px; display: grid; gap: 40px; }
.randspalte .downloads { grid-template-columns: 1fr; margin: 0; }
.zurueck { margin-top: 48px; }
.weitere-meldungen { background: var(--papier); }
.weitere-meldungen .meldungen li:first-child { border-top: 1px solid var(--anthrazit); }

/* Projektseite */
.projekt-kopf .innen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.projekt-kopf .status { display: inline-flex; gap: 10px; align-items: center; font: 500 14px/1 var(--sans); color: var(--anthrazit); border: 1px solid var(--anthrazit); padding: 10px 14px; margin-top: 28px; }
.projekt-kopf .status::before { content: ""; width: 8px; height: 8px; background: var(--rot); }
.projektbild { padding: 0; background: linear-gradient(var(--papier) 50%, #fff 50%); }
.projektbild img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.projektbild figure { margin: 0; }
.projektbild figcaption { margin-top: 12px; font-size: 13.5px; color: var(--grau); }
.beschreibung .innen { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 7vw, 104px); align-items: start; }
.beschreibung .lauftext h2 { margin-top: 0; }
.daten { margin: 0; border-top: 1px solid var(--anthrazit); font-size: 15.5px; }
.daten > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.daten dt { color: var(--grau); }
.daten dd { margin: 0; color: var(--anthrazit); font-variant-numeric: tabular-nums; }
.verlauf { background: var(--papier); }
.verlauf .kopfzeile { margin-bottom: 56px; }
.verlauf ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--spalten, 4), 1fr); }
.verlauf li { position: relative; padding: 32px 28px 0 0; border-top: 1px solid var(--anthrazit); }
.verlauf li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--papier); border: 1px solid var(--anthrazit); }
.verlauf li.erreicht::before { background: var(--rot); border-color: var(--rot); }
.verlauf time { font: 500 13px/1 var(--sans); letter-spacing: .08em; color: var(--rot); font-variant-numeric: tabular-nums; }
.verlauf .zeit-leer { display: inline-block; height: 13px; }
.verlauf h3 { font-size: 24px; margin: 14px 0 10px; }
.verlauf li p { font-size: 15.5px; color: var(--grau); }
.aufruf { background: var(--papier); padding: clamp(48px, 6vw, 72px) 0; }
.aufruf .innen { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.aufruf h2 { font-size: clamp(26px, 2.6vw, 34px); }
.aufruf p { margin: 10px 0 0; color: var(--grau); }

/* Projektübersicht und Galerie */
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.projektliste { padding-top: clamp(40px, 5vw, 56px); }
.projektliste .filter { margin-bottom: 40px; }
.projektliste .raster { row-gap: 56px; }
.projekt[hidden] { display: none; }
.filter small { font-size: 12.5px; color: var(--grau); margin-left: 4px; }
.filter button[aria-pressed="true"] small { color: #c9c7c3; }
.galerie { padding-top: 0; }
.galerie .raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.galerie .raster.anzahl-1 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.galerie a:hover img { opacity: .9; }
.galerie figcaption { margin-top: 10px; font-size: 13.5px; color: var(--grau); }
.galerie figure a { display: block; cursor: zoom-in; }

/* Großansicht der Galerie (galerie.js) */
.grossansicht { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 21, 23, .94); color: #fff; }
.grossansicht::backdrop { background: rgba(20, 21, 23, .94); }
.grossansicht figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 72px 28px; box-sizing: border-box; cursor: zoom-out; }
.grossansicht img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; cursor: default; }
.grossansicht figcaption { font-size: 14px; color: #d9d6d0; text-align: center; cursor: default; }
.grossansicht button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .35); color: #fff; font: 300 30px/1 var(--sans); cursor: pointer; }
.grossansicht button:hover { background: var(--rot); border-color: var(--rot); }
.grossansicht button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.grossansicht .schliessen { top: 12px; right: 12px; }
.grossansicht .bild-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.grossansicht .bild-weiter { right: 12px; top: 50%; transform: translateY(-50%); }
html.grossansicht-offen { overflow: hidden; }
@media (max-width: 640px) {
  .grossansicht figure { padding: 68px 12px 84px; }
  .grossansicht .bild-zurueck, .grossansicht .bild-weiter { top: auto; bottom: 16px; transform: none; }
  .grossansicht .bild-zurueck { left: calc(50% - 60px); }
  .grossansicht .bild-weiter { right: calc(50% - 60px); }
}

/* Rechtstexte */
.rechtstext .innen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.rechtstext .inhalt { position: sticky; top: 112px; border-top: 1px solid var(--anthrazit); padding-top: 20px; font-size: 15px; }
.rechtstext .inhalt p { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rot); margin: 0 0 16px; }
.rechtstext .inhalt ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rechtstext .inhalt a { text-decoration: none; color: var(--grau); }
.rechtstext .inhalt a:hover { color: var(--rot); }
.rechtstext .lauftext { font-size: 17px; }
.rechtstext .lauftext h2 { font-size: 26px; margin: 48px 0 14px; scroll-margin-top: 112px; }
.rechtstext .lauftext h2:first-of-type { margin-top: 0; }
.rechtstext .lauftext a { color: var(--anthrazit); text-decoration-color: var(--rot); text-underline-offset: 3px; }
.rechtstext .lauftext ul { padding-left: 1.2em; }
.hinweisbox { background: var(--papier); padding: 16px 20px; font-size: 15.5px; margin-bottom: 40px; }

@media (max-width: 1000px) {
  .presse-kopf .innen, .material .innen, .artikel .innen, .projekt-kopf .innen, .beschreibung .innen { grid-template-columns: 1fr; align-items: start; }
  .meldungen a { grid-template-columns: minmax(0, 1fr) 180px; }
  .meldungen time { grid-column: 1 / -1; padding: 0; }
  .randspalte { position: static; }
  .verlauf ol { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .rechtstext .innen { grid-template-columns: 1fr; }
  .rechtstext .inhalt { position: static; }
  .projektbild img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .meldungen a { grid-template-columns: 1fr; gap: 14px; }
  .meldungen .bild { order: -1; }
  .downloads { grid-template-columns: 1fr; }
  .daten > div { grid-template-columns: 1fr; gap: 2px; }
  .verlauf ol { grid-template-columns: 1fr; }
  .galerie .raster, .galerie .raster.anzahl-1 { grid-template-columns: 1fr; }
  .kopfzeile { flex-direction: column; align-items: start; }
}

@media (max-width: 1000px) {
  /* Menü: Knopf öffnet die Navigation als Klappfläche unter dem Kopf */
  header .innen { gap: 16px; }
  header > .innen > .tel { display: none; }
  header .knopf { margin-left: auto; }
  .menueknopf { display: inline-flex; }
  header nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--rand) 24px; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - 84px); overflow-y: auto; }
  header nav.offen { display: flex; }
  header nav a, header nav a[aria-current="page"] { font-size: 17px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
  header nav a:hover { border-color: var(--linie); }
  header nav .tel { display: block; color: var(--grau); border-bottom: 0; }
  .unternehmen .innen, .meilensteine .innen, .kontakt .innen { grid-template-columns: 1fr; }
  .einstieg .innen { display: block; min-height: 0; padding-bottom: 0; }
  .einstieg figure { position: static; margin: 24px calc(var(--rand) * -1) 0; }
  .einstieg figure img { height: auto; width: 100%; }
  .zahlen dl, .leistungen ol { grid-template-columns: 1fr 1fr; }
  .zahlen dl > div:nth-child(3), .leistungen li:nth-child(3) { padding-left: 0; border-left: 0; }
  .zahlen dl > div:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .leistungen li { padding-bottom: 28px; }
  .projekte .raster { grid-template-columns: 1fr; }
  .team .raster { grid-template-columns: repeat(3, 1fr); }
  footer .oben { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .menueknopf { min-width: 44px; justify-content: center; }
  .menueknopf .wort { display: none; }
  .zahlen dl, .leistungen ol { grid-template-columns: 1fr; }
  .zahlen dl > div, .zahlen dl > div + div, .leistungen li, .leistungen li + li { padding-left: 0; border-left: 0; }
  .zahlen dl > div + div { border-top: 1px solid var(--linie); }
  .zahlen dl > div { padding: 26px 0; }
  .team .raster { grid-template-columns: 1fr 1fr; }
  .kontakt form { grid-template-columns: 1fr; }
  .leistungen .kopfzeile, .projekte .kopfzeile, .team .kopfzeile { flex-direction: column; align-items: start; }
  .meilensteine td:first-child { width: 5.5em; }
}
@media (max-width: 400px) {
  header .innen { gap: 12px; }
  header .logo img { height: 34px; }
  header .knopf { padding: 10px 12px; font-size: 13.5px; }
}
