/* Mobile first: Grundregeln gelten fürs Handy, min-width-Queries erweitern für größere Bildschirme.
   Breakpoints: 480 · 600 · 720 · 900 · 1024 */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlowc-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlowc-700.woff2) format('woff2'); }

:root {
  --red: #a70831;
  --red-dark: #7d0624;
  --ink: #16191d;
  --steel: #2a3038;
  --text: #2b2f35;
  --muted: #5d646d;
  --line: #dfe2e6;
  --paper: #f4f5f6;
  --white: #fff;
  --wrap: 1180px;
  --gutter: 16px;
  --header: 64px;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
@media (min-width: 600px) { :root { --gutter: 24px; --header: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; font: 400 1rem/1.65 'Barlow', system-ui, sans-serif; color: var(--text); background: var(--white); }
@media (min-width: 600px) { body { font-size: 1.0625rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.08; color: var(--ink); letter-spacing: .01em; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Kopf – Handy: Menü-Button + aufklappbare Liste */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 60px; }
.brand span { display: none; font: 600 .78rem/1.15 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.nav-toggle { min-height: 44px; font: 600 1rem var(--cond); text-transform: uppercase; letter-spacing: .06em; background: none; border: 2px solid var(--ink); padding: 6px 14px; cursor: pointer; color: var(--ink); }
.nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; max-height: calc(100dvh - var(--header)); overflow-y: auto; }
.nav.open { display: flex; }
.nav a { font: 600 1.05rem var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .nav-tel { margin-top: 14px; text-align: center; background: var(--red); color: #fff; padding: 12px 16px; border: 0; }
.nav .nav-tel:hover { background: var(--red-dark); color: #fff; }

@media (min-width: 600px) { .brand img { width: 66px; } }
@media (min-width: 1024px) {
  .brand span { display: block; }
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; background: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-color: var(--red); color: var(--ink); }
  .nav .nav-tel { margin: 0; padding: 9px 16px; }
}

/* Buttons – Handy: volle Breite */
.btn { display: block; text-align: center; font: 600 1.1rem var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 14px 26px; text-decoration: none; background: var(--red); color: #fff; border: 2px solid var(--red); transition: background .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) {
  .btn { display: inline-block; }
  .btn-row { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

/* Hero – Handy: Verlauf von unten, damit Text auf jedem Bildausschnitt lesbar bleibt */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,25,29,.95) 0%, rgba(22,25,29,.6) 60%, rgba(22,25,29,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 13vw, 160px); padding-bottom: clamp(48px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; color: #e4e6e9; margin-bottom: 2rem; }
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(22,25,29,.92) 0%, rgba(22,25,29,.55) 55%, rgba(22,25,29,.2) 100%); }
}
.eyebrow { font: 600 .9rem var(--cond); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: .8rem; display: block; }
.hero .eyebrow, .section-dark .eyebrow { color: #ff9fb5; }

.page-hero { background: var(--ink); color: #fff; padding: clamp(44px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfd3d8; max-width: 60ch; margin: 1rem 0 0; font-size: 1.1rem; }

/* Kennzahlen – Handy 2×2, ab 720 eine Reihe */
.facts { background: var(--red); color: #fff; }
.facts ul { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.facts li { padding: 20px var(--gutter); border-top: 1px solid rgba(255,255,255,.22); }
.facts li:nth-child(-n+2) { border-top: 0; }
.facts li:nth-child(even) { border-left: 1px solid rgba(255,255,255,.22); }
.facts strong { display: block; font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--cond); }
.facts span { font-size: .92rem; opacity: .9; }
@media (min-width: 720px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); margin: 0; }
  .facts li { padding: 28px 24px; border-top: 0; border-left: 1px solid rgba(255,255,255,.22); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* Abschnitte */
.section { padding: clamp(52px, 9vw, 112px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--steel); color: #d6dade; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: #b7bdc4; }
@media (min-width: 720px) { .section-head { margin-bottom: 48px; } }

.split { display: grid; gap: 32px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); } }

/* Leistungen – 1 / 2 / 3 Spalten */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 22px 20px 26px; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; font-size: 1rem; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 19px; width: 10px; height: 2px; background: var(--red); }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } .card-body { padding: 26px 26px 30px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Werte – 1 / 2 / 4 Spalten */
.values { display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.value { background: var(--steel); padding: 26px 20px; }
.value .num { font: 700 1rem var(--cond); color: #ff9fb5; letter-spacing: .1em; }
.value h3 { margin: .5em 0 .4em; }
.value p { font-size: 1rem; margin: 0; }
.value p strong { color: #fff; font-weight: 500; display: block; margin-bottom: .5em; }
@media (min-width: 600px) { .values { grid-template-columns: 1fr 1fr; } .value { padding: 32px 26px; } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }

.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cert { font: 600 .95rem var(--cond); letter-spacing: .06em; border: 2px solid currentColor; padding: 7px 12px; text-transform: uppercase; }

/* Referenzen – Handy: kV-Marke über dem Namen, Umfang darf umbrechen */
.ref-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ref-table th, .ref-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table th { font: 600 .85rem var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ref-table td:last-child, .ref-table th:last-child { text-align: right; }
.ref-table td small { display: block; font-size: .82rem; color: var(--muted); }
.kv { display: block; width: max-content; font: 700 .85rem var(--cond); background: var(--ink); color: #fff; padding: 2px 7px; letter-spacing: .04em; white-space: nowrap; }
@media (min-width: 600px) {
  .ref-table { font-size: 1rem; }
  .ref-table th, .ref-table td { padding: 11px 12px; }
  .ref-table td:last-child, .ref-table th:last-child { white-space: nowrap; }
}
.checklist .kv { display: inline-block; margin-right: 8px; }
.year { margin-top: 48px; }
.year:first-of-type { margin-top: 0; }
.year h3 { margin-top: 28px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.note { font-size: .95rem; color: var(--muted); }

/* Video */
.video { position: relative; aspect-ratio: 16/9; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; }
.video button span { background: var(--red); padding: 12px 20px; font: 600 1.05rem var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.video button:hover span { background: var(--red-dark); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-hint { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (min-width: 600px) { .video button span { padding: 16px 26px; font-size: 1.15rem; } }

/* Standorte / Kontakt */
.locations { display: grid; gap: 16px; }
.location { border: 1px solid var(--line); padding: 24px 20px; background: #fff; }
.location h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.location h3 small { font: 600 .85rem var(--cond); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.location p { margin: 0 0 .6em; }
@media (min-width: 720px) { .locations { grid-template-columns: 1fr 1fr; gap: 24px; } .location { padding: 32px; } }

.cta { background: var(--red); color: #fff; padding: clamp(44px, 7vw, 80px) 0; }
.cta .wrap { display: flex; flex-direction: column; gap: 24px; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { margin: 0; color: #ffe1e8; font-size: 1.1rem; }
.cta .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
@media (min-width: 900px) { .cta .wrap { flex-direction: row; justify-content: space-between; align-items: center; gap: 32px; } }

.contact-big a { font: 700 clamp(1.7rem, 3.5vw, 2.6rem)/1.2 var(--cond); color: var(--ink); text-decoration: none; display: block; overflow-wrap: anywhere; }
.contact-big a:hover { color: var(--red); }
.contact-big span { display: block; font: 600 .9rem var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 24px; }

/* Karriere */
.job { border: 1px solid var(--line); background: #fff; }
.job-head { background: var(--ink); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; }
.job-head h3 { color: #fff; margin: 0; font-size: 1.6rem; text-transform: uppercase; }
.job-head p { margin: 4px 0 0; color: #b7bdc4; }
.job-body { display: grid; gap: 32px; padding: 22px 20px; }
.job-body h4 { font: 700 1.2rem var(--cond); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; color: var(--ink); }
@media (min-width: 720px) {
  .job-head { flex-direction: row; justify-content: space-between; align-items: center; padding: 28px 32px; }
  .job-head h3 { font-size: 1.8rem; }
  .job-body { grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px; }
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; text-transform: none; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }

/* Fuß – 1 / 2 / 4 Spalten */
.site-footer { background: var(--ink); color: #aeb4bb; font-size: .98rem; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 36px; }
.footer-logo { width: 83px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: .1em; margin-bottom: .8em; }
.site-footer a { color: #fff; text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #ff9fb5; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; font-size: .88rem; }
@media (min-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
