/* ============================================================
   BayTech GmbH – Integriertes Designsystem
   Fahrleitungstechnik & IT / Digitalisierung
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0a1628; --navy-deep: #07101f; --blue: #1a4d8f; --blue-light: #85b7eb;
  --accent: #e8a020; --accent-light: #f5c96a;
  --text: #1a2340; --muted: #556080; --light: #f4f7fb; --white: #ffffff;
  --line: rgba(26,35,64,0.08);
}
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 56px 0; height: 76px; background: rgba(10,22,40,0.97);
}
.nav-gold-line { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; height: 2px; }
.nav-gold-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-left: 56px; position: relative; animation: dot-slide-in 1.2s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
@keyframes dot-slide-in { from { margin-left: calc(100vw - 10px); } to { margin-left: 56px; } }
.nav-gold-rule { height: 2px; background: var(--accent); flex: 1; }
.nav-logo { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; position: relative; z-index: 1; }
.logo-wordmark { display: flex; align-items: baseline; line-height: 1; }
.logo-bay  { font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.logo-tech { font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 700; color: var(--blue-light); letter-spacing: -0.5px; }
.logo-gmbh { font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 300; color: #c8d6e8; letter-spacing: 0.3px; margin-left: 6px; padding-bottom: 2px; }
.logo-tagline { font-family: "Montserrat", sans-serif; font-size: 8px; font-weight: 500; color: rgba(200,214,232,0.7); letter-spacing: 2px; margin-top: 4px; margin-bottom: 4px; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: flex-end; padding-bottom: 16px; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.2s; line-height: 1; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.lang-switch { display: flex; align-items: center; gap: 6px; align-self: flex-end; margin-bottom: 16px; font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; position: relative; z-index: 1; }
.lang-switch .lang-active { color: var(--accent); }
.lang-switch .lang-sep { color: rgba(255,255,255,0.25); }
.lang-switch a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.lang-switch a:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; align-self: flex-end; margin-bottom: 14px; position: relative; z-index: 101; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.85); transition: all 0.25s; border-radius: 1px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared helpers ---------- */
.section-tag { font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.section-tag::before { content:""; display:block; width:24px; height:1px; background:var(--accent); }
.section-tag.center { justify-content: center; }
.section-tag.center::before { display: none; }
h2 { font-family: "Montserrat", sans-serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--navy); letter-spacing: -1px; line-height: 1.15; }
.page-content { padding-top: 72px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--navy); background-image: url("../images/hero.webp"); background-size: cover; background-position: center 20%; padding: 100px 56px 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(7,16,32,0.92) 0%, rgba(7,16,32,0.75) 40%, rgba(7,16,32,0.35) 65%, rgba(7,16,32,0.05) 100%); z-index: 0; }
.page-hero .section-tag, .page-hero h1, .page-hero p { position: relative; z-index: 1; }
.page-hero h1 { font-family: "Montserrat", sans-serif; font-size: clamp(36px, 5vw, 64px); font-weight: 700; color: #fff; letter-spacing: -2px; line-height: 1.05; max-width: 760px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 17px; line-height: 1.75; max-width: 620px; margin-top: 20px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); padding: 32px 56px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.04); }
footer .logo-wordmark .logo-bay, footer .logo-wordmark .logo-tech { font-size: 20px; }
footer .logo-wordmark .logo-gmbh { font-size: 11px; }
footer p { font-size: 12px; color: rgba(200,214,232,0.3); letter-spacing: 0.5px; }
footer a { color: rgba(200,214,232,0.5); text-decoration: none; font-size: 12px; letter-spacing: 0.5px; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: 12px; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--navy); background: var(--accent); padding: 18px 40px; transition: background 0.2s, transform 0.15s; flex-shrink: 0; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 12px; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.3); padding: 18px 40px; transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Home hero ---------- */
.hero { height: 100vh; min-height: 620px; background: var(--navy); display: flex; align-items: flex-start; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url("../images/hero.webp"); background-size: cover; background-position: center; animation: hero-brighten 1.2s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
@keyframes hero-brighten { from { filter: brightness(0.3); } to { filter: brightness(1); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(7,16,32,0.92) 0%, rgba(7,16,32,0.75) 40%, rgba(7,16,32,0.35) 65%, rgba(7,16,32,0.05) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 36px 56px 0; }
.hero h1 { font-family: "Montserrat", sans-serif; font-size: clamp(32px, 4vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -2px; color: #fff; margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 540px; line-height: 1.75; margin-bottom: 36px; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 36px; right: 56px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.hero-scroll-line { width: 1px; height: 48px; background: rgba(255,255,255,0.2); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100%{opacity:0.2} 50%{opacity:0.9} }

/* ---------- Interactive comparison hero (Before/After) ---------- */
.hero-cmp { position: relative; height: 100vh; min-height: 600px; overflow: hidden; background: var(--navy); --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero-cmp .cmp-base, .hero-cmp .cmp-top { position: absolute; inset: 0; }
.hero-cmp .cmp-base img, .hero-cmp .cmp-top img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.hero-cmp .cmp-top { clip-path: inset(0 0 0 var(--pos)); -webkit-clip-path: inset(0 0 0 var(--pos)); }
.cmp-scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(7,16,32,0.62) 0%, rgba(7,16,32,0.05) 26%, rgba(7,16,32,0.05) 60%, rgba(7,16,32,0.55) 100%); }
.hero-cmp-head { position: absolute; top: 104px; left: 0; right: 0; z-index: 5; text-align: center; padding: 0 24px; pointer-events: none; }
.hc-eyebrow { display: inline-block; font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--navy); background: var(--accent); padding: 6px 16px; margin-bottom: 18px; }
.hero-cmp-head h1 { font-family: "Montserrat", sans-serif; font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; color: #fff; letter-spacing: -1.5px; line-height: 1.06; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.hero-cmp-head h1 em { font-style: normal; color: var(--accent); }
.hc-hint { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.hc-hint svg { animation: hint-nudge 1.8s ease-in-out infinite; }
@keyframes hint-nudge { 0%,100%{ transform: translateX(0); opacity:0.6 } 50%{ transform: translateX(3px); opacity:1 } }
.cmp-label { position: absolute; top: 18px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; background: rgba(10,22,40,0.72); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; padding: 11px 18px; text-decoration: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background 0.2s, color 0.2s; }
.cmp-label:hover { background: var(--accent); color: var(--navy); }
.cmp-label-left { left: 24px; }
.cmp-label-right { right: 24px; }
.cmp-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); z-index: 4; box-shadow: 0 0 14px rgba(0,0,0,0.45); pointer-events: none; }
.cmp-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.96); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,0.4); color: var(--navy); cursor: ew-resize; pointer-events: auto; }
.cmp-handle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cmp-label svg { transition: transform 0.2s; }
.cmp-label:hover svg { transform: translateX(3px); }
/* animated open transition (only while .cmp-anim is set; drag stays instant) */
.hero-cmp.cmp-anim .cmp-top { transition: clip-path 0.55s cubic-bezier(0.65,0,0.35,1), -webkit-clip-path 0.55s cubic-bezier(0.65,0,0.35,1); }
.hero-cmp.cmp-anim .cmp-divider { transition: left 0.55s cubic-bezier(0.65,0,0.35,1); }
.cmp-label { transition: opacity 0.35s ease, background 0.2s, color 0.2s; }
/* aktiver Bereich: zugehöriges Label hervorheben (gold), Gegenpart abgeblendet aber klickbar */
.hero-cmp.open-it .cmp-label-left,
.hero-cmp.open-fahrleitung .cmp-label-right { background: var(--accent); color: var(--navy); }
.hero-cmp.open-it .cmp-label-right,
.hero-cmp.open-fahrleitung .cmp-label-left { opacity: 0.4; }
.hero-cmp.open-it .cmp-label-right:hover,
.hero-cmp.open-fahrleitung .cmp-label-left:hover { opacity: 0.85; }
/* Titel-Varianten: passend zum aktiven Bereich ein-/ausblenden */
.hc-variant { display: none; }
.hero-cmp:not(.open-it):not(.open-fahrleitung) .hc-default { display: block; }
.hero-cmp.open-it .hc-it { display: block; }
.hero-cmp.open-fahrleitung .hc-fl { display: block; }

/* ---------- Intro strip ---------- */
.intro-strip { background: var(--accent); padding: 28px 56px; display: flex; align-items: center; gap: 48px; }
.intro-strip p { font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.6; flex: 1; }
.intro-stats { display: flex; gap: 48px; flex-shrink: 0; }
.istat { text-align: center; }
.istat-num { font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 700; color: var(--navy); display: block; }
.istat-lbl { font-size: 10px; font-weight: 600; color: rgba(10,22,40,0.55); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; display: block; }

/* ---------- Two pillars (50/50) ---------- */
.pillars { padding: 96px 56px 40px; text-align: center; }
.pillars > .section-tag { justify-content: center; margin-bottom: 14px; }
.pillars > .section-tag::before { display: none; }
.pillars-sub { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 600px; margin: 16px auto 0; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; text-align: left; }
.pillar { position: relative; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: #fff; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.25s, transform 0.2s; text-decoration: none; }
.pillar:hover { box-shadow: 0 18px 50px rgba(10,22,40,0.12); transform: translateY(-4px); }
.pillar-img { height: 220px; overflow: hidden; position: relative; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pillar:hover .pillar-img img { transform: scale(1.05); }
.pillar-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.55), rgba(10,22,40,0.05)); }
.pillar-badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--accent); color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 6px 14px; text-transform: uppercase; }
.pillar-body { padding: 36px 36px 40px; display: flex; flex-direction: column; flex: 1; }
.pillar-body h3 { font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.5px; }
.pillar-body > p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 22px; }
.pillar-list { list-style: none; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.pillar-list li { font-size: 13.5px; color: var(--text); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.pillar-list li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.pillar-cta { margin-top: auto; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.pillar:hover .pillar-cta { color: var(--accent); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--blue); padding: 96px 56px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-strip h2 { color: #fff; max-width: 540px; }
.cta-strip .cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- Partners / references strip ---------- */
.partners-strip { background: #fff; padding: 64px 56px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-strip .section-tag { justify-content: center; margin-bottom: 36px; }
.partners-strip .section-tag::before { display: none; }
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.partner-logo { display: flex; align-items: center; justify-content: center; padding: 24px 40px; border: 1px solid rgba(26,35,64,0.1); transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; }
.partner-logo:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(232,160,32,0.1); }
.partner-logo img { height: 50px; width: auto; object-fit: contain; filter: grayscale(30%); transition: filter 0.25s; }
.partner-logo:hover img { filter: grayscale(0%); }

/* ---------- Service rows (engineering detail) ---------- */
.services-list { background: var(--light); }
.service-row { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--line); background: #fff; transition: background 0.2s; }
.service-row:nth-child(even) { background: var(--light); }
.service-row:hover { background: #eef2f8; }
.sr-left { padding: 56px 48px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.sr-num { font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.sr-left h3 { font-family: "Montserrat", sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-tag { font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; padding: 4px 12px; border: 1px solid rgba(26,77,143,0.2); color: var(--blue); border-radius: 20px; }
.sr-right { padding: 56px 56px 56px 48px; display: flex; align-items: center; }
.sr-right p { font-size: 16px; color: var(--muted); line-height: 1.8; }

/* ---------- Feature cards grid (IT detail) ---------- */
.section { padding: 80px 56px; }
.section-lt { padding: 80px 56px; background: var(--light); }
.section h2.center, .section-lt h2.center { text-align: center; }
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.75; text-align: center; max-width: 600px; margin: 14px auto 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.feat-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px 28px; transition: transform 0.2s, box-shadow 0.2s; }
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10,22,40,0.08); }
.feat-ico { width: 46px; height: 46px; border-radius: 8px; background: rgba(26,77,143,0.08); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-ico svg { width: 24px; height: 24px; }
.feat-card h4 { font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- Tech tags ---------- */
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.tech-tag { font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; padding: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; color: var(--text); }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.process-step { background: #fff; padding: 30px 26px; border-top: 3px solid var(--accent); }
.process-step .pnum { font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 700; color: rgba(26,77,143,0.18); display: block; margin-bottom: 10px; }
.process-step h4 { font-family: "Montserrat", sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.stat-big { text-align: center; padding: 12px; }
.stat-big .num { font-family: "Montserrat", sans-serif; font-size: 42px; font-weight: 700; color: var(--accent); display: block; line-height: 1; }
.stat-big .lbl { color: var(--muted); font-size: 14px; margin-top: 12px; display: block; line-height: 1.5; }

/* ---------- References grid ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.ref-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.ref-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(10,22,40,0.1); }
.ref-img { height: 310px; overflow: hidden; position: relative; }
.ref-cat { z-index: 3; }
.ref-soon { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(10,22,40,0.58); }
.ref-soon span { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); background: var(--accent); padding: 11px 22px; }
.ref-img img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top center; transition: transform 5s ease-in-out; }
.ref-card:hover .ref-img img { transform: translateY(min(0px, calc(-100% + 310px))); }
.ref-cat { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff; font-family: "Montserrat", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; padding: 5px 12px; text-transform: uppercase; }
.ref-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.ref-body h3 { font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ref-body p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.ref-link { margin-top: auto; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ref-link:hover { color: var(--accent); }

/* ---------- Partner cards ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.partner-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 32px 30px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.partner-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(10,22,40,0.1); }
.partner-logo-box { height: 84px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.partner-logo-box img { max-height: 56px; max-width: 190px; width: auto; object-fit: contain; filter: grayscale(20%); transition: filter 0.25s; }
.partner-card:hover .partner-logo-box img { filter: grayscale(0%); }
.partner-cat { font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.partner-card h3 { font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 9px; }
.partner-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.partner-card .ref-link { margin-top: auto; }

/* ---------- About ---------- */
.about-text { padding: 80px 56px; background: #fff; max-width: 900px; }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; font-size: 16px; }
.aval-list { margin-top: 36px; }
.aval { padding: 18px 0; border-bottom: 1px solid var(--line); }
.aval:last-child { border-bottom: none; }
.aval h4 { font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.aval p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.phil-card { background: #fff; padding: 36px 32px; border-top: 3px solid var(--accent); }
.phil-card h3 { font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.phil-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- Spotlight / Case study ---------- */
.spotlight { background: var(--navy); color: #fff; padding: 0; overflow: hidden; }
.spotlight-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.spotlight-media { position: relative; min-height: 440px; background: #07101f; }
.spotlight-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Browserfenster-Mockup (Fallback, aktuell nicht genutzt) */
.shopframe { position: absolute; inset: 26px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); display: flex; flex-direction: column; }
.shopframe-bar { height: 34px; background: #e9edf3; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid #dce2ea; flex-shrink: 0; }
.shopframe-dots { display: flex; gap: 6px; }
.shopframe-dots span { width: 10px; height: 10px; border-radius: 50%; }
.shopframe-url { flex: 1; background: #fff; border: 1px solid #dce2ea; border-radius: 5px; font-size: 11px; color: #556080; padding: 5px 12px; font-family: "DM Sans", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopframe-body { flex: 1; overflow: hidden; padding: 16px 18px; }
.shopframe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.shopframe-brand { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 17px; color: #0a1628; letter-spacing: -0.5px; }
.shopframe-brand em { font-style: normal; color: #d11f2a; }
.shopframe-cat { font-size: 10.5px; font-weight: 700; color: #1a2340; letter-spacing: 0.3px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shop-card { border: 1px solid #eef1f6; border-radius: 6px; overflow: hidden; background: #fff; }
.shop-card img { width: 100%; height: 84px; object-fit: contain; background: #f7f9fc; padding: 8px; display: block; }
.shop-meta { padding: 7px 9px 9px; }
.shop-name { font-size: 10px; color: #1a2340; font-weight: 600; line-height: 1.3; height: 26px; overflow: hidden; }
.shop-price { font-size: 11px; color: #d11f2a; font-weight: 700; margin-top: 3px; }
.spotlight-badge { position: absolute; top: 22px; left: 22px; z-index: 2; background: var(--accent); color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 6px 14px; text-transform: uppercase; }
.spotlight-body { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-body .section-tag { color: var(--accent); }
.spotlight-body h2 { color: #fff; }
.spotlight-body > p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.8; margin-top: 18px; }
.spotlight-list { list-style: none; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.spotlight-list li { font-size: 14px; color: rgba(255,255,255,0.92); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.spotlight-list li::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.spotlight-foot { margin-top: 34px; display: flex; gap: 40px; flex-wrap: wrap; }
.spotlight-foot .sf { }
.spotlight-foot .sf-num { font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 700; color: var(--accent); display: block; line-height: 1; }
.spotlight-foot .sf-lbl { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; display: block; letter-spacing: 0.5px; }

/* ---------- LinkedIn float ---------- */
.linkedin-float { position: fixed; bottom: 28px; left: 28px; right: auto; z-index: 99; width: 48px; height: 48px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.3); transition: background 0.2s, transform 0.15s; text-decoration: none; }
.linkedin-float:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav { padding: 0 24px; }
  .nav-gold-dot { margin-left: 24px; }
  footer { flex-direction: column; gap: 20px; padding: 32px 24px; text-align: center; }
  .footer-links { justify-content: center; gap: 16px; }
  .hero-content { padding: 36px 24px 0; }
  .hero-scroll { display: none; }
  .hero-cmp-head { top: 90px; }
  .cmp-label { top: 14px; font-size: 10.5px; padding: 9px 13px; letter-spacing: 1px; }
  /* IT-Label nach unten links (auf die breite IT-Bildfläche der Diagonale),
     mit genug Abstand zu LinkedIn-Button (fixed bottom 28px) und Chatbot. */
  .cmp-label-left { left: 14px; top: auto; bottom: 30%; }
  .cmp-label-right { right: 14px; }
  .cmp-handle { width: 48px; height: 48px; }
  /* Hero: diagonale Bildtrennung auf Mobile – beide Bilder bekommen mehr Fläche.
     Trennkante läuft von links oben (--pos - 17%) nach rechts unten (--pos + 17%):
     Fahrleitung dominiert oben rechts, IT unten links. */
  .hero-cmp .cmp-top {
    clip-path: polygon(calc(var(--pos) - 17%) 0, 100% 0, 100% 100%, calc(var(--pos) + 17%) 100%);
    -webkit-clip-path: polygon(calc(var(--pos) - 17%) 0, 100% 0, 100% 100%, calc(var(--pos) + 17%) 100%);
  }
  /* Trennlinie: volle Fläche, Linie per clip-path auf den Pseudo-Elementen
     (dunkler Schein + weisse Linie), exakt entlang der Diagonale. */
  .cmp-divider { left: 0; right: 0; width: auto; transform: none; background: transparent; box-shadow: none; }
  .cmp-divider::before, .cmp-divider::after { content: ""; position: absolute; inset: 0; }
  .cmp-divider::before {
    background: rgba(0,0,0,0.35);
    clip-path: polygon(calc(var(--pos) - 17% - 6px) 0, calc(var(--pos) - 17% + 6px) 0, calc(var(--pos) + 17% + 6px) 100%, calc(var(--pos) + 17% - 6px) 100%);
    -webkit-clip-path: polygon(calc(var(--pos) - 17% - 6px) 0, calc(var(--pos) - 17% + 6px) 0, calc(var(--pos) + 17% + 6px) 100%, calc(var(--pos) + 17% - 6px) 100%);
  }
  .cmp-divider::after {
    background: #fff;
    clip-path: polygon(calc(var(--pos) - 17% - 1.5px) 0, calc(var(--pos) - 17% + 1.5px) 0, calc(var(--pos) + 17% + 1.5px) 100%, calc(var(--pos) + 17% - 1.5px) 100%);
    -webkit-clip-path: polygon(calc(var(--pos) - 17% - 1.5px) 0, calc(var(--pos) - 17% + 1.5px) 0, calc(var(--pos) + 17% + 1.5px) 100%, calc(var(--pos) + 17% - 1.5px) 100%);
  }
  .intro-strip { flex-direction: column; padding: 28px 24px; gap: 24px; }
  .intro-stats { gap: 32px; }
  .pillars { padding: 56px 24px 24px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-strip { flex-direction: column; padding: 64px 24px; gap: 28px; text-align: center; }
  .cta-strip h2 { max-width: 100%; }
  .cta-strip .cta-actions { justify-content: center; }
  .partners-strip { padding: 48px 24px; }
  .page-hero { padding: 80px 24px 48px; }
  .service-row { grid-template-columns: 1fr; }
  .sr-left { padding: 32px 24px; border-right: none; border-bottom: 1px solid var(--line); }
  .sr-right { padding: 24px 24px 40px; }
  .section, .section-lt { padding: 48px 24px; }
  .feat-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .ref-grid { grid-template-columns: 1fr; }
  .about-text { padding: 48px 24px; }
  .phil-grid { grid-template-columns: 1fr; gap: 16px; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 320px; }
  .shopframe { inset: 14px; }
  .shop-card img { height: 66px; }
  .spotlight-body { padding: 48px 24px; }
  .spotlight-list { grid-template-columns: 1fr; }
  @keyframes dot-slide-in { from { margin-left: calc(100vw - 10px); } to { margin-left: 24px; } }
}
@media (min-width: 1600px) {
  nav { padding: 0 80px 0; }
  .nav-gold-dot { margin-left: 80px; }
  .logo-bay, .logo-tech { font-size: 30px; }
  .nav-links a { font-size: 13px; }
  h2 { font-size: clamp(44px, 3.5vw, 64px); }
  footer { padding: 40px 80px; }
  .hero-content, .page-hero, .pillars, .cta-strip, .intro-strip, .partners-strip, .section, .section-lt { padding-left: 80px; padding-right: 80px; }
}

/* ---------- Mega-Menü / Dropdown-Navigation ---------- */
.nav-links .has-dd { position: relative; }
.nav-links .has-dd > a { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.nav-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -2px; transition: transform 0.2s; }
.nav-links .has-dd:hover .nav-caret, .nav-links .has-dd.dd-open .nav-caret { transform: rotate(225deg); }
/* unsichtbare Brücke, damit der Hover beim Weg zum Menü nicht abbricht */
.nav-links .has-dd::after { content: ""; position: absolute; left: 0; right: -20px; top: 100%; height: 24px; }
.nav-dropdown { position: absolute; top: calc(100% + 18px); left: 0; background: rgba(7,16,31,0.98); border-top: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(0,0,0,0.5); padding: 28px 32px; border-radius: 0 0 6px 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 120; }
.nav-links .has-dd:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mega { display: flex; gap: 48px; }
.nav-dd-single { min-width: 290px; }
.nav-dd-h { font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.nav-dd-col a { display: block; color: rgba(255,255,255,0.82); text-decoration: none; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; text-transform: none; padding: 7px 0; border: none; transition: color 0.15s; }
.nav-dd-col a:hover { color: var(--accent-light); }
.nav-dd-tool { color: var(--blue-light) !important; }
.nav-dd-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-dd-foot a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border: none; padding: 0; }
.nav-dd-foot a:hover { color: var(--accent); }
.nav-dd-single .nav-dd-foot { margin-top: 14px; }
/* Anker-Sprünge unter der fixen Navigation */
[id^="svc-"], [id^="fl-"] { scroll-margin-top: 96px; }

/* Kompakte Desktop-Navigation 1201–1440px (grössere iPads quer, kleine Laptops):
   kleinere Schrift/Abstände, damit alle 7 Menüpunkte in eine Zeile passen. */
@media (min-width: 1201px) and (max-width: 1440px) {
  nav { padding: 0 28px; }
  .nav-gold-dot { margin-left: 28px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10.5px; letter-spacing: 0.7px; }
  .nav-links .has-dd > a { gap: 5px; }
  .logo-bay, .logo-tech { font-size: 21px; }
  .logo-gmbh { font-size: 11px; }
  .logo-tagline { font-size: 7px; letter-spacing: 1.6px; }
  .lang-switch { font-size: 10px; gap: 4px; margin-left: 6px; }
}

/* Hamburger-Navigation bis 1200px: das volle Desktop-Menü (7 Punkte) braucht
   mehr Platz, als kleinere iPads im Querformat (1024–1180px) bieten. */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: fixed; top: 76px; left: 0; right: 0; background: rgba(10,22,40,0.98); flex-direction: column; align-items: flex-start; padding: 8px 24px 24px; gap: 0; border-top: 1px solid rgba(232,160,32,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.4); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); letter-spacing: 1px; }
  .nav-links li:last-child a { border-bottom: none; }
  .lang-switch { display: flex; margin-left: auto; margin-right: 18px; margin-bottom: 25px; }
  .nav-links .has-dd::after { display: none; }
  .nav-links .has-dd > a { display: block; }
  .nav-caret { float: right; margin-top: 6px; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; box-shadow: none; border-top: none; border-radius: 0; padding: 0 0 6px 12px; }
  .has-dd.dd-open .nav-dropdown { display: block; }
  .nav-mega { flex-direction: column; gap: 4px; }
  .nav-dd-h { margin: 10px 0 4px; }
  .nav-dd-col a, .nav-dd-foot a { padding: 9px 0; border-bottom: none; }
  .nav-dd-single { min-width: 0; }
  .nav-dd-foot { margin-top: 6px; padding-top: 10px; }
}

/* ---------- Leistungs-Einzelseiten: Hero ---------- */
.svc-hero { position: relative; min-height: 60vh; display: flex; align-items: center; padding: 132px 56px 72px; background-color: var(--navy); background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(7,16,31,0.92) 0%, rgba(7,16,31,0.72) 42%, rgba(7,16,31,0.30) 75%, rgba(7,16,31,0.12) 100%); }
.svc-hero-inner { position: relative; z-index: 1; max-width: 640px; color: #fff; }
.svc-eyebrow { font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.svc-hero h1 { font-family: "Montserrat", sans-serif; font-size: clamp(38px, 5vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -1px; margin: 0; color: #fff; }
.svc-hero h1 em { font-style: normal; color: var(--blue-light); }
.svc-hero p { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 560px; }
.svc-hero-cta { margin-top: 30px; }
@media (max-width: 860px) { .svc-hero { padding: 104px 24px 56px; min-height: 52vh; } }

/* ---------- Platzhalter-Hinweis (nur für Befüll-Phase) ---------- */
.ph-note { color: #8a93a6; font-style: italic; }

/* ====================== Lebendigkeit: dezente Animationen ====================== */
/* 1) Scroll-Einblendungen (einmalig) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.22,0.61,0.36,1), transform 0.6s cubic-bezier(0.22,0.61,0.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 2) Karten heben sich beim Hover leicht an */
.feat-card, .process-step { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(10,22,40,0.16); }
.process-step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,22,40,0.12); }

/* 3) Sanfter Hero-Zoom (Ken Burns, einmalig beim Laden) */
.svc-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transform-origin: center; animation: svcKenBurns 18s ease-out both; }
.svc-hero::before { z-index: 1; }
.svc-hero-inner { z-index: 2; }
@keyframes svcKenBurns { from { transform: scale(1.09); } to { transform: scale(1); } }

/* Barrierefreiheit: keine Bewegung, wenn der Nutzer das wünscht */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .svc-hero-img { animation: none !important; }
}

/* ---------- Signature-Band (animierte Konstellation) ---------- */
.signature-band { position: relative; overflow: hidden; background: var(--navy); }
.signature-band .sig-svg { position: absolute; inset: 0; z-index: 0; }
.signature-band .sig-svg svg { width: 100%; height: 100%; display: block; }
.signature-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(10,22,40,0.62) 0%, rgba(10,22,40,0.28) 55%, rgba(10,22,40,0.05) 100%); }
.signature-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; padding: 104px 24px; color: #fff; }
.signature-content .section-tag { color: var(--accent); justify-content: center; }
.signature-content h2 { color: #fff; margin: 14px 0 0; }
.signature-content p { color: rgba(255,255,255,0.74); margin-top: 18px; font-size: clamp(16px,1.4vw,19px); line-height: 1.65; }
@media (max-width: 860px) { .signature-content { padding: 72px 24px; } }
/* Reduced-Motion: SVG-Animationen anhalten */
@media (prefers-reduced-motion: reduce) { .signature-band svg * { animation: none !important; } }
