/* ============================================================
   Markovic GmbH — Website Styles
   Farbwelt aus dem Logo: Charcoal + Limettengrün-Akzent

   Designsystem: Alle Farben, Schriftgrößen, Abstände, Radien und
   Schatten kommen aus den Tokens unten. Neue Regeln bitte nur mit
   diesen Werten bauen – Übersicht aller Bausteine: styleguide.html
   ============================================================ */

:root {
  /* --- Farben ---------------------------------------------------
     Kontrast geprüft (WCAG AA):
     --accent       nur Flächen/Icons, Schrift darauf immer --ink (6,4:1)
     --accent-dark  grüner Text und Links auf Hell (5,2:1)
     --accent-light Akzente auf dunklem Grund (8,8:1 auf --ink)       */
  --accent: #7ab51d;
  --accent-dark: #4a7a0c;
  --accent-light: #9ed13f;
  --accent-tint: #f0f7e4;

  --ink: #1e2329;
  --ink-soft: #3a424b;
  --gray-700: #4b5560;
  --gray-500: #6b7681;
  --gray-400: #9aa2ab;
  --gray-300: #d4d9de;
  --gray-200: #e6e9ec;
  --gray-100: #f2f4f6;
  --gray-50:  #f8fafb;
  --white: #ffffff;
  --dark: #12161a;

  /* Text und Linien auf dunklem Grund */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .75);
  --on-dark-line: rgba(255, 255, 255, .14);
  --error-on-dark: #ff8f8f;

  /* --- Schrift: 8 Stufen ---------------------------------------- */
  --text-xs: .75rem;                              /* 12 */
  --text-sm: .8125rem;                            /* 13 */
  --text-md: .9375rem;                            /* 15 */
  --text-base: 1.0625rem;                         /* 17, mobil 16 */
  --text-lg: 1.25rem;                             /* 20 */
  --text-xl: 1.5rem;                              /* 24 */
  --text-2xl: clamp(1.75rem, 3.6vw, 2.5rem);      /* 28–40 */
  --text-3xl: clamp(2.125rem, 5vw, 3.5rem);       /* 34–56 */

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;

  /* --- Abstände: 4er-Raster ------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* --- Radien und Schatten -------------------------------------- */
  --radius-sm: 6px;       /* Felder, Tags, Hinweise */
  --radius: 12px;         /* Karten, Bilder, Panels */
  --radius-pill: 999px;   /* Buttons */
  --shadow-sm: 0 1px 3px rgba(30, 35, 41, .06), 0 1px 2px rgba(30, 35, 41, .04);
  --shadow-md: 0 12px 32px rgba(30, 35, 41, .10);

  /* --- Layout --------------------------------------------------- */
  --maxw: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-3)); }
/* Sicherung gegen seitliches Verschieben am Handy: iOS Safari ignoriert
   overflow-x auf body allein. clip erzeugt – anders als hidden – keinen
   Scroll-Container und lässt position: sticky/fixed unberührt. */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* hidden muss auch gegen display:flex/grid aus Klassen gewinnen */
[hidden] { display: none !important; }
/* Formularelemente erben die Schrift sonst nicht (Absende-Button lief in Arial) */
button, input, textarea, select { font: inherit; }
/* <picture> soll das Layout nicht verändern – das <img> bleibt das Flow-Element */
picture { display: contents; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 var(--space-4); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }

.text-grad {
  background: linear-gradient(100deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--on-dark); padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; border-radius: 4px; }
/* Auf dunklem Grund ist das helle Grün sichtbarer als das dunkle */
.hero :focus-visible, .section-dark :focus-visible, .career-panel :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-light); }

/* ============================================================
   Bausteine
   ============================================================ */

/* ---------- Button ----------
   .btn + Variante: .btn-accent (primär), .btn-outline (sekundär auf Hell),
   .btn-ghost (sekundär auf Dunkel). Größen: .btn-sm, .btn-lg, .btn-block */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-5);
  font-weight: 600; font-size: var(--text-base); line-height: 1.2;
  border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { flex: 0 0 auto; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-light); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--gray-100); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--on-dark); border-color: var(--on-dark); }
.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--text-md); }
.btn-lg { min-height: 56px; padding: var(--space-4) var(--space-6); }
.btn-block { width: 100%; }

/* ---------- Textlink mit Pfeil ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 700; color: var(--accent-dark);
}
.link-arrow:hover { text-decoration: none; color: var(--ink); }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Abschnittskopf, Eyebrow, Lead ---------- */
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  text-transform: uppercase; letter-spacing: .16em; font-size: var(--text-sm);
  font-weight: 700; color: var(--accent-dark); margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; flex: 0 0 auto;
  background: var(--accent); border-radius: 2px;
}
.eyebrow-light { color: var(--accent-light); }
.eyebrow-light::before { background: var(--accent-light); }
.lead { font-size: var(--text-lg); color: var(--gray-700); max-width: 720px; }
.lead-light { color: var(--on-dark-muted); }

/* ---------- Karte: eine Grundform für alle Raster ----------
   Leistung, Branche, Ablauf, Bildkarte und FAQ teilen Fläche, Rahmen,
   Radius und Schatten. Hover hebt nur Rahmen und Schatten an. */
.card, .branche, .tl-body, .showcase-item, .faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover, .branche:hover, .showcase-item:hover {
  border-color: var(--gray-300); box-shadow: var(--shadow-md);
}

/* ---------- Icon-Kachel ---------- */
.card-icon, .branche-ic, .benefit-ic {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--accent-tint); color: var(--accent-dark);
}

/* ---------- Checkliste ---------- */
.card-list { list-style: none; margin: 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--gray-100); }
.card-list li {
  position: relative; padding-left: var(--space-5); margin-bottom: var(--space-2);
  font-size: var(--text-md); color: var(--gray-700);
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Tag ---------- */
.showcase-tag {
  display: inline-block; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent-dark); background: var(--accent-tint);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); margin-bottom: var(--space-3);
}

/* ---------- Hinweisbox ---------- */
.equip-note {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin: var(--space-5) 0 0; padding: var(--space-4);
  background: var(--accent-tint); border-radius: var(--radius-sm);
  font-size: var(--text-md); line-height: 1.6; color: var(--gray-700);
}
.equip-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent-dark); }
.equip-note strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ============================================================
   Seitenbereiche
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  height: 62px;
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); height: 100%; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; transition: height .25s ease; }
.scrolled .brand img { height: 34px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: var(--text-md); padding: var(--space-1) 0;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--accent-dark); }
.nav a.active::after { width: 100%; }
.nav-cta-item { display: none; } /* nur im mobilen Menü sichtbar */

.header-actions { display: flex; align-items: center; gap: var(--space-5); }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--text-md); color: var(--ink); white-space: nowrap;
}
.header-phone svg { color: var(--accent-dark); }
.header-phone:hover { text-decoration: none; color: var(--accent-dark); }
/* Anruf-Icon nur zusammen mit dem Burger-Menü (Tablet/Handy) */
.header-call {
  display: none; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-dark);
}
.header-call:hover { background: var(--accent); color: var(--ink); }

.burger {
  display: none; width: 44px; height: 44px; border: none; background: none;
  cursor: pointer; padding: 10px; margin-left: auto;
}
.burger span {
  display: block; height: 2.5px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.burger span + span { margin-top: 5px; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  /* nicht mehr volle 100vh: auf großen Bildschirmen blieb viel Leerraum */
  position: relative; min-height: clamp(560px, 88vh, 860px); display: flex; flex-direction: column;
  justify-content: center; padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: var(--space-6);
  color: var(--on-dark); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 19, 23, .86) 0%, rgba(15, 19, 23, .55) 46%, rgba(15, 19, 23, .28) 100%),
    linear-gradient(180deg, rgba(15, 19, 23, .35) 0%, rgba(15, 19, 23, .7) 100%);
}
.hero-inner { width: 100%; }
.hero-content { max-width: 820px; }
.hero h1 {
  font-size: var(--text-3xl); font-weight: 800; color: var(--on-dark);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35); margin-bottom: var(--space-5);
  max-width: 820px;
}
.hero-sub {
  font-size: var(--text-lg); color: rgba(255, 255, 255, .9);
  max-width: 600px; margin-bottom: var(--space-6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-hours { margin: var(--space-4) 0 0; font-size: var(--text-md); color: var(--on-dark-muted); }

/* Kennzahlen als ruhige Leiste am Fuß des Hero */
.hero-kpis {
  display: grid; grid-template-columns: repeat(4, max-content); gap: var(--space-4) var(--space-8);
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--on-dark-line);
}
.kpi-num {
  display: block; font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 700; color: var(--on-dark); line-height: 1;
  letter-spacing: -.02em;
}
.kpi-label { display: block; margin-top: var(--space-2); color: var(--on-dark-muted); font-size: var(--text-sm); font-weight: 500; }

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.trust-list {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-6); list-style: none; margin: 0; padding: var(--space-5) 0;
}
.trust-list li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--text-md); color: var(--ink);
}
.trust-list svg { flex: 0 0 auto; color: var(--accent-dark); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(var(--space-8), 8vw, var(--space-9)) 0; position: relative; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: var(--on-dark); }

/* Zwischen-CTA am Sektionsende: zwischen Hero und Formular lagen
   über 10.000 px ohne Handlungsaufruf. */
.section-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-4) var(--space-5); margin: var(--space-7) 0 0; text-align: center;
}
.section-cta span { color: var(--gray-700); }
.section-cta .btn { flex: 0 0 auto; }

/* ---------- Leistungen ----------
   Raster statt Flex-Umbruch: 5 Karten ergäben sonst eine verwaiste
   Zweierreihe. Sechs Spalten als Hilfsraster – die ersten beiden Karten
   nehmen je eine Hälfte, die restlichen drei je ein Drittel. */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
.cards > .card { min-width: 0; grid-column: span 2; }
.cards > .card:nth-child(-n+2) { grid-column: span 3; }
.card { padding: var(--space-6) var(--space-5); }
.card .card-icon { margin-bottom: var(--space-4); }
.card h3 { margin-bottom: var(--space-2); }
.card-body > p { color: var(--gray-700); font-size: var(--text-md); margin: 0 0 var(--space-4); }

/* ---------- Im Detail ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
.showcase-item { overflow: hidden; }
.showcase-media { overflow: hidden; aspect-ratio: 4 / 3; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase-body { padding: var(--space-5); }
.showcase-body h3 { margin-bottom: var(--space-2); }
.showcase-body p { color: var(--gray-700); font-size: var(--text-md); margin: 0; }

/* ---------- Ausstattung als Faktenzeile ---------- */
.equip { margin-top: var(--space-7); }
.equip-title { margin-bottom: var(--space-4); }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4);
  list-style: none; margin: 0; padding: 0;
}
.facts li {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-4) 0; border-top: 2px solid var(--accent);
}
.facts li { min-width: 0; }
/* „Präzisionsmesswerkzeuge" war mobil breiter als die Spalte und schob
   die ganze Seite nach rechts – lange Wörter deshalb trennen. */
.facts strong { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--ink); hyphens: auto; overflow-wrap: anywhere; }
.facts span { font-size: var(--text-md); color: var(--gray-500); }

/* ---------- Branchen ----------
   7 Branchen + Auffang-Karte: die CTA-Karte über zwei Spalten ergibt
   ein exakt gefülltes 3x3-Raster ohne einzeln hängende Karte. */
.branchen { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.branchen > .branche { min-width: 0; }
.branchen > .branche-cta { grid-column: span 2; }
.branche { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-5); color: var(--ink); }
.branche-body h3 { margin: 0 0 var(--space-2); font-size: var(--text-base); font-weight: 700; }
.branche-body p { margin: 0; color: var(--gray-700); font-size: var(--text-md); line-height: 1.6; }
/* Auffang-Karte: gleiche Grundform, aber getönt, damit sie als
   Handlungsaufruf lesbar bleibt. */
.branche-cta { background: var(--accent-tint); border-color: var(--accent); }
.branche-cta:hover { border-color: var(--accent-dark); }
.branche-cta .branche-body p { margin-bottom: var(--space-3); }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-7); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; }
.about-badge {
  position: absolute; right: -14px; bottom: -20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: var(--space-4) var(--space-5); text-align: center; border: 1px solid var(--gray-200);
}
.about-badge-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--accent-dark); }
.about-badge-label { display: block; font-size: var(--text-sm); color: var(--gray-500); max-width: 140px; }
.about-text p { color: var(--gray-700); }
/* Herausgestelltes Leitmotiv statt eines weiteren Fließtextabsatzes */
.about-claim {
  margin: var(--space-5) 0 0; padding: var(--space-5);
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-claim-lead {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-lg); line-height: 1.35; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 var(--space-2);
}
.about-claim p:last-child { margin: 0; color: var(--gray-700); font-size: var(--text-md); }
.about-points { margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.about-point { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; color: var(--ink); }
.about-point svg { color: var(--accent-dark); flex-shrink: 0; }

/* Vorteile als ruhige Liste statt sechs weiterer Karten */
.benefits-wrap { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--gray-200); }
.benefits-title { margin-bottom: var(--space-5); }
.benefits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-6);
  list-style: none; margin: 0; padding: 0;
}
.benefit { display: flex; align-items: flex-start; gap: var(--space-4); }
.benefit .benefit-ic { width: 40px; height: 40px; }
.benefit h4 { font-size: var(--text-base); font-weight: 700; margin: var(--space-1) 0 var(--space-1); letter-spacing: -.01em; }
.benefit p { margin: 0; font-size: var(--text-md); color: var(--gray-700); }

/* ---------- Ablauf ---------- */
.timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.timeline::before {
  content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-300) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.tl-step { position: relative; z-index: 1; text-align: center; padding: 0 var(--space-2); }
.tl-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; font-weight: 800; font-size: var(--text-xl);
  font-family: var(--font-display);
  background: var(--white); color: var(--accent-dark);
  border: 2px solid var(--accent); box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.tl-body { padding: var(--space-5); }
.tl-body h3 { margin-bottom: var(--space-1); }
.tl-body p { color: var(--gray-700); margin: 0; font-size: var(--text-md); }

/* ---------- Karriere ---------- */
#karriere { padding-top: 0; }
.career-panel {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  box-shadow: var(--shadow-md);
}
.career-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 75% at 100% 0%, rgba(122, 181, 29, .26), transparent 60%),
    radial-gradient(40% 65% at 0% 100%, rgba(122, 181, 29, .13), transparent 60%);
}
.career-panel > * { position: relative; z-index: 1; }
.career-head { max-width: 720px; margin-bottom: var(--space-6); }
.career-tags {
  display: flex; flex-wrap: nowrap; gap: var(--space-2); list-style: none;
  margin: 0 0 var(--space-5); padding: 0;
}
.career-tags li {
  white-space: nowrap; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(122, 181, 29, .14); color: var(--accent-light);
  border: 1px solid rgba(122, 181, 29, .3);
}
.career-jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.job {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(122, 181, 29, .38);
  border-radius: var(--radius); padding: var(--space-5);
  transition: background .2s ease, border-color .2s ease;
}
.job:hover { background: rgba(255, 255, 255, .08); border-color: rgba(122, 181, 29, .7); }
.job h3 { color: var(--on-dark); margin-bottom: var(--space-3); }
.job-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius); margin-bottom: var(--space-3);
  background: rgba(122, 181, 29, .16); color: var(--accent-light);
}
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.job-list li {
  position: relative; padding-left: var(--space-5);
  color: var(--on-dark-muted); font-size: var(--text-md); line-height: 1.5;
}
.job-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: var(--space-4); }
.faq-item { overflow: hidden; }
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: none; border: none; cursor: pointer; text-align: left;
  padding: var(--space-5); font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-base); line-height: 1.4; color: var(--ink);
}
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--accent-dark); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s ease;
}
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
/* visibility statt nur max-height: eingeklappte Antworten waren zwar
   unsichtbar, wurden von Screenreadern aber weiter vorgelesen. */
.faq-a {
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .32s var(--ease), visibility 0s linear .32s;
}
.faq-item.open .faq-a {
  visibility: visible;
  transition: max-height .32s var(--ease), visibility 0s;
}
.faq-a p { color: var(--gray-700); margin: 0; padding: 0 var(--space-5) var(--space-5); }

/* ---------- Kontakt ---------- */
.contact { overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.contact-list { list-style: none; margin: var(--space-6) 0 var(--space-5); padding: 0; }
.contact-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--on-dark-line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-label {
  text-transform: uppercase; letter-spacing: .1em; font-size: var(--text-xs);
  font-weight: 700; color: var(--accent-light);
}
.contact-list span:not(.contact-label),
.contact-list a { color: var(--on-dark); font-size: var(--text-lg); font-weight: 500; }
.contact-list a:hover { color: var(--accent-light); text-decoration: none; }
/* Einsatzgebiet ist Fließtext, keine einzelne Angabe – kleiner setzen */
.contact-list span.contact-area { font-size: var(--text-base); line-height: 1.55; color: var(--on-dark-muted); }

/* Direktwege zuerst: Anrufen ist für die meisten Anfragen der schnellste */
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.contact-hours { margin: var(--space-3) 0 0; font-size: var(--text-md); color: var(--on-dark-muted); }
.contact-list .contact-route { font-size: var(--text-md); font-weight: 600; color: var(--accent-light); margin-top: var(--space-1); }

/* Zusicherungen wiederholen die Zusagen genau dort, wo entschieden wird. */
.contact-assurance { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.contact-assurance li { display: flex; align-items: center; gap: var(--space-3); color: var(--on-dark-muted); }
.contact-assurance svg { flex: 0 0 auto; color: var(--accent-light); }

.contact-card {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--on-dark-line);
  border-radius: var(--radius); padding: var(--space-6);
}

/* ---------- Formularfeld ---------- */
.contact-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--on-dark-muted); }
.field label span { color: var(--accent-light); }
.field input, .field textarea {
  width: 100%; font-size: var(--text-base); color: var(--on-dark);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-light); background: rgba(255, 255, 255, .1);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.invalid input, .field.invalid textarea { border-color: var(--error-on-dark); }
.form-note { font-size: var(--text-sm); color: var(--on-dark-muted); margin: var(--space-1) 0 0; }
.form-status { margin: 0; font-size: var(--text-md); font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--accent-light); }
.form-status.err { color: var(--error-on-dark); }

/* Spam-Falle: unsichtbar, aber nicht display:none – manche Bots
   erkennen ausgeblendete Felder und lassen sie dann absichtlich leer. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-consent { margin-bottom: var(--space-4); }
.consent {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm); line-height: 1.5; color: var(--on-dark-muted);
  cursor: pointer; font-weight: 400; letter-spacing: 0;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--accent); cursor: pointer;
}
.consent a { color: var(--accent-light); text-decoration: underline; }
.field-consent.invalid .consent { color: #ffb4b4; }
.field-consent.invalid input[type="checkbox"] { outline: 2px solid var(--error-on-dark); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: var(--space-8) 0 var(--space-5); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-6); align-items: start;
  padding-bottom: var(--space-6); border-bottom: 1px solid var(--on-dark-line);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { margin: 0; font-size: var(--text-md); max-width: 320px; }
.footer-col h3 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark); margin-bottom: var(--space-4); }
.footer-col a { display: block; color: var(--on-dark-muted); margin-bottom: var(--space-3); font-size: var(--text-md); }
.footer-col a:hover { color: var(--accent-light); text-decoration: none; }
.footer-contact p { margin: 0 0 var(--space-3); font-size: var(--text-md); line-height: 1.6; }
.footer-contact a { display: inline; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  padding-top: var(--space-5); font-size: var(--text-md);
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: var(--space-5); }
.footer-links a { color: var(--on-dark-muted); font-weight: 600; }
.footer-links a:hover { color: var(--accent-light); text-decoration: none; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: var(--ink); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s var(--ease), visibility .3s, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-light); }

/* ---------- Rechtstexte und 404 ---------- */
.legal { padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-9); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-4); }
.legal h2 { font-size: var(--text-xl); margin: var(--space-6) 0 var(--space-2); }
.legal p, .legal li { color: var(--gray-700); }
.legal .back-link { display: inline-block; margin-bottom: var(--space-6); font-weight: 600; }
.legal-meta { margin-top: var(--space-7); color: var(--gray-500); font-size: var(--text-md); }
.legal-actions { margin-top: var(--space-6); }
.legal .error-code {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800;
  line-height: 1; color: var(--accent-dark); margin: 0 0 var(--space-2);
}

/* ---------- Nur mobil sichtbar ---------- */
.carousel-dots { display: none; }

/* ============================================================
   Responsive
   ============================================================ */

/* Nur Desktop: Das Bild füllt die Spaltenhöhe, statt neben der langen
   Textspalte bis zu 500 px Leerraum zu lassen. */
@media (min-width: 1025px) {
  .about-grid { align-items: stretch; }
  .about-media { min-height: 380px; }
  .about-media img { height: 100%; object-fit: cover; }
  /* Der Neubau steht im Original rechts außen */
  .about-media img { object-position: 60% center; }
}

/* Burger-Menü schon auf Tablets: bei 820 px brachen die acht
   Menüpunkte sonst zweizeilig um. */
@media (max-width: 1100px) {
  .header-actions { display: none; }
  .header-call { display: inline-flex; margin-left: auto; }
  .burger { display: block; margin-left: 0; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 0; padding: var(--space-2) 0; }
  .nav li { border-top: 1px solid var(--gray-100); }
  .nav li:first-child { border-top: none; }
  .nav a { display: block; padding: var(--space-4) var(--space-5); font-size: var(--text-base); color: var(--ink); }
  .nav a::after { display: none; }

  /* Kontakt-CTA im mobilen Menü */
  .nav-cta-item { display: block; padding: var(--space-4) var(--space-5) var(--space-5); }
  .nav .nav-cta-item a { display: flex; padding: var(--space-3); }

  /* Menü offen: Hintergrund nicht mitscrollen lassen */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > .card,
  .cards > .card:nth-child(-n+2) { grid-column: auto; }
  /* Fünfte Karte über beide Spalten, sonst hängt sie allein */
  .cards > .card:last-child { grid-column: 1 / -1; }
  .showcase { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branchen { grid-template-columns: repeat(2, 1fr); }
  /* Bei zwei Spalten würde die gespannte CTA-Karte Karte 7 vereinzeln */
  .branchen > .branche-cta { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --text-base: 1rem; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: var(--space-7); }
  .hero-sub { font-size: var(--text-base); }
  /* Beide Hero-Buttons volle Breite: Anrufen mit einem Daumentipp */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-7); }

  /* Vertrauensleiste als 2x2-Raster */
  .trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-4) 0; }

  /* ---------- Aufklapp-Zeilen (data-collapse, siehe script.js) ----------
     Leistungen, Branchen und Karriere-Blöcke: mobil nur die Überschrift,
     Details beim Antippen. Ohne JavaScript bleibt alles offen. */
  .collapse-btn {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    width: 100%; min-height: 44px; padding: 0; border: none; background: none;
    font: inherit; color: inherit; text-align: left; cursor: pointer;
  }
  .collapse-icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
  .collapse-icon::before, .collapse-icon::after {
    content: ''; position: absolute; background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s ease;
  }
  .collapse-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
  .collapse-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
  .is-open .collapse-icon::after { transform: rotate(90deg); opacity: 0; }

  /* Leistungen als Liste statt Karussell */
  .cards { grid-template-columns: 1fr; gap: var(--space-3); }
  .cards > .card:last-child { grid-column: auto; }
  .card[data-collapse] {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    column-gap: var(--space-3); padding: var(--space-3) var(--space-4);
  }
  .card[data-collapse] .card-icon { width: 40px; height: 40px; margin: 0; }
  .card[data-collapse] h3 { margin: 0; font-size: var(--text-base); }
  .card[data-collapse] .card-body { grid-column: 1 / -1; padding: var(--space-3) 0 var(--space-2); }
  .card-list { padding-top: var(--space-3); }

  /* Branchen: zweispaltige Kacheln, eine geöffnete Kachel nimmt die volle Breite */
  .branchen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .branche[data-collapse] { padding: var(--space-2) var(--space-3); }
  .branche[data-collapse] .branche-ic { display: none; }
  .branche[data-collapse] .branche-body { width: 100%; min-width: 0; }
  /* Lange Begriffe („Kunststofftechnik") trennen statt überlaufen */
  .branche[data-collapse] h3, .benefit[data-collapse] h4 { margin: 0; font-size: var(--text-md); hyphens: auto; overflow-wrap: anywhere; }
  .branche[data-collapse] p { padding: 0 0 var(--space-3); }
  .branche.is-open { grid-column: 1 / -1; border-color: var(--accent); }
  .branchen > .branche-cta { grid-column: 1 / -1; padding: var(--space-4); }

  /* Fotos: das einzige Karussell, seitlich wischbar */
  .showcase {
    display: flex; flex-wrap: nowrap; gap: var(--space-4);
    /* zurück auf flex-start: ein zentrierter Flex-Container schiebt
       überstehende Karten nach links aus dem Scrollbereich */
    justify-content: flex-start;
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; max-width: none;
    margin: var(--space-6) calc(var(--space-5) * -1) 0;
    padding: var(--space-2) var(--space-5) var(--space-4);
    scroll-padding-left: var(--space-5);
  }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase > * { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
  .showcase > .reveal { opacity: 1 !important; transform: none !important; }

  .section { padding: var(--space-7) 0; }

  /* Ausstattung: mobil nur die Fakten, Erläuterung entfällt */
  .facts li { padding: var(--space-3) 0; }
  .facts span { display: none; }

  /* Vorteile als Kacheln wie die Branchen */
  .benefits-wrap { margin-top: var(--space-7); padding-top: var(--space-6); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .benefit[data-collapse] {
    display: block; padding: var(--space-2) var(--space-3);
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  }
  .benefit[data-collapse] .benefit-ic { display: none; }
  .benefit[data-collapse] h4 { margin: 0; font-size: var(--text-md); }
  .benefit[data-collapse] p { padding: 0 0 var(--space-3); }
  .benefit.is-open { grid-column: 1 / -1; border-color: var(--accent); }

  /* Karriere-Blöcke untereinander, aufklappbar */
  .career-jobs { grid-template-columns: 1fr; gap: var(--space-2); }
  .job[data-collapse] { padding: var(--space-3) var(--space-4); }
  .job[data-collapse] .job-ic { display: none; }
  .job[data-collapse] h3 { margin: 0; font-size: var(--text-base); }
  .job[data-collapse] .job-list { padding: var(--space-2) 0 var(--space-3); }
  .career-tags li { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); letter-spacing: .02em; }

  /* Karussell-Indikator: 24-px-Tippfläche, sichtbarer Punkt bleibt klein */
  .carousel-dots {
    display: flex; justify-content: center; align-items: center; gap: 0;
    margin: 0 0 var(--space-2); padding: 0; list-style: none;
  }
  .carousel-dots button {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border: none; background: none; cursor: pointer;
  }
  .carousel-dots button::before {
    content: ''; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--gray-300);
    transition: width .25s var(--ease), background .25s ease;
  }
  .carousel-dots button.active::before { width: 22px; background: var(--accent-dark); }

  /* Kontakt: Direktwege volle Breite */
  .contact-actions .btn { width: 100%; }

  /* Mobil kein schwebender Button – er verdeckte nur Inhalt */
  .to-top { display: none; }

  /* Touch-Ziele im Footer auf >= 44 px bringen */
  .footer-col a { padding: var(--space-2) 0; margin-bottom: 0; min-height: 44px; display: flex; align-items: center; }
  .footer-links a { padding: var(--space-3) var(--space-1); }
  .footer-contact a { min-height: 44px; display: inline-flex; align-items: center; }

  /* „seit 2017“-Badge als kompakte Pille halb über der unteren Bildkante */
  .about-badge {
    right: 14px; bottom: -16px;
    display: inline-flex; align-items: baseline; gap: var(--space-2);
    max-width: calc(100% - 28px);
    padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); text-align: left;
  }
  .about-badge-num { display: inline; font-size: var(--text-base); }
  .about-badge-label { display: inline; font-size: var(--text-xs); max-width: none; white-space: nowrap; }


  /* Ablauf mobil: Nummer in die Überschrift, kein Kasten, weniger Zeilen */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { display: none; }
  .tl-step {
    display: block; text-align: left; padding: var(--space-4) 0;
    border-top: 1px solid var(--gray-200);
  }
  .tl-step:first-child { border-top: none; padding-top: var(--space-1); }
  .tl-num {
    width: 26px; height: 26px; font-size: var(--text-md); border: none;
    background: var(--accent); color: var(--ink); box-shadow: none;
    margin: 0 var(--space-3) 0 0; vertical-align: 2px;
  }
  /* display:contents löst den Kasten auf, damit Nummer und Überschrift
     in einer Zeile stehen statt untereinander */
  .tl-body { display: contents; }
  .tl-body h3 { display: inline; font-size: var(--text-base); vertical-align: middle; }
  .tl-body p { margin: var(--space-2) 0 0; }

  .about-claim { padding: var(--space-4); }

  .field-row { grid-template-columns: 1fr; }

  /* Aufgeräumter Footer auf Mobil */
  .site-footer { padding: var(--space-7) 0 var(--space-5); }
  .footer-inner { gap: var(--space-5); padding-bottom: var(--space-5); }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand img { margin: 0 auto var(--space-4); }
  .footer-brand p { margin: 0 auto; max-width: 300px; }
  .footer-contact { grid-column: 1 / -1; }
  /* Die Navigation steht oben im Menü – mobil reicht Kontakt und Rechtliches */
  .footer-nav { display: none; }
  .footer-col h3 { margin-bottom: var(--space-3); }
  .footer-bottom {
    flex-direction: column-reverse; align-items: center; gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
