/* Profil GmbH – Entwurf der neuen Website
   Leitidee: die Linie aus dem Logo. Eine rote Grundlinie, aus der PROFIL aufsteigt,
   Maßlinien wie im Werkplan, Schriftfelder wie auf der technischen Zeichnung.
   Kein JavaScript, keine fremden Quellen. Kein Inline-style (CSP). */

:root {
  color-scheme: light;
  /* Farben */
  --papier: #F0EEE8;        /* Kalkweiß, Grundfläche */
  --papier-hell: #F7F6F2;
  --weiss: #FFFFFF;
  --stein: #B9B1A3;         /* warmes Steingrau, nur Linien und Flächen */
  --stein-hell: #E4DFD6;
  --graphit: #20211E;       /* Text, dunkle Abschnitte */
  --text-leise: #5C5850;    /* 6,1:1 auf Kalkweiß */
  --hell-leise: #A9A396;    /* leiser Text auf Graphit, 6,4:1 */
  --rot: #CC203C;           /* Logo-Rot: Linie, Akzent, Knopf */
  --bordeaux: #881528;      /* dunkles Rot für Text auf hell, 8,3:1 */
  --linie-hell: rgb(240 238 232 / .22);
  /* Schrift */
  /* Schrift wie auf der bisherigen Website: Helvetica bzw. Arial als Systemschrift, keine Webfonts (Mikas Wunsch, 21.10.2026) */
  --titel: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Maße */
  --rand: clamp(1rem, 4vw, 4rem);
  --max: 100rem;
  --spalt: clamp(1rem, 2vw, 2rem);
  --abstand: clamp(5rem, 11vw, 11rem);
  /* Kopfleiste (seit 04.11.2026 mit dem kompletten Logo der alten Website, site/bilder/profil-logo-eng.png, 1222 : 620):
     Logohöhe, Abstand darüber, Lage und Stärke der roten Linie im Logo (Zeilen 236 bis 242 von 620, gemessen) und die
     Schriftgröße der Navigation. Die Leiste klebt nicht mehr, deshalb kein Kopfabstand für Sprungziele. */
  /* Handy und Tablet: Logo so breit wie der Inhalt, höchstens 8rem hoch (Seitenverhältnis des vollen Logos 2,9436) */
  --logo-h: min(8rem, calc((100vw - 2 * var(--rand)) / 2.9436));
  --kopf-rand: 1rem;
  --linie-oben: 0.3807;
  --linie-dicke: 0.0088;
  --kopf-h: 0px; /* am Computer klebt die Leiste, dann 8rem (unten) */
  --nav-schrift: clamp(.9375rem, .8rem + .2vw, 1rem);
  --weich: cubic-bezier(.2, .7, .2, 1);
  --h1: clamp(2.75rem, 7.5vw, 8rem);
  /* Schriftskala der Serife, fünf Stufen; jede Überschrift nimmt eine davon */
  --titel-xl: clamp(2.1rem, 5.1vw, 5rem);
  --titel-l: clamp(1.75rem, 3.7vw, 3.5rem);
  --titel-m: clamp(1.5rem, 2.4vw, 2.2rem);
  --titel-s: clamp(1.3rem, 1.85vw, 1.75rem);
  --titel-xs: 1.125rem;
  --abstand-klein: clamp(3rem, 6vw, 5.5rem);
}
@media (min-width: 64rem) {
  :root { --logo-h: clamp(8rem, 11vw, 10.5rem); --kopf-rand: 1rem; --kopf-h: calc(var(--logo-h) + 2 * var(--kopf-rand)); }
}

/* ---------------------------------------------------------------- Grundlagen */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--graphit);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, .etikett, .werk-meta, .bildzeile, .wv-tabelle, .maschinen-tabelle, .schriftfeld, .datenblatt, .eckdaten, .fuss { hyphens: manual; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--bordeaux); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
address { font-style: normal; }
::selection { background: var(--rot); color: var(--weiss); }

.rahmen {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.unsichtbar {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.springen {
  position: absolute;
  left: 1rem; top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--graphit);
  color: var(--papier);
  font-weight: 600;
}
.springen:focus { top: 1rem; color: var(--papier); }
.klein { font-size: .8125rem; line-height: 1.5; color: var(--text-leise); }

/* ---------------------------------------------------------------- Typografie */

.titel-xl, .titel-l, .titel-m, .held-titel {
  font-family: var(--titel);
  font-weight: 400;
  text-wrap: balance;
}
.held-titel {
  font-size: var(--h1);
  line-height: .95;
  letter-spacing: -.025em;
}
.titel-l {
  font-size: var(--titel-xl);
  line-height: 1.04;
  letter-spacing: -.018em;
  max-width: 15em;
}
.titel-m {
  font-size: var(--titel-l);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.titel-l em, .titel-m em, .held-titel em { font-style: italic; }
.nicht-kursiv { font-family: var(--text); font-size: .42em; letter-spacing: 0; vertical-align: .35em; }

.etikett {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.4rem;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.etikett::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--rot);
}
.etikett a { color: inherit; }

.abschnitt-kopf { max-width: 56rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.abschnitt-lead {
  max-width: 40rem;
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--text-leise);
}
.gross-text {
  font-family: var(--titel);
  font-size: var(--titel-s);
  line-height: 1.22;
  letter-spacing: -.005em;
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------- Bedienelemente */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  background: transparent;
  border: 1px solid var(--graphit);
  color: var(--graphit);
  font: 500 .9375rem/1.2 var(--text);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.knopf:hover { background: var(--graphit); border-color: var(--graphit); color: var(--papier); }
.knopf-voll { background: var(--graphit); color: var(--papier); }
.knopf-voll:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--weiss); }
.knopf-hell { background: var(--papier); border-color: var(--papier); color: var(--graphit); }
.knopf-hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--graphit); }

.pfeil-link {
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
  min-height: 2.75rem;
  align-content: center;
  padding-block: .6rem;
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-underline-offset: .4em;
}
.pfeil-link span { display: inline-block; transition: transform .35s var(--weich); }
.pfeil-link:hover span { transform: translateX(.3rem); }

.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }

/* Maßlinie: |—— 1.350 m² ——| */
.mass {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 10rem;
  color: var(--rot);
}
.mass-linie {
  position: relative;
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.mass-linie:first-child::before,
.mass-linie:last-child::after {
  content: "";
  position: absolute;
  top: -.4rem;
  width: 1px;
  height: .85rem;
  background: currentColor;
}
.mass-linie:first-child::before { left: 0; }
.mass-linie:last-child::after { right: 0; }
.mass-wert {
  color: var(--graphit);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Bildplatz für fehlende Fotos: Schraffur wie im Schnitt */
.platzhalter {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .4rem;
  padding: 2rem;
  aspect-ratio: 21 / 9;
  background:
    repeating-linear-gradient(-45deg, var(--stein) 0 1px, transparent 1px 12px),
    var(--papier-hell);
  border: 1px solid var(--stein);
  color: var(--text-leise);
  font-size: .8125rem;
  text-align: center;
}
.platzhalter span:first-child { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); }
.platzhalter strong {
  max-width: 28rem;
  padding: .2rem .6rem;
  background: var(--papier-hell);
  font: 400 var(--titel-s)/1.2 var(--titel);
  color: var(--graphit);
}
.hinweis-entwurf {
  max-width: 44rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--rot);
  background: var(--weiss);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--graphit);
}

/* ---------------------------------------------------------------- Entwurfsband */

.entwurf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .75rem;
  padding: .55rem var(--rand);
  background: var(--graphit);
  color: var(--papier);
  font-size: .8125rem;
  line-height: 1.45;
}
.entwurf strong {
  padding: .1rem .5rem;
  background: var(--rot);
  color: var(--weiss);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Kopf */

/* Gemeinsame Kopfleiste aller Seiten (Markus Bode, 07.11.2026: Headline weiß hinterlegt in der Leiste, bleibt beim Scrollen stehen;
   Mika, 13.11.2026: das Logo komplett wie hochgeladen, mit seinen eigenen Linienenden, ohne durchgezogene Linie, und größer):
   weiße Fläche, links das volle Logo, rechts Navigation und Kontakt mit der Unterkante auf Höhe der Logolinie, darunter die Headline.
   Am Computer klebt die Leiste, am Handy nicht; dort steht der Menüknopf rechts über der Logolinie, wo das Logo frei ist. */
.kopf {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding: var(--kopf-rand) max(var(--rand), calc((100% - var(--max)) / 2 + var(--rand))) var(--kopf-rand);
  background: var(--weiss);
  overflow-x: clip;
}
.kopf-logo { grid-column: 1; grid-row: 1; position: relative; display: block; }
.logo { display: block; height: var(--logo-h); width: auto; }
/* Rechts: Navigation und Kontakt sitzen auf der Linie, ihre Unterkante ist die Linienoberkante */
.kopf-rechts { grid-column: 2; grid-row: 1; justify-self: end; display: flex; align-items: flex-end; gap: clamp(1.5rem, 3vw, 3.5rem); height: calc(var(--logo-h) * var(--linie-oben)); }
/* Die Headline: am Handy unter dem Logo über die ganze Breite, am Computer rechts neben den Leistungen des Logos unter der Linie */
.kopf-slogan { grid-column: 1 / -1; grid-row: 2; margin: .9rem 0 0; max-width: 60em; font: 400 .9375rem/1.4 var(--text); color: var(--graphit); }
.kopf-nav { align-self: stretch; }
/* Umbruch nach „Lösungen“ nur am Computer (Markus Bode, 16.11.2026); am Handy fließt die Headline */
@media (max-width: 63.99rem) { .umbruch-computer { display: none; } }
.kopf-nav ul { display: flex; height: 100%; gap: clamp(1.25rem, 2.2vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.kopf-nav a {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0 0 .55rem;
  border-bottom: 3px solid transparent; /* Platz für die Markierung ist immer da: kein Springen beim Seitenwechsel */
  margin-bottom: -3px;
  font-size: var(--nav-schrift);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .005em;
  color: var(--graphit);
  text-decoration: none;
}
.kopf-nav a:hover { color: var(--bordeaux); }
.kopf-nav a:focus-visible { outline-offset: 2px; }
/* Aktuelle Seite: Die Grundlinie wird unter dem Menüpunkt stärker; der Punkt steht wie das Logo auf der Linie.
   .ist-bereich: Referenzseiten zeigen die Zugehörigkeit zu „Leistungen“ ohne aria-current */
.kopf-nav a[aria-current="page"], .kopf-nav a.ist-bereich { border-bottom-color: var(--rot); }
.kopf-kontakt {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 2.5rem;
  margin-bottom: .6rem;
  padding: .4rem 1.1rem;
  border: 1px solid var(--graphit);
  font-size: var(--nav-schrift);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .005em;
  color: var(--graphit);
  text-decoration: none;
}
/* Ein einziger Zustand für Hover und die Kontaktseite selbst: dunkle Fläche, helle Schrift */
.kopf-kontakt:hover, .kopf-kontakt[aria-current="page"] { background: var(--graphit); color: var(--papier); }
@media (min-width: 64rem) {
  .kopf { position: sticky; top: 0; }
  .kopf-logo { grid-row: 1 / 3; }
  .kopf-slogan { grid-column: 2; grid-row: 2; margin: .6rem 0 0; max-width: 56em; font-size: 1rem; }
}

/* Menü am Handy: details/summary, läuft ohne Skript und in älteren Browsern; menue.js ergänzt Escape, Fokusrückgabe und sperrt den Inhalt dahinter */
.menue { display: none; }
.menue-knopf {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  margin-bottom: .2rem;
  padding: .5rem 0;
  list-style: none;
  color: var(--graphit);
  font: 500 .9375rem/1 var(--text);
  cursor: pointer;
}
.menue-knopf::-webkit-details-marker { display: none; }
.menue-knopf::marker { content: ""; }
.menue-knopf::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(currentColor, currentColor) center calc(50% - 4px) / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center calc(50% + 4px) / 70% 1.5px no-repeat;
  background-position: center calc(50% - 4px), left calc(50% + 4px);
}
.menue[open] .menue-knopf::before {
  background:
    linear-gradient(45deg, transparent calc(50% - .75px), currentColor calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)) center / 100% 100% no-repeat,
    linear-gradient(-45deg, transparent calc(50% - .75px), currentColor calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)) center / 100% 100% no-repeat;
}
.menue-schliessen { display: none; }
.menue[open] .menue-auf { display: none; }
.menue[open] .menue-schliessen { display: inline; }
/* Die Tafel hängt direkt unter der Kopfleiste (Logo und Schließen bleiben sichtbar) und füllt den Bildschirm bis unten;
   bei wenig Höhe scrollt sie selbst. Keine Bewegung. */
.menue-tafel {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 50;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem var(--rand) 2.5rem;
  background: var(--papier);
  overflow-y: auto;
}
.menue-tafel ul { margin: 0; padding: 0; list-style: none; }
.menue-tafel li { border-bottom: 1px solid var(--stein); }
.menue-tafel ul a {
  display: block;
  padding: .8rem 0;
  font: 400 1.75rem/1.15 var(--titel);
  letter-spacing: -.01em;
  text-decoration: none;
}
.menue-tafel ul a[aria-current="page"], .menue-tafel ul a.ist-bereich {
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.menue-kontakt-knopf {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  padding: .6rem 1.4rem;
  background: var(--graphit);
  color: var(--papier);
  font-weight: 500;
  text-decoration: none;
}
.menue-kontakt-knopf:hover { color: var(--papier); background: var(--bordeaux); }
.menue-kontakt { margin: 2rem 0 0; font-weight: 500; line-height: 2; }

@media (max-width: 63.99rem) {
  .kopf-nav, .kopf-kontakt { display: none; }
  .menue { display: block; }
  /* Logo über die ganze Breite; der Menüknopf liegt im freien Feld rechts über der Logolinie (ab 66 % der Breite ist das Logo dort leer) */
  .kopf-logo { grid-column: 1 / -1; }
  .kopf-rechts { grid-column: 1 / -1; }
  /* Der Knopf liegt über dem Logo-Bild (das als positioniertes Element sonst darüber gezeichnet wird und den Tipp abfängt; Fehler vom 13. bis 16.11.2026) */
  .menue-knopf { position: relative; z-index: 2; }
}

/* ---------------------------------------------------------------- Startseite: Einstieg */

.held-text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--spalt);
  position: relative;
  z-index: 2;
  padding-top: clamp(2.25rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(2rem, 3.2vw, 3rem);
}
.held-text .etikett { grid-column: 1 / -1; }
.held-titel { grid-column: 1 / -1; }
.held-titel .zeile { display: block; width: fit-content; margin-left: 16.6%; }
.held-neben { grid-column: 1 / -1; margin: 2rem 0 0; max-width: 34rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; }
@media (max-width: 63.99rem) {
  /* Am Handy: Überschrift, Stufe ins Bild, Bild, dann Einleitung. Der Textblock löst sich auf (display: contents). */
  .held { display: flex; flex-direction: column; }
  .held-text { display: contents; }
  .held-text > .etikett { order: 1; padding: clamp(2rem, 5vw, 3rem) var(--rand) 0; }
  .held-titel { order: 2; position: relative; z-index: 2; padding-inline: var(--rand); }
  .held-titel .zeile { padding: 0 .75rem .1em 0; background: var(--papier); }
  .held-bild { order: 3; margin-top: calc(var(--h1) * -0.86); }
  .held-neben { order: 4; padding: 1.5rem var(--rand) clamp(2rem, 5vw, 3rem); margin-top: 0; }
  .held-titel .zeile { margin-left: 12%; }
}
@media (min-width: 64rem) {
  .held-text { padding-top: clamp(2rem, 2.8vw, 2.75rem); padding-bottom: 0; }
  .held-text .etikett { grid-column: 1 / span 7; grid-row: 1; }
  .held-titel { grid-column: 1 / -1; grid-row: 2; }
  /* Die zweite Zeile steht auf einer Papierfläche, die ins Bild ragt: eine Stufe wie das P im Logo */
  .held-titel .zeile { padding: 0 3.5rem .08em 0; background: var(--papier); }
  .held-neben { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: start; max-width: none; margin-top: .35rem; font-size: 1.0625rem; line-height: 1.5; }
}
.held-bild { overflow: hidden; aspect-ratio: 4 / 5; }
.held-dia { position: absolute; inset: 0; opacity: 0; }
.held-dia:first-child { opacity: 1; }
.held-dia img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
@media (min-width: 40rem) { .held-bild { aspect-ratio: 16 / 9; } }
@media (min-width: 64rem) {
  .held-bild { margin-top: calc(var(--h1) * -0.9); }
  /* Bild endet mit dem ersten Bildschirm: 100vh minus Band, Kopf, Etikett und erste Zeile */
  .held-bild { aspect-ratio: auto; height: clamp(26rem, calc(100vh - 12.5rem - var(--h1) * 0.95), 60vw); }
}

.held-bild { position: relative; background: var(--graphit); }
/* Die Bildzeile liegt auf dem Bild: Projekt links, Maß rechts, wie eine Bemaßung am Plan */
.bildzeile {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(5rem, 14vw, 10rem) var(--rand) clamp(1.25rem, 2.6vw, 2.25rem);
  background: linear-gradient(rgb(32 33 30 / 0), rgb(32 33 30 / .72));
  color: var(--papier);
  font-size: .875rem;
}
/* Blattkopf wie auf dem Plan: Fläche, Entwurf, Ausführung */
.blattkopf { display: flex; flex-wrap: wrap; gap: .75rem clamp(1.5rem, 3vw, 3rem); margin: 0; }
.blattkopf div { display: grid; gap: .3rem; }
.blattkopf dt { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hell-leise); }
.blattkopf dd { margin: 0; font: 400 var(--titel-xs)/1.1 var(--titel); color: var(--papier); }
.blattkopf .mass { min-width: 9rem; }
.blattkopf .mass-wert { font: 400 var(--titel-xs)/1.1 var(--titel); color: var(--papier); }
.bildzeile-projekt { min-height: 2.75rem; display: inline-flex; align-items: flex-end; text-decoration: none; }
.bildzeile-projekt:hover { color: var(--weiss); text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: .4em; }
.bildzeile-projekt span { display: inline-block; transition: transform .35s var(--weich); }
.bildzeile-projekt:hover span { transform: translateX(.3rem); }
.bildzeile .mass { color: var(--papier); }
.held-bild :focus-visible { outline-color: var(--papier); }
@media (max-width: 39.99rem) {
  .bildzeile { flex-direction: column; align-items: flex-start; }
  .blattkopf { gap: .75rem 1.5rem; }
}

/* ---------------------------------------------------------------- Startseite: Projekte */

.auswahl { margin-block: var(--abstand); }
.auswahl-liste {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3.5rem, 7vw, 7.5rem) var(--spalt);
  margin: 0;
  padding: 0;
  list-style: none;
}
.werk { grid-column: 1 / -1; }
.werk a, .karte a { display: block; color: inherit; text-decoration: none; }
.werk-bild, .karte-bild { overflow: hidden; aspect-ratio: var(--v, 3 / 2); background: var(--stein-hell); }
.werk-bild img, .karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--weich);
}
.werk a:hover img, .karte a:hover img, .weiter a:hover img { transform: scale(1.035); }
.werk-text { margin-top: 1rem; }
.werk-kunde {
  margin: 1rem 0 0;
  font: 400 var(--titel-s)/1.05 var(--titel);
  letter-spacing: -.01em;
}
.werk-text .werk-kunde { margin-top: 0; }
.werk-titel { margin-top: .4rem; font: 500 .9375rem/1.4 var(--text); }
.werk-meta { display: block; margin: .3rem 0 0; font-size: .8125rem; letter-spacing: .02em; color: var(--text-leise); }
.werk a:hover .werk-titel, .karte a:hover .werk-titel { color: var(--bordeaux); }

/* Handy: bewusst unterschiedliche Breiten statt gleicher Kacheln */
.werk-b { --v: 4 / 5; width: 82%; margin-left: auto; }
.werk-d { --v: 3 / 4; width: 70%; }
.werk-e { --v: 16 / 10; }
@media (min-width: 64rem) {
  .werk-a { grid-column: 1 / span 8; --v: 3 / 2; }
  .werk-b { grid-column: 9 / span 4; width: auto; margin-top: 38%; }
  .werk-c { grid-column: 2 / span 6; --v: 4 / 3; }
  .werk-d { grid-column: 9 / span 4; width: auto; margin-top: 14rem; }
  .werk-e { grid-column: 1 / span 7; --v: 16 / 9; margin-top: -12rem; }
  .auswahl-liste .werk-zwischen { grid-column: 9 / span 4; align-self: center; }
  .werk-a .werk-text { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; }
  .werk-a .werk-meta { grid-column: 2; grid-row: 1 / span 2; }
}
.werk-zwischen { grid-column: 1 / -1; }
.werk-zwischen .etikett { margin-bottom: 1rem; }
.werk-zwischen p:not(.etikett) { max-width: 24rem; font: italic 400 var(--titel-s)/1.22 var(--titel); letter-spacing: -.005em; }

/* ---------------------------------------------------------------- Startseite: Belege */

.belege { padding-block: clamp(3.5rem, 7vw, 6.5rem); background: var(--graphit); color: var(--papier); }
.belege-liste { display: grid; grid-template-columns: 1fr; gap: 2.5rem var(--spalt); margin: 0; }
.belege-liste > div { display: grid; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid var(--linie-hell); }
.belege-liste dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hell-leise); }
.belege-liste dd { margin: 0; }
.belege-wert .mass { width: 100%; min-width: 0; }
.belege-wert .mass-linie { min-width: .75rem; }
.belege-wert .mass-wert { font: 400 clamp(2.08rem, 3.52vw, 3.36rem)/1 var(--titel); letter-spacing: -.015em; color: var(--papier); }
.belege-liste dd:last-child { font-size: .9375rem; color: var(--hell-leise); }
.belege-liste a { text-decoration-color: var(--rot); }
.belege-liste a:hover { color: var(--weiss); }
.belege :focus-visible { outline-color: var(--papier); }
@media (min-width: 40rem) { .belege-liste { grid-template-columns: 1fr 1fr; } }
/* Vier Spalten erst, wenn „10 bis 5.000 m²“ nebeneinander Platz hat */
@media (min-width: 100rem) {
  .belege-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .belege-wert .mass-wert { font-size: clamp(2.2rem, 2.6vw, 3.4rem); }
}

/* ---------------------------------------------------------------- Startseite: Zwei Türen */

.tueren { padding-block: var(--abstand); }
.tueren-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem var(--spalt); }
.tuer { grid-column: 1 / -1; display: grid; gap: 1rem; align-content: start; }
.tuer-fuer { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); }
.tuer h3 { font: 400 var(--titel-m)/1.02 var(--titel); letter-spacing: -.015em; }
.tuer > p:not(.tuer-fuer):not(.tuer-beleg) { max-width: 30rem; }
.tuer .liste-linien { margin-top: .5rem; }
.tuer-beleg { margin-top: .5rem; }
.tuer figure { margin-top: 1rem; }
.tuer img { width: 100%; object-fit: cover; }
.tuer:first-child img { aspect-ratio: 4 / 5; }
.tuer:last-child img { aspect-ratio: 3 / 2; }
@media (min-width: 64rem) {
  .tuer:first-child { grid-column: 1 / span 6; }
  .tuer:last-child { grid-column: 8 / span 5; margin-top: 7rem; }
}

/* ---------------------------------------------------------------- Startseite: Leistungen */

.leistungen { margin-block: var(--abstand); }
.leistungen-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--graphit); }
.leistung {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  grid-template-areas: "nr wort" ". satz" ". bild";
  gap: .75rem 1rem;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--graphit);
  color: inherit;
  text-decoration: none;
}
.leistung::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--weich);
}
.leistung:hover::after, .leistung:focus-visible::after { transform: scaleX(1); }
.leistung:hover { color: inherit; }
.leistung-nr { grid-area: nr; padding-top: .5rem; font: italic 400 1.2rem/1 var(--titel); color: var(--rot); }
.leistung-wort {
  grid-area: wort;
  font: 400 clamp(2.08rem, 4.8vw, 4.32rem)/1 var(--titel);
  letter-spacing: -.02em;
  transition: transform .6s var(--weich);
}
.leistung:hover .leistung-wort { transform: translateX(.6rem); font-style: italic; }
.leistung-satz { grid-area: satz; max-width: 30rem; color: var(--text-leise); }
.leistung-bild { grid-area: bild; width: 62%; aspect-ratio: 4 / 3; overflow: hidden; margin-top: .5rem; }
.leistung-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--weich); }
.leistung:hover .leistung-bild img { transform: scale(1.06); }
.leistung-pfeil { display: none; }
@media (min-width: 64rem) {
  .leistung {
    grid-template-columns: 2.5rem minmax(0, 1.15fr) minmax(0, 1.15fr) clamp(9rem, 13vw, 13rem) 1.5rem;
    grid-template-areas: "nr wort satz bild pfeil";
    align-items: center;
    gap: 1.5rem;
    padding-block: 1.75rem;
  }
  .leistung-nr { padding-top: 0; }
  .leistung-wort { font-size: min(5.4rem, 4vw); }
}
@media (min-width: 90rem) {
  .leistung { gap: 2.5rem; }
  .leistung-bild { width: 100%; margin-top: 0; }
  .leistung-pfeil { display: block; grid-area: pfeil; font-size: 1.5rem; color: var(--rot); transition: transform .5s var(--weich); }
  .leistung:hover .leistung-pfeil { transform: translateX(.4rem); }
}

/* ---------------------------------------------------------------- Ablauf: eine Linie mit Stationen */

.ablauf { padding-block: var(--abstand); background: var(--weiss); }
.abschnitt-kopf-breit { max-width: 64rem; }
.ablauf-linie {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0 0 0 2.25rem;
  list-style: none;
}
.ablauf-linie::before {
  content: "";
  position: absolute;
  top: .4rem; bottom: .4rem; left: 0;
  width: 1px;
  background: var(--rot);
  transform-origin: top;
}
.station { position: relative; }
.station::before {
  content: "";
  position: absolute;
  top: 1rem; left: -2.25rem;
  width: 1.25rem;
  height: 1px;
  background: var(--rot);
}
.station-nr { display: block; font: italic 400 1.8rem/1 var(--titel); color: var(--rot); }
.station-titel { margin: .7rem 0 .45rem; font: 500 1.0625rem/1.3 var(--text); }
.station p { font-size: .9375rem; line-height: 1.55; color: var(--text-leise); }
@media (min-width: 64rem) {
  .ablauf-linie { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--spalt); padding: 2.75rem 0 0; }
  .ablauf-linie::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; transform-origin: left; }
  .station::before { top: -3.15rem; left: 0; width: 1px; height: .85rem; }
  .station:last-child::after {
    content: "";
    position: absolute;
    top: -3.15rem; right: 0;
    width: 1px; height: .85rem;
    background: var(--rot);
  }
}
.ablauf-film { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; margin-top: clamp(3rem, 5vw, 4.5rem); }

/* ---------------------------------------------------------------- Werkstatt-Abschnitt (dunkel) */

.werkstatt-teaser, .schluss {
  background: var(--graphit);
  color: var(--papier);
}
.werkstatt-teaser .etikett, .schluss .etikett { color: var(--hell-leise); }
.werkstatt-teaser a:hover, .schluss a:hover { color: var(--weiss); }
.werkstatt-teaser :focus-visible, .schluss :focus-visible { outline-color: var(--papier); }
.werkstatt-teaser { padding-block: var(--abstand); }
.werkstatt-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) var(--spalt); }
.werkstatt-kopf { grid-column: 1 / -1; }
.werkstatt-kopf p { max-width: 30rem; margin-top: 1.5rem; color: var(--papier); }
.werkstatt-gross { grid-column: 1 / -1; }
.werkstatt-klein { grid-column: 4 / -1; }
.werkstatt-gross img, .werkstatt-klein img { width: 100%; object-fit: cover; }
.werkstatt-gross img { aspect-ratio: 4 / 3; }
.werkstatt-klein img { aspect-ratio: 4 / 5; }
.datenblatt { grid-column: 1 / -1; display: grid; margin: 0; border-top: 1px solid var(--linie-hell); }
.datenblatt div { display: grid; gap: .35rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--linie-hell); }
@media (min-width: 40rem) { .datenblatt div { grid-template-columns: 10.5rem 1fr; } }
.datenblatt dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--hell-leise); padding-top: .3rem; }
.datenblatt dd { margin: 0; font: 400 var(--titel-xs)/1.25 var(--titel); }
.datenblatt dd span { display: block; font: 400 .875rem/1.5 var(--text); color: var(--hell-leise); }
@media (min-width: 64rem) {
  .werkstatt-kopf { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
  .werkstatt-gross { grid-column: 6 / -1; grid-row: 1; margin-right: calc(-1 * var(--rand)); }
  .werkstatt-klein { grid-column: 2 / span 3; grid-row: 2; }
  .datenblatt { grid-column: 6 / -1; grid-row: 2; align-self: start; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--spalt); }
}

/* ---------------------------------------------------------------- Zusammenarbeit */

.zusammenarbeit { margin-block: var(--abstand); }
.partner-liste { display: grid; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--stein); }
.partner-liste a {
  display: grid;
  gap: .6rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--stein);
  color: inherit;
  text-decoration: none;
}
.partner-name { font: 400 var(--titel-m)/1 var(--titel); letter-spacing: -.01em; transition: transform .6s var(--weich); }
.partner-text { max-width: 34rem; color: var(--text-leise); }
.partner-liste a:hover .partner-name { transform: translateX(.5rem); font-style: italic; color: var(--bordeaux); }
@media (min-width: 64rem) {
  .partner-liste a { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; gap: var(--spalt); padding-block: 2.25rem; }
}

/* Namen-Band: Kunden und Partner als laufende Zeile auf der Linie */
.namen { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.25rem; border-top: 1px solid var(--rot); border-bottom: 1px solid var(--stein); overflow: hidden; }
.namen-lauf { display: flex; width: max-content; }
.namen-lauf > div { display: flex; flex: none; }
.namen-lauf span { padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); font: italic 400 clamp(1.2rem, 1.92vw, 1.8rem)/1.2 var(--titel); white-space: nowrap; }
.namen-lauf span::before { content: "·"; margin-right: clamp(1.25rem, 2.5vw, 2.5rem); font-style: normal; color: var(--rot); }
@media (prefers-reduced-motion: no-preference) {
  .namen-lauf { animation: namen-laufen 60s linear infinite; }
  .namen:hover .namen-lauf { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .namen-lauf, .namen-lauf > div { flex-wrap: wrap; width: auto; }
  .namen-lauf > div[aria-hidden] { display: none; }
  .namen-lauf span { white-space: normal; }
}
@keyframes namen-laufen { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Unternehmen-Abschnitt */

/* ---------------------------------------------------------------- Abschluss Kontakt */

/* Kontaktabschluss (22.10.2026): links Etikett und Überschrift, rechts Text, ein Knopf, darunter Telefon und E-Mail; beide Spalten an einer oberen Linie */
.schluss { padding-block: clamp(5.5rem, 7vw, 7rem); }
.schluss-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--spalt); align-items: start; }
.schluss-kopf, .schluss-kontakt { grid-column: 1 / -1; }
.schluss .etikett { margin-bottom: 1.25rem; }
.schluss-titel { margin: 0; max-width: 11em; font: 400 clamp(2.75rem, 4.5vw, 4.75rem)/1.08 var(--titel); letter-spacing: -.02em; text-wrap: balance; color: var(--papier); }
.schluss-kontakt { max-width: 26rem; }
.schluss-text { margin: 0; max-width: 40ch; font-size: 1.0625rem; line-height: 1.55; color: var(--papier); }
.schluss-aktion { margin: 1.75rem 0 0; }
.schluss .schluss-cta { gap: .6rem; min-height: 3.25rem; padding: .9rem 1.5rem; background: var(--papier); border-color: var(--papier); color: var(--graphit); }
.schluss .schluss-cta:hover { background: var(--weiss); border-color: var(--weiss); color: var(--graphit); }
.schluss-pfeil { font-size: 1rem; line-height: 1; }
.schluss-direkt-titel { margin: 2rem 0 .4rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--hell-leise); }
.schluss-direkt { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.schluss-direkt a { color: var(--papier); text-decoration: underline; text-decoration-color: var(--hell-leise); text-underline-offset: .22em; overflow-wrap: anywhere; }
.schluss-direkt a:hover { color: var(--weiss); text-decoration-color: var(--weiss); }
@media (min-width: 64rem) {
  .schluss-kopf { grid-column: 1 / span 7; }
  .schluss-kontakt { grid-column: 8 / span 5; }
}

/* ---------------------------------------------------------------- Fuß */

.fuss { padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; border-top: 1px solid var(--stein); font-size: .9375rem; }
.fuss-raster, .fuss-unten {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.fuss-raster { display: grid; gap: 2.5rem var(--spalt); grid-template-columns: 1fr; }
@media (min-width: 30rem) { .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fuss-marke { grid-column: 1 / -1; }
.fuss-name { margin: 0 0 .4rem; font-weight: 500; }
.fuss-marke p { max-width: 18rem; color: var(--text-leise); }
.fuss-titel { margin-bottom: .75rem; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-leise); }
.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss li { margin-bottom: .2rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--rot); }
.fuss-raster p { margin-bottom: .75rem; }
.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stein);
  font-size: .8125rem;
  color: var(--text-leise);
}
.fuss-unten p { margin: 0; }
.blatt { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.fuss-unten ul { display: flex; gap: 1.5rem; }
.fuss-unten li { margin: 0; }
@media (min-width: 64rem) {
  .fuss-raster { grid-template-columns: 5fr 3fr 3fr 3fr; }
  .fuss-marke { grid-column: auto; }
}

/* ---------------------------------------------------------------- Unterseiten allgemein */

.seitenkopf { padding-top: clamp(2.75rem, 7vw, 6.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.seitenkopf-lead {
  max-width: 42rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-leise);
}
.seitenkopf .aktionen, .seitenkopf > p:last-child { margin-top: 2rem; }
.seitenkopf .hinweis-entwurf { margin-top: 2rem; }
.werk-meta .hinweis-entwurf { display: inline; max-width: none; padding: 0; border: 0; background: none; font: inherit; color: inherit; }

.zweispaltig {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem var(--spalt);
  padding-block: var(--abstand-klein);
  background: linear-gradient(var(--stein), var(--stein)) var(--rand) 0 / calc(100% - 2 * var(--rand)) 1px no-repeat;
}
.zweispaltig > .etikett { grid-column: 1 / -1; }
.zweispaltig > div, .zweispaltig > dl { grid-column: 1 / -1; max-width: 46rem; }
@media (min-width: 64rem) {
  .zweispaltig > .etikett { grid-column: 1 / span 3; align-self: start; padding-top: .6rem; }
  .zweispaltig > div, .zweispaltig > dl { grid-column: 5 / span 8; }
}

.liste-linien { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.liste-linien li { padding: .8rem 0; border-bottom: 1px solid var(--stein); }
@media (min-width: 40rem) {
  .liste-zweispaltig { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--spalt); }
}

/* ---------------------------------------------------------------- Projekte: Übersicht */

/* Projektübersicht (22.10.2026): kompakter Einstieg, H1 links und Satz rechts, Filter als Textreiter,
   das erste sichtbare Projekt je Filter in voller Breite (16:9), danach zwei Spalten */
.projekte-kopf { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.projekte-kopf .etikett { margin-bottom: 1rem; }
.projekte-kopf-raster { display: grid; gap: .75rem var(--spalt); }
.projekte-kopf .seitenkopf-lead { max-width: 26rem; margin-top: 0; font-size: 1.0625rem; line-height: 1.5; }
@media (min-width: 64rem) {
  .projekte-kopf-raster { grid-template-columns: 7fr 5fr; align-items: end; }
  .projekte-kopf .seitenkopf-lead { padding-bottom: .4em; }
}
.projekte { margin-bottom: var(--abstand); }
.filter { display: flex; flex-wrap: wrap; gap: 0 clamp(1.25rem, 2.5vw, 2rem); margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); padding: 0; border: 0; border-bottom: 1px solid var(--stein); }
.filter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.filter label {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  min-height: 2.75rem;
  margin-bottom: -1px;
  padding: .7rem 0 .8rem;
  border-bottom: 2px solid transparent;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-leise);
  cursor: pointer;
}
.filter label span { font-size: .75rem; font-weight: 500; color: var(--text-leise); }
.filter label:hover { color: var(--graphit); }
.filter input:checked + label { color: var(--graphit); border-bottom-color: var(--rot); }
.filter input:focus-visible + label { outline: 2px solid var(--rot); outline-offset: 2px; }

.projektraster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) var(--spalt);
  margin: 0;
  padding: 0;
  list-style: none;
}
.karte { grid-column: 1 / -1; --v: 3 / 2; }
@media (min-width: 40rem) { .karte { grid-column: span 6; } }
.karte-text { margin-top: 1rem; }
.karte .werk-kunde { margin-top: 0; }
.karte-hinweis { display: var(--hinweis, none); margin-top: .75rem; font-size: .875rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: .3em; }
/* Auftakt: die erste sichtbare Karte des aktuellen Filters, voll breit und 16:9, mit Hinweis zum Öffnen */
.projektraster > .karte:first-child,
.projekte:has(#f-messebau:checked) .karte[data-bereich="messebau"]:not(.karte[data-bereich="messebau"] ~ .karte[data-bereich="messebau"]),
.projekte:has(#f-objekt:checked) .karte[data-bereich="objekt"]:not(.karte[data-bereich="objekt"] ~ .karte[data-bereich="objekt"]),
.projekte:has(#f-laden:checked) .karte[data-bereich="laden"]:not(.karte[data-bereich="laden"] ~ .karte[data-bereich="laden"]) { grid-column: 1 / -1; --v: 16 / 9; --hinweis: inline-block; }
.projekte:has(#f-messebau:checked) .projektraster > :not([data-bereich="messebau"]),
.projekte:has(#f-objekt:checked) .projektraster > :not([data-bereich="objekt"]),
.projekte:has(#f-laden:checked) .projektraster > :not([data-bereich="laden"]) { display: none; }

.werkverzeichnis { margin-bottom: var(--abstand); }
.wv-tabelle, .maschinen-tabelle { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.wv-tabelle th, .maschinen-tabelle th[scope="col"] {
  padding: .75rem 1rem .75rem 0;
  border-bottom: 1px solid var(--graphit);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-leise);
}
.wv-tabelle td, .maschinen-tabelle td, .maschinen-tabelle th[scope="row"] {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--stein);
  text-align: left;
  vertical-align: top;
}

/* Werkverzeichnis (22.10.2026): Jahresgruppen absteigend, Zeilen mit kleinem Bild, Suche und Bereichsfilter nur für das Archiv */
.wv-steuerung { display: grid; gap: .75rem var(--spalt); align-items: end; margin: 0 0 clamp(1.25rem, 2.5vw, 2rem); }
.wv-suche-feld { display: none; margin: 0; }
.wv-js .wv-suche-feld { display: grid; gap: .4rem; }
.wv-suche-feld label { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.wv-suche-feld input {
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .8rem;
  border: 1px solid var(--stein);
  border-radius: 0;
  background: var(--weiss);
  font: inherit;
  font-size: .9375rem;
  color: var(--graphit);
}
.wv-suche-feld input:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
.wv-filter { margin: 0; border-bottom: 0; }
.wv-filter label { min-height: 2.5rem; padding: .55rem 0 .65rem; }
.wv-treffer { display: none; margin: 0; padding-bottom: .65rem; font-size: .8125rem; color: var(--text-leise); white-space: nowrap; }
.wv-js .wv-treffer { display: block; }
@media (min-width: 64rem) { .wv-steuerung { grid-template-columns: minmax(16rem, 22rem) 1fr auto; } }
.wv-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--graphit); }
.wv-jahr { display: grid; gap: 0 var(--spalt); border-bottom: 1px solid var(--graphit); }
.wv-jahr-zahl { margin: 0; padding: 1rem 0 .25rem; font: 400 var(--titel-s)/1 var(--titel); font-variant-numeric: tabular-nums; color: var(--text-leise); }
.wv-zeilen { margin: 0; padding: 0; list-style: none; }
.wv-zeile + .wv-zeile { border-top: 1px solid var(--stein); }
.wv-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: center; padding: .8rem 0; color: inherit; text-decoration: none; }
.wv-bild { display: block; width: 6rem; height: 4rem; overflow: hidden; background: var(--stein-hell); }
.wv-bild-leer { background: transparent; }
.wv-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wv-text { min-width: 0; }
.wv-haupt { display: block; font-size: 1rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.wv-meta, .wv-partner { display: block; margin-top: .2rem; font-size: .8125rem; line-height: 1.4; color: var(--text-leise); }
.wv-pfeil { font-size: 1.1rem; line-height: 1; color: var(--text-leise); }
a.wv-link:hover .wv-haupt { color: var(--bordeaux); }
a.wv-link:hover .wv-pfeil { color: var(--rot); }
a.wv-link:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
.wv-ohne { cursor: default; }
@media (min-width: 48rem) {
  .wv-jahr { grid-template-columns: 7rem minmax(0, 1fr); }
  .wv-jahr-zahl { padding-top: 1.2rem; }
  .wv-bild { width: 9rem; height: 6rem; }
  .wv-link { gap: 1rem 1.25rem; padding: .9rem 0; }
}
.wv-leer { margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--graphit); color: var(--text-leise); }
.wv-leer .wv-reset { margin-left: .75rem; min-height: 2.5rem; padding: .5rem 1rem; }
/* Ohne Skript: Bereichsfilter rein per CSS, leere Jahresgruppen ausblenden */
.werkverzeichnis:has(#wv-messebau:checked) .wv-zeile:not([data-bereich="messebau"]),
.werkverzeichnis:has(#wv-objekt:checked) .wv-zeile:not([data-bereich="objekt"]),
.werkverzeichnis:has(#wv-laden:checked) .wv-zeile:not([data-bereich="laden"]) { display: none; }
.werkverzeichnis:has(#wv-messebau:checked) .wv-jahr:not(:has(.wv-zeile[data-bereich="messebau"])),
.werkverzeichnis:has(#wv-objekt:checked) .wv-jahr:not(:has(.wv-zeile[data-bereich="objekt"])),
.werkverzeichnis:has(#wv-laden:checked) .wv-jahr:not(:has(.wv-zeile[data-bereich="laden"])) { display: none; }

/* ---------------------------------------------------------------- Projektseite */

.projekt-kopf { padding-top: clamp(2.75rem, 7vw, 6.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.projekt-titelbild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stein-hell);
}
@media (min-width: 40rem) { .projekt-titelbild img { aspect-ratio: 16 / 9; max-height: 86vh; } }
/* Kennzahl auf dem Titelbild: die Zahl als Raumgröße, wie ein Maß am Bau */
.mit-kennzahl { position: relative; }
.mit-kennzahl::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(rgb(32 33 30 / 0), rgb(32 33 30 / .72));
  pointer-events: none;
}
.titel-kennzahl {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0 var(--rand) clamp(1.25rem, 3vw, 2.75rem);
  color: var(--papier);
}
.titel-kennzahl-meta { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.titel-kennzahl-wert { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.titel-kennzahl-wert strong { font: 400 clamp(2.08rem, 5.6vw, 5.6rem)/1 var(--titel); letter-spacing: -.02em; }
.titel-kennzahl-wert span { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hell-leise); }
@media (max-width: 39.99rem) {
  .titel-kennzahl { flex-direction: column; align-items: flex-start; }
  .titel-kennzahl-wert { align-items: flex-start; text-align: left; }
}
.projekt-raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--spalt);
  margin-block: clamp(3rem, 7vw, 7rem);
}
.schriftfeld, .projekt-text { grid-column: 1 / -1; }
@media (min-width: 64rem) {
  .schriftfeld { grid-column: 1 / span 4; align-self: start; position: sticky; top: 2rem; }
  .projekt-text { grid-column: 6 / -1; }
}
/* Schriftfeld wie auf einer technischen Zeichnung */
.schriftfeld dl { margin: 0; border: 1px solid var(--graphit); background: var(--papier-hell); }
.schriftfeld dl > div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; border-bottom: 1px solid var(--graphit); }
.schriftfeld dl > div:last-child { border-bottom: 0; }
.schriftfeld dt {
  padding: .7rem .8rem;
  border-right: 1px solid var(--graphit);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.schriftfeld dd { margin: 0; padding: .65rem .8rem; font-size: .9375rem; line-height: 1.45; }
.schriftfeld dl > div:first-child dd { font: 400 var(--titel-xs)/1.2 var(--titel); }
.textzeile { display: grid; gap: .75rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--stein); }
.textzeile:last-child { margin-bottom: 0; }
.textzeile h2 { font: 400 var(--titel-s)/1.1 var(--titel); color: var(--bordeaux); }
.textzeile p { max-width: 38rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; }
@media (min-width: 40rem) { .textzeile { grid-template-columns: 10rem 1fr; gap: 2rem; } }

.bildfolge { display: grid; gap: var(--spalt); margin-bottom: var(--abstand); }
.bildfolge img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Reihen zu zweit oder zu dritt, alle Bilder im gleichen Format; am Handy untereinander */
.bildreihe { display: grid; grid-template-columns: 1fr; gap: var(--spalt); align-items: start; }
@media (min-width: 48rem) {
  .bildreihe-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bildreihe-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bildreihe-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Hochformate (seit 16.11.2026): 3 : 4 statt 3 : 2, am Handy zu zweit */
.bildfolge .bildreihe-hoch img { aspect-ratio: 3 / 4; }
@media (max-width: 47.99rem) { .bildreihe-hoch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bildfolge figcaption, .chronik-bilder figcaption, .handwerk figcaption, .tuer figcaption { margin-top: .75rem; font-size: .8125rem; line-height: 1.5; color: var(--text-leise); }

.chronik { padding-block: var(--abstand); background: var(--weiss); }
.chronik-liste { margin: clamp(2.5rem, 5vw, 4rem) 0; padding: 0; list-style: none; border-top: 1px solid var(--graphit); }
.chronik-liste li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--stein); }
.chronik-jahr { font: 400 var(--titel-xs)/1.2 var(--titel); color: var(--bordeaux); }
.chronik-bilder { display: grid; gap: 2rem var(--spalt); }
.chronik-bilder img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 48rem) {
  .chronik-liste li { grid-template-columns: 12rem 1fr; }
  .chronik-bilder { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

.weiter a {
  display: grid;
  gap: 1rem var(--spalt);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--graphit);
  color: inherit;
  text-decoration: none;
}
.weiter .etikett { margin-bottom: .5rem; }
.weiter-titel { display: block; font: 400 clamp(1.92rem, 4vw, 3.68rem)/1 var(--titel); letter-spacing: -.015em; }
.weiter-titel em { font-style: italic; }
.weiter-bild { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.weiter-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--weich); }
.weiter a:hover .weiter-titel { color: var(--bordeaux); }
@media (min-width: 48rem) {
  .weiter a { grid-template-columns: 1fr 1fr; align-content: start; }
  .weiter a > span:not(.weiter-bild) { grid-column: 1; }
  .weiter-bild { grid-column: 2; grid-row: 1 / span 3; }
}

/* ---------------------------------------------------------------- Leistungen (22.10.2026) */

/* Gemeinsamer Auftakt-Stil für Leistungen, Werkstatt und Unternehmen: Etikett, kompakte H1, kurzer Satz */
.auftakt-titel { margin: 0; max-width: 14em; font: 400 clamp(2.5rem, 4.4vw, 4.25rem)/1.06 var(--titel); letter-spacing: -.02em; text-wrap: balance; }
/* Unternehmen: zweizeilige H1 (Umbruch im Text), kleiner als die frühere Großfassung, gleiche Größe und Stärke in beiden Zeilen;
   Einleitung auf 55 bis 65 Zeichen je Zeile begrenzt. Nur hier, keine Wirkung auf andere Seiten oder die Geschäftsleitung. */
.unternehmen-auftakt .unternehmen-titel { max-width: none; font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.02em; }
.auftakt-satz { max-width: 36rem; margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text-leise); }
.bildtext { margin-top: .6rem; font-size: .8125rem; line-height: 1.45; color: var(--text-leise); }

/* Leistungen: Einstieg ohne Einführungssatz, eine textliche Sprungliste zu den drei Schwerpunkten (die Bilder stehen auf der Startseite) */
.leistungen-auftakt { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.sprungliste { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.sprungliste ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--graphit); }
.sprungliste li { border-bottom: 1px solid var(--stein); }
.sprungliste a { display: flex; align-items: baseline; gap: 1rem; padding: .8rem 0; font: 400 clamp(1.25rem, 1.9vw, 1.75rem)/1.15 var(--titel); letter-spacing: -.01em; text-decoration: none; }
.sprung-nr { font: 500 .75rem/1 var(--text); letter-spacing: .12em; color: var(--rot); font-variant-numeric: tabular-nums; }
.sprungliste a::after { content: "→"; margin-left: auto; color: var(--text-leise); }
.sprungliste a:hover { color: var(--bordeaux); }
.sprungliste a:hover::after { color: var(--rot); }
.sprungliste a:focus-visible { outline: 2px solid var(--rot); outline-offset: 4px; }
@media (min-width: 48rem) {
  .sprungliste ol { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--spalt); }
  .sprungliste li { border-bottom: 0; }
  .sprungliste a { padding: 1rem 0 0; }
}
.bereich, .zusammenarbeit { scroll-margin-top: calc(var(--kopf-h) + 1rem); }

/* Die drei Schwerpunkte: Kopf (Etikett, H2) über die ganze Breite, dann Text links und die Hauptreferenz rechts, darunter weitere Referenzen reduziert */
.bereich { padding-block: clamp(3.5rem, 7vw, 6.5rem); border-bottom: 1px solid var(--stein); }
.bereich-kopf { margin-bottom: clamp(2rem, 4vw, 3rem); }
.bereich-kopf .etikett { margin-bottom: 1.25rem; }
.bereich-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) var(--spalt); align-items: start; }
.bereich-text, .hauptreferenz, .bereich-kunden { grid-column: 1 / -1; }
.bereich-titel { margin: 0; max-width: 14em; font: 400 clamp(2.25rem, 3.8vw, 3.75rem)/1.08 var(--titel); letter-spacing: -.02em; text-wrap: balance; }
.bereich-absatz { max-width: 36rem; margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.leistungsgruppen { margin: 2rem 0 0; max-width: 36rem; border-top: 1px solid var(--graphit); }
.leistungsgruppen div { display: grid; gap: .25rem; padding: .9rem 0; border-bottom: 1px solid var(--stein); }
.leistungsgruppen dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.leistungsgruppen dd { margin: 0; font-size: .9375rem; line-height: 1.5; }
/* Hauptreferenz: starkes Bild, darunter Auftraggeber, Titel, Satz, Ort und Jahr, Link; optional ein Detailbild */
.hauptreferenz { display: grid; gap: 1rem var(--spalt); }
.hauptreferenz-bild { display: block; overflow: hidden; background: var(--stein-hell); }
.hauptreferenz-bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hauptreferenz-text p { margin: 0; }
.referenz-etikett { margin: 0 0 .5rem !important; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.hauptreferenz-kunde { font-size: .9375rem; font-weight: 500; }
.hauptreferenz-titel { font: 400 var(--titel-s)/1.15 var(--titel); letter-spacing: -.01em; }
.hauptreferenz-satz { margin-top: .6rem !important; max-width: 34rem; font-size: .9375rem; line-height: 1.5; color: var(--text-leise); }
.hauptreferenz-text .werk-meta { margin-top: .5rem !important; }
.referenz-link { margin-top: .9rem !important; }
.hauptreferenz-detail { margin: 0; }
.hauptreferenz-detail img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stein-hell); }
.hauptreferenz-detail.hochkant img { aspect-ratio: 2 / 3; object-position: 50% 55%; }
@media (max-width: 39.99rem) { .hauptreferenz-detail.hochkant { max-width: 15rem; } }
@media (min-width: 40rem) { .hauptreferenz { grid-template-columns: repeat(12, minmax(0, 1fr)); } .hauptreferenz-bild { grid-column: 1 / -1; } .hauptreferenz-text { grid-column: 1 / span 7; } .hauptreferenz-detail { grid-column: 9 / span 4; } }
/* Weitere Referenzen, reduziert: kleines Bild, Kunde, Titel, Ort und Jahr */
.weitere-referenzen { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--graphit); }
.referenz-weitere-titel { margin: 0 0 1rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.weitere-referenzen ul { display: grid; gap: 1.25rem var(--spalt); margin: 0; padding: 0; list-style: none; }
.weitere-referenzen a, .weitere-ohne { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: .9rem; align-items: start; color: inherit; text-decoration: none; }
.weitere-bild { display: block; overflow: hidden; background: var(--stein-hell); }
.weitere-bild img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.weitere-bild-leer { aspect-ratio: 3 / 2; background: var(--stein-hell); }
.weitere-text { display: grid; gap: .1rem; font-size: .9375rem; line-height: 1.4; }
.weitere-kunde { font-weight: 500; }
.weitere-titel { color: var(--graphit); }
.weitere-text .werk-meta { margin: .15rem 0 0; }
.weitere-pfeil { color: var(--text-leise); }
.weitere-referenzen a:hover .weitere-titel { text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: .2em; }
.weitere-referenzen a:hover .weitere-pfeil { color: var(--rot); }
.weitere-referenzen a:focus-visible { outline: 2px solid var(--rot); outline-offset: 4px; }
@media (min-width: 40rem) { .weitere-referenzen ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .weitere-referenzen ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weitere-referenzen a, .weitere-ohne { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .weitere-pfeil { display: none; }
}
/* Ladenbau als Unterabschnitt der Objekteinrichtungen (Kundenvorgabe), mit eigenem Anker */
.ladenbau { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--graphit); scroll-margin-top: calc(var(--kopf-h) + 1rem); }
.ladenbau-titel { margin: 0 0 1rem; font: 400 var(--titel-m)/1.1 var(--titel); letter-spacing: -.015em; }
.bereich-kunden { margin: 1.5rem 0 0; font-size: .875rem; color: var(--text-leise); }
.bereich .hinweis-entwurf { margin-top: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 64rem) {
  .bereich-text { grid-column: 1 / span 5; }
  .hauptreferenz { grid-column: 7 / span 6; }
}

/* Zusammenarbeit: vier ruhige Schritte */
.zusammenarbeit { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.zusammenarbeit-kopf { max-width: 44rem; }
.schritte { display: grid; gap: 1.5rem var(--spalt); margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.schritte li { padding-top: 1rem; border-top: 1px solid var(--graphit); }
.schritt-nr { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--rot); font-variant-numeric: tabular-nums; }
.schritte h3 { margin: .6rem 0 .4rem; font: 500 1.0625rem/1.3 var(--text); }
.schritte p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--text-leise); }
@media (min-width: 40rem) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zusammenarbeit-link { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }

/* ---------------------------------------------------------------- Werkstatt (22.10.2026) */

/* Auftakt als Reportage: Überschrift über einem großen Werkstattfoto, darunter Bildzeile mit Link, dann der Übergang */
.werkstatt-auftakt { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.werkstatt-reportage { margin: 0 auto; }
.werkstatt-reportage img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% 60%; background: var(--stein-hell); }
.reportage-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: .75rem; font-size: .8125rem; line-height: 1.45; color: var(--text-leise); }
.reportage-zeile .pfeil-link { font-size: .875rem; }
.werkstatt-uebergang { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.werkstatt-uebergang p { max-width: 40rem; margin: 0; font-size: 1.0625rem; line-height: 1.6; }
@media (min-width: 48rem) { .werkstatt-reportage img { aspect-ratio: 16 / 9; object-position: 50% 55%; } }
.kapitel-liste { scroll-margin-top: calc(var(--kopf-h) + 1rem); }

/* Fünf Fertigungskapitel: Bild etwa 58 %, Text etwa 42 %, beide oben bündig */
.kapitel-liste { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.kapitel-folge { margin: 0; padding: 0; list-style: none; }
.kapitel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem var(--spalt); align-items: start; padding: clamp(2.25rem, 4vw, 3.5rem) 0; border-top: 1px solid var(--stein); }
.kapitel-bilder, .kapitel-text { grid-column: 1 / -1; }
.kapitel-bilder { display: grid; gap: 1.25rem var(--spalt); }
.kapitel-bild, .kapitel-detail { margin: 0; }
.kapitel-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stein-hell); }
.kapitel-detail { width: 60%; }
.kapitel-detail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stein-hell); }
.kapitel-nr { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--rot); font-variant-numeric: tabular-nums; }
.kapitel-text h3 { margin: .6rem 0 .9rem; max-width: 14em; font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--titel); letter-spacing: -.015em; text-wrap: balance; }
.kapitel-text p { max-width: 34rem; margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.kapitel-fakten { margin: 1.5rem 0 0; max-width: 34rem; border-top: 1px solid var(--graphit); }
.kapitel-fakten div { display: grid; gap: .2rem; padding: .7rem 0; border-bottom: 1px solid var(--stein); }
.kapitel-fakten dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.kapitel-fakten dd { margin: 0; font-size: .9375rem; line-height: 1.5; }
@media (min-width: 64rem) {
  .kapitel-bilder { grid-column: 1 / span 7; }
  .kapitel-text { grid-column: 8 / span 5; }
  .kapitel-cnc .kapitel-text, .kapitel-oberflaeche .kapitel-text { grid-column: 1 / span 5; grid-row: 1; }
  .kapitel-cnc .kapitel-bilder, .kapitel-oberflaeche .kapitel-bilder { grid-column: 6 / span 7; grid-row: 1; }
  .kapitel-lager .kapitel-bilder { grid-column: 1 / span 5; }
  .kapitel-lager .kapitel-text { grid-column: 6 / span 7; }
  .kapitel-detail { width: 40%; }
}

/* Produktionsfilm (seit 04.11.2026 auf der Startseite): nur auf Klick, Hinweis mit Laufzeit über dem Film */
.film { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--stein); }
.film-hinweis { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .9375rem; font-weight: 500; }
.film-start { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--graphit); font-size: .7rem; }
.film-voll { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--graphit); }
.film-voll:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
.film-link { margin: 1.25rem 0 0; }

/* Ausstattung: Gruppen mit kompakter Tabelle, am Handy je Eintrag untereinander */
.technik { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--stein); }
.technik-gruppe + .technik-gruppe { margin-top: clamp(2rem, 4vw, 3rem); }
.technik-gruppe h3 { margin: 0 0 .75rem; font: 500 1.0625rem/1.3 var(--text); }
.maschinen-tabelle th[scope="row"] { width: 12rem; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); padding-top: 1.05rem; }
.maschinen-tabelle td:nth-child(2) { font-weight: 500; }
.maschinen-tabelle td:nth-child(3) { color: var(--text-leise); font-variant-numeric: tabular-nums; }
@media (max-width: 47.99rem) {
  .maschinen-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .maschinen-tabelle tr { display: grid; gap: .15rem; padding: .9rem 0; border-bottom: 1px solid var(--stein); }
  .maschinen-tabelle th[scope="row"], .maschinen-tabelle td { width: auto; padding: 0; border: 0; }
  .maschinen-tabelle th[scope="row"] { padding-top: 0; }
}

/* ---------------------------------------------------------------- Unternehmen (22.10.2026) */

/* Auftakt: große Überschrift, ein Satz, direkt darunter die Geschäftsleitung */
.unternehmen-auftakt { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.auftakt-leitung { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--stein); }
.auftakt-leitung .etikett { margin-bottom: 1.25rem; }

/* Geschäftsleitung: drei gleichwertige Porträts, 4:5, begrenzte Breite (Quellen 600 × 900 px) */
.team { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--stein); scroll-margin-top: calc(var(--kopf-h) + 1rem); }
.auftakt-leitung { scroll-margin-top: calc(var(--kopf-h) + 1rem); }
.personen { display: grid; gap: 2rem var(--spalt); margin: 0; padding: 0; list-style: none; }
.personen li { max-width: 18rem; }
.personen figure { margin: 0; overflow: hidden; background: var(--stein-hell); }
.personen img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.person-name { margin: .85rem 0 .1rem; font: 500 1.0625rem/1.3 var(--text); }
.person-rolle { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--text-leise); }
@media (min-width: 40rem) { .personen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Arbeitsweise: drei ruhige Spalten */
.team-gruppe + .team-gruppe { margin-top: clamp(2rem, 4vw, 3rem); }
.team-gruppe h3 { margin: 0 0 1.25rem; padding-top: .9rem; border-top: 1px solid var(--graphit); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.team-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--spalt); margin: 0; padding: 0; list-style: none; }
.team-raster figure { margin: 0; overflow: hidden; background: var(--stein-hell); }
.team-raster img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.team-raster .person-name { margin-top: .7rem; font-size: 1rem; }
.team-raster .person-rolle { font-size: .8125rem; }
@media (max-width: 21.99rem) { .team-raster { grid-template-columns: 1fr; } }
@media (min-width: 40rem) { .team-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .team-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Zusammenarbeit: kompakte Projektzeilen mit Rollenverteilung */
/* ---------------------------------------------------------------- Karriere (22.10.2026) */

/* Einstieg als zentriertes typografisches Plakat */
.karriere-einstieg { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.karriere-einstieg .etikett { justify-content: center; }
.karriere-titel { margin: 0 auto; max-width: 12em; font: 400 clamp(2.75rem, 5.5vw, 5.25rem)/1.04 var(--titel); letter-spacing: -.025em; }
.karriere-lead { max-width: 36rem; margin: 1.5rem auto 0; font-size: 1.0625rem; line-height: 1.6; color: var(--text-leise); }
.karriere-aktionen { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2rem; margin: 2rem 0 0; }

/* Bildpaar 60/40, gleiche Höhe, gemeinsame Grundlinie; am Handy nur das Hauptmotiv */
.karriere-paar { display: grid; gap: var(--spalt); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.karriere-paar figure { margin: 0; }
.karriere-paar img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stein-hell); }
.karriere-paar-klein { display: none; }
@media (min-width: 48rem) {
  .karriere-paar { grid-template-columns: 3fr 2fr; align-items: start; }
  .karriere-paar-klein { display: block; }
  .karriere-paar img { aspect-ratio: auto; height: clamp(17.5rem, 26vw, 23.75rem); }
}

/* Stellenzeile früh, eine Stelle */
.stellen { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.stellen-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem var(--spalt); align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--graphit); border-bottom: 1px solid var(--graphit); color: inherit; text-decoration: none; }
.stellen-text { display: grid; gap: .3rem; }
.stellen-titel { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; line-height: 1.3; }
.stellen-meta { font-size: .9375rem; line-height: 1.45; color: var(--text-leise); }
.stellen-link { font-size: .9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: .3em; white-space: nowrap; }
.stellen-zeile:hover .stellen-titel { color: var(--bordeaux); }
.stellen-zeile:focus-visible { outline: 2px solid var(--rot); outline-offset: 4px; }
@media (min-width: 48rem) { .stellen-zeile { grid-template-columns: minmax(0, 1fr) auto; } }

/* Einblick in die Arbeit: Text und ein eindeutig zugeordnetes Exponat */
.arbeit { display: grid; gap: 2rem var(--spalt); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--stein); align-items: start; }
.arbeit-text .liste-linien { max-width: 34rem; }
.arbeit-bild { margin: 0; }
.arbeit-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stein-hell); }
@media (min-width: 64rem) { .arbeit { grid-template-columns: 6fr 6fr; } }

/* Stellenbeschreibung: Hauptspalte und Eckdaten, am Handy Eckdaten zuerst */
.stelle { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--stein); }
.stelle-kopf { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.stelle-kopf .titel-m, .stelle-kopf .titel-l { margin-bottom: 1rem; }
/* Seit 17.11.2026 ist die Stelle die ganze Karriereseite (Mika): ohne Trennlinie oben */
.stelle-allein { border-top: 0; }
.stelle-mwd { font-size: .5em; letter-spacing: .02em; color: var(--text-leise); white-space: nowrap; }
.stelle-raster { display: grid; gap: 2.5rem var(--spalt); align-items: start; }
.stelle-haupt h2, .stelle-haupt h3 { margin: 0 0 .25rem; font: 500 1.0625rem/1.3 var(--text); }
.stelle-haupt :is(h2, h3) + .liste-linien { margin-top: .75rem; }
.stelle-haupt .liste-linien { margin-bottom: 2.25rem; max-width: 36rem; }
.stelle-eckdaten { order: -1; padding: 1.5rem; background: var(--weiss); border: 1px solid var(--stein); }
.stelle-eckdaten h2, .stelle-eckdaten h3 { margin: 0 0 1rem; font: 500 1.0625rem/1.3 var(--text); }
.stelle-eckdaten dl { margin: 0; }
.stelle-eckdaten div { display: grid; gap: .15rem; padding: .7rem 0; border-top: 1px solid var(--stein); }
.stelle-eckdaten dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.stelle-eckdaten dd { margin: 0; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (min-width: 64rem) {
  .stelle-raster { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .stelle-haupt { grid-column: 1 / span 7; }
  .stelle-eckdaten { order: 0; grid-column: 9 / span 4; }
}
.angebot { display: grid; gap: 1rem var(--spalt); margin: .75rem 0 0; max-width: 40rem; }
.angebot div { padding-top: .75rem; border-top: 1px solid var(--graphit); }
.angebot dt { font: 500 1.0625rem/1.3 var(--text); }
.angebot dt.angebot-zahl { font-size: 1.375rem; }
.angebot dd { margin: .25rem 0 0; font-size: .9375rem; line-height: 1.5; color: var(--text-leise); }
@media (min-width: 40rem) { .angebot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stelle-bewerben { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2.5rem 0 0; }
.stelle-bewerben span { font-size: .875rem; color: var(--text-leise); }
.stelle-bewerben span a { overflow-wrap: anywhere; }

/* Ausbildung: Bild und Text, ehrliche Anfrage */
.ausbildung { display: grid; gap: 2rem var(--spalt); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--stein); align-items: start; }
.ausbildung-bild { margin: 0; }
.ausbildung-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stein-hell); }
.ausbildung-text p { max-width: 32rem; }
.ausbildung-text .titel-m { margin-bottom: 1rem; }
.ausbildung-aktion { margin-top: 1.75rem; }
@media (min-width: 64rem) {
  .ausbildung { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ausbildung-bild { grid-column: 1 / span 5; }
  .ausbildung-text { grid-column: 7 / span 6; }
}
.stellen, .arbeit, .stelle, .ausbildung { scroll-margin-top: calc(var(--kopf-h) + 1rem); }

/* ---------------------------------------------------------------- Kontakt (05.11.2026: direkter Kontakt statt Formular) */

.kontakt-einstieg { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.kontakt-titel { margin: 0; max-width: 12em; font: 400 clamp(2.5rem, 4.4vw, 4.25rem)/1.06 var(--titel); letter-spacing: -.02em; }
.kontakt-lead { max-width: 36rem; margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text-leise); }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem) var(--spalt); margin-bottom: var(--abstand); }
.ansprechpartner, .anfrage, .standort { scroll-margin-top: calc(var(--kopf-h) + 1rem); }
.kontakt-untertitel { margin: 0 0 1.25rem; font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--titel); letter-spacing: -.015em; }
/* Ansprechpartner: Porträt 4:5 links, Name, Funktion und Kontaktwege rechts */
.ansprechpartner-karte { display: grid; gap: 1.25rem var(--spalt); align-items: start; }
.ansprechpartner-karte figure { margin: 0; max-width: 14rem; overflow: hidden; background: var(--stein-hell); }
.ansprechpartner-karte img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.ansprechpartner-text .person-name { margin: 0; font: 400 var(--titel-s)/1.15 var(--titel); }
.ansprechpartner-text .person-rolle { margin: .25rem 0 1rem; font-size: .9375rem; color: var(--text-leise); }
@media (min-width: 40rem) { .ansprechpartner-karte { grid-template-columns: 11rem minmax(0, 1fr); } }
.direkt { margin: 0; }
.direkt div { padding: .75rem 0; border-top: 1px solid var(--stein); }
.direkt dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.direkt dd { margin: .2rem 0 0; font-size: 1.25rem; line-height: 1.4; }
.direkt a { text-decoration: none; overflow-wrap: anywhere; }
.direkt a:hover { text-decoration: underline; text-decoration-color: var(--rot); text-underline-offset: .2em; }
/* Anfrage per E-Mail: Mail-Link mit Betreff und Briefing-Gerüst, Adresse zum Kopieren (Knopf nur mit Skript) */
.anfrage-text { margin: 0; max-width: 36rem; color: var(--text-leise); }
.anfrage-aktion { margin: 1.5rem 0 0; }
.anfrage-adresse { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.25rem 0 0; font-size: 1.0625rem; }
.anfrage-mail { font-weight: 500; overflow-wrap: anywhere; }
.kopier-knopf { padding: .4rem .85rem; border: 1px solid var(--graphit); background: none; color: var(--graphit); font: 500 .8125rem/1 var(--text); cursor: pointer; }
.kopier-knopf:hover { background: var(--graphit); color: var(--papier); }
.kopier-knopf:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
.feld-hilfe { margin: 1.25rem 0 0; max-width: 36rem; font-size: .8125rem; line-height: 1.5; color: var(--text-leise); }
.standort address { font-style: normal; line-height: 1.6; }
.standort p { margin: 1rem 0 0; }
.kontakt-fax { font-size: .875rem; color: var(--text-leise); }
@media (min-width: 64rem) {
  .kontakt-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .ansprechpartner { grid-column: 1; grid-row: 1; }
  /* Seit 17.11.2026 ohne „Projekt anfragen“ (Mika): der Standort steht rechts neben dem Ansprechpartner */
  .standort { grid-column: 2; grid-row: 1; padding-left: clamp(2rem, 4vw, 4rem); border-left: 1px solid var(--stein); }
}

/* ---------------------------------------------------------------- Rechtstexte */

.rechtstext { margin-bottom: var(--abstand); }
.rechtstext > * { max-width: 48rem; }
.rechtstext h2 { margin: 2.75rem 0 .75rem; font: 500 1.125rem/1.35 var(--text); }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext .hinweis-entwurf { margin-block: 1rem; }

/* ---------------------------------------------------------------- Druck */

@media print {
  .entwurf, .menue, .kopf-kontakt, .springen, .schluss, .fuss-unten ul, .filter { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  .rechtstext a[href^="http"]::after, .fuss a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  img { max-height: 110mm; width: auto; break-inside: avoid; }
  section, article, figure { break-inside: avoid; }
  .zeigen, .held-titel, .held-neben { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------------------------------------------------------------- Bewegung */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .held-titel { animation: auftauchen 1.1s var(--weich) .15s both; }
  .held-neben { animation: auftauchen 1.1s var(--weich) .35s both; }
  .held-dia:first-child img { animation: setzen 2.8s cubic-bezier(.2, .6, .2, 1) both; }
  /* Drei Räume im Wechsel: je 7 s, 1 s Überblendung, 21 s Zyklus */
  .held-dia { animation: held-wechsel 21s linear infinite; }
  /* Der erste Raum beginnt sichtbar: kein Einblenden beim Laden, und nichts bleibt dunkel, wenn Animationen nicht laufen */
  .held-dia:first-child { animation-name: held-wechsel-erst; }
  .held-dia:nth-child(2) { animation-delay: 7s; }
  .held-dia:nth-child(3) { animation-delay: 14s; }
  /* Fallback ohne scroll-gesteuerte CSS-Animationen (Safari bis 25, Firefox): bewegung.js setzt die Klassen */
  .zeigen-js .zeigen {
    opacity: .25;
    clip-path: inset(14% 0 0 0);
    transform: translateY(2.5rem);
    transition: opacity 1s var(--weich), clip-path 1s var(--weich), transform 1s var(--weich);
  }
  .zeigen-js .zeigen.sichtbar { opacity: 1; clip-path: inset(0); transform: none; }
  @supports (animation-timeline: view()) {
    .zeigen {
      animation: aufdecken linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .ablauf-linie::before {
      animation: linie-senkrecht linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 50%;
    }
    @media (min-width: 64rem) {
      .ablauf-linie::before { animation-name: linie-ziehen; }
    }
  }
}
@keyframes linie-ziehen { from { transform: scale(0, 1); } to { transform: none; } }
@keyframes setzen { from { transform: scale(1.06); } to { transform: none; } }
@keyframes held-wechsel { 0% { opacity: 0; } 4.8%, 33.3% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes held-wechsel-erst { 0%, 33.3% { opacity: 1; } 38%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes linie-senkrecht { from { transform: scale(1, 0); } to { transform: none; } }
/* Beginnt nicht bei 0, damit die Überschrift auch lesbar bleibt, wenn ein Browser die Animation nicht laufen lässt */
@keyframes auftauchen { from { opacity: .4; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes aufdecken {
  from { clip-path: inset(14% 0 0 0); transform: translateY(2.5rem); opacity: .25; }
  to { clip-path: inset(0); transform: none; opacity: 1; }
}
