﻿/* ============================================================
   FONTS (self-hosted, keine externen Requests)
   Beide Dateien sind Variable Fonts – ein File deckt alle
   deklarierten Schnitte (400/500/600/700) über die 'wght'-Achse ab.
   ============================================================ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES & RESET
   Mobile-first. All colour pairs below are verified WCAG 2.1 AAA:
   - normal text on its background >= 7:1
   - large text / UI components        >= 4.5:1 / 3:1
   ============================================================ */
:root {
  /* decorative-only colours (never used as text or as a background
     that carries text directly on it) */
  --color-green: #3a9e5f;
  --color-green-light: #e8f5ee;
  --color-border: #d5d7db;

  /* AAA-safe colour pairs */
  --color-green-deep: #175c33;   /* text on white: 8.0:1 | bg for white text: 8.0:1 */
  --color-gray-dark: #1e2128;    /* bg for white text: 16.1:1 */
  --color-white: #ffffff;
  --color-text: #1a1e24;         /* on white: 16.7:1 */
  --color-text-muted: #4f525a;   /* on white: 7.8:1 */
  --color-on-dark: #ffffff;      /* on gray-dark / green-deep: >= 8:1 */
  --color-on-dark-muted: #c9ccd2;/* on gray-dark: 10:1 | on green-deep only 5:1 – nicht für Fliesstext auf grünem Hintergrund verwenden, dort --color-on-dark */
  --color-tint: #f5f6f7;         /* section--tinted bg, light mode */

  --color-focus: #175c33;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.14);
  --radius: 0;
  --radius-lg: 0;
  /* Lokal eingebunden (fonts/*.woff2), kein externes Nachladen. */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space-section: 4rem;
}

/* Dark Mode: nur die "Light-Section"-Oberflächen (Seiten-Hintergrund/Text/Rahmen)
   werden umgefärbt. Grün-Akzente, Badges und die schon-dunklen Blöcke (About,
   Footer, Kontakt) bleiben unverändert – deren Farbpaare sind in sich bereits
   AAA-geprüft und unabhängig vom Seitenhintergrund. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-white: #1e2128;
    --color-text: #ffffff;
    --color-text-muted: #c9ccd2;
    --color-border: #3a3f49;
    --color-tint: #26292f;       /* on white text: 15.4:1 */
  }
}
:root[data-theme="dark"] {
  --color-white: #1e2128;
  --color-text: #ffffff;
  --color-text-muted: #c9ccd2;
  --color-border: #3a3f49;
  --color-tint: #26292f;         /* on white text: 15.4:1 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  background: var(--color-green-deep);
  color: var(--color-on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* Visible focus for every interactive element, everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 0;
}

/* ============================================================
   BLOCK: btn
   ============================================================ */
.btn[hidden] { display: none; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.8rem 1.6rem;
  border-radius: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(45deg, #f4c20d 0 8px, #1a1e24 8px 16px);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}
.btn:hover::after,
.btn:focus-visible::after {
  transform: scaleY(1);
}
@media (prefers-reduced-motion: reduce) {
  .btn::after { transition: none; }
}
.btn--primary {
  background: var(--color-green-deep);
  color: var(--color-on-dark);
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: none;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-green-deep); color: var(--color-green-deep); }
.btn--white {
  background: var(--color-white);
  color: var(--color-green-deep);
  width: 100%;
  margin-top: 0.5rem;
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============================================================
   BLOCK: section (shared section chrome, reused by every block below)
   ============================================================ */
.section { padding: var(--space-section) 1.25rem; }
.section--tinted { background: var(--color-tint); }
.section--dark { background: var(--color-gray-dark); color: var(--color-on-dark); }
.section--green { background: var(--color-green-deep); color: var(--color-on-dark); }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-deep);
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.9rem;
  background: var(--color-green-light);
  border-radius: 0;
}
.section__label--on-dark { background: var(--color-gray-dark); color: var(--color-on-dark); border: 1px solid var(--color-on-dark-muted); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.section__lead {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.section--dark .section__lead { color: var(--color-on-dark-muted); }
.section--green .section__lead { color: var(--color-on-dark); }

@media (min-width: 961px) {
  :root { --space-section: 6.25rem; }
}

/* ============================================================
   BLOCK: site-header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}
.site-header--scrolled { box-shadow: var(--shadow); }
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font: inherit;
}
.site-header__logo-img { height: 44px; width: auto; max-width: 100%; display: block; }
@media (min-width: 400px) { .site-header__logo-img { height: 60px; } }
@media (min-width: 641px) { .site-header__logo-img { height: 90px; } }
@media (min-width: 961px) { .site-header__logo-img { height: 120px; } }

.site-header__nav {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  padding: 10rem 1.25rem 2rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.site-header__nav--open { transform: translateX(0); }

.site-header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.site-header__nav-link { display: block; padding: 0.5rem 0; color: var(--color-text); white-space: nowrap; }
.site-header__nav-link:not(.site-header__nav-link--cta):hover { color: var(--color-green-deep); }
.site-header__nav-link--cta {
  display: inline-block;
  background: var(--color-green-deep);
  color: var(--color-on-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  width: fit-content;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.site-header__nav-link--cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.site-header__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 3px 8px;
}
.site-header__lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 2px 6px;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.site-header__lang-btn:hover { color: var(--color-green-deep); }
.site-header__lang-btn[aria-pressed="true"] {
  background: var(--color-green-deep);
  color: var(--color-on-dark);
}
.site-header__lang-sep { color: var(--color-border); font-size: 1rem; }

.site-header__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  height: 36px;
  padding: 0 0.7rem;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
}
.site-header__theme-toggle:hover { border-color: var(--color-green-deep); color: var(--color-green-deep); }
.site-header__theme-icon { width: 18px; height: 18px; flex-shrink: 0; }
.site-header__theme-label { font-size: 1rem; font-weight: 700; white-space: nowrap; }

.site-header__burger {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.site-header__burger-bar {
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 961px) {
  .site-header__burger { display: none; }
  .site-header__nav {
    position: static;
    transform: none;
    padding: 0;
    overflow: visible;
    background: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem 1.5rem;
  }
  .site-header__nav-list { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1.25rem; font-size: 1rem; }
  .site-header__nav-link:not(.site-header__nav-link--cta) { padding: 0; }
}

/* ============================================================
   BLOCK: hero
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 150px 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2.5rem;
  position: relative;
}
.hero__grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(58, 158, 95, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 158, 95, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--color-green-deep);
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero__badge::before { content: ""; width: 28px; height: 2px; background: var(--color-green-deep); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-bottom: 1.2rem;
}
.hero__title-line--accent { color: var(--color-green-deep); font-style: normal; }
.hero__lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.hero__cta-secondary {
  display: block;
  width: fit-content;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-green);
  padding-bottom: 2px;
}
.hero__cta-secondary:hover { color: var(--color-green-deep); border-color: var(--color-green-deep); }

.hero__figure-wrap { position: relative; }
.hero__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.2rem;
  height: clamp(220px, 34vw, 320px);
}
.hero__figure-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  width: 100%;
}
.hero__stat { flex: 1 1 auto; min-width: 0; text-align: center; }

@media (min-width: 481px) {
  .hero__stats { flex-wrap: nowrap; width: fit-content; }
  .hero__stat + .hero__stat { padding-left: 1.1rem; border-left: 1px solid var(--color-border); }
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-green-deep);
  letter-spacing: 0.02em;
}
.hero__stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

@media (min-width: 961px) {
  .hero { flex-direction: row; align-items: center; padding-top: 150px; gap: 4rem; }
  .hero__content, .hero__visual { flex: 1; min-width: 0; }
  .hero__stats { margin: 1.5rem auto 0; }
  .hero__cta-secondary { margin: 1.5rem auto 0; }
}

/* ============================================================
   BLOCK: marquee
   ============================================================ */
.marquee { overflow: hidden; background: var(--color-green-deep); padding: 0.9rem 0; }
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  list-style: none;
  padding-left: 3rem;
  animation: marquee-scroll 28s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; overflow-x: auto; }
  .marquee__track .marquee__item:nth-child(n+6) { display: none; }
}

/* ============================================================
   BLOCK: service-list / service-card
   ============================================================ */
.service-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
  perspective: 1200px;
  -webkit-overflow-scrolling: touch;
}
.service-list li { flex: 0 0 80%; scroll-snap-align: start; }
.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 16px -8px rgba(0, 0, 0, 0.12);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.js-enabled .service-card { opacity: 0; transform: translateY(24px); }
.js-enabled .service-card.is-visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-6px) rotateX(4deg); box-shadow: var(--shadow-lg); border-color: var(--color-green); }
.service-card__toggle { position: absolute; inset: 0; width: 100%; background: none; border: none; padding: 0; margin: 0; cursor: pointer; }
.service-card__icon { display: block; width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--color-green-deep); }
.service-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card__text { font-size: 1rem; color: var(--color-text-muted); }

@media (min-width: 641px) {
  .service-list { display: grid; grid-template-columns: 1fr 1fr; overflow-x: visible; scroll-snap-type: none; padding-bottom: 0; }
  .service-list li { flex: unset; }
}
@media (min-width: 961px) { .service-list { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   BLOCK: method-list / method-item
   ============================================================ */
.method-list {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
}
.method-item {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.method-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--color-green); }
.method-item__number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-green-deep);
}
.method-item__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-top: 0.6rem; }
.method-item__toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
}
.method-item__toggle::before { content: ""; position: absolute; inset: 0; }
.method-item__toggle:hover { color: var(--color-green-deep); }
.method-item__desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.method-item__desc--open { grid-template-rows: 1fr; margin-top: 0.7rem; }
.method-item__desc-inner {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}
@media (prefers-reduced-motion: reduce) { .method-item__desc { transition: none; } }
.method-item--accent { background: var(--color-green-deep); border-color: var(--color-green-deep); }
.method-item--accent .method-item__number { color: var(--color-on-dark); }
.method-item--accent .method-item__title,
.method-item--accent .method-item__toggle { color: var(--color-on-dark); }
.method-item--accent .method-item__toggle:hover { color: var(--color-white); }
.method-item--accent .method-item__desc-inner { color: var(--color-on-dark); }

@media (min-width: 641px) { .method-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1101px) { .method-list { grid-template-columns: repeat(5, 1fr); } }

/* ============================================================
   BLOCK: hazard-game (Dialog)
   ============================================================ */
.hazard-game__scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.hazard-game__scenario-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 140px;
  padding: 1.5rem 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.hazard-game__scenario-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-green); }
.hazard-game__scenario-icon { width: 2.4rem; height: 2.4rem; color: var(--color-green-deep); transition: transform 0.2s; }
.hazard-game__scenario-card:hover .hazard-game__scenario-icon { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .hazard-game__scenario-icon { transition: none; } }
.hazard-game {
  position: fixed;
  margin: auto;
  width: min(92vw, 900px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem 2rem;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.hazard-game::backdrop { background: rgba(15, 17, 21, 0.85); }
.hazard-game[open] { animation: egg-pop 0.2s ease both; }
@media (prefers-reduced-motion: reduce) { .hazard-game[open] { animation: none; } }
.hazard-game__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--color-tint);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  z-index: 3;
}
.hazard-game__close:hover { background: var(--color-green-light); color: var(--color-green-deep); }
.hazard-game__hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.hazard-game__score, .hazard-game__timer { font-size: 1.3rem; color: var(--color-green-deep); }
.hazard-game__board {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.hazard-game__img { width: 100%; height: auto; display: block; }
.hazard-game__fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hazard-game__spot {
  position: absolute;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: default;
}
.hazard-game__spot--found {
  background: rgba(58, 158, 95, 0.35);
  border: 2px solid var(--color-green);
}
.hazard-game__spot--found::after { content: "✔"; color: var(--color-white); font-weight: 700; }
.hazard-game__spot--missed {
  background: rgba(200, 40, 40, 0.3);
  border: 2px solid #c82828;
}
.hazard-game__result { margin-top: 1.5rem; }
.hazard-game__result-summary { font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; }
.hazard-game__result-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.hazard-game__result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hazard-game__result-item {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-border);
  background: var(--color-tint);
  font-size: 1rem;
}
.hazard-game__result-item--found { border-left-color: var(--color-green); }
.hazard-game__result-item--missed { border-left-color: #c82828; }

/* ============================================================
   BLOCK: about
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.about__photo { width: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.about__photo-img { width: 100%; height: auto; display: block; }
.about__caption { margin-top: 0.6rem; color: var(--color-on-dark-muted); font-size: 1rem; }
.about__list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.5rem 0 2rem; }
.about__list-item { color: var(--color-on-dark); font-size: 1rem; font-weight: 500; }
.about p { margin-bottom: 1rem; }

@media (min-width: 901px) { .about__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; } }
@media (min-width: 961px) { .about__grid { gap: 4rem; } }

/* ============================================================
   BLOCK: sector-list / sector-card
   ============================================================ */
.sector-list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
.sector-list li { display: flex; }
.sector-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector-card__photo {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.sector-card__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.sector-card__photo:hover .sector-card__photo-img { transform: scale(1.04); }
.sector-card__photo:focus-visible { outline-offset: -3px; }
.sector-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem; }
.sector-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.sector-card__text { font-size: 1rem; color: var(--color-text-muted); margin-bottom: 0.8rem; }
.sector-card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.25rem 0.7rem;
  background: var(--color-green-light);
  color: var(--color-green-deep);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
}

@media (min-width: 641px) { .sector-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 961px) {
  .sector-list { grid-template-columns: repeat(3, 1fr); margin-bottom: 5.5rem; }
  .sector-list li:nth-child(2) .sector-card { transform: translateY(1.5rem); }
  .sector-list li:nth-child(3) .sector-card { transform: translateY(3rem); }
  .sector-list li:nth-child(2) .sector-card:hover { transform: translateY(calc(1.5rem - 4px)); }
  .sector-list li:nth-child(3) .sector-card:hover { transform: translateY(calc(3rem - 4px)); }
}

/* ============================================================
   BLOCK: testimonial
   ============================================================ */
.testimonial {
  background: var(--color-tint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--color-green-deep);
  max-width: 720px;
  margin: 0 auto;
}
.testimonial__mark { font-family: var(--font-display); font-size: 3.5rem; color: var(--color-green-deep); line-height: 0.6; margin-bottom: 1rem; }
.testimonial__quote { font-size: 1.05rem; font-style: italic; margin-bottom: 1.5rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.8rem; font-style: normal; }
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 0;
  flex-shrink: 0;
  background: var(--color-green-light);
  display: flex; align-items: center; justify-content: center;
}
.testimonial__name { display: block; font-weight: 700; font-size: 1rem; }
.testimonial__role { display: block; color: var(--color-text-muted); font-size: 1rem; }

@media (min-width: 641px) { .testimonial { padding: 3rem; } }

/* ============================================================
   BLOCK: contact / contact-form
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact__lead { color: var(--color-on-dark); margin-bottom: 1.5rem; }
.contact__info { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; font-style: normal; }
.contact__info-item { display: flex; align-items: center; gap: 0.7rem; font-size: 1rem; }
.contact__info-item a:hover { text-decoration: underline; }
.contact__icon { flex-shrink: 0; width: 1.2rem; height: 1.2rem; }

.contact-form {
  background: var(--color-gray-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-on-dark-muted);
}
.contact-form__progress {
  height: 4px;
  background: #333844;
  margin-bottom: 0.6rem;
}
.contact-form__progress-bar {
  height: 100%;
  background: var(--color-green);
  transition: width 0.25s ease;
}
.contact-form__step-count {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: 1.4rem;
}
.contact-form__step {
  border: none;
  padding: 0;
  margin: 0;
  animation: contact-step-in 0.25s ease both;
}
.contact-form__question {
  display: block;
  width: 100%;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--color-on-dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.contact-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.contact-form__nav-next,
.contact-form__nav-submit { margin-left: auto; width: auto; margin-top: 0; }
.contact-form__nav-back {
  color: var(--color-on-dark);
  border-color: var(--color-on-dark-muted);
}
.contact-form__nav-back:hover { border-color: var(--color-on-dark); color: var(--color-on-dark); }

@keyframes contact-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact-form__group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.contact-form__label { font-size: 1rem; font-weight: 700; color: var(--color-on-dark); letter-spacing: 0.05em; text-transform: uppercase; }
.contact-form__input,
.contact-form__textarea {
  background: #2a2e37;
  border: 1px solid var(--color-on-dark-muted);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-height: 44px;
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: var(--color-on-dark-muted); }
.contact-form__input:focus,
.contact-form__textarea:focus { border-color: var(--color-on-dark); background: #333844; }
.contact-form__input[aria-invalid="true"],
.contact-form__textarea[aria-invalid="true"] { border-color: #ffb400; }
.contact-form__error[hidden] { display: none; }
.contact-form__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: #5c3a10;
  border-left: 3px solid #ffb400;
  color: var(--color-on-dark);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.contact-form__error-icon { width: 18px; height: 18px; flex-shrink: 0; color: #ffb400; margin-top: 1px; }
.contact-form__status {
  margin-top: 1rem;
  color: var(--color-on-dark);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
}
.contact-form__fallback {
  margin-top: 0.8rem;
  color: var(--color-on-dark-muted);
  font-size: 1rem;
  text-align: center;
}
.contact-form__fallback a { color: var(--color-on-dark); text-decoration: underline; }

@media (min-width: 961px) {
  .contact__grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BLOCK: site-footer
   ============================================================ */
.site-footer { background: var(--color-gray-dark); color: var(--color-on-dark); padding: 2.5rem 1.25rem 4.5rem; }
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.site-footer__logo-name { color: var(--color-on-dark); font-size: 1.15rem; font-family: var(--font-display); }
.site-footer__logo-legal { color: var(--color-on-dark-muted); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 6px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.site-footer__nav-link { color: var(--color-on-dark-muted); font-size: 1rem; }
.site-footer__nav-link:hover { color: var(--color-on-dark); }
.site-footer__copy { color: var(--color-on-dark-muted); font-size: 1rem; }

@media (min-width: 641px) { .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ============================================================
   BLOCK: safety-fab (sichtbarer Auslöser für das Easter Egg)
   ============================================================ */
.safety-fab {
  position: fixed;
  right: 0.5rem;
  bottom: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.safety-fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

@media (min-width: 641px) { .safety-fab { right: 0.75rem; bottom: 1.25rem; } }

/* ============================================================
   BLOCK: scroll-top
   ============================================================ */
.scroll-top {
  position: fixed;
  left: 0.5rem;
  bottom: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-green-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, box-shadow 0.2s;
}
.scroll-top--visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scroll-top svg { width: 1.3rem; height: 1.3rem; }
@media (prefers-reduced-motion: reduce) { .scroll-top { transition: opacity 0.01ms; } }
@media (min-width: 641px) { .scroll-top { left: 0.75rem; bottom: 1.25rem; } }

/* ============================================================
   BLOCK: easter-egg (Klick auf den safety-fab oder 5x aufs Logo)
   ============================================================ */
.easter-egg {
  position: fixed;
  margin: auto;
  max-width: min(360px, calc(100vw - 2.5rem));
  border: none;
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(45deg, #f4c20d 0 14px, #1a1e24 14px 28px) 10;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.easter-egg::backdrop { background: rgba(15, 17, 21, 0.6); }
.easter-egg[open] { animation: egg-pop 0.25s ease both; }
@media (prefers-reduced-motion: reduce) { .easter-egg[open] { animation: none; } }

.easter-egg__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1rem;
}
.easter-egg__close:hover { border-color: var(--color-green-deep); color: var(--color-green-deep); }

.easter-egg__badge { font-size: 2.2rem; margin-bottom: 0.5rem; }
.easter-egg__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}
.easter-egg__count { margin-bottom: 0.6rem; }
.easter-egg__number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-green-deep);
}
.easter-egg__caption { color: var(--color-text-muted); font-size: 1rem; }

/* ============================================================
   BLOCK: lightbox (Sektor-Bilder vergrössert)
   ============================================================ */
.lightbox {
  position: fixed;
  margin: auto;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 17, 21, 0.85); }
.lightbox[open] { animation: egg-pop 0.2s ease both; }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

.lightbox__img { display: block; max-width: 100%; max-height: 92vh; border-radius: var(--radius); }

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.1rem;
}
.lightbox__close:hover { border-color: var(--color-green-deep); color: var(--color-green-deep); }

/* ============================================================
   BLOCK: service-dialog (Leistungs-Karte vergrössert)
   ============================================================ */
.service-dialog {
  position: fixed;
  margin: auto;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: none;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem 2.5rem;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.service-dialog::backdrop { background: rgba(15, 17, 21, 0.85); }
.service-dialog[open] { animation: egg-pop 0.2s ease both; }
@media (prefers-reduced-motion: reduce) { .service-dialog[open] { animation: none; } }
.service-dialog__icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; color: var(--color-green-deep); }
.service-dialog__icon svg { display: block; width: 100%; height: 100%; }
.service-dialog__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; }
.service-dialog__text { font-size: 1.05rem; line-height: 1.6; color: var(--color-text-muted); }
.service-dialog__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--color-tint);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.service-dialog__close:hover { background: var(--color-green-light); color: var(--color-green-deep); }

/* ============================================================
   ANIMATIONS (geteilt über mehrere Blöcke: Dialoge, Easter Egg)
   ============================================================ */
@keyframes egg-pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

