/* EMW Herkner – modernes Stylesheet (2026) */
:root {
  --blue-900: #10264f;
  --blue-800: #16346e;
  --blue-700: #1d448f;
  --blue-500: #2f6fc4;
  --blue-400: #58a0e0;
  --blue-100: #e8f0fa;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1c2434;
  --text-soft: #4b5768;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --border: #dde4ee;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(16, 38, 79, 0.10);
  --shadow-lg: 0 12px 40px rgba(16, 38, 79, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-500); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue-800); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-list a, .sub-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-list a:hover, .sub-toggle:hover { background: var(--blue-100); color: var(--blue-800); }
.nav-list a.active, .sub-toggle.active { color: var(--blue-700); }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: .5rem; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open-mobile .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { display: block; width: 100%; padding: .5rem .75rem; font-weight: 500; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blue-800); margin: 5px 0; border-radius: 2px; transition: all .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: inherit; transition: all .2s;
}
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); color: #fff; }
.btn-accent { background: var(--accent); color: #1c1503; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-100); color: var(--blue-900); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 55, .88) 0%, rgba(16, 38, 79, .55) 55%, rgba(16, 38, 79, .25) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; padding-top: 4rem; padding-bottom: 4rem; max-width: 900px; margin: 0; margin-left: max(calc((100vw - 1180px) / 2), 0px); }
.hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .85rem; color: var(--blue-400); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.15; margin-bottom: 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #dbe6f5; margin-bottom: 2rem; max-width: 640px; }
.cta-buttons { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue-900); margin-bottom: .8rem; text-align: center; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 720px; margin: 0 auto 2.5rem; }
.section-title + .card-grid, .section-title + .tile-grid { margin-top: 2.5rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.5rem; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--blue-800); margin-bottom: .7rem; font-size: 1.15rem; }
.card p { color: var(--text-soft); font-size: .97rem; }
.card p + ul { margin-top: .6rem; }
.card-icon {
  width: 62px; height: 62px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 1.1rem;
}

/* ---------- Tiles (Maschinen) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile img { aspect-ratio: 4 / 3.4; object-fit: contain; padding: 1rem; background: #fff; }
.tile span {
  display: block; padding: .9rem 1.1rem; background: var(--blue-800); color: #fff;
  font-weight: 700; font-size: 1rem; margin-top: auto;
}
.tile:hover span { background: var(--blue-700); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.team-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue-500);
}
.team-card h3 { color: var(--blue-900); font-size: 1.25rem; }
.team-role { color: var(--blue-500); font-weight: 700; font-size: .95rem; margin-bottom: .8rem; }
.team-card > p { color: var(--text-soft); font-size: .96rem; }
.contact-list { list-style: none; margin-top: .9rem; }
.contact-list li { padding: .18rem 0; font-size: .96rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.contact-list-lg li { font-size: 1.05rem; padding: .3rem 0; }
.contact-list svg { color: var(--blue-500); flex-shrink: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-text h2 { color: var(--blue-900); font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 1rem; }
.split-text h3 { color: var(--blue-800); margin: 1.4rem 0 .5rem; }
.split-text .btn { margin-top: 1.2rem; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.contact-block { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff; padding: 3.5rem 0 3rem;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.page-hero .lead { color: #d5e2f5; max-width: 820px; font-size: 1.08rem; }
.breadcrumb { font-size: .88rem; color: var(--blue-400); margin-bottom: .8rem; }
.breadcrumb a { color: var(--blue-400); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Produkte ---------- */
.product-list { display: flex; flex-direction: column; gap: 2.5rem; }
.product {
  display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.product-reverse { grid-template-columns: 1fr minmax(240px, 380px); }
.product-reverse .product-media { order: 2; }
.product-media { margin: 0; }
.product-media img {
  border-radius: 10px; width: 100%; object-fit: contain; max-height: 460px; cursor: zoom-in;
  background: #fff;
}
.product-body h2 { color: var(--blue-900); font-size: 1.4rem; margin-bottom: .4rem; }
.product-sub { color: var(--blue-500); font-weight: 600; margin-bottom: .6rem; }
.product-body .btn { margin-top: 1.1rem; }
.feature-list { list-style: none; margin-top: .6rem; }
.feature-list li { position: relative; padding: .22rem 0 .22rem 1.7rem; color: var(--text-soft); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .62rem; width: 1.05rem; height: 1.05rem;
  background: var(--blue-100); border-radius: 50%;
}
.feature-list li::after {
  content: ""; position: absolute; left: .3rem; top: .87rem; width: .45rem; height: .25rem;
  border-left: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700); transform: rotate(-45deg);
}

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-500)); color: #fff; }
.cta-inner { text-align: center; max-width: 760px; }
.cta-inner h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .8rem; }
.cta-inner p { color: #dbe6f5; margin-bottom: 1.6rem; }
.cta-inner .cta-buttons { justify-content: center; }

/* ---------- Formular ---------- */
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--blue-900); }
.form-row input, .form-row textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 8px;
  font: inherit; color: var(--text); background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue-500); border-color: var(--blue-500); }
.note { font-size: .87rem; color: var(--text-soft); margin: .8rem 0; }

/* ---------- Legal ---------- */
.legal { max-width: 860px; }
.legal h2 { color: var(--blue-900); margin: 2.2rem 0 .7rem; font-size: 1.35rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { color: var(--blue-800); margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal ol, .legal ul { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.legal li { margin-bottom: .45rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c6d4e8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; padding: 3.5rem 1.25rem 2.5rem; }
.footer-col h2 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col p, .footer-col address { font-style: normal; font-size: .95rem; line-height: 1.8; }
.footer-col a { color: var(--blue-400); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col img { margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { padding: .2rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .85rem; }
.footer-bottom p { text-align: center; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(10, 18, 35, .92); padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 8px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; padding: .3rem .6rem;
}

/* ---------- Wow: Scroll-Progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px;
  width: 0; background: linear-gradient(90deg, var(--accent), var(--blue-400));
  z-index: 150; border-radius: 0 3px 3px 0;
}

/* ---------- Wow: Hero (Ken-Burns + Stagger) ---------- */
@keyframes kenburns { from { transform: scale(1.12) translateY(-1.5%); } to { transform: scale(1) translateY(0); } }
.hero-img { animation: kenburns 9s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-anim { opacity: 0; animation: heroIn .9s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-anim:nth-child(1) { animation-delay: .15s; }
.hero-anim:nth-child(2) { animation-delay: .35s; }
.hero-anim:nth-child(3) { animation-delay: .55s; }
.hero-anim:nth-child(4) { animation-delay: .75s; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 30px; height: 50px; border: 2px solid rgba(255,255,255,.7); border-radius: 999px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 9px; width: 5px; height: 10px; margin-left: -2.5px;
  background: #fff; border-radius: 3px; animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Wow: Stats-Band ---------- */
.stats-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); padding: 2.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-num { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat-num::after { content: attr(data-suffix); color: var(--accent); }
.stat-label { color: var(--blue-400); font-weight: 600; font-size: .92rem; line-height: 1.4; display: block; margin-top: .3rem; }

/* ---------- Wow: Section-Titel-Unterstrich ---------- */
.section-title { position: relative; padding-bottom: .9rem; }
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scaleX(0);
  width: 74px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue-500));
  transition: transform .7s cubic-bezier(.2,.7,.3,1) .15s;
}
.section-title.visible::after, .section-title.underline-on::after { transform: translateX(-50%) scaleX(1); }

/* ---------- Wow: Button-Shine ---------- */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -30%; width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -40%; } 55% { left: 130%; } 100% { left: 130%; } }

/* ---------- Wow: Karten-Hover + Icon ---------- */
.card:hover .card-icon { transform: translateY(-4px) rotate(-4deg) scale(1.07); background: var(--blue-700); color: #fff; }
.card-icon { transition: all .3s cubic-bezier(.2,.7,.3,1); }
.tile img { transition: transform .35s ease; }
.tile:hover img { transform: scale(1.06); }
.team-card { transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ---------- Wow: CTA-Band Gradient-Animation ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-500), var(--blue-800)); background-size: 220% 220%; animation: ctaGradient 9s ease infinite; }
@keyframes ctaGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- Anfahrt: Routen-Karte ---------- */
.route-tabs { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.route-tab {
  padding: .65rem 1.3rem; border-radius: 999px; border: 2px solid var(--blue-500);
  background: #fff; color: var(--blue-700); font-weight: 700; font-size: .97rem;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.route-tab:hover { background: var(--blue-100); }
.route-tab.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.route-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.2rem; align-items: start; }
.route-map-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .8rem; }
.route-map-wrap svg { width: 100%; height: auto; display: block; }
.route-line {
  stroke: #2f6fc4; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; filter: drop-shadow(0 2px 4px rgba(16,38,79,.35));
}
.route-line.drawing { opacity: 1; }
.route-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: .7rem; }
.route-steps li {
  counter-increment: step; position: relative; padding: .85rem 1rem .85rem 3.4rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  color: var(--text-soft); opacity: 0; transform: translateX(24px);
  animation: stepIn .5s cubic-bezier(.2,.7,.3,1) forwards;
}
.route-steps li:nth-child(1) { animation-delay: .1s; }
.route-steps li:nth-child(2) { animation-delay: .55s; }
.route-steps li:nth-child(3) { animation-delay: 1.0s; }
.route-steps li:nth-child(4) { animation-delay: 1.45s; }
.route-steps li:nth-child(5) { animation-delay: 1.9s; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.route-steps li::before {
  content: counter(step); position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--blue-700); color: #fff; font-weight: 800; font-size: .95rem;
}
.route-steps li:last-child::before { background: var(--accent); color: #1c1503; }
.route-extras { margin-top: 1.4rem; }
.route-extras .cta-buttons { margin: .9rem 0; }

/* ---------- Google Maps (Zwei-Klick) ---------- */
.gmap-block { margin-top: 2.6rem; }
.gmap-title { color: var(--blue-900); font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.gmap-consent {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.gmap-placeholder { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-soft); }
.gmap-placeholder svg { color: var(--blue-500); margin: 0 auto 1rem; }
.gmap-placeholder .cta-buttons { justify-content: center; margin: 1.2rem 0 .4rem; }
.gmap-consent.gmap-loaded { display: block; min-height: 0; }
.gmap-consent iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .route-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .product, .product-reverse { grid-template-columns: 1fr; gap: 1.4rem; }
  .product-reverse .product-media { order: 0; }
  .product-media img { max-height: 380px; margin: 0 auto; }
  .hero-content { margin-left: 0; padding-left: 1.25rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: .6rem 1rem 1rem; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-list a, .sub-toggle { width: 100%; padding: .85rem .9rem; font-size: 1.05rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 3px solid var(--blue-100);
    border-radius: 0; margin-left: .9rem; display: none; min-width: 0;
  }
  .has-sub.open-mobile .submenu { display: block; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; text-align: center; }
  .section { padding: 3rem 0; }
}