/* Rohrnetz Beil – Website
   Industrielles Design: Anthrazit, Beton, Signalgelb. Schriften lokal (keine externen Server). */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --schwarz: #0f1113;
  --anthrazit: #181b1f;
  --stahl: #22272d;
  --stahl-2: #2c323a;
  --linie-dunkel: #363d46;
  --grau: #858e99;
  --grau-hell: #b7bec7;
  --linie: #d6d3cc;
  --beton: #e9e7e2;
  --papier: #f5f4f0;
  --weiss: #ffffff;
  --text: #1a1d21;
  --text-2: #4a525c;
  --blau: #006aaf;
  --blau-2: #00538a;
  --blau-hell: #4aa8ec;
  --blau-blass: #e5f1fa;
  --rot: #d23a1e;

  --f-titel: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Arial, sans-serif;
  --f-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --breite: 1240px;
  --rand: clamp(20px, 4vw, 40px);
  --abschnitt: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--f-text);
  color: var(--text);
  background: var(--papier);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
::selection { background: var(--blau); color: var(--weiss); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blau); color: var(--weiss); padding: 12px 18px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }

.rahmen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* ------------------------------------------------------------ Typografie */
h1, h2, h3, h4 { font-family: var(--f-titel); font-weight: 700; line-height: 1.02; letter-spacing: .005em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.75rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.1; }
.mono, .kennung { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.kennung { display: inline-flex; align-items: center; gap: .6em; color: var(--text-2); margin-bottom: 1.25rem; }
.kennung::before { content: ""; width: 28px; height: 2px; background: var(--blau); }
.dunkel .kennung { color: var(--grau-hell); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 44em; }
.dunkel .lead { color: var(--grau-hell); }
.akzent-text { color: var(--blau); }
.dunkel .akzent-text { color: var(--blau-hell); }

/* ------------------------------------------------------------ Buttons */
.knopf {
  display: inline-flex; align-items: center; gap: .65em;
  padding: 0 1.4em; min-height: 54px;
  font: 600 1.05rem/1 var(--f-titel); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf-blau { background: var(--blau); color: var(--weiss); }
.knopf-blau:hover { background: var(--blau-2); }
.dunkel .knopf-blau:hover { background: var(--weiss); color: var(--blau); }
.knopf-dunkel { background: var(--anthrazit); color: var(--weiss); }
.knopf-dunkel:hover { background: var(--blau); color: var(--weiss); }
.knopf-linie { border-color: currentColor; color: inherit; background: transparent; clip-path: none; }
.knopf-linie:hover { background: var(--weiss); color: var(--schwarz); border-color: var(--weiss); }
.hell .knopf-linie:hover, .knopf-linie.auf-hell:hover { background: var(--anthrazit); color: var(--weiss); border-color: var(--anthrazit); }
.knopf:active { transform: translateY(1px); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

.pfeil-link { display: inline-flex; align-items: center; gap: .5em; font: 600 1rem/1 var(--f-titel); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--blau); padding-bottom: 4px; }
.pfeil-link::after { content: "→"; transition: transform .15s; }
.pfeil-link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------ Notdienstleiste */
.notleiste { background: var(--schwarz); color: var(--grau-hell); font: 500 .8rem/1 var(--f-mono); letter-spacing: .04em; }
.notleiste .rahmen { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.notleiste a { text-decoration: none; color: var(--weiss); }
.notleiste .not { display: inline-flex; align-items: center; gap: 10px; color: var(--weiss); }
.notleiste .not strong { color: var(--blau-hell); font-weight: 500; }
.puls { width: 8px; height: 8px; border-radius: 50%; background: var(--blau-hell); box-shadow: 0 0 0 0 rgba(74, 168, 236, .7); animation: puls 2s infinite; flex: none; }
@keyframes puls { 70% { box-shadow: 0 0 0 9px rgba(74, 168, 236, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 168, 236, 0); } }
.notleiste .info { display: flex; gap: 22px; }
@media (max-width: 760px) { .notleiste .info { display: none; } .notleiste .rahmen { justify-content: center; } }

.hinweisleiste { background: var(--blau); color: var(--weiss); text-align: center; font-weight: 600; padding: 10px var(--rand); }

/* ------------------------------------------------------------ Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.marke img { width: auto; }
.marke-zeichen { width: 44px; height: 44px; }
.marke-text { display: flex; flex-direction: column; line-height: 1; }
.marke-text b { font: 700 1.45rem/1 var(--f-titel); letter-spacing: .03em; text-transform: uppercase; }
.marke-text small { font: 500 .66rem/1 var(--f-mono); letter-spacing: .16em; color: var(--text-2); margin-top: 5px; text-transform: uppercase; }

.navi { display: flex; align-items: center; gap: 4px; }
.navi a { position: relative; padding: 10px 12px; font: 600 1.02rem/1 var(--f-titel); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.navi a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.navi a:hover::after, .navi a[aria-current="page"]::after { transform: scaleX(1); }
.navi .knopf { margin-left: 10px; min-height: 46px; }
.navi .knopf::after { display: none; }

.menue { display: none; }
@media (max-width: 1060px) {
  .navi { display: none; }
  .menue { display: block; position: relative; }
  .menue summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--f-titel); letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; border: 2px solid var(--text); }
  .menue summary::-webkit-details-marker { display: none; }
  .menue summary span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .menue[open] summary { background: var(--anthrazit); color: var(--weiss); border-color: var(--anthrazit); }
  .menue nav { position: fixed; left: 0; right: 0; top: 116px; bottom: 0; background: var(--anthrazit); padding: 24px var(--rand) 40px; overflow: auto; display: flex; flex-direction: column; }
  .menue nav a { color: var(--weiss); text-decoration: none; font: 700 2rem/1 var(--f-titel); text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid var(--linie-dunkel); display: flex; justify-content: space-between; }
  .menue nav a::after { content: "→"; color: var(--blau-hell); }
  .menue nav .knopf { margin-top: 28px; justify-content: center; font-size: 1.2rem; border: 0; }
  .menue nav .knopf::after { content: none; }
}
@media (max-width: 760px) { .menue nav { top: 76px; } }

/* ------------------------------------------------------------ Bereiche */
.abschnitt { padding: var(--abschnitt) 0; position: relative; }
.dunkel { background: var(--anthrazit); color: var(--weiss); }
.beton { background: var(--beton); }
.weiss { background: var(--weiss); }
.raster-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.kopfzeile h2 { margin: 0; max-width: 14em; }
.kopfzeile p { margin: 0; max-width: 30em; color: var(--text-2); }
.dunkel .kopfzeile p { color: var(--grau-hell); }
@media (max-width: 860px) { .kopfzeile { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-raster { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .linie { display: block; }
.hero h1 .akzent-text { position: relative; }
.hero .lead { margin-bottom: 2rem; }
.hero-bild { position: relative; }
.hero-bild svg { width: 100%; }
.koordinate { position: absolute; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .1em; color: var(--grau); text-transform: uppercase; }
.koordinate.oben { top: -6px; right: 0; text-align: right; }
@media (max-width: 960px) { .hero-raster { grid-template-columns: 1fr; } .hero-bild { max-width: 560px; } }

.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linie-dunkel); margin-top: clamp(48px, 7vw, 88px); }
.kennzahl { padding: 26px 24px 30px 0; border-right: 1px solid var(--linie-dunkel); }
.kennzahl + .kennzahl { padding-left: 24px; }
.kennzahl:last-child { border-right: 0; }
.kennzahl b { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--f-titel); color: var(--weiss); }
.kennzahl b sup { font-size: .5em; color: var(--blau-hell); vertical-align: top; margin-left: 2px; }
.kennzahl span { display: block; margin-top: 8px; font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grau-hell); }
@media (max-width: 760px) {
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .kennzahl { padding: 20px 16px 22px 0; }
  .kennzahl:nth-child(2) { border-right: 0; }
  .kennzahl:nth-child(3) { padding-left: 0; }
  .kennzahl:nth-child(n+3) { border-top: 1px solid var(--linie-dunkel); }
}

/* ------------------------------------------------------------ Leistungskarten */
.leistungen { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.leistung {
  position: relative; display: flex; flex-direction: column; min-height: 300px;
  padding: 30px 30px 28px; background: var(--weiss);
  border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  text-decoration: none; color: var(--text); transition: background .2s, color .2s;
}
.leistung::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.leistung:hover::before { transform: scaleX(1); }
.leistung:hover { background: var(--anthrazit); color: var(--weiss); }
.leistung:hover p { color: var(--grau-hell); }
.leistung .nr { font: 500 .78rem/1 var(--f-mono); letter-spacing: .1em; color: var(--grau); display: flex; justify-content: space-between; }
.leistung .symbol { width: 52px; height: 52px; margin: 26px 0 22px; color: var(--text); }
.leistung:hover .symbol { color: var(--blau-hell); }
.leistung h3 { margin-bottom: .45em; }
.leistung p { color: var(--text-2); font-size: 1rem; margin: 0 0 1.4em; }
.leistung .mehr { margin-top: auto; font: 600 .95rem/1 var(--f-titel); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: .5em; }
.leistung .mehr::after { content: "→"; color: var(--blau); transition: transform .15s; }
.leistung:hover .mehr::after { transform: translateX(4px); }
.leistung.akzent { background: var(--blau); color: var(--weiss); }
.leistung.akzent .nr, .leistung.akzent p { color: #dbe7fb; }
.leistung.akzent .symbol { color: var(--weiss); }
.leistung.akzent .mehr::after { color: var(--weiss); }
.leistung.akzent:hover { background: var(--schwarz); }
.leistung.akzent:hover .nr { color: var(--grau); }
@media (max-width: 980px) { .leistungen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .leistungen { grid-template-columns: 1fr; } .leistung { min-height: 0; } }

/* ------------------------------------------------------------ Havarie-Band */
.havarie { position: relative; background: var(--blau); color: var(--weiss); padding: clamp(48px, 7vw, 88px) 0; overflow: hidden; }
.havarie::before, .havarie::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(-45deg, var(--schwarz) 0 16px, var(--weiss) 16px 32px); }
.havarie::before { top: 0; }
.havarie::after { bottom: 0; }
.havarie-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.havarie h2 { margin-bottom: .3em; }
.havarie .kennung { color: #dbe7fb; }
.havarie .kennung::before { background: var(--weiss); }
.havarie .pfeil-link { border-bottom-color: var(--weiss); }
.havarie p { font-size: 1.15rem; max-width: 34em; }
.notruf { display: block; text-decoration: none; background: var(--schwarz); color: var(--weiss); padding: 30px 32px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.notruf .mono { color: var(--blau-hell); }
.notruf strong { display: block; font: 700 clamp(2.3rem, 5vw, 3.6rem)/1 var(--f-titel); letter-spacing: .02em; margin: 12px 0 14px; white-space: nowrap; }
.notruf:hover strong { color: var(--blau-hell); }
.notruf ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--linie-dunkel); font: 400 .82rem/1.8 var(--f-mono); color: var(--grau-hell); }
@media (max-width: 860px) { .havarie-raster { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Projektkarten */
.projekte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.projekt { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--weiss); border: 1px solid var(--linie); transition: border-color .2s, transform .2s; }
.projekt:hover { border-color: var(--anthrazit); transform: translateY(-3px); }
.projekt figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stahl); }
.projekt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.projekt:hover img { transform: scale(1.04); }
.projekt .etikett { position: absolute; left: 0; top: 16px; background: var(--blau); color: var(--weiss); font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px 7px 12px; }
.projekt-text { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.projekt-text .meta { font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grau); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.projekt-text h3 { font-size: 1.45rem; margin-bottom: .4em; }
.projekt-text p { color: var(--text-2); font-size: .98rem; margin: 0; }
.dunkel .projekt { background: var(--stahl); border-color: var(--linie-dunkel); color: var(--weiss); }
.dunkel .projekt:hover { border-color: var(--blau-hell); }
.dunkel .projekt-text p { color: var(--grau-hell); }
@media (max-width: 980px) { .projekte { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .projekte { grid-template-columns: 1fr; } }

.leer { border: 1px dashed var(--linie); padding: 48px 32px; text-align: center; color: var(--text-2); background: var(--weiss); }
.dunkel .leer { border-color: var(--linie-dunkel); background: transparent; color: var(--grau-hell); }

/* ------------------------------------------------------------ Arbeitsweise */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: schritt; }
.schritt { padding: 0 28px 0 0; position: relative; }
.schritt::before { counter-increment: schritt; content: "0" counter(schritt); display: block; font: 700 3.2rem/1 var(--f-titel); color: var(--blau-hell); margin-bottom: 18px; }
.schritt::after { content: ""; position: absolute; top: 26px; left: 72px; right: 20px; height: 1px; background: repeating-linear-gradient(90deg, var(--grau) 0 6px, transparent 6px 12px); }
.schritt:last-child::after { display: none; }
.schritt h3 { font-size: 1.4rem; }
.schritt p { color: var(--grau-hell); font-size: 1rem; }
@media (max-width: 900px) { .schritte { grid-template-columns: 1fr 1fr; gap: 40px 0; } .schritt:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .schritte { grid-template-columns: 1fr; } .schritt::after { display: none; } }

/* ------------------------------------------------------------ Einsatzgebiet */
.gebiet { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.orte { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.orte li { font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--linie); background: var(--weiss); }
.orte li.haupt { background: var(--anthrazit); color: var(--weiss); border-color: var(--anthrazit); }
.karte svg { width: 100%; }
@media (max-width: 860px) { .gebiet { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ CTA */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta h2 { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Unterseiten */
.seitenkopf { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.seitenkopf h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 13em; }
.pfad { display: flex; gap: 10px; flex-wrap: wrap; font: 500 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grau); margin-bottom: 28px; list-style: none; padding: 0; }
.pfad a { text-decoration: none; color: var(--grau-hell); }
.pfad a:hover { color: var(--blau-hell); }
.pfad li + li::before { content: "/"; margin-right: 10px; color: var(--linie-dunkel); }
.seitenkopf .deko { position: absolute; right: var(--rand); bottom: -1px; width: min(440px, 38vw); opacity: .9; pointer-events: none; }
@media (max-width: 860px) { .seitenkopf .deko { display: none; } }

.inhalt-raster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 980px) { .inhalt-raster { grid-template-columns: 1fr; } }
.fliesstext { font-size: 1.1rem; max-width: 42em; }
.fliesstext h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.6em; }
.fliesstext h2:first-child { margin-top: 0; }
.fliesstext h3 { margin-top: 1.4em; }
.fliesstext ul, .fliesstext ol { padding: 0; margin: 0 0 1.4em; list-style: none; }
.fliesstext ul li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--linie); }
.fliesstext ul li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 8px; border-left: 3px solid var(--blau); border-bottom: 3px solid var(--blau); transform: rotate(-45deg); }
.fliesstext ol { counter-reset: ol; }
.fliesstext ol li { counter-increment: ol; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--linie); }
.fliesstext ol li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: 12px; font: 500 .85rem/1.4 var(--f-mono); color: var(--grau); }
.fliesstext blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--blau); background: var(--weiss); font-size: 1.15rem; }
.fliesstext a { text-decoration-color: var(--blau); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.datenblatt { position: sticky; top: 100px; background: var(--anthrazit); color: var(--weiss); }
.datenblatt-kopf { display: flex; justify-content: space-between; padding: 14px 22px; background: var(--schwarz); font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grau-hell); }
.datenblatt-kopf b { color: var(--blau-hell); font-weight: 500; }
.datenblatt dl { margin: 0; padding: 6px 22px 10px; }
.datenblatt dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linie-dunkel); }
.datenblatt dl div:last-child { border-bottom: 0; }
.datenblatt dt { font: 500 .7rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.datenblatt dd { margin: 0; font-size: .98rem; }
.datenblatt dd a { text-decoration: none; }
.datenblatt dd a:hover { color: var(--blau-hell); }
.datenblatt .knopf { width: 100%; justify-content: center; clip-path: none; }
.datenblatt-fuss { padding: 0 22px 22px; display: grid; gap: 10px; }

/* ------------------------------------------------------------ Projektliste/Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter a { text-decoration: none; padding: 11px 14px; border: 1px solid var(--linie); background: var(--weiss); font: 500 .76rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.filter a span { color: var(--grau); }
.filter a:hover { border-color: var(--anthrazit); }
.filter a[aria-current="true"] { background: var(--anthrazit); color: var(--weiss); border-color: var(--anthrazit); }
.filter a[aria-current="true"] span { color: var(--blau-hell); }
.seitenzahlen { display: flex; gap: 6px; justify-content: center; margin-top: 56px; }
.seitenzahlen a, .seitenzahlen span { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--linie); text-decoration: none; font: 500 .9rem/1 var(--f-mono); background: var(--weiss); }
.seitenzahlen span { background: var(--anthrazit); color: var(--weiss); border-color: var(--anthrazit); }

/* ------------------------------------------------------------ Einzelprojekt */
.projekt-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: end; }
.projekt-kopf h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.projekt-kopf .lead { margin: 0; }
.steckbrief { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linie-dunkel); margin-top: 40px; }
.steckbrief div { padding: 18px 18px 0 0; }
.steckbrief dt { font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.steckbrief dd { margin: 6px 0 0; font: 600 1.25rem/1.2 var(--f-titel); letter-spacing: .03em; text-transform: uppercase; }
@media (max-width: 860px) { .projekt-kopf { grid-template-columns: 1fr; } .steckbrief { grid-template-columns: 1fr 1fr; } }
.titelbild { margin: 0; background: var(--stahl); }
.titelbild img { width: 100%; max-height: 78vh; object-fit: cover; }
.bildunterschrift { font: 400 .78rem/1.5 var(--f-mono); color: var(--grau); padding: 10px 0 0; letter-spacing: .02em; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stahl); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.galerie a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .galerie { grid-template-columns: 1fr 1fr; } }
.vorschau-hinweis { background: var(--rot); color: var(--weiss); text-align: center; padding: 10px; font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Bildbetrachter (ohne Bibliothek) */
.betrachter { position: fixed; inset: 0; z-index: 200; background: rgba(10, 11, 13, .95); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.betrachter.offen { display: flex; }
.betrachter img { max-width: 100%; max-height: 100%; object-fit: contain; }
.betrachter button { position: absolute; background: var(--blau); color: var(--weiss); border: 0; width: 48px; height: 48px; font: 700 1.4rem/1 var(--f-titel); cursor: pointer; }
.betrachter .zu { top: 12px; right: 12px; }
.betrachter .zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.betrachter .vor { right: 12px; top: 50%; transform: translateY(-50%); }
.betrachter .zaehler { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--grau-hell); font: 500 .8rem/1 var(--f-mono); }

/* ------------------------------------------------------------ Kontakt */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .kontakt-raster { grid-template-columns: 1fr; } }
.formular { background: var(--weiss); border: 1px solid var(--linie); padding: clamp(24px, 4vw, 44px); }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .formular .zeile { grid-template-columns: 1fr; } }
.feld { margin-bottom: 20px; }
.feld label { display: block; font: 500 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--text-2); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--f-text); color: var(--text);
  padding: 14px 14px; border: 1px solid #bdb9b0; background: var(--papier); border-radius: 0;
  transition: border-color .15s, background .15s; appearance: none;
}
.feld select { background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.feld textarea { min-height: 170px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--anthrazit); background: var(--weiss); box-shadow: inset 0 -3px 0 var(--blau); }
.feld.fehler input, .feld.fehler textarea, .feld.fehler select { border-color: var(--rot); }
.feld .meldung { color: var(--rot); font-size: .9rem; margin-top: 6px; }
.honig { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.klein { font-size: .9rem; color: var(--text-2); }
.box { padding: 18px 20px; margin-bottom: 24px; border-left: 4px solid; }
.box-ok { background: #e7f3e5; border-color: #2e7d32; }
.box-fehler { background: #fbe9e5; border-color: var(--rot); }
.box-hinweis { background: var(--blau-blass); border-color: var(--blau); }
.box strong { display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------ Fuß */
.fuss { background: var(--schwarz); color: var(--grau-hell); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .98rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--linie-dunkel); }
.fuss h3 { font-size: 1rem; letter-spacing: .1em; color: var(--weiss); margin-bottom: 18px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 9px; }
.fuss a { text-decoration: none; color: var(--grau-hell); }
.fuss a:hover { color: var(--blau-hell); }
.fuss .marke { color: var(--weiss); margin-bottom: 18px; }
.fuss .marke-text small { color: var(--grau); }
.fuss .tel { font: 700 1.6rem/1.1 var(--f-titel); color: var(--weiss); letter-spacing: .02em; display: inline-block; margin-top: 6px; }
.fuss-unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; font: 400 .76rem/1.5 var(--f-mono); letter-spacing: .04em; color: var(--grau); }
.fuss-unten nav { display: flex; gap: 20px; }
@media (max-width: 900px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; } }

/* Mobile Anruf-Leiste */
.anrufleiste { display: none; }
@media (max-width: 760px) {
  .anrufleiste { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
  .anrufleiste a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; text-decoration: none; font: 600 1.05rem/1 var(--f-titel); letter-spacing: .06em; text-transform: uppercase; }
  .anrufleiste .a1 { background: var(--anthrazit); color: var(--weiss); }
  .anrufleiste .a2 { background: var(--blau); color: var(--weiss); }
  .anrufleiste svg { width: 18px; height: 18px; }
  body { padding-bottom: 58px; }
}

/* 404 */
.fehlerseite { min-height: 60vh; display: flex; align-items: center; }
.fehlerseite .code { font: 700 clamp(6rem, 18vw, 12rem)/1 var(--f-titel); color: var(--blau-hell); }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Druck */
@media print {
  .notleiste, .kopf, .anrufleiste, .fuss, .havarie, .cta-bereich { display: none !important; }
  body { background: #fff; }
  .dunkel { background: #fff; color: #000; }
}
.abstand-oben { margin-top: 10px; }
.schnitt .fluss { animation: fluss 1.6s linear infinite; }
@keyframes fluss { to { stroke-dashoffset: -28; } }
.abschnitt-innen { margin-top: clamp(40px, 6vw, 72px); }
.galerie-titel { margin-top: clamp(56px, 7vw, 88px); }
.galerie-titel + .galerie { margin-top: 24px; }
.veroeffentlicht { color: var(--grau); margin-top: 2em; }
.rechtstext { max-width: 52em; font-size: 1rem; }
.rechtstext h2 { font-size: 1.7rem; }
.rechtstext h3 { font-size: 1.25rem; }
.box a { font-weight: 600; }
.navi a.knopf-dunkel { color: var(--weiss); }
.navi a.knopf-dunkel:hover { color: var(--schwarz); }
@media (min-width: 1181px) { .leistungen { grid-template-columns: repeat(4, 1fr); } .leistung { padding: 26px 24px 24px; } }
.kopf .marke .logo { height: 52px; width: auto; }
.fuss .marke .logo { height: 60px; width: auto; }
@media (max-width: 760px) { .kopf .marke .logo { height: 42px; } }
