/* Ebenroth GmbH – öffentliche Website
   Farben aus dem Logo (Rot #C52B1B, Grau #9C9FA1), Schrift Barlow (lokal, OFL). */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/barlow-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/barlow-semi-condensed-latin-800-normal.woff2') format('woff2'); }

:root {
  --rot:       #C52B1B;   /* Logo-Rot */
  --rot-dunkel:#A12214;
  --asphalt:   #23272B;   /* Text, dunkle Flächen */
  --plane:     #9C9FA1;   /* Logo-Grau, nur Flächen/Linien */
  --grau-text: #5B6166;   /* Nebentext, ausreichend Kontrast */
  --beton:     #EDEFF0;   /* helle Abschnitte */
  --weiss:     #FFFFFF;
  --breite:    1180px;
  --rand:      clamp(16px, 4vw, 40px);
  --schrift:   'Barlow', system-ui, sans-serif;
  --titel:     'Barlow SC', 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--weiss); color: var(--asphalt);
  font: 400 18px/1.6 var(--schrift);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--titel); line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 21px; line-height: 1.5; color: var(--grau-text); max-width: 34em; }
.klein, .hinweis { font-size: 15px; color: var(--grau-text); }

.sprung { position: absolute; left: -9999px; top: 8px; background: var(--asphalt); color: #fff; padding: 8px 14px; z-index: 100; }
.sprung:focus { left: 8px; }

/* ── Kopf ─────────────────────────────────────────────── */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--beton); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 10px var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marke { flex-shrink: 0; }
.marke img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); font-weight: 500; font-size: 17px; }
.nav a, .nav .k-sprachen { white-space: nowrap; }
.nav a { color: var(--asphalt); text-decoration: none; }
.nav a:hover { color: var(--rot); }
.nav .nav-login { font-size: 15px; color: var(--grau-text); border: 1px solid #CDD1D3; border-radius: 4px; padding: 6px 12px; }
.nav .nav-login:hover { border-color: var(--rot); color: var(--rot); }

/* ── Held: Foto im vollen Format, Text im Asphalt-Bereich ── */
.held { position: relative; background: #2E3134; color: #fff; overflow: hidden; }
.held picture { display: block; position: relative; }
.held picture::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,25,0) 55%, rgba(20,22,25,.55) 100%); }
.held-bild { width: 100%; aspect-ratio: 3 / 2; max-height: calc(100vh - 72px); min-height: 560px; object-fit: cover; object-position: 50% 0%; }
.held-text { position: absolute; inset: 0; z-index: 1; max-width: var(--breite); margin: 0 auto;
  padding: clamp(28px, 4vh, 48px) var(--rand) clamp(32px, 4vh, 56px);
  display: flex; flex-direction: column; justify-content: space-between; }
.held-unten { max-width: 34em; }
.held h1 { font-size: clamp(72px, 10vw, 150px); font-weight: 800; line-height: .86; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.held h1::after { content: ""; display: block; width: clamp(90px, 10vw, 140px); height: 9px; background: var(--rot); margin: 0.3em 0 0; }
.held p { font-size: clamp(18px, 1.7vw, 22px); max-width: 30em; color: #F1F2F3; margin: 0 0 20px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf { display: inline-block; font: 600 17px/1 var(--schrift); text-decoration: none; padding: 15px 24px; border-radius: 4px; border: 2px solid transparent; }
.knopf-rot { background: var(--rot); color: #fff; }
.knopf-rot:hover { background: var(--rot-dunkel); color: #fff; }
.knopf-hell { border-color: rgba(255,255,255,.85); color: #fff; }
.knopf-hell:hover { background: #fff; color: var(--asphalt); }
.knopf-rahmen { border-color: var(--asphalt); color: var(--asphalt); }
.knopf-rahmen:hover { background: var(--asphalt); color: #fff; }

/* ── Abschnitte ───────────────────────────────────────── */
.abschnitt { padding: clamp(64px, 9vw, 120px) var(--rand); }
.abschnitt > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.schmal { max-width: var(--breite); }
.raster-2 { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }

.vorteil-liste { list-style: none; margin: 0; padding: 0; }
.vorteil-liste li { padding: 16px 0 16px 28px; border-top: 1px solid #DADDDF; position: relative; font-size: 19px; }
.vorteil-liste li:last-child { border-bottom: 1px solid #DADDDF; }
.vorteil-liste li::before { content: ""; position: absolute; left: 0; top: 27px; width: 14px; height: 4px; background: var(--rot); }
.vorteil-liste strong { font-weight: 600; }

/* Leistungen: abwechselnd Bild links/rechts */
.leistungen { background: var(--beton); }
.leistungen h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.leistung { display: grid; grid-template-columns: 7fr 5fr; align-items: center; background: var(--weiss); margin-bottom: clamp(20px, 3vw, 32px); }
.leistung img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.leistung-text { padding: clamp(28px, 4vw, 56px); border-left: 6px solid var(--rot); }
.leistung.gespiegelt { grid-template-columns: 5fr 7fr; }
.leistung.gespiegelt img { order: 2; }
.leistung.gespiegelt .leistung-text { border-left: 0; border-right: 6px solid var(--rot); }
.unter { color: var(--rot); font-weight: 600; font-size: 17px; margin: 6px 0 16px; }

/* Standort mit Karte */
.standort-raster { align-items: center; grid-template-columns: 6fr 5fr; }
.karte { margin: 0; }
.karte svg { width: 100%; height: auto; overflow: visible; font-family: var(--titel); }
.dreieck { fill: var(--beton); stroke: #DADDDF; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.bab { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bab-neben { stroke: #C3C7CA; stroke-width: 4; }
.a14 { stroke: var(--asphalt); stroke-width: 6; }
.schild rect { fill: #1F4FA3; stroke: #fff; stroke-width: 2; }
.schild text { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; }
.stadt circle { fill: var(--weiss); stroke: var(--asphalt); stroke-width: 3; }
.stadt text { fill: var(--asphalt); font-size: 20px; font-weight: 600; }
.wir circle { fill: var(--rot); }
.wir .puls { fill: var(--rot); opacity: .25; transform-origin: 270px 150px; animation: puls 2.4s ease-out infinite; }
.wir text { fill: var(--rot); font-size: 28px; font-weight: 800; }
@keyframes puls { 0% { transform: scale(.5); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
address { font-style: normal; font-size: 19px; margin: 8px 0 24px; padding-left: 16px; border-left: 4px solid var(--rot); }

/* Filme */
.filme { background: var(--asphalt); color: #fff; }
.filme .hinweis { color: #B8BDC1; margin-top: 18px; }
.filme .hinweis a { color: #fff; }
.film-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.film { margin: 0; }
.film-start, .film iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; position: relative; }
.film-start img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.film-start:hover img { opacity: 1; }
.film-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--rot); }
.film-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.film figcaption { font-family: var(--titel); font-size: 22px; font-weight: 600; margin-top: 12px; }

/* Broschüre */
.broschuere-innen { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.broschuere-bild img { box-shadow: 0 14px 40px rgba(35,39,43,.22); }

/* Kontakt */
.kontakt { background: var(--rot); color: #fff; }
.kontakt a { color: #fff; }
.kontakt-innen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.kontakt-direkt { font-family: var(--titel); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.25; margin: 6px 0 8px; }
.kontakt-direkt a { text-decoration: none; }
.kontakt-direkt a:hover { text-decoration: underline; }
.kontakt .klein { color: #F6D9D5; }
.personen { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.personen li { display: flex; flex-direction: column; padding-left: 18px; border-left: 3px solid rgba(255,255,255,.6); }
.personen strong { font-family: var(--titel); font-size: 26px; font-weight: 700; }
.personen span { color: #F6D9D5; margin-bottom: 6px; }

/* Fuß */
.fuss { background: var(--beton); padding: 48px var(--rand) 40px; font-size: 16px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.fuss-logo { height: 46px; width: auto; margin-bottom: 14px; }
.fuss-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.fuss-links a { color: var(--asphalt); text-decoration: none; }
.fuss-links a:hover { color: var(--rot); text-decoration: underline; }
.fuss-gruppe { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid #D3D7D9; color: var(--grau-text); }

/* Textseiten (Impressum, Datenschutz) */
.textseite { padding: clamp(48px, 7vw, 96px) var(--rand); }
.textseite > div { max-width: 46em; margin: 0 auto; }
.textseite h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin-bottom: 32px; }
.textseite h2 { font-size: 28px; margin: 40px 0 12px; }
.textseite h3 { font-size: 21px; margin: 24px 0 8px; }
.textseite ul { padding-left: 1.2em; }

/* ── Schmale Bildschirme ──────────────────────────────── */
/* ── Formular Transport anfragen (anfrage.php) ─────────── */
.nav .nav-anfrage { color: var(--rot); font-weight: 600; }
.anfrage-seite > div { max-width: 60em; }
.anfrage-seite h1 { margin-bottom: 12px; }
.anf fieldset { border: 0; border-top: 1px solid #DADDDF; margin: 0; padding: 26px 0 30px; }
.anf legend { font-family: var(--titel); font-size: 28px; font-weight: 700; padding: 0 12px 0 0; display: flex; align-items: center; gap: 12px; }
.anf legend span { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--rot); color: #fff; font-size: 20px; border-radius: 50%; }
.anf h3 { font-size: 21px; margin: 22px 0 10px; }
.anf .sr { position: absolute; left: -9999px; }
.anf-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 18px; }
.anf-raster > label, .anf-raster > div { grid-column: span 2; }
.anf-raster > .breit { grid-column: span 3; }
.anf-raster > .ganz { grid-column: 1 / -1; }
.anf-raster > .kurz { grid-column: span 1; }
.anf label { display: flex; flex-direction: column; gap: 5px; font-size: 15px; font-weight: 500; color: var(--grau-text); }
.anf input:not([type=radio]):not([type=checkbox]), .anf select, .anf textarea {
  font: 400 17px/1.3 var(--schrift); color: var(--asphalt); background: #fff; border: 1px solid #C3C7CA; border-radius: 4px; padding: 10px 12px; width: 100%; min-width: 0; }
.anf input:focus, .anf select:focus, .anf textarea:focus { outline: 2px solid var(--rot); outline-offset: 0; border-color: var(--rot); }
.anf input[type=file] { padding: 8px; background: var(--beton); }
.anf .anf-ungueltig, .anf label.anf-ungueltig { border-color: var(--rot) !important; background: #FDF1EF !important; }
.anf .anf-check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--asphalt); font-weight: 400; }
.anf .anf-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rot); flex: none; }
.anf-frage { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: var(--grau-text); padding-top: 22px; }
.anf-vers { padding-top: 34px; }
.anf [hidden] { display: none !important; }
.anf-lock { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.anf-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 0 !important; padding-top: 6px !important; }
.anf-art label { flex-direction: row; align-items: center; gap: 14px; border: 2px solid #DADDDF; border-radius: 6px; padding: 16px 18px; cursor: pointer; color: var(--asphalt); }
.anf-art label:has(input:checked) { border-color: var(--rot); background: #FDF1EF; }
.anf-art input { width: 22px; height: 22px; accent-color: var(--rot); flex: none; }
.anf-art strong { display: block; font-family: var(--titel); font-size: 24px; line-height: 1.1; }
.anf-art small { display: block; font-size: 15px; color: var(--grau-text); }

.anf .nur-auftrag, .anf .nur-auftrag-feld { display: none; }
.anf-angabe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 22px; }
.anf-angabe label { flex-direction: row; align-items: center; gap: 10px; border: 2px solid #DADDDF; border-radius: 6px; padding: 10px 12px; cursor: pointer; color: var(--asphalt); }
.anf-angabe label:has(input:checked) { border-color: var(--rot); background: #FDF1EF; }
.anf-angabe input { width: 20px; height: 20px; accent-color: var(--rot); flex: none; }
.anf-angabe strong { display: block; font-size: 17px; line-height: 1.2; }
.anf-angabe small { display: block; font-size: 13px; color: var(--grau-text); }
.anf.ist-auftrag .nur-auftrag { display: block; }
.anf.ist-auftrag .nur-auftrag-feld { display: flex; }
.anf.ist-auftrag label.nur-auftrag { display: flex; }

.anf-pk-kopf, .anf-pk { display: grid; grid-template-columns: 80px 1.6fr 1fr 1fr 1fr 1.2fr 100px 36px; gap: 10px; align-items: end; }
.anf-pk-kopf { font-size: 14px; font-weight: 600; color: var(--grau-text); margin-bottom: 4px; }
.anf-pk { padding: 8px 0; border-bottom: 1px dashed #DADDDF; }
.anf-pk label > span { display: none; }
.anf-pk .anf-pk-stapel { flex-direction: row; align-items: center; gap: 8px; color: var(--asphalt); padding-bottom: 10px; }
.anf-pk .anf-pk-stapel span { display: inline; font-weight: 400; }
.anf-pk .anf-pk-stapel input { width: 20px; height: 20px; accent-color: var(--rot); }
.anf-pk-weg { width: 36px; height: 44px; border: 1px solid #C3C7CA; background: #fff; border-radius: 4px; font-size: 22px; color: var(--grau-text); cursor: pointer; }
.anf-pk-weg:hover { color: var(--rot); border-color: var(--rot); }
.anf-pk-fuss { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 14px 0 26px; }
.knopf.anf-klein { padding: 10px 16px; font-size: 15px; background: #fff; cursor: pointer; }
.anf-abschluss { display: flex; flex-direction: column; gap: 16px; }
.anf-senden { align-self: flex-start; font-size: 19px; padding: 17px 30px; cursor: pointer; border: 0; }
.anf-senden:disabled { opacity: .6; cursor: wait; }
.anf-fehler { background: #FDF1EF; border-left: 5px solid var(--rot); padding: 12px 16px; color: var(--rot-dunkel); font-weight: 600; }
.anf-danke { background: var(--beton); border-left: 6px solid var(--rot); padding: 22px 26px; margin: 8px 0 26px; }

@media (max-width: 860px) {
  .anf-raster { grid-template-columns: 1fr 1fr; }
  .anf-raster > label, .anf-raster > div, .anf-raster > .breit { grid-column: 1 / -1; }
  .anf-raster > .kurz { grid-column: span 1; }
  .anf-art { grid-template-columns: 1fr; }
  .anf-angabe { grid-template-columns: 1fr; }
  .anf-pk-kopf { display: none; }
  .anf-pk { grid-template-columns: 1fr 1fr 1fr; background: var(--beton); padding: 12px; border: 0; margin-bottom: 10px; border-radius: 4px; position: relative; }
  .anf-pk label > span { display: block; }
  .anf-pk label:nth-child(2) { grid-column: span 2; }
  .anf-pk-weg { position: absolute; top: 6px; right: 6px; height: 32px; width: 32px; }
  .anf-vers { padding-top: 0; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav { gap: 16px; font-size: 16px; }
  .nav a:not(.nav-login) { display: none; }
  .marke img { height: 42px; }
  .raster-2, .standort-raster, .kontakt-innen, .broschuere-innen, .film-raster { grid-template-columns: 1fr; }
  .leistung, .leistung.gespiegelt { grid-template-columns: 1fr; }
  .leistung.gespiegelt img { order: 0; }
  .leistung-text, .leistung.gespiegelt .leistung-text { border-left: 6px solid var(--rot); border-right: 0; }
  .broschuere-bild { max-width: 220px; }
  .fuss-innen { grid-template-columns: 1fr 1fr; }
  .fuss-innen > div:first-child { grid-column: 1 / -1; }
  .lead { font-size: 19px; }
  .held-bild { aspect-ratio: 4 / 3; min-height: 0; max-height: none; object-position: 50% 55%; }
  .held picture::after { display: none; }
  .held-text { position: static; padding: 28px var(--rand) 40px; display: block; }
  .held h1 { margin-bottom: 22px; }
  .held h1 { text-shadow: none; }
  .held p { text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wir .puls { animation: none; }
}

/* Weitere Downloads (jede PDF in downloads/) */
.downloads { margin-top: clamp(32px, 5vw, 56px); }
.broschuere-innen + .downloads { border-top: 1px solid rgba(35,39,43,.12); padding-top: clamp(28px, 4vw, 44px); }
.downloads-titel { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 18px; }
.download-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.download { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border: 1px solid rgba(35,39,43,.12); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.download:hover { border-color: var(--rot); box-shadow: 0 6px 18px rgba(35,39,43,.10); color: inherit; }
.download-bild { width: 52px; height: 72px; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 10px rgba(35,39,43,.18); flex-shrink: 0; }
.download-icon { width: 52px; height: 64px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; background: var(--rot); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .05em; border-radius: 3px 14px 3px 3px; }
.download-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-text strong { font-size: 17px; line-height: 1.3; }
.download-text small { font-size: 14px; color: var(--grau-text); }

/* Galerie (Bilder über app.ebenroth.info/galerie/) */
.galerie-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.galerie-kopf h2, .galerie-kopf h1 { margin: 0; }
.galerie-seite h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; }
.galerie-raster { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 14px); }
.galerie-raster li { margin: 0; }
.galerie-start li:first-child { grid-column: span 2; grid-row: span 2; }
.galerie-bild { display: block; height: 100%; overflow: hidden; background: var(--beton); position: relative; }
.galerie-bild img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.galerie-bild:hover img { transform: scale(1.04); }
.galerie-bild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--rot); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.galerie-bild:hover::after, .galerie-bild:focus-visible::after { transform: scaleX(1); }
/* Videos aus Instagram: Abspielzeichen auf dem Vorschaubild */
.galerie-video::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(20,22,25,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; pointer-events: none; }
@media (max-width: 760px) {
  .galerie-raster { grid-template-columns: 1fr 1fr; }
  .galerie-start li:first-child { grid-column: span 2; grid-row: auto; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,24,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox { flex-direction: column; gap: 14px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); user-select: none; }
.lightbox video { background: #000; }
.lightbox img[hidden], .lightbox video[hidden], .lb-text[hidden] { display: none; }
.lb-text { flex-shrink: 0; max-width: 760px; max-height: 7.5em; overflow: auto; color: #E6E8EA; font-size: 15px; line-height: 1.5; white-space: pre-line; text-align: center; }
.lb-text a { color: #fff; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 400 40px/1 var(--schrift); padding: 12px 16px; opacity: .8; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-zu { top: 8px; right: 12px; }
.lb-zurueck { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-zaehler { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #B8BDC1; font-size: 15px; letter-spacing: .05em; }
@media (max-width: 760px) { .lightbox { padding: 52px 8px; } .lb-zurueck, .lb-weiter { top: auto; bottom: 4px; transform: none; } }

/* ── Karriere, Einstieg „Fahr mit uns.“ und Kunden-Weiche (inc/karriere.php) ── */
.k-offen { background: #FFE58A; color: var(--asphalt); padding: 0 .2em; border-radius: 3px; }
.k-vorschau { background: #FFE58A; color: var(--asphalt); text-align: center; font-weight: 600; padding: 10px var(--rand); }
.k-ikon { flex: 0 0 auto; }
.k-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.k-knopf-gross { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; box-sizing: border-box; font-size: 18px; }
/* doppelte Klasse: schlägt „.kontakt a { color: #fff }“ im roten Kontaktbereich */
.k-knopf-weiss.k-knopf-weiss { background: #fff; color: var(--rot); border-color: #fff; text-decoration: none; }
.k-knopf-weiss.k-knopf-weiss:hover { background: var(--beton); color: var(--rot-dunkel); }
.k-link { color: #fff; font-weight: 500; padding: 12px 6px; }
.k-link:hover { color: #fff; }

.k-held { position: relative; min-height: 640px; background: #2E3134; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.k-held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.k-held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,25,.10) 0%, rgba(20,22,25,.35) 45%, rgba(20,22,25,.88) 100%); }
.k-held-text { position: relative; z-index: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) clamp(36px, 5vw, 64px); box-sizing: border-box; }
.k-marke { display: inline-block; margin: 0 0 18px; background: var(--rot); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; }
.k-held h1 { font-size: clamp(60px, 8vw, 120px); font-weight: 800; line-height: .9; letter-spacing: -0.02em; }
.k-held h1::after, .k-einstieg h1::after { content: ""; display: block; width: clamp(90px, 9vw, 120px); height: 9px; background: var(--rot); margin: .25em 0 0; }
.k-held-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; max-width: 40em; color: #F1F2F3; margin: 22px 0 28px; }
.k-held h1.k-titel-mittel { font-size: clamp(46px, 5.6vw, 88px); line-height: .95; }
.k-held h1.k-titel-lang { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.k-held-lead-lang { font-size: clamp(17px, 1.35vw, 20px); max-width: 52em; }
.k-held-hinweis { margin: 18px 0 0; font-size: 16px; color: #D7DADC; }

.k-fakten { border-bottom: 1px solid var(--beton); }
.k-fakten dl { max-width: var(--breite); margin: 0 auto; padding: 36px var(--rand) 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.k-fakten dl > div { border-left: 4px solid var(--rot); padding: 4px 0 4px 18px; margin-bottom: 16px; }
.k-fakten dt { font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--grau-text); }
.k-fakten dd { margin: 4px 0 0; font-family: var(--titel); font-weight: 700; font-size: 26px; line-height: 1.2; }

.k-ablauf { background: var(--beton); }
.k-schritte { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.k-schritte li { background: #fff; padding: 36px 32px 28px; }
.k-nr { display: block; font-family: var(--titel); font-weight: 800; font-size: 64px; line-height: 1; color: var(--rot); margin-bottom: 16px; }
.k-schritte h3 { font-size: 28px; margin-bottom: 10px; }

.k-bilder { max-width: var(--breite); margin: 0 auto clamp(64px, 9vw, 112px); padding: 0 var(--rand); display: grid; gap: 20px; }
.k-bilder img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.k-bilder-2 { grid-template-columns: 1fr 1fr; }
.k-bilder-3 { grid-template-columns: 7fr 5fr; }
.k-bilder-3 img:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }

.k-stellen { background: var(--beton); }
.k-stellen-liste { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.k-stelle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; background: #fff; border-left: 6px solid var(--rot); padding: 26px 32px; text-decoration: none; color: var(--asphalt); }
.k-stelle:hover { color: var(--asphalt); box-shadow: 0 6px 24px rgba(35,39,43,.12); }
.k-stelle-initiativ { border-left-color: var(--plane); }
.k-stelle-titel { display: block; font-family: var(--titel); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.k-stelle-meta { display: block; margin-top: 6px; color: var(--grau-text); font-size: 17px; }
.k-stelle-los { color: var(--rot); font-weight: 600; white-space: nowrap; }

.k-faq details { border-top: 1px solid #DADDDF; padding: 18px 0; }
.k-faq details:last-child { border-bottom: 1px solid #DADDDF; }
.k-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: "+"; color: var(--rot); font-size: 24px; line-height: 1; }
.k-faq details[open] summary::after { content: "–"; }
.k-faq details p { margin: 10px 0 0; }

.k-kontakt-innen { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; justify-content: space-between; }
.k-kontakt-innen > div:first-child { flex: 6 1 420px; }
.k-kontakt .lead { color: #fff; margin-bottom: 28px; }
.k-kontakt .klein { margin-top: 18px; }
.k-person { flex: 4 1 280px; display: flex; gap: 20px; align-items: center; }
.k-person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.k-person p { margin: 0; }
.k-person-name { font-family: var(--titel); font-weight: 700; font-size: 28px; line-height: 1.15; }
.k-person-funktion { color: #F6D9D5; }
.k-person-tel { font-family: var(--titel); font-weight: 700; font-size: 30px; margin-top: 10px !important; }
.k-person-tel a { text-decoration: none; }

.k-stelle-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; }
.k-stelle-spalten h2 { font-size: clamp(28px, 3vw, 36px); }
.k-zurueck { margin-top: 40px; }

.k-textseite h1 { margin-bottom: 20px; }
.k-formular { margin-top: 28px; display: grid; gap: 16px; }
.k-feld { display: flex; flex-direction: column; gap: 5px; }
.k-feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.k-optional { font-weight: 400; }
.k-hinweis-klein { margin: -6px 0 0; font-size: 14px; }

/* Einstiegsseite „Fahr mit uns.“ (Link aus Social Media, QR-Codes) */
.k-einstieg { background: var(--asphalt); color: #fff; padding-bottom: 48px; }
.k-einstieg-kopf { position: relative; }
.k-einstieg-kopf .k-held-bild { position: static; display: block; width: 100%; height: clamp(300px, 42vw, 520px); }
/* Verlauf nur über dem Bild (gleiche Höhe wie das Bild), damit es weich in den dunklen Grund übergeht */
.k-einstieg-kopf::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(300px, 42vw, 520px); background: linear-gradient(180deg, rgba(35,39,43,0) 45%, rgba(35,39,43,.75) 80%, var(--asphalt) 100%); pointer-events: none; }
.k-einstieg-text { position: relative; z-index: 1; max-width: 760px; margin: -72px auto 0; padding: 0 var(--rand); }
.k-einstieg h1 { font-size: clamp(64px, 9vw, 110px); font-weight: 800; line-height: .9; letter-spacing: -0.02em; }
.k-einstieg .k-held-lead { color: #D7DADC; margin: 18px 0 24px; }
.k-wege { max-width: 760px; margin: 0 auto; padding: 0 var(--rand); display: grid; gap: 12px; }
.k-weg { display: block; text-decoration: none; padding: 22px 24px; border-radius: 4px; }
.k-weg-rot { background: var(--rot); color: #fff; }
.k-weg-rot:hover { background: var(--rot-dunkel); color: #fff; }
.k-weg-weiss { background: #fff; color: var(--asphalt); border-left: 6px solid var(--rot); }
.k-weg-weiss:hover { color: var(--asphalt); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.k-weg-zeile { color: #fff; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.k-weg-zeile:hover { color: #fff; }
.k-weg-marke { display: block; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.k-weg-titel { display: block; font-family: var(--titel); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 4px 0 6px; }
.k-weg-zeile .k-weg-titel { font-family: var(--schrift); font-weight: 600; font-size: 18px; margin: 0; }
.k-weg-weiss .k-weg-text { color: var(--rot); font-weight: 600; }
.k-weg-zeile .k-weg-text { opacity: .85; }
/* Auf der Übersichtsseite liegen die Wege auf hellem Grund */
main > .k-wege { max-width: var(--breite); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(16px, 3vw, 32px); }
main > .k-wege .k-weg-weiss { background: var(--beton); }

/* Kunden-Weiche im Kontaktbereich der Startseite */
.k-weiche-lead { font-size: clamp(18px, 1.8vw, 21px); max-width: 34em; margin: 0 0 32px; }
.k-weiche-danke { background: #fff; color: var(--asphalt); border-left: 6px solid var(--asphalt); padding: 20px 28px; margin-bottom: 20px; }
.k-weiche-danke p { margin: 0; }
.k-weiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.k-weiche-karte { display: flex; flex-direction: column; gap: 8px; background: #fff; color: var(--asphalt); text-decoration: none; padding: 24px 24px 22px; border-radius: 4px; border-top: 6px solid var(--asphalt); }
a.k-weiche-karte:hover { color: var(--asphalt); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.k-weiche-titel { font-family: var(--titel); font-weight: 700; font-size: 26px; line-height: 1.1; }
.k-weiche-text { color: var(--grau-text); font-size: 17px; }
.k-weiche-los { color: var(--rot); font-weight: 600; margin-top: auto; }
.k-weiche-nachricht summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.k-weiche-nachricht summary::-webkit-details-marker { display: none; }
.k-weiche-nachricht .auf, .k-weiche-nachricht[open] .zu { display: none; }
.k-weiche-nachricht[open] .auf { display: inline; }
.k-weiche-nachricht[open] { grid-column: 1 / -1; }
.k-kurzformular { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.k-kurzformular .k-feld { font-weight: 600; font-size: 16px; }
.k-kurzformular input:not([type=checkbox]), .k-kurzformular textarea, .k-formular input:not([type=file]), .k-formular select, .k-formular textarea {
  font: 400 18px/1.4 var(--schrift); padding: 12px 14px; border: 1px solid var(--plane); border-radius: 4px; min-height: 48px; box-sizing: border-box; color: var(--asphalt); background: #fff; }
.k-kurzformular input:focus, .k-kurzformular textarea:focus { outline: 2px solid var(--rot); outline-offset: 0; border-color: var(--rot); }
.k-breit { grid-column: 1 / -1; }
.k-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 17px; }
.k-check input { width: 22px; height: 22px; accent-color: var(--rot); }
.k-kurzformular-fuss { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.k-kurzformular-fuss .klein { margin: 0; max-width: 36em; color: var(--grau-text); }
.kontakt .k-kurzformular a { color: var(--rot); }
.k-weiche-direkt { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.35); display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-start; justify-content: space-between; }
.k-weiche-direkt .personen { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); flex: 1 1 480px; }
.k-weiche-fax, .k-weiche-karriere { flex-basis: 100%; margin: 0; }
.k-weiche-karriere { color: #F6D9D5; }
.k-weiche-karriere a { font-weight: 600; }

@media (max-width: 860px) {
  .k-held { min-height: 0; }
  .k-held-bild { position: static; height: 300px; }
  .k-held::after { background: linear-gradient(180deg, rgba(35,39,43,0) 0%, rgba(35,39,43,0) 180px, #2E3134 300px); }
  .k-held-text { margin-top: -48px; }
  .k-knoepfe { flex-direction: column; align-items: stretch; }
  .k-knoepfe .knopf { justify-content: center; }
  .k-link { text-align: center; }
  .k-fakten dl { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .k-fakten dd { font-size: 20px; }
  .k-schritte li { padding: 24px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .k-schritte .k-nr { font-size: 40px; grid-row: span 2; margin: 0; }
  .k-schritte h3 { font-size: 23px; margin: 0 0 4px; }
  .k-schritte li p { grid-column: 2; margin: 0; }
  .k-bilder-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .k-bilder-3 img:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .k-bilder-3 img { aspect-ratio: 1 / 1; }
  .k-stelle { padding: 20px 18px; }
  .k-feld-paar, .k-kurzformular { grid-template-columns: 1fr; }
}

/* Sprachumschalter DE · PL · EN (Karriereseiten) */
.k-sprachen { display: inline-flex; gap: 1px; border: 1px solid #CDD1D3; border-radius: 4px; padding: 2px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.nav .k-sprache, .k-sprache { display: inline-block; padding: 3px 6px; border-radius: 3px; color: var(--grau-text); text-decoration: none; line-height: 1.2; }
/* Schmale Desktops: Menü etwas kleiner, damit Umschalter und Login in einer Zeile bleiben */
@media (max-width: 1280px) and (min-width: 861px) {
  .nav { font-size: 15.5px; }
  .nav .nav-login { font-size: 14px; padding: 5px 10px; }
}
@media (max-width: 1060px) and (min-width: 861px) {
  .nav .nav-neben { display: none; }   /* Galerie und Standort sind über die Startseite erreichbar */
}
.nav a.k-sprache:hover { color: var(--rot); }
.k-sprache.aktiv { background: var(--asphalt); color: #fff; }
@media (max-width: 860px) {
  .nav .k-sprachen, .nav .k-sprachen a { display: inline-flex; }
}
