/* =========================================================
   O&H Elektrotechnik - Shared Site Styles
   Design 3A · "Energiefeld" - Tiefblau & Gelb
   ========================================================= */

/* ---------- Schrift lokal (Montserrat, variabel 400-800) - kein Google-CDN ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat.woff2') format('woff2');
}

:root {
  --blau: #15407A;
  --blau-dunkel: #0D2C57;
  --blau-hell: #EDF3FA;
  --gelb: #F7B500;
  --text: #1C2735;
  --text-dim: #5A6B80;
  --line: #DCE5F0;
  --paper: #FFFFFF;
  --ff: 'Montserrat', system-ui, sans-serif;
  --r: 16px;
  --shadow: 0 2px 6px rgba(13, 44, 87, 0.05), 0 14px 40px rgba(13, 44, 87, 0.09);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Horizontalen Überlauf grundsätzlich verhindern (Wurzel-Fixes zusätzlich unten) */
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--ff); background: var(--paper); color: var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blau); }

/* ---------- Topbar + Nav ---------- */
.topbar { background: var(--blau-dunkel); color: rgba(255,255,255,0.85); font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar .links { display: flex; gap: 24px; }
.topbar a:hover { color: #fff; }
header.main { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; position: relative; }
nav.menu { display: flex; gap: 4px; }
nav.menu a { font-size: 14px; font-weight: 600; color: var(--text-dim); padding: 10px 16px; border-radius: 999px; transition: all 0.15s; }
nav.menu a:hover, nav.menu a.active { color: var(--blau); background: var(--blau-hell); }
.nav-cta { font-size: 14px; font-weight: 700; color: #fff; background: var(--blau); padding: 13px 26px; border-radius: 999px; transition: background 0.15s; }
.nav-cta:hover { background: var(--blau-dunkel); }
.nav-burger { display: none; font-size: 26px; line-height: 1; background: none; border: 0; color: var(--blau); cursor: pointer; padding: 4px 10px; border-radius: 10px; font-family: var(--ff); }

/* === Echtes O&H-Logo (Header + Footer) === */
.brand { display: flex; align-items: center; gap: 13px; }
.brand .em-slot { flex: none; display: flex; }
.brand .em-slot svg { height: 52px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.bw-oh { font-weight: 800; font-size: 23px; letter-spacing: -0.03em; }
.bw-oh .bb { color: #154574; } .bw-oh .bo { color: #E8690A; }
.bw-sub { font-size: 9px; font-weight: 600; line-height: 1.3; color: #154574; margin-top: 5px; }
.bw-sub .ln { display: block; white-space: nowrap; }
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand .em-slot { flex: none; display: flex; }
.foot-brand .em-slot svg { height: 30px; width: auto; display: block; }
.fb-oh { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.fb-oh .bb { color: #154574; } .fb-oh .bo { color: #E8690A; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; padding: 16px 32px; border-radius: 999px; transition: all 0.15s; }
.btn-gelb { background: var(--gelb); color: var(--blau-dunkel); }
.btn-gelb:hover { filter: brightness(1.06); }
.btn-blau { background: var(--blau); color: #fff; }
.btn-blau:hover { background: var(--blau-dunkel); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--blau); }
.btn-ghost:hover { border-color: var(--blau); }

/* ---------- Hero (Startseite, Split) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blau-hell), #fff); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 0.92fr; gap: 64px; align-items: center; padding: 88px 40px 96px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--blau); box-shadow: var(--shadow); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gelb); }
.hero h1 { margin-top: 26px; font-size: clamp(29px, 6vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--blau-dunkel); text-wrap: pretty; overflow-wrap: break-word; }
.hero h1 .gelb { position: relative; white-space: nowrap; }
.hero h1 .gelb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--gelb); opacity: 0.5; z-index: -1; border-radius: 3px; }
.hero p { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--text-dim); max-width: 480px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 22px; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow); }
.hero-stat { position: absolute; left: -28px; bottom: 40px; background: var(--blau); color: #fff; border-radius: var(--r); padding: 20px 24px; box-shadow: var(--shadow); }
.hero-stat b { font-size: 30px; font-weight: 800; display: block; line-height: 1; }
.hero-stat span { font-size: 12.5px; color: rgba(255,255,255,0.8); display: block; margin-top: 6px; }
.hero-chip { position: absolute; right: -16px; top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 700; color: var(--blau); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.hero-chip::before { content: "⚡"; color: var(--gelb); }
#field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }

/* ---------- Page-Hero (Unterseiten) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blau-hell), #fff); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 2; padding: 64px 40px 60px; text-align: center; }
.crumb { display: inline-flex; gap: 9px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 18px; letter-spacing: 0.03em; }
.crumb a:hover { color: var(--blau); }
.crumb .sep { opacity: 0.45; }
.crumb .here { color: var(--blau); }
.page-hero h1 { font-size: clamp(27px, 5.6vw, 54px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--blau-dunkel); text-wrap: balance; }
.page-hero .lead { margin: 18px auto 0; max-width: 640px; font-size: 17px; line-height: 1.65; color: var(--text-dim); text-wrap: pretty; }
.page-hero .hero-actions { justify-content: center; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--blau-hell); }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trust { display: flex; gap: 16px; align-items: center; padding: 30px 28px; }
.trust + .trust { border-left: 1px solid var(--line); }
.trust .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.trust .ic svg { width: 22px; height: 22px; stroke: var(--blau); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust b { font-size: 15px; font-weight: 700; display: block; }
.trust span { font-size: 13px; color: var(--text-dim); line-height: 1.5; display: block; margin-top: 3px; }

/* ---------- Sections ---------- */
section.block { padding: 100px 0; }
section.block.tight { padding: 76px 0; }
.alt { background: var(--blau-hell); }
.sec-head { max-width: 660px; margin: 0 0 56px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-top: 14px; font-size: clamp(24px, 4.5vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; color: var(--blau-dunkel); }
.sec-head p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--text-dim); }

/* ---------- Leistungen-Karten ---------- */
.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.l-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: box-shadow 0.25s, transform 0.25s; overflow: hidden; position: relative; }
.l-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.l-card .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.l-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s; }
.l-card:hover .pic img { transform: scale(1.06); }
.l-card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,44,87,0) 45%, rgba(13,44,87,0.42)); }
.l-card .ic { position: absolute; left: 24px; top: -28px; z-index: 2; width: 56px; height: 56px; border-radius: 15px; background: var(--blau); display: grid; place-items: center; box-shadow: 0 10px 22px rgba(13,44,87,0.28); border: 3px solid #fff; }
.l-card .ic svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.l-card .body { position: relative; padding: 42px 28px 30px; }
.l-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.l-card ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.l-card li { font-size: 14px; line-height: 1.5; color: var(--text-dim); display: flex; gap: 10px; }
.l-card li::before { content: "✓"; color: var(--blau); font-weight: 800; flex: none; }
.l-card .mehr { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--blau); }
.l-card .mehr:hover { text-decoration: underline; }

/* ---------- Über uns ---------- */
.ueber { background: var(--blau-hell); }
.ueber-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.ueber-fotos { position: relative; }
.ueber-fotos img.haupt { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.ueber-fotos .karte { position: absolute; right: -20px; bottom: -28px; background: var(--blau); color: #fff; border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow); max-width: 240px; }
.ueber-fotos .karte b { font-size: 28px; font-weight: 800; display: block; }
.ueber-fotos .karte span { font-size: 13px; color: rgba(255,255,255,0.8); }
.ueber-copy h2 { margin-top: 14px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--blau-dunkel); }
.ueber-copy p { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--text-dim); text-wrap: pretty; }
.ueber-liste { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; list-style: none; }
.ueber-liste li { font-size: 14.5px; font-weight: 600; display: flex; gap: 10px; }
.ueber-liste li::before { content: "⚡"; flex: none; }
.sig { margin-top: 30px; font-size: 15px; font-weight: 700; color: var(--blau); }
.sig span { display: block; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-top: 2px; }

/* ---------- Werte-Karten ---------- */
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.val { border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; background: var(--paper); transition: box-shadow .25s, transform .25s; }
.val:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.val .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blau-hell); display: grid; place-items: center; margin-bottom: 20px; }
.val .ic svg { width: 25px; height: 25px; stroke: var(--blau); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.val h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.val p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }

/* ---------- Kennzahlen-Band ---------- */
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kpi .k { text-align: center; padding: 14px; }
.kpi .k b { font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--blau-dunkel); display: block; line-height: 1; letter-spacing: -0.02em; }
.kpi .k span { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 0 0 36px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .yr { font-size: 18px; font-weight: 800; color: var(--blau); text-align: right; position: relative; }
.tl .yr::after { content: ""; position: absolute; right: -19px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gelb); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.tl .ct h4 { font-size: 17px; font-weight: 800; color: var(--blau-dunkel); }
.tl .ct p { margin-top: 7px; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }

/* ---------- Projekte / Portfolio ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-card { border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.p-card:hover img { transform: scale(1.05); }
.p-card .cap { position: absolute; inset: auto 0 0 0; padding: 54px 22px 18px; background: linear-gradient(transparent, rgba(13,44,87,0.92)); color: #fff; }
.p-card .cap .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gelb); display: block; margin-bottom: 5px; }
.p-card .cap .tt { font-size: 16px; font-weight: 700; display: block; }
.p-card .cap .pdesc { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,0.85); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filters button { font-family: var(--ff); font-size: 13.5px; font-weight: 700; color: var(--text-dim); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: all 0.15s; }
.filters button:hover { border-color: var(--blau); color: var(--blau); }
.filters button.active { background: var(--blau); border-color: var(--blau); color: #fff; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.lead-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.tm { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); transition: box-shadow .25s, transform .25s; }
.tm:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.tm .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--blau-hell); position: relative; }
.tm .ph img { width: 100%; height: 100%; object-fit: cover; }
.tm .ph .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--blau); opacity: 0.55; }
.tm .info { padding: 20px 22px 24px; }
.tm .info h3 { font-size: 17px; font-weight: 800; color: var(--blau-dunkel); }
.tm .info .role { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--gelb); }
.tm .info .role.b { color: var(--blau); }
.tm .info p { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.tm .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tm .tags span { font-size: 11px; font-weight: 600; color: var(--blau); background: var(--blau-hell); border-radius: 999px; padding: 4px 10px; }

/* ---------- Jobs ---------- */
.jobs { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.job { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 26px 30px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; transition: box-shadow .25s, border-color .25s, transform .25s; }
.job:hover { box-shadow: var(--shadow); border-color: #C9D6E6; transform: translateY(-3px); }
.job h3 { font-size: 19px; font-weight: 800; color: var(--blau-dunkel); }
.job .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.job .meta span { font-size: 12.5px; font-weight: 600; color: var(--text-dim); background: var(--blau-hell); border-radius: 999px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 6px; }
.job .apply { white-space: nowrap; }
.job-empty { text-align: center; font-size: 14.5px; color: var(--text-dim); margin-top: 18px; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--blau-dunkel); color: #fff; border-radius: 28px; overflow: hidden; position: relative; }
.kontakt .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; padding: 70px 64px; align-items: center; position: relative; }
.kontakt h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.kontakt p { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 460px; }
.k-liste { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.k-liste li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r); padding: 18px 22px; }
.k-liste .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--gelb); display: grid; place-items: center; }
.k-liste .ic svg { width: 20px; height: 20px; stroke: var(--blau-dunkel); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k-liste b { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.65); display: block; }
.k-liste span { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.k-liste a:hover { color: var(--gelb); }

/* ---------- Kontakt-Formular ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.kform { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow); }
.kform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--blau-dunkel); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; font-family: var(--ff); font-size: 14.5px; color: var(--text); background: var(--blau-hell); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blau); background: #fff; }
.kform .check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 20px; }
.kform .check input { margin-top: 2px; flex: none; }
.kform .btn { width: 100%; justify-content: center; }
.kinfo { display: flex; flex-direction: column; gap: 16px; }
.kinfo .card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: var(--paper); display: flex; gap: 16px; align-items: flex-start; }
.kinfo .card .ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--blau-hell); display: grid; place-items: center; }
.kinfo .card .ic svg { width: 21px; height: 21px; stroke: var(--blau); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kinfo .card b { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); display: block; margin-bottom: 5px; }
.kinfo .card .v { font-size: 15.5px; font-weight: 700; color: var(--blau-dunkel); line-height: 1.45; }
.kinfo .card .v a:hover { color: var(--blau); }
.mapwrap { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mapwrap iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ---------- CTA-Band ---------- */
.cta { background: var(--blau-dunkel); color: #fff; border-radius: 28px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.cta p { margin: 16px auto 0; max-width: 520px; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.cta .hero-actions { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.foot-links a:hover { color: var(--blau); }
.foot-note { font-size: 12px; color: var(--text-dim); opacity: 0.7; }

/* ---------- Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .gelb::after { animation: ulglow 2.6s ease-in-out infinite; }
  @keyframes ulglow { 0%,100% { box-shadow: 0 0 0 rgba(247,181,0,0) } 50% { box-shadow: 0 0 14px rgba(247,181,0,.5) } }
  .hero-badge .dot { animation: blink 1.7s ease-in-out infinite; }
  @keyframes blink { 0%,100% { box-shadow: 0 0 0 0 rgba(247,181,0,.55) } 50% { box-shadow: 0 0 0 8px rgba(247,181,0,0) } }
  .btn { position: relative; overflow: hidden; } .btn > * { position: relative; z-index: 1; }
  .btn::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent); transform: skewX(-18deg); }
  .btn:hover::after { animation: sheen .7s ease; } @keyframes sheen { to { left: 140%; } }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .06s } .reveal.d2 { transition-delay: .14s } .reveal.d3 { transition-delay: .22s } .reveal.d4 { transition-delay: .3s }
  .l-card.reveal.in:hover { transform: translateY(-5px); }
  .l-card:hover .ic { box-shadow: 0 0 0 4px rgba(247,181,0,.25), 0 10px 22px rgba(13,44,87,.3); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .topbar .links { display: none; }
  .nav-burger { display: block; }
  nav.menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 24px 18px; display: none; }
  nav.menu.open { display: flex; }
  .hero-inner, .l-grid, .p-grid, .trust-strip .wrap, .val-grid, .kpi, .team-grid, .ueber-grid, .kontakt .inner, .kontakt-grid { grid-template-columns: 1fr; }
  .trust + .trust { border-left: none; border-top: 1px solid var(--line); }
  .hero-stat { left: 10px; }
  .kontakt .inner { padding: 48px 32px; }
  .cta { padding: 48px 30px; }
  .job { grid-template-columns: 1fr; }
  /* Topbar: langer Firmenname darf umbrechen statt überlaufen */
  .topbar .wrap { height: auto; min-height: 38px; padding: 7px 22px; }
  .topbar span { font-size: 11px; line-height: 1.35; }
  /* "25+ Jahre"-Badge nicht mehr absolut über den Folgetext legen */
  .ueber-fotos .karte { position: static; right: auto; bottom: auto; max-width: none; margin-top: 14px; }
  /* Geschäftsführer-Karten stapeln */
  .lead-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .kform .row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 80px 1fr; gap: 18px; }
  .tl::before { left: 92px; }
}
/* ---------- Mobiler Feinschliff (Handy) ---------- */
@media (max-width: 740px) {
  /* Kopfzeile kompakt: Untertitel weg, Logo/CTA kleiner, eine Zeile */
  .brand .em-slot svg { height: 40px; }
  .bw-sub { display: none; }
  .nav { height: 64px; gap: 8px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; white-space: nowrap; }

  /* Abstände verkleinern */
  section.block { padding: 56px 0; }
  section.block.tight { padding: 44px 0; }

  /* Hero kleiner & ruhiger */
  .hero-inner { padding: 32px 22px 44px; gap: 34px; }
  .hero h1 { font-size: 30px; margin-top: 16px; line-height: 1.15; }
  .hero p { font-size: 15.5px; margin-top: 16px; max-width: none; }
  .hero-actions { margin-top: 24px; }

  /* Buttons in voller Breite, sauber gestapelt */
  .hero-actions .btn { width: 100%; justify-content: center; padding: 15px 24px; }

  /* Unterseiten-Hero & Überschriften */
  .page-hero .wrap { padding: 44px 22px 40px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero .lead { font-size: 16px; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: 26px; }

  .team-grid { grid-template-columns: 1fr; }
  .ueber-liste { grid-template-columns: 1fr; }
  /* Stats als 2x2 statt lang gestapelt */
  .kpi { grid-template-columns: 1fr 1fr; gap: 16px; }
  /* Über uns: Text zuerst, Bild danach */
  .ueber-grid { gap: 30px; }
  .ueber-copy { order: 1; } .ueber-fotos { order: 2; }
  /* Touch-Flächen im Mobil-Menü */
  nav.menu a { padding: 13px 16px; }
  /* Kompaktere Bänder + Karten-Innenabstand */
  .cta { padding: 40px 24px; }
  .kontakt .inner { padding: 40px 24px; }
  .l-card .body { padding: 38px 22px 26px; }
  .val { padding: 26px 22px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 27px; }
  .page-hero h1 { font-size: 25px; }
  .nav-cta { padding: 9px 13px; font-size: 12.5px; }
  .brand .bw-oh { font-size: 21px; }
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 22px; font-weight: 800; color: var(--blau-dunkel); letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; font-weight: 800; color: var(--blau-dunkel); margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--text-dim); text-wrap: pretty; }
.legal p { margin-top: 10px; }
.legal a { color: var(--blau); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal ul { margin: 10px 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--text); font-weight: 700; }
.legal .todo { background: #FFF7E0; border: 1px solid var(--gelb); border-radius: 10px; padding: 2px 8px; font-weight: 700; color: #7a5b00; font-size: 13.5px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.legal .meta-note { margin-top: 28px; font-size: 13px; color: var(--text-dim); opacity: 0.8; }

/* ---------- Sanftes Scrollen & leichtes Andocken an Sektionen ---------- */
html { scroll-padding-top: 96px; }   /* Offset für die sticky Navigation */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }   /* "proximity" = dockt nur leicht an, kein Zwang */
  /* Hero-/Kopfbereiche NICHT snappen, damit der Seitenanfang (blaue Topbar) sichtbar bleibt */
  section.block, footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Referenzen / Portfolio - Editorial-Reihen (Variante C) ---------- */
.ref-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.ref { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.ref:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(13,44,87,.08), 0 22px 50px rgba(13,44,87,.12); }
.ref-img { min-height: 260px; overflow: hidden; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ref:hover .ref-img img { transform: scale(1.04); }
.ref--right .ref-img { order: 2; }
.ref-body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.ref-tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blau); background: var(--blau-hell); border-radius: 999px; padding: 5px 13px; margin-bottom: 12px; }
.ref-body h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--blau-dunkel); letter-spacing: -0.01em; line-height: 1.2; }
.ref-body p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--text-dim); text-wrap: pretty; }
.ref-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.ref-photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ref-photo img { width: 100%; display: block; max-height: 460px; object-fit: cover; }
@media (max-width: 820px) {
  .ref { grid-template-columns: 1fr; }
  .ref--right .ref-img { order: 0; }
  .ref-img { min-height: 200px; }
  .ref-body { padding: 24px; }
}

/* ---------- Portfolio-Galerie (Kacheln, verlinken auf Detail) ---------- */
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pg-card { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.pg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pg-card:hover img { transform: scale(1.06); }
.pg-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(13,44,87,.12), 0 26px 60px rgba(13,44,87,.18); }
.pg-scrim { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(13,44,87,.88)); }
.pg-panel { position: absolute; inset: auto 14px 14px 14px; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.22); border-radius: 13px; padding: 16px 17px; color: #fff; }
.pg-dom { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blau-dunkel); background: var(--gelb); border-radius: 999px; padding: 4px 11px; }
.pg-t { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-top: 11px; line-height: 1.2; }
.pg-d { display: block; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.84); margin-top: 7px; text-wrap: pretty; }
@media (max-width: 860px) { .pg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pg-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio-Detailseite ---------- */
.pd-wrap { padding-top: 46px; padding-bottom: 20px; }
.pd-crumb { display: inline-flex; gap: 9px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: .03em; }
.pd-crumb .sep { opacity: .45; } .pd-crumb .here { color: var(--blau); } .pd-crumb a:hover { color: var(--blau); }
.pd-pill { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blau-dunkel); background: var(--gelb); border-radius: 999px; padding: 6px 14px; margin: 18px 0 14px; }
.pd-h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.07; color: var(--blau-dunkel); text-wrap: balance; }
.pd-lead { margin-top: 14px; max-width: 66ch; font-size: 16px; line-height: 1.62; color: var(--text-dim); text-wrap: pretty; }
.pd-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; height: 320px; margin-top: 30px; }
.pd-figure { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.pd-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-solo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); height: 380px; margin-top: 30px; }
.pd-solo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-facts { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 26px; height: 100%; }
.pd-facts .row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex: 1; border-bottom: 1px solid var(--line); }
.pd-facts .row:last-child { border-bottom: 0; }
.pd-facts .k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.pd-facts .v { font-size: 15px; font-weight: 700; color: var(--blau-dunkel); text-align: right; }
.pd-body { margin-top: 54px; }
.pd-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blau); }
.pd-text { margin-top: 18px; column-count: 2; column-gap: 48px; }
.pd-text p { font-size: 15.5px; line-height: 1.7; color: var(--text-dim); text-wrap: pretty; }
.pd-text p + p { margin-top: 15px; }
.pd-serv { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 9px; }
.pd-chip { font-size: 13px; font-weight: 600; color: var(--blau); background: var(--blau-hell); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; }
.pd-back { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--blau); margin-top: 46px; }
.pd-back:hover { color: var(--blau-dunkel); }
@media (max-width: 760px) {
  .pd-top { grid-template-columns: 1fr; height: auto; }
  .pd-figure { height: auto; aspect-ratio: 16 / 10; }
  .pd-solo { height: auto; aspect-ratio: 16 / 10; }
  .pd-text { column-count: 1; }
  .pd-facts { padding: 2px 18px; }
  .pd-facts .row { padding: 10px 0; }
  .pd-facts .k { font-size: 10.5px; }
  .pd-facts .v { font-size: 13px; }
  .pd-h1 { font-size: clamp(26px, 7vw, 42px); }
  .pd-lead { font-size: 15px; }
}
