/* ==========================================================================
   MEtech Transportbandtechnik GmbH — Design-System
   Markenfarben: Grün #008462/#006b4f (Logo) + Stahl-Anthrazit, modernisiert
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #00543f;
  --green-800: #006b4f;
  --green-700: #008462;
  --green-100: #d3ece4;
  --green-050: #eef7f4;
  --steel-950: #0e1417;
  --steel-900: #141c21;
  --steel-800: #1c262d;
  --ink: #16211f;
  --gray-700: #46555a;
  --gray-500: #66777d;
  --gray-300: #b6c3c4;
  --line: #e0e8e6;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 42px rgba(14, 20, 23, 0.14);
  --shadow-soft: 0 6px 22px rgba(14, 20, 23, 0.08);
  --container: 1200px;
  --header-h: 80px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

.section { padding: clamp(64px, 9vw, 106px) 0; }
.section-soft { background: var(--green-050); }
.section-dark { background: var(--steel-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-300); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--green-700); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 32px; height: 3px; background: var(--green-700); border-radius: 2px; }
.section-dark .kicker { color: #57c9a6; }
.section-dark .kicker::before { background: #57c9a6; }

.section-head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.lead { font-size: 1.16rem; color: var(--gray-700); }
.section-dark .lead { color: var(--gray-300); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--green-700); color: var(--white);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  letter-spacing: 0.01em; line-height: 1.2;
  padding: 15px 28px; border: 0; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 132, 98, 0.32); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px var(--white); }
.btn-outline-green { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-700); }
.btn-outline-green:hover { background: var(--green-700); color: var(--white); box-shadow: inset 0 0 0 2px var(--green-700); }

/* --------------------------------------------------------------------------
   Header (dunkel)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(14, 20, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: rgba(14, 20, 23, 0.97); box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3); }

.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; gap: 5px; }
.logo-name { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; color: var(--white); }
.logo-name .l-me { color: #2fbd92; }
.logo-belt { display: block; width: 100%; height: 7px; }
.logo-belt line { stroke: #2fbd92; stroke-width: 2; }
.logo-belt circle { fill: none; stroke: #2fbd92; stroke-width: 1.6; }
.logo-sub { color: var(--gray-300); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.06em; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > a, .nav-sub-toggle {
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 9px 10px; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer;
  white-space: nowrap;
  font-family: inherit; line-height: inherit; transition: color var(--transition), background var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.main-nav > a:hover, .nav-sub-toggle:hover { color: var(--white); background: rgba(255, 255, 255, 0.09); }
.main-nav > a[aria-current="page"], .nav-group.current .nav-sub-toggle { color: #57c9a6; }

.nav-sub-toggle::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--transition);
}
.nav-group { position: relative; }
.nav-group.open .nav-sub-toggle::after { transform: rotate(-135deg); margin-top: 4px; }

.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--steel-800); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius-sm);
  padding: 8px; min-width: 250px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: var(--shadow);
}
.nav-group.open .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub-menu a {
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 600; font-size: 0.94rem;
  padding: 10px 14px; border-radius: 7px; transition: background var(--transition), color var(--transition);
}
.sub-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #57c9a6; }
.sub-menu a[aria-current="page"] { color: #57c9a6; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.97rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.header-phone svg { width: 17px; height: 17px; fill: #2fbd92; }
.header-phone:hover { color: #57c9a6; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer;
  position: relative; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 24px; height: 2.5px;
  background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(90vh, 840px); display: flex; align-items: center;
  background: var(--steel-950); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 76px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(14, 20, 23, 0.94) 8%, rgba(14, 20, 23, 0.7) 46%, rgba(14, 20, 23, 0.3) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 660px; }
.hero-topline {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: #57c9a6; margin-bottom: 20px;
}
.hero-topline::before { content: ""; width: 32px; height: 3px; background: var(--green-700); border-radius: 2px; }
.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero h1 .accent { color: #57c9a6; }
.hero p { font-size: 1.18rem; color: rgba(255, 255, 255, 0.87); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-badges {
  position: relative; z-index: 2; margin-top: clamp(38px, 7vh, 78px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.hero-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-weight: 600; font-size: 0.93rem; color: rgba(255, 255, 255, 0.93);
}
.hero-badge svg { width: 26px; height: 26px; fill: #2fbd92; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Unterseiten-Kopf
   -------------------------------------------------------------------------- */
.page-head {
  position: relative; background: var(--steel-950); color: var(--white);
  padding: calc(var(--header-h) + clamp(52px, 9vw, 90px)) 0 clamp(52px, 8vw, 82px); overflow: hidden;
}
.page-head-media { position: absolute; inset: 0; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(14, 20, 23, 0.95) 10%, rgba(14, 20, 23, 0.7) 55%, rgba(14, 20, 23, 0.4) 100%);
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: var(--white); max-width: 780px; margin-bottom: 0.32em; }
.page-head p { font-size: 1.14rem; color: rgba(255, 255, 255, 0.87); max-width: 660px; margin: 0; }
.breadcrumb { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.76); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: #57c9a6; }

/* --------------------------------------------------------------------------
   Karten & Grids
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.14rem; }
.card-body p { color: var(--gray-700); font-size: 0.97rem; }
.card-link {
  margin-top: auto; font-weight: 700; text-decoration: none; color: var(--green-800);
  font-size: 0.93rem; display: inline-flex; align-items: center; gap: 8px;
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.card-link:hover::after { transform: translateX(5px); }

.icon-item { display: flex; gap: 16px; align-items: flex-start; }
.icon-item svg { width: 38px; height: 38px; fill: var(--green-700); flex-shrink: 0; margin-top: 3px; }
.icon-item h3 { margin-bottom: 0.3em; }
.icon-item p { color: var(--gray-700); font-size: 0.97rem; margin: 0; }
.section-dark .icon-item svg { fill: #57c9a6; }
.section-dark .icon-item p { color: var(--gray-300); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 33px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background-color: var(--green-700);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 17px no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 17px no-repeat;
}
.section-dark .check-list li::before { background-color: #57c9a6; }

/* Split-Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 70px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(2.3rem, 4.6vw, 3.3rem); font-weight: 700; color: #57c9a6; line-height: 1; }
.stat-label { font-weight: 600; color: rgba(255, 255, 255, 0.87); margin-top: 10px; font-size: 0.95rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 28px 16px; text-align: center;
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--white); font-weight: 700; font-size: 1.55rem;
}
.team-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.team-card p { color: var(--gray-500); font-size: 0.86rem; font-weight: 600; margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform 0.5s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(1) img { aspect-ratio: auto; height: 100%; }

.lightbox {
  border: 0; padding: 0; background: rgba(14, 20, 23, 0.94); max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--white);
  font-size: 2.4rem; cursor: pointer; line-height: 1; font-family: inherit;
}

/* Partner-Logos */
.logo-strip { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); align-items: center; justify-content: center; }
.logo-strip img { height: 56px; width: auto; }

/* CTA-Band */
.cta-band { background: var(--steel-900); color: var(--white); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0, 132, 98, 0.25), transparent 65%);
}
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: var(--gray-300); }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 42px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field .optional { color: var(--gray-500); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; background: var(--white); width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3.5px rgba(0, 132, 98, 0.16);
}
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--gray-700); grid-column: 1 / -1; }
.form-consent input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--green-700); flex-shrink: 0; }
.form-consent a { color: var(--green-800); font-weight: 700; }
.form-note { font-size: 0.88rem; color: var(--gray-500); grid-column: 1 / -1; margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { grid-column: 1 / -1; border-radius: var(--radius-sm); padding: 15px 18px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e8f6ec; color: #1c6b34; }
.form-status.error { display: block; background: #fdecec; color: #a12626; }

/* Kontakt-Infos */
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; fill: #57c9a6; flex-shrink: 0; margin-top: 4px; }
.contact-item strong { display: block; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gray-300); margin-bottom: 2px; }
.contact-item a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-item a:hover { color: #57c9a6; }
.contact-item span { color: var(--white); font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--steel-950); color: var(--gray-300); padding: clamp(56px, 8vw, 80px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { font-size: 0.95rem; margin-top: 16px; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.11em; margin: 0 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--gray-300); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: #57c9a6; }
.footer-contact { font-style: normal; display: grid; gap: 8px; font-size: 0.97rem; }
.footer-contact a { color: var(--gray-300); text-decoration: none; }
.footer-contact a:hover { color: #57c9a6; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 22px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--gray-300); text-decoration: none; }
.footer-legal a:hover { color: #57c9a6; }

/* --------------------------------------------------------------------------
   Klickbare Karten & Cursor
   -------------------------------------------------------------------------- */
a.card { text-decoration: none; color: inherit; }
a.card, a.card * { cursor: pointer; }
.card-body h3 { color: var(--ink); }

/* --------------------------------------------------------------------------
   Nav: animierter Unterstrich
   -------------------------------------------------------------------------- */
.main-nav > a { position: relative; }
.main-nav > a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: #2fbd92; border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Hero: Ken-Burns-Zoom
   -------------------------------------------------------------------------- */
.hero-media img { animation: kenburns 24s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.08) translateX(-1.5%); }
}

/* --------------------------------------------------------------------------
   Karriere
   -------------------------------------------------------------------------- */
.shorts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.short-video {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16;
  background: var(--steel-800); box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.short-video:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.short-video video { width: 100%; height: 100%; object-fit: cover; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--steel-800); }
.video-grid video { width: 100%; display: block; }
.video-grid figcaption { padding: 14px 18px; font-weight: 600; font-size: 0.94rem; color: var(--gray-300); }

.job { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.job + .job { margin-top: 18px; }
.job summary {
  list-style: none; cursor: pointer; padding: 24px 28px; display: flex; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.15rem; transition: background var(--transition);
}
.job summary::-webkit-details-marker { display: none; }
.job summary:hover { background: var(--green-050); }
.job summary .job-tag {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--green-700); color: var(--white); border-radius: 999px; padding: 4px 12px; flex-shrink: 0;
}
.job summary::after {
  content: ""; margin-left: auto; width: 11px; height: 11px; flex-shrink: 0;
  border-right: 2.5px solid var(--gray-500); border-bottom: 2.5px solid var(--gray-500);
  transform: rotate(45deg); transition: transform var(--transition);
}
.job[open] summary::after { transform: rotate(-135deg); }
.job-body { padding: 4px 28px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.job-body h4 { margin: 0 0 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); }
.job-cta { grid-column: 1 / -1; }

.benefit-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 26px 24px; transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--green-700);
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit-card .benefit-num { font-size: 1.9rem; font-weight: 700; color: var(--green-700); line-height: 1.1; }
.benefit-card h3 { font-size: 1.06rem; margin: 8px 0 4px; }
.benefit-card p { color: var(--gray-700); font-size: 0.93rem; margin: 0; }

/* Branchen-Detailsektionen */
.branche-anchor { scroll-margin-top: calc(var(--header-h) + 20px); }

/* --------------------------------------------------------------------------
   Scroll-Reveal (mit Stagger via JS-gesetztem delay)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--reveal-delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    /* Kein bottom:0 — Header ist Containing Block (backdrop-filter) */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--steel-950); flex-direction: column; align-items: stretch; gap: 2px;
    padding: 22px clamp(18px, 4vw, 32px); overflow-y: auto;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .nav-sub-toggle { font-size: 1.16rem; padding: 15px 12px; width: 100%; justify-content: space-between; }
  .sub-menu {
    position: static; transform: none; opacity: 1; visibility: hidden; max-height: 0; overflow: hidden;
    box-shadow: none; border: 0; background: rgba(255, 255, 255, 0.05); min-width: 0; padding: 0;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .nav-group.open .sub-menu { visibility: visible; max-height: 560px; transform: none; padding: 8px 0; }
  .sub-menu a { font-size: 1.02rem; padding: 12px 20px; }
  .btn-sm.header-cta { display: none; }

  .split, .grid-2, .form-grid, .video-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .shorts-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .job-body { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
