/* ==========================================================
   Bock Silosysteme GmbH: Design-System
   Farben: Bock-Blau, Nachtblau, Stahlgrau, Hellgrau, Weiß
   Schriften: Barlow Condensed (Überschriften), Source Sans 3 (Text)
   Alle Schriften liegen lokal in assets/fonts/ (keine externen Server)
   ========================================================== */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --blau: #0064b0;
  --blau-dunkel: #00518f;
  --nacht: #0b2540;
  --stahl: #5a6675;
  --hell: #eef2f6;
  --weiss: #ffffff;

  --text: #142233;
  --linie: #d5dde6;
  --linie-dunkel: rgba(255, 255, 255, .16);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  color: var(--nacht);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--nacht); color: var(--weiss); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--weiss); }

/* Kleine technische Beschriftung, wie auf einem Typenschild */
.kennung {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blau);
  margin-bottom: 14px;
}
.kennung::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.lead { font-size: 1.2rem; color: var(--stahl); max-width: 40em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em;
  text-decoration: none; border: 2px solid var(--blau); border-radius: var(--radius);
  background: var(--blau); color: var(--weiss); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: var(--weiss); transform: translateY(-1px); }
.btn .pfeil { transition: transform .2s ease; }
.btn:hover .pfeil { transform: translateX(4px); }
.btn--klein { min-height: 42px; padding: 0 18px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--linie);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo-link { display: block; flex-shrink: 0; padding: 12px 0; }
.logo-link img { width: 260px; height: auto; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  position: relative; display: block; padding: 10px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .03em;
  color: var(--nacht); text-decoration: none;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.main-nav .nav-cta { margin-left: 12px; }
.main-nav a { white-space: nowrap; }
/* Untermenü Produkte */
.main-nav .hat-unter { position: relative; display: flex; align-items: center; }
.main-nav .hat-unter > a:not(.btn) { padding-right: 4px; }
.main-nav .hat-unter > a:not(.btn)::after { right: 4px; }
.unter-toggle {
  display: grid; place-items: center; width: 22px; height: 32px; padding: 0; margin-right: 4px;
  border: 0; background: none; color: var(--nacht); cursor: pointer;
}
.unter-toggle::before {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease;
}
.main-nav .untermenue {
  position: absolute; top: 100%; left: 0; z-index: 20; display: block; min-width: 270px; padding: 8px 0;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 18px 30px -18px rgba(11, 37, 64, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.main-nav .untermenue a:not(.btn) { padding: 7px 18px; font-size: 1rem; }
.main-nav .untermenue a:not(.btn)::after { display: none; }
.main-nav .untermenue a:hover { background: var(--hell); color: var(--blau-dunkel); }
.main-nav .hat-unter:hover .untermenue,
.main-nav .hat-unter:focus-within .untermenue,
.main-nav .hat-unter.offen .untermenue { opacity: 1; visibility: visible; transform: none; }
.main-nav .hat-unter:hover .unter-toggle::before,
.main-nav .hat-unter.offen .unter-toggle::before { transform: rotate(225deg); margin-top: 4px; }

.header-tel, .menu-toggle { display: none; }

/* ---------- Hero ---------- */
/* Hintergrund: Silolager mit Sattelzug (Träger retuschiert), darüber der Blauverlauf */
.hero {
  display: flex; align-items: center;
  min-height: clamp(520px, 72vh, 760px);
  padding: clamp(48px, 7vw, 96px) 0;
  color: var(--weiss);
  background-color: var(--nacht);
  background-image:
    linear-gradient(90deg, rgba(0, 70, 128, .97) 0%, rgba(0, 92, 166, .9) 38%, rgba(0, 100, 176, .45) 68%, rgba(0, 100, 176, .12) 100%),
    url("/assets/img/hero-silolager-2000.jpg");
  background-size: cover;
  background-position: center 35%;
}
.hero { position: relative; overflow: hidden; }
.hero-anfahrt { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.hero-anfahrt img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 30, 60, .45)); }
.hero-grid { display: block; width: 100%; position: relative; z-index: 1; }
.hero-text { max-width: 620px; }
.hero .kennung { color: #bfe0ff; }
.hero h1 { margin-bottom: 24px; color: var(--weiss); text-shadow: 0 2px 18px rgba(0, 30, 60, .35); }
.hero h1 span { color: #bfe0ff; }
.hero .lead { margin-bottom: 18px; color: #e3eefa; }
.hero-lager { margin: 0 0 30px; }
.hero-lager a { color: var(--weiss); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; }
.hero-lager a:hover { text-decoration-color: var(--weiss); }
.hero .btn { background: var(--weiss); border-color: var(--weiss); color: var(--blau-dunkel); }
.hero .btn:hover { background: var(--hell); border-color: var(--hell); color: var(--nacht); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-tel { font-weight: 600; color: var(--weiss); text-decoration: none; }
.hero-tel small { display: block; font-weight: 400; color: #bfe0ff; font-size: .9rem; }
.hero-tel:hover { color: #bfe0ff; }

.hero-bild { position: relative; margin: 0; }
.hero-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.hero-bild figcaption {
  position: absolute; left: -1px; bottom: 24px;
  background: var(--nacht); color: var(--weiss);
  padding: 10px 16px; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; font-size: 1rem;
}
.hero-bild::before {
  content: ""; position: absolute; right: -14px; top: -14px; width: 38%; height: 46%;
  border-top: 2px solid var(--blau); border-right: 2px solid var(--blau); pointer-events: none;
}

/* ---------- Kennzahlen ---------- */
.zahlen { background: var(--nacht); color: var(--weiss); }
.zahlen ul { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.zahlen li { padding: 32px 24px; border-left: 1px solid var(--linie-dunkel); }
.zahlen li:first-child { border-left: 0; padding-left: 0; }
.zahlen strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; margin-bottom: 8px; }
.zahlen span { color: #b9c6d4; font-size: 1rem; }

/* ---------- Abschnitte allgemein ---------- */
.section { padding: var(--section) 0; }
.section--hell { background: var(--hell); }
.section-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-kopf h2 { margin-bottom: 0; }
.section-kopf p { margin: 0; color: var(--stahl); }

/* ---------- Produkte ---------- */
.produkte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.produkt {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
/* Dia-Show: Fotos liegen übereinander und werden nacheinander eingeblendet */
.produkt-bild--dia { position: relative; }
.produkt-bild--dia img { transition: opacity .9s ease, transform .6s ease; }
.produkt-bild--dia { background: var(--weiss); }
.produkt-bild--dia img + img { position: absolute; inset: 0; height: 100%; }
.js .produkt-bild--dia img { opacity: 0; }
.js .produkt-bild--dia img.aktiv { opacity: 1; }
.dia-punkte { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 1; }
.dia-punkte button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(11, 37, 64, .25);
}
.dia-punkte button[aria-current="true"] { background: var(--weiss); }
.dia-text {
  position: absolute; left: 0; bottom: 32px; z-index: 1; margin: 0; max-width: calc(100% - 24px);
  background: var(--nacht); color: var(--weiss);
  padding: 8px 14px; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; font-size: 1rem;
}
/* Zwei Bilder nebeneinander in einer Karte */
.produkt-bild--doppelt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--weiss); }
.produkt-bild--doppelt img { min-width: 0; }
.produkt-bild--doppelt img:last-child:nth-child(odd) { grid-column: span 2; }
/* Breite Karte über die ganze Reihe (nur bei 3 Spalten): Fotos oben, Text darunter in zwei Spalten */
@media (min-width: 1081px) {
  .produkt--breit { grid-column: 1 / -1; }
  .produkt--breit .produkt-bild--doppelt { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .produkt--breit .produkt-bild--doppelt img:last-child:nth-child(odd) { grid-column: auto; }
  /* ab 6 Fotos: drei pro Reihe statt alle nebeneinander */
  .produkt--breit .produkt-bild--doppelt:has(img:nth-child(6)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* bei 7 Fotos: vier pro Reihe, das erste doppelt breit */
  .produkt--breit .produkt-bild--doppelt:has(img:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .produkt--breit .produkt-bild--doppelt:has(img:nth-child(7)) img:first-child { grid-column: span 2; aspect-ratio: auto; height: 0; min-height: 100%; }
  .produkt--breit .produkt-bild img { aspect-ratio: 4 / 3; }
  .produkt--breit .produkt-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; padding: 28px 32px; }
  .produkt--breit .produkt-body > :not(.merkmale) { grid-column: 1; }
  .produkt--breit .merkmale { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
/* Querformat-Karte über die ganze Reihe: Bild bzw. Dia-Show links, Text rechts */
.produkt--quer .merkmale--spalten { columns: 2; column-gap: 28px; }
.produkt--quer .merkmale--spalten li { break-inside: avoid; }
@media (min-width: 861px) {
  .produkt--quer { grid-column: 1 / -1; flex-direction: row; }
  .produkt--quer .produkt-bild { flex: 0 0 50%; border-radius: var(--radius) 0 0 var(--radius); }
  .produkt--quer .produkt-bild img { height: 100%; min-height: 320px; aspect-ratio: auto; }
  .produkt--quer .produkt-body { justify-content: center; padding: 32px 36px; }
}
@media (max-width: 520px) { .produkt--quer .merkmale--spalten { columns: 1; } }
.produkt:hover { border-color: #a9b8c8; box-shadow: 0 14px 32px -18px rgba(11, 37, 64, .35); transform: translateY(-2px); }
.produkt-bild { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.produkt-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.produkt:hover .produkt-bild img { transform: scale(1.03); }
.produkt-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 24px 24px 20px; }
.produkt .kennung { font-size: .85rem; margin-bottom: 8px; }
.produkt h3 { margin-bottom: 4px; }
.produkt .baureihe { font-family: var(--font-head); font-weight: 600; color: var(--stahl); font-size: 1.1rem; margin-bottom: 12px; }
.produkt p { font-size: 1rem; }
.merkmale { list-style: none; margin: 0 0 18px; padding: 0; font-size: .97rem; }
.merkmale li { position: relative; padding: 6px 0 6px 20px; border-top: 1px solid var(--hell); }
.merkmale li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 2px; background: var(--blau); }

.daten { margin-top: auto; border-top: 1px solid var(--linie); }
.daten summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; color: var(--blau);
}
.daten summary::-webkit-details-marker { display: none; }
.daten summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.daten[open] summary::after { transform: rotate(45deg); }
.download {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  border-top: 1px solid var(--linie); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; color: var(--blau);
}
.download svg { width: 20px; height: 20px; flex-shrink: 0; }
.download small { margin-left: auto; font-family: var(--font-text); font-weight: 400; font-size: .85rem; letter-spacing: 0; color: var(--stahl); }
.download:hover { color: var(--blau-dunkel); }
.daten + .daten { margin-top: 0; }
.download-klapp { margin: 0 0 8px; }
.download-klapp .download { min-height: 42px; font-size: 1rem; }
.text-download { font-weight: 600; white-space: nowrap; }
.text-download::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .3em; vertical-align: -.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 19h16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 19h16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.text-download-info { color: var(--stahl); font-size: .85em; }
.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 4px 0 8px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle th, .tabelle td { padding: 7px 10px 7px 0; text-align: right; border-bottom: 1px solid var(--hell); }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle thead th { font-weight: 600; color: var(--stahl); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.tabelle-hinweis { font-size: .88rem; color: var(--stahl); margin: 6px 0 4px; white-space: normal; }

/* ---------- Leistungen ---------- */
.leistungen { display: grid; gap: 0; }
.leistung {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 40px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--linie);
}
.leistung:last-child { border-bottom: 1px solid var(--linie); }
.leistung img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.leistung-bild { overflow: hidden; border-radius: var(--radius); min-width: 0; }
.leistung-bild img { border-radius: 0; }
.leistung h3 { margin-bottom: 10px; }
.leistung p { margin-bottom: 0; color: var(--text); max-width: 36em; }
.leistung .nummer { font-family: var(--font-head); font-weight: 700; font-size: 3.5rem; color: var(--linie); line-height: 1; transition: color .3s ease; }
.leistung:hover .nummer { color: var(--blau); }

/* Fotos Gebrauchte Behälter (unrenoviert / renoviert nebeneinander) */
.leistung-medien { min-width: 0; }
.lager-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.lager-fotos figure { margin: 0; min-width: 0; }
.leistung .lager-fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); display: block; }
.lager-fotos figcaption { margin-top: 6px; font-size: .88rem; color: var(--stahl); }

/* Lagerliste (Gebrauchte Behälter) */
.lagerliste { margin-top: 24px; padding: 20px 24px; background: var(--hell); border-left: 3px solid var(--blau); border-radius: var(--radius); max-width: 36em; }
.lagerliste-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; }
.lagerliste h4 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--nacht); }
.leistung .lagerliste-stand { margin: 0; font-size: .88rem; color: var(--stahl); }
.lagerliste h5 { margin: 14px 0 4px; font-family: var(--font-text); font-weight: 600; font-size: .95rem; color: var(--nacht); }
.lagerliste ul { list-style: none; margin: 0; padding: 0; }
.lagerliste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.lagerliste li:last-child { border-bottom: 0; }
.lagerliste-preis { font-weight: 600; white-space: nowrap; }
.leistung .lagerliste-hinweis { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--linie); font-size: .88rem; color: var(--stahl); }
.leistung .lagerliste-leer { margin: 0; padding: 6px 0; color: var(--stahl); font-style: italic; }

/* ---------- Anwendungen ---------- */
.bereiche { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 40px; padding: 0; }
.bereiche li {
  padding: 8px 16px; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em; color: var(--nacht);
}
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; list-style: none; margin: 0; padding: 0; }
.galerie li { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--linie); }
.galerie li.hoch { grid-row: span 2; }
.galerie li.gross { grid-column: span 2; grid-row: span 2; }
.galerie figure { margin: 0; height: 100%; }
.galerie button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.galerie button:focus-visible { outline: 3px solid var(--blau); outline-offset: -3px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galerie li:hover img { transform: scale(1.04); }
.galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(180deg, rgba(11, 37, 64, 0) 0%, rgba(11, 37, 64, .85) 100%);
  color: var(--weiss); font-size: .95rem; line-height: 1.3; pointer-events: none;
}
.galerie-hinweis { margin: 28px 0 0; color: var(--stahl); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 92vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(11, 37, 64, .88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: var(--weiss); text-align: center; margin: 12px 0 0; }
.lightbox-zu {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--weiss); color: var(--nacht); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Downloads und Bildfolge ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: start; }
.download-liste { list-style: none; margin: 0; padding: 0; }
.download-gruppen { border-bottom: 1px solid var(--linie); }
.download-gruppe { margin-top: 0; }
.download-gruppe summary { font-size: 1.25rem; }
.download-gruppe summary small { font-family: var(--font-text); font-weight: 400; font-size: .85rem; color: var(--stahl); margin-left: 6px; margin-right: auto; }
.download-gruppe .download-liste { margin-bottom: 10px; }
.download-liste--offen .download { font-size: 1.2rem; }
.bildfolge-start {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left;
  border-radius: var(--radius); overflow: hidden; background: var(--nacht);
}
.bildfolge-start img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .85; transition: transform .6s ease, opacity .3s ease; }
.bildfolge-start:hover img { transform: scale(1.03); opacity: 1; }
.bildfolge-start-text {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 18px 20px;
  background: linear-gradient(0deg, rgba(11, 37, 64, .92), rgba(11, 37, 64, 0)); color: var(--weiss);
}
.bildfolge-start-text strong { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .02em; }
.bildfolge-start-cta { font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; color: #bfe0ff; margin-top: 4px; }
.bildfolge { border: 0; padding: 0; background: transparent; max-width: min(1000px, 92vw); max-height: 94vh; overflow: visible; }
.bildfolge::backdrop { background: rgba(11, 37, 64, .9); }
.bildfolge figure { margin: 0; }
.bildfolge img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.bildfolge figcaption { color: var(--weiss); text-align: center; margin-top: 12px; font-size: 1.05rem; }
.bildfolge-text { white-space: pre-line; }
.bildfolge-titel {
  display: inline-block; background: #bfe0ff; color: var(--nacht);
  padding: 4px 12px; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; line-height: 1.35;
}
.bildfolge-titel:empty { display: none; }
.bildfolge-nr { font-family: var(--font-head); font-weight: 700; color: #bfe0ff; margin-right: 6px; }
.bildfolge-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.bildfolge-nav button {
  width: 52px; height: 44px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--weiss); color: var(--nacht); font-size: 1.4rem; line-height: 1;
}
.bildfolge-nav button:hover { background: var(--hell); }
.bildfolge-nav[hidden] { display: none; }
.video-box { position: relative; margin-top: 20px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--nacht); }
.downloads-medien { min-width: 0; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
  all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  color: var(--weiss);
  background: linear-gradient(180deg, rgba(8, 20, 36, .35), rgba(8, 20, 36, .82)), url(/assets/img/video-trichter.jpg) center / cover no-repeat, var(--nacht);
}
.video-start strong, .video-hinweis { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.video-start:focus-visible { outline: 3px solid #bfe0ff; outline-offset: -3px; }
.video-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--weiss); color: var(--blau-dunkel); transition: transform .2s ease; }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-start:hover .video-play { transform: scale(1.08); }
.video-start strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .02em; }
.video-hinweis { max-width: 34em; font-size: .85rem; color: #c3cfdc; }
.video-hinweis a { color: #bfe0ff; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }

/* ---------- Über uns ---------- */
.ueber-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ueber-text p { max-width: 34em; }
.ueber-bild { margin: 0; position: relative; }
.ueber-bild-start { all: unset; display: block; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.ueber-bild-start:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.ueber-bild-start img { display: block; transition: transform .6s ease; }
.ueber-bild-start:hover img { transform: scale(1.03); }
.ueber-bild-hinweis {
  position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px;
  background: var(--weiss); color: var(--nacht); padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .03em; font-size: .9rem; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(11, 37, 64, .25);
}
.ueber-bild-hinweis[hidden] { display: none; }
.ueber-bild figcaption { pointer-events: none; }
.ueber-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ueber-bild figcaption {
  position: absolute; left: 0; bottom: 16px; max-width: calc(100% - 24px); margin: 0;
  background: var(--nacht); color: var(--weiss);
  padding: 8px 14px; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; font-size: 1rem; line-height: 1.35;
}
.standorte { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--linie); }
.standorte h3 { font-size: 1.25rem; margin-bottom: 6px; }
.standorte p { margin: 0; font-size: .98rem; color: var(--stahl); }

/* ---------- Ansprechpartner ---------- */
.personen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.person { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--linie); }
.person:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--linie); }
.person .rolle { font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blau); margin: 0 0 4px; }
.person h3 { font-size: 1.45rem; margin-bottom: 8px; }
.person a { font-weight: 600; color: var(--nacht); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.person a:hover { color: var(--blau); }

/* ---------- Anfrage ---------- */
.anfrage { background: var(--nacht); color: var(--weiss); }
.anfrage h2 { color: var(--weiss); }
.anfrage .kennung { color: #7fb5e3; }
.anfrage-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.anfrage-info p { color: #c3cfdc; }
.anfrage-info .direkt { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linie-dunkel); }
.anfrage-info .direkt a { color: var(--weiss); font-weight: 600; text-decoration: none; font-size: 1.15rem; }
.anfrage-info .direkt a:hover { color: #7fb5e3; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld--breit { grid-column: 1 / -1; }
.feld label, .feld legend { font-weight: 600; font-size: .95rem; color: #dbe3ec; }
.feld .pflicht { color: #7fb5e3; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--weiss); border: 2px solid transparent; border-radius: var(--radius);
  transition: border-color .2s ease;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: #7fb5e3; }
fieldset.feld { border: 0; margin: 0; padding: 0; }
.optionen { display: flex; flex-wrap: wrap; gap: 10px; }
.optionen label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--linie-dunkel); border-radius: var(--radius); cursor: pointer; font-weight: 400; color: var(--weiss);
  transition: border-color .2s ease, background-color .2s ease;
}
.optionen label:hover { border-color: #7fb5e3; }
.optionen input { accent-color: var(--blau); width: 18px; height: 18px; min-height: 0; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: #c3cfdc; }
.zustimmung input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex-shrink: 0; accent-color: var(--blau); }
.zustimmung a { color: var(--weiss); }
.formular .btn { justify-self: start; border-color: var(--weiss); background: var(--weiss); color: var(--nacht); }
.formular .btn:hover { background: #dcebf8; border-color: #dcebf8; color: var(--nacht); }
.formular .btn[disabled] { opacity: .6; cursor: progress; }
.hp-feld { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e3f2e6; color: #1d4d2a; }
.form-status.fehler { display: block; background: #fbe6e4; color: #6d1f17; }

/* ---------- Footer ---------- */
.site-footer { background: #071a2e; color: #aebccb; font-size: .98rem; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--weiss); margin: 0 0 8px; }
.site-footer h2 { font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--weiss); margin-bottom: 12px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #d7e1eb; text-decoration: none; }
.site-footer a:hover { color: var(--weiss); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linie-dunkel); font-size: .9rem; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.seitenkopf { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); background: var(--hell); border-bottom: 1px solid var(--linie); }
.seitenkopf h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.rechtstext { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.rechtstext .container { max-width: 820px; }
.rechtstext h2 { font-size: 1.7rem; margin-top: 1.8em; }
.rechtstext h3 { font-size: 1.3rem; margin-top: 1.4em; }
.rechtstext ol { padding-left: 1.6em; }
.rechtstext li { margin-bottom: .6em; }
.rechtstext li ul { margin: .5em 0; }
.rechtstext li ul li { margin-bottom: .25em; }
.hinweis-box { padding: 16px 20px; border-left: 4px solid var(--blau); background: var(--hell); margin-bottom: 32px; font-size: .98rem; }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.js .einblenden { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .einblenden { opacity: 1; transform: none; transition: none; }
  .produkt, .produkt-bild img, .galerie img, .btn { transition: none; }
}

/* Schmale Desktop-Breite: Anfrage-Knopf im Kopf ausblenden (steht im Startbild) */
@media (min-width: 861px) and (max-width: 1010px) {
  .main-nav .nav-cta { display: none; }
}

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1080px) {
  .logo-link img { width: 190px; }
  .header-inner { gap: 12px; }
  .main-nav a:not(.btn) { padding: 10px 6px; font-size: 1rem; }
  .main-nav .untermenue a:not(.btn) { padding: 7px 18px; }
  .produkte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leistung { grid-template-columns: 240px 1fr; }
  .leistung .nummer { display: none; }
}

/* ==========================================================
   Handy: eigener Design-Durchgang
   - Menü wird zum Ausklapp-Menü, Telefon als Symbol direkt im Kopf
   - Bild im Kopfbereich wird flacher, die Bildunterschrift entfällt
   - Kennzahlen 2 x 2, Produkte einspaltig mit flacherem Bild
   - Galerie zweispaltig, nur 8 der 12 Bilder
   - Ansprechpartner als kompakte Liste
   ========================================================== */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .logo-link img { width: 200px; }

  .header-tel, .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--radius);
    border: 1px solid var(--linie); background: var(--weiss); color: var(--nacht);
  }
  .header-tel svg, .menu-toggle svg { width: 22px; height: 22px; }
  .header-aktionen { display: flex; gap: 8px; }
  .menu-toggle { cursor: pointer; padding: 0; }

  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    box-shadow: 0 18px 30px -20px rgba(11, 37, 64, .4);
    display: none;
  }
  .main-nav.offen { display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav a:not(.btn) { padding: 14px 0; font-size: 1.3rem; border-bottom: 1px solid var(--hell); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .nav-cta { margin: 16px 0 0; }
  .main-nav .btn { width: 100%; }
  .main-nav .hat-unter { flex-wrap: wrap; border-bottom: 1px solid var(--hell); }
  .main-nav .hat-unter > a:not(.btn) { flex: 1; border-bottom: 0; }
  .unter-toggle { width: 46px; height: 46px; margin: 0; }
  .main-nav .untermenue {
    position: static; display: none; flex-basis: 100%; min-width: 0; padding: 0 0 10px 16px;
    opacity: 1; visibility: visible; transform: none; transition: none; border: 0; border-radius: 0; box-shadow: none; background: none;
  }
  .main-nav .hat-unter:hover .untermenue, .main-nav .hat-unter:focus-within .untermenue { display: none; }
  .main-nav .hat-unter.offen .untermenue { display: block; }
  .main-nav .hat-unter:hover .unter-toggle::before { transform: rotate(45deg); margin-top: -4px; }
  .main-nav .hat-unter.offen .unter-toggle::before { transform: rotate(225deg); margin-top: 4px; }
  .main-nav .untermenue a:not(.btn) { padding: 9px 0; font-size: 1.1rem; border-bottom: 0; }
  .hero {
    min-height: 0; padding: 48px 0 56px;
    background-image:
      linear-gradient(180deg, rgba(0, 70, 128, .92) 0%, rgba(0, 92, 166, .86) 60%, rgba(0, 100, 176, .7) 100%),
      url("/assets/img/hero-silolager-1200.jpg");
  }
  .hero-bild { margin: 0 calc(var(--gutter) * -1); }
  .hero-bild img { aspect-ratio: 16 / 10; border-radius: 0; }
  .hero-bild::before, .hero-bild figcaption { display: none; }
  .hero-actions .btn { width: 100%; }

  .zahlen ul { grid-template-columns: 1fr 1fr; }
  .zahlen li { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--linie-dunkel); }
  .zahlen li:nth-child(-n + 2) { border-top: 0; }
  .zahlen li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .zahlen li:nth-child(odd) { padding-left: 0; }
  .zahlen li:nth-child(even) { border-left: 1px solid var(--linie-dunkel); }

  .section-kopf { grid-template-columns: 1fr; }

  .produkte { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .produkt-bild img { aspect-ratio: 16 / 9; }
  .produkt-body { padding: 20px; }

  .leistung { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .leistung img { aspect-ratio: 16 / 9; }

  .bereiche { gap: 8px; margin-bottom: 28px; }
  .bereiche li { font-size: .98rem; padding: 6px 12px; }
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .galerie li.nur-gross { display: none; }

  .ueber-grid { grid-template-columns: 1fr; }
  .standorte { grid-template-columns: 1fr; gap: 18px; }

  .personen { grid-template-columns: 1fr; }
  .person, .person:not(:nth-child(3n + 1)) { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 16px 0; border-left: 0; }
  .person .rolle { grid-column: 1 / -1; }
  .person h3 { margin: 0; font-size: 1.3rem; }

  .anfrage-grid { grid-template-columns: 1fr; }
  .formular { grid-template-columns: 1fr; }
  .formular .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 380px) {
  .logo-link img { width: 170px; }
}

/* Druckansicht (z. B. Impressum und AGB als PDF) */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .skip-link, .main-nav, .header-aktionen, .footer-grid, .footer-unten span:last-child { display: none !important; }
  .site-header { position: static; box-shadow: none; border: 0; background: #fff; }
  .header-inner { height: auto; padding-bottom: 6mm; }
  .seitenkopf { padding: 0 0 4mm; background: #fff; color: #000; }
  .seitenkopf h1, .seitenkopf .kennung { color: #000; }
  .rechtstext { padding: 0; }
  .rechtstext .container { max-width: none; }
  .rechtstext h2 { font-size: 13pt; margin-top: 6mm; break-after: avoid; }
  .rechtstext h3 { font-size: 11pt; break-after: avoid; }
  .rechtstext li { break-inside: avoid; }
  .site-footer { background: #fff; color: #000; padding: 0; }
  .footer-unten { border-top: 1px solid #999; margin-top: 8mm; padding-top: 3mm; color: #000; }
  a { color: #000; text-decoration: none; }
}
