/* PestX — v2.1.0 — 11.08.2026 — Design nach admin.pestx.at (toxin #146B56, flat, hazard stripes); inline-SVG-Logo (currentColor), Card-Footer-Links, Consent-Banner + Gate, A11y (skip-link, focus-visible) */

:root {
  --bg: #161B22;
  --bg-alt: #0D1117;
  --bg-deep: #0A0B0C;
  --surface: #161B22;
  --border: #2A2D31;
  --primary: #146B56;
  --primary-hover: #06604C;
  --primary-active: #005543;
  --primary-dim: rgba(20, 107, 86, 0.14);
  --hazard: #F4A92A;
  --text-primary: #E6EDF3;
  --text-secondary: #C9D1D9;
  --text-muted: #8B949E;
  --danger: #DC3522;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.3);
  --font-display: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F2F0EA;
  --bg-deep: #F2F0EA;
  --surface: #FFFFFF;
  --border: #C8CBD0;
  --primary: #146B56;
  --primary-hover: #06604C;
  --primary-active: #005543;
  --primary-dim: rgba(20, 107, 86, 0.1);
  --text-primary: #0A0B0C;
  --text-secondary: #2A2D31;
  --text-muted: #6B7079;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-alt);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

[hidden] { display: none !important; }

::selection { background: var(--primary); color: #ffffff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

h1, h2, h3, h4 { font-family: var(--font-display); }

/* ===== Hazard Stripe (Signatur-Element) ===== */
.hazard-stripe {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 8px, var(--bg-deep) 8px 16px);
}

/* ===== Logo (inline SVG, theme-adaptiv via currentColor) ===== */
.logo-inline { color: #f2f2f2; display: inline-block; vertical-align: middle; }
[data-theme="light"] .logo-inline { color: #0A0B0C; }
svg.nav-logo { height: 34px; width: auto; }
svg.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
/* Nav-Logo erst nach dem Hero-Logo einblenden */
.nav-brand .logo-inline { opacity: 0; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease; }
.nav-brand.logo-visible .logo-inline { opacity: 1; transform: translateY(0); }
.hero-logo-wrap .hero-logo {
  height: 64px; width: auto;
  filter: drop-shadow(0 4px 14px rgba(20, 107, 86, 0.25));
}
.hero-logo-wrap { animation: heroLogoFloat 6s ease-in-out infinite; }

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--primary);
  z-index: 1000; transition: width 0.1s linear;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: var(--transition);
}
.nav.scrolled {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
}
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-primary); width: 42px; height: 42px; border-radius: var(--radius-md);
  cursor: pointer; font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--primary); color: #ffffff; border: 1px solid var(--primary);
  padding: 14px 28px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 3px rgba(20, 107, 86, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover); border-color: var(--primary-hover);
  box-shadow: 0 2px 6px rgba(20, 107, 86, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); }
.btn-xl { padding: 16px 32px; font-size: 1rem; }
.btn-nav { padding: 10px 20px; font-size: 0.88rem; }
.btn-ghost {
  background: var(--bg); color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 16px 32px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="light"] .btn-ghost:hover { color: var(--primary); }
.btn-icon {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted); width: 42px; height: 42px;
  border-radius: var(--radius-md); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: var(--transition);
  font-size: 1.1rem;
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-alt) 55%, #0d2617 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(20, 107, 86, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}
[data-theme="light"] .hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, #e8ece9 55%, #d9e8e0 100%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-logo-wrap {
  margin-bottom: 24px;
}
.hero-logo-wrap .hero-logo {
  animation: heroLogoFloat 6s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--text-muted); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block; transform: translateY(110%);
  animation: lineUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes lineUp { to { transform: translateY(0); } }
.accent-line > span { color: var(--primary); }
[data-theme="dark"] .accent-line > span, .accent-line > span { color: #1d8a6f; }
[data-theme="light"] .accent-line > span { color: var(--primary); }
.hero-sub {
  color: var(--text-secondary); font-size: 1.15rem; max-width: 620px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.stat-label {
  font-family: var(--font-mono);
  color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: 1.1rem; z-index: 2;
  animation: bounceDown 2s ease-in-out infinite; transition: color var(--transition);
}
.hero-scroll:hover { color: var(--primary); }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
.hero .hazard-stripe { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; }

/* Hero-Load-Reveal */
.reveal-hero { opacity: 0; transform: translateY(24px); animation: fadeUp 0.8s ease forwards; }
.hero-logo.reveal-hero { animation: fadeUp 0.8s ease forwards, heroLogoFloat 6s ease-in-out 0.8s infinite; }
.hero-eyebrow.reveal-hero { animation-delay: 0.35s; }
.hero-sub.reveal-hero { animation-delay: 0.5s; }
.hero-cta.reveal-hero { animation-delay: 0.65s; }
.hero-stats.reveal-hero { animation-delay: 0.8s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== Marquee ===== */
.marquee {
  border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  background: var(--bg-alt);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  color: var(--text-muted); font-weight: 500; font-size: 0.8rem;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.12em;
}
.marquee-track i { color: var(--primary); font-size: 0.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { max-width: 1280px; margin: 0 auto; padding: 100px 24px 20px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  font-family: var(--font-mono);
  color: var(--primary); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
[data-theme="dark"] .section-eyebrow, .section-eyebrow { color: #1d8a6f; }
[data-theme="light"] .section-eyebrow { color: var(--primary); }
.section-head h2, .split-card h2, .contact-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px;
}
.section-head h2 em, .contact-card h2 em {
  font-style: normal; color: #1d8a6f;
}
[data-theme="light"] .section-head h2 em, [data-theme="light"] .contact-card h2 em { color: var(--primary); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px; transition: var(--transition);
}

/* ===== Grids ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature, .service, .tech { position: relative; overflow: hidden; }
.feature::before, .service::before, .tech::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary);
  opacity: 0; transition: opacity 0.3s ease;
}
.feature:hover, .service:hover, .tech:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .feature:hover, [data-theme="light"] .service:hover, [data-theme="light"] .tech:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.feature:hover::before, .service:hover::before, .tech:hover::before { opacity: 1; }
.feature h3, .service h3, .tech h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p, .service p, .tech p { color: var(--text-muted); font-size: 0.92rem; }

.feature-icon, .service-icon, .tech-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--primary-dim); color: #1d8a6f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
  transition: var(--transition);
}
[data-theme="light"] .feature-icon, [data-theme="light"] .service-icon, [data-theme="light"] .tech-icon { color: var(--primary); }
.feature:hover .feature-icon, .service:hover .service-icon, .tech:hover .tech-icon {
  background: var(--primary); color: #ffffff;
}
.service { transform-style: preserve-3d; will-change: transform; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-line {
  position: absolute; left: 29px; top: 0; bottom: 0; width: 2px;
  background: var(--border);
}
.timeline-line span {
  display: block; width: 100%; height: 0%;
  background: var(--primary);
  transition: height 0.3s linear;
}
.timeline-step {
  position: relative; display: flex; gap: 28px; align-items: flex-start;
  padding: 0 0 32px 0;
}
.timeline-step:last-child { padding-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: #1d8a6f;
  position: relative; z-index: 2; transition: var(--transition);
}
[data-theme="light"] .step-num { color: var(--primary); }
.timeline-step:hover .step-num {
  background: var(--primary-dim); border-color: var(--primary);
}
.step-card { flex: 1; padding: 20px 24px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { padding: 40px; }
.split-card p { color: var(--text-muted); margin-bottom: 20px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.check-list i { color: #1d8a6f; }
[data-theme="light"] .check-list i { color: var(--primary); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text-primary);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-align: left;
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color var(--transition);
}
.faq-q:hover { color: #1d8a6f; }
[data-theme="light"] .faq-q:hover { color: var(--primary); }
.faq-q i { color: #1d8a6f; transition: transform 0.3s ease; flex-shrink: 0; }
[data-theme="light"] .faq-q i { color: var(--primary); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ===== Kontakt ===== */
.contact-card {
  text-align: center; padding: 64px 40px; max-width: 860px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 8px, var(--bg-deep) 8px 16px);
}
[data-theme="light"] .contact-card::before {
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 8px, #0A0B0C 8px 16px);
}
.contact-badge {
  height: 100px; width: 100px; object-fit: contain; margin-bottom: 20px;
  position: relative;
}
.contact-card > * { position: relative; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 36px 0;
}
.contact-item {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px;
  text-decoration: none; color: var(--text-primary); transition: var(--transition);
}
a.contact-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-item i { color: #1d8a6f; font-size: 1.25rem; flex-shrink: 0; }
[data-theme="light"] .contact-item i { color: var(--primary); }
.contact-item span {
  display: block; font-family: var(--font-mono);
  color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.contact-item strong { font-size: 0.95rem; font-weight: 600; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); margin-top: 100px; background: var(--bg-alt); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 6px;
}
.footer-col a, .footer-col span, .footer-link {
  color: var(--text-secondary); text-decoration: none; font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-col a:hover, .footer-link:hover { color: #1d8a6f; }
[data-theme="light"] .footer-col a:hover, [data-theme="light"] .footer-link:hover { color: var(--primary); }
.footer-link { background: none; border: none; font-family: inherit; cursor: pointer; text-align: left; padding: 0; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto;
  position: relative; padding: 40px;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h2 { margin-bottom: 20px; font-size: 1.4rem; }
.modal p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-muted); width: 38px; height: 38px;
  border-radius: var(--radius-md); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--primary); }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85vw);
    background: var(--bg-alt);
    flex-direction: column; padding: 100px 32px; gap: 24px;
    transition: right 0.35s ease; border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.15rem; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .btn-nav { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 20px 10px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 110px 16px 70px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-xl { justify-content: center; }
  .timeline-line { left: 23px; }
  .step-num { width: 48px; height: 48px; font-size: 0.8rem; }
  .timeline-step { gap: 18px; }
  .split-card { padding: 28px 22px; }
  .contact-card { padding: 48px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 32px 22px; }
}

/* ===== Step Mini Cards (Detailseiten) ===== */
.step-mini { position: relative; padding-top: 52px; }
.step-mini .num {
  position: absolute; top: 20px; left: 24px;
  font-family: var(--font-mono); color: #1d8a6f; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.12em;
}
[data-theme="light"] .step-mini .num { color: var(--primary); }
.step-mini h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-mini p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Multi-Page: Dropdown Nav ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > a i { font-size: 0.65rem; margin-left: 4px; transition: transform 0.2s ease; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 950;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown:hover > a i { transform: rotate(180deg); }
.dropdown-menu a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.dropdown-menu a:hover { background: var(--primary-dim); color: var(--text-primary); }
.dropdown-menu a::after { display: none; }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { width: 100%; }

/* ===== Page Hero (Unterseiten) ===== */
.page-hero {
  position: relative; padding: 160px 24px 70px; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-alt) 55%, #0d2617 100%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(20, 107, 86, 0.12) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
[data-theme="light"] .page-hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, #e8ece9 55%, #d9e8e0 100%);
}
.page-hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.page-hero-text .section-eyebrow { margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px;
}
.page-hero h1 em { font-style: normal; color: #1d8a6f; }
[data-theme="light"] .page-hero h1 em { color: var(--primary); }
.page-hero .hero-sub { margin: 0 0 28px; font-size: 1.05rem; }
.page-hero-img {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.page-hero-img::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 8px, var(--bg-deep) 8px 16px);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: #1d8a6f; }
.breadcrumb span { margin: 0 8px; }

/* ===== Content mit Bild ===== */
.content-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.content-split.reverse > .content-img { order: 2; }
.content-img {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.content-img img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4/3; }
.content-img.tall img { aspect-ratio: 3/4; }
.content-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.content-text p { color: var(--text-muted); margin-bottom: 14px; }

/* ===== Service Cards mit Bild ===== */
.card.service-img-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); position: relative; }
.card.service-img-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); opacity: 0; transition: opacity 0.3s ease; z-index: 2;
}
.card.service-img-card:hover::before { opacity: 1; }
.card.service-img-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
[data-theme="light"] .card.service-img-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.service-img-card .card-img { height: 180px; overflow: hidden; }
.service-img-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-img-card:hover .card-img img { transform: scale(1.05); }
.service-img-card .card-body { padding: 22px 22px 0; flex: 1; display: flex; flex-direction: column; }
.service-img-card .card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.service-img-card .card-body p { flex: 1; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.service-img-card .card-footer {
  border-top: 1px solid var(--border);
  margin: 0 -22px; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.card.service-img-card:hover .card-footer { background: var(--primary-dim); border-top-color: var(--primary); }
.card-link {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #1d8a6f; display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.card-link i { transition: transform 0.25s ease; }
.card.service-img-card:hover .card-link { color: var(--text-primary); }
.card.service-img-card:hover .card-link i { transform: translateX(5px); color: #1d8a6f; }
[data-theme="light"] .card-link { color: var(--primary); }
a > .card-link, p > .card-link { font-size: 0.82rem; text-decoration: none; }
a.card-link:hover, p a.card-link:hover { color: var(--text-primary); }
a.card-link:hover i, p a.card-link:hover i { transform: translateX(5px); }

/* ===== Stats Band (Technologie) ===== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 32px 20px; }
.stat-card .stat-big {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: #1d8a6f; letter-spacing: -0.02em;
}
[data-theme="light"] .stat-card .stat-big { color: var(--primary); }
.stat-card .stat-title { font-weight: 600; margin: 6px 0 2px; }
.stat-card .stat-desc { color: var(--text-muted); font-size: 0.88rem; }

/* ===== Vergleich (alt vs. neu) ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { padding: 32px; }
.compare-card.old { opacity: 0.85; }
.compare-card h3 { margin-bottom: 18px; font-size: 1.15rem; }
.compare-card.new h3 { color: #1d8a6f; }
[data-theme="light"] .compare-card.new h3 { color: var(--primary); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.95rem; }
.compare-list li:last-child { font-weight: 700; margin-top: 8px; }
.compare-card.old .compare-list i { color: var(--danger); }
.compare-card.new .compare-list i { color: #1d8a6f; }

/* ===== Legal Pages ===== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.legal-content > .lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; }
.legal-content h2 {
  font-size: 1.25rem; margin: 36px 0 12px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 12px; }
.legal-content ul { color: var(--text-secondary); font-size: 0.95rem; margin: 0 0 12px 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: #1d8a6f; }

/* ===== Kontakt Page ===== */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info-card { padding: 36px; }
.contact-info-card h2 { margin-bottom: 20px; }
.contact-line {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: none; }
.contact-line i { color: #1d8a6f; font-size: 1.2rem; margin-top: 3px; }
.contact-line span {
  display: block; font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
.contact-line a, .contact-line strong { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.contact-line a:hover { color: #1d8a6f; }

/* ===== Responsive Additions ===== */
@media (max-width: 900px) {
  .page-hero-inner, .content-split, .compare, .contact-page-grid { grid-template-columns: 1fr; }
  .content-split.reverse > .content-img { order: 0; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 130px 20px 50px; }
  .nav-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; background: transparent; padding: 0 0 0 16px;
  }
  .nav-dropdown > a i { display: none; }
}
@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr; }
  .contact-info-card { padding: 26px 20px; }
}

/* ===== Accessibility ===== */
.skip-link {
  position: fixed; top: -80px; left: 50%; transform: translateX(-50%); z-index: 1200;
  background: var(--bg); color: var(--text-primary);
  border: 1px solid var(--primary); border-radius: 999px;
  padding: 10px 22px; text-decoration: none;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus { top: 14px; }
:focus-visible {
  outline: 2px solid #1d8a6f; outline-offset: 2px; border-radius: 2px;
}
[data-theme="light"] :focus-visible { outline-color: var(--primary); }
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) {
  .nav-dropdown:focus-within .dropdown-menu { transform: none; }
}

/* ===== Consent Banner ===== */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
  padding: 16px 24px 20px;
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 3px solid var(--primary);
  animation: consentIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes consentIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.consent-inner {
  max-width: 1280px; margin: 0 auto; padding: 24px 28px;
  display: flex; align-items: center; gap: 32px;
}
.consent-text { flex: 1; }
.consent-text p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 10px; }
.consent-text a { color: #1d8a6f; }
[data-theme="light"] .consent-text a { color: var(--primary); }
.consent-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem !important;
  color: var(--text-primary) !important; display: flex; align-items: center; gap: 8px;
}
.consent-title i { color: #1d8a6f; }
.consent-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 0.9rem; color: var(--text-secondary); margin-top: 6px;
}
.consent-check input {
  width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer;
}
.consent-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.consent-actions .btn-ghost { padding: 12px 24px; font-size: 0.9rem; }
.consent-actions .btn-primary { padding: 12px 24px; font-size: 0.9rem; justify-content: center; }

/* ===== Consent Gate (externe Inhalte) ===== */
.consent-gate {
  margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt);
  min-height: 260px; display: flex; align-items: center; justify-content: center;
}
.consent-gate.loaded { min-height: 0; }
.consent-gate iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(0.3); }
.consent-gate-inner { text-align: center; padding: 32px 24px; max-width: 420px; }
.consent-gate-inner > i { font-size: 2rem; color: #1d8a6f; margin-bottom: 14px; }
.consent-gate-inner p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 8px; }
.consent-gate-inner p strong { color: var(--text-primary); }
.consent-gate-inner .btn-primary { margin: 14px 0 16px; }
.consent-gate-inner .card-link { font-size: 0.78rem; }

@media (max-width: 900px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .consent-actions { flex-direction: row; }
  .consent-actions .btn-primary, .consent-actions .btn-ghost { flex: 1; justify-content: center; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; animation: none; }
}
