/* ============================================================
   RUHR REGAL SERVICE — Redesign Design System
   "Prüfprotokoll" visual language: hairlines, mono labels,
   stamped norm-codes, restrained 3-tone risk system.
   ============================================================ */

:root {
  /* Color — derived from the Ruhr Regal Service logo */
  --c-ink: #1F2937;          /* primary anthracite (from logo wordmark) */
  --c-ink-soft: #28333F;     /* card / panel dark */
  --c-green: #5E8F62;        /* logo green — primary brand accent */
  --c-green-deep: #4D7651;   /* hover / pressed state */
  --c-green-light: #7FAE83;  /* light accent, highlights */
  --c-bg: #F8FAF8;           /* off-white background (cool green-grey) */
  --c-white: #FFFFFF;
  --c-grey: #6B7280;         /* secondary text */
  --c-grey-light: #E3E8E3;   /* hairlines */
  --c-grey-faint: #EFF3EF;

  /* Risk system — restrained greys with a single signal color for "high" */
  --risk-low: #9CA6AC;
  --risk-mid: #C8A24A;
  --risk-high: #B5564C;

  /* Type */
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: clamp(2.6rem, 6vw, 4.5rem);

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.75rem;
  --sp-lg: 3rem;
  --sp-xl: 6rem;
  --sp-2xl: 9rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-ink);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { color: var(--c-grey); max-width: 60ch; }

.lead {
  font-size: var(--fs-lg);
  color: var(--c-grey);
  max-width: 46ch;
}

/* Mono "stamp" labels — the recurring protocol motif */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--sp-sm);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--c-green);
}

.norm-tag {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  border: 1px solid var(--c-grey-light);
  background: var(--c-white);
  padding: 0.15em 0.5em;
  border-radius: 4px;
  color: var(--c-ink);
  white-space: nowrap;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-green-deep);
  color: var(--c-white);
  box-shadow: 0 8px 24px -8px rgba(77,118,81,0.45);
}
.btn-primary:hover {
  background: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(31,41,55,0.5);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--c-white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* Secondary on light backgrounds */
.btn-outline {
  background: transparent;
  border-color: var(--c-grey-light);
  color: var(--c-ink);
}
.btn-outline:hover {
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.9rem; }

.btn-row {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-sm) 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(247, 248, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(20, 24, 28, 0.06);
  padding: 0.6rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-white);
  transition: color 0.3s var(--ease);
}

.site-header.scrolled .logo { color: var(--c-ink); }

.logo img { height: 36px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.main-nav__links {
  display: flex;
  list-style: none;
  gap: var(--sp-lg);
}

.main-nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}

.site-header.scrolled .main-nav__links a {
  color: var(--c-grey);
}

.main-nav__links a:hover,
.site-header.scrolled .main-nav__links a:hover {
  color: var(--c-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-white);
  font-size: 0;
  padding: 0.4rem;
  transition: color 0.3s var(--ease);
}

.site-header.scrolled .menu-toggle { color: var(--c-ink); }

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
  padding-top: 5rem;
}

/* Real warehouse photography with anthracite overlay for legibility */
.hero__pattern {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  background-image:
    linear-gradient(100deg, rgba(31,41,55,0.94) 0%, rgba(31,41,55,0.8) 38%, rgba(31,41,55,0.45) 75%, rgba(31,41,55,0.65) 100%),
    url("assets/hero-rack-bw.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__pattern::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(94,143,98,0.18) 0%, transparent 65%);
  border-radius: 50%;
  mix-blend-mode: screen;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--sp-xl) 0;
}

.hero__eyebrow {
  color: var(--c-green);
}

.hero h1 {
  color: var(--c-white);
  max-width: 16ch;
  margin-bottom: var(--sp-md);
}

.hero h1 span {
  color: var(--c-green);
}

.hero .lead {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-md);
}

.hero__cta {
  margin-bottom: var(--sp-lg);
}

/* Trust badge row — looks like a stamped protocol footer */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 640px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--c-green);
}

/* Certification badges — TÜV SÜD / DGWZ credentials */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.cert-badge svg { color: var(--c-green); flex-shrink: 0; }

/* Light version for use on white background */
.cert-badge--light {
  color: var(--c-ink);
  background: var(--c-white);
  border-color: var(--c-grey-light);
}

/* Animated stat counters in hero — Linear/Stripe-style metrics */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--c-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat__value .unit {
  color: var(--c-green-light);
}

.hero-stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
}

/* Trust / partner logo strip */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-md) 0;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--c-grey);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.trust-logo:hover { opacity: 1; color: var(--c-ink); }

.trust-logo svg { color: var(--c-green); flex-shrink: 0; }

.trust-logo-strip {
  border-top: 1px solid var(--c-grey-light);
  border-bottom: 1px solid var(--c-grey-light);
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: var(--sp-lg);
  left: var(--sp-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 1;
}

.scroll-cue__line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: var(--c-green);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 760px) {
  .scroll-cue { display: none; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */

.section {
  padding: var(--sp-xl) 0;
  position: relative;
}

.section--tight { padding: var(--sp-lg) 0; }

.section--dark {
  background: var(--c-ink);
  color: var(--c-white);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-white); }
.section--dark p { color: rgba(255,255,255,0.65); }

/* White card components keep their own colors even inside dark sections */
.section--dark .service-card:not(.service-card--featured) h3,
.section--dark .service-card:not(.service-card--featured) h4,
.section--dark .why-card h3,
.section--dark .why-card h4,
.section--dark .risk-card h3,
.section--dark .risk-card h4,
.section--dark .testimonial-card h3,
.section--dark .testimonial-card h4 {
  color: var(--c-ink);
}

.section--dark .service-card:not(.service-card--featured) p,
.section--dark .why-card p,
.section--dark .risk-card p,
.section--dark .testimonial-card p,
.section--dark .testimonial-card__quote {
  color: var(--c-grey);
}
.section--dark .eyebrow { color: var(--c-green); }

/* Section header with index marker — "protocol" device,
   meaningful because each section is a numbered clause of the
   inspection story (problem -> services -> process -> risks -> ...) */
.section-head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--c-grey-light);
}

.section--dark .section-head {
  border-bottom-color: rgba(255,255,255,0.1);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-grey);
  white-space: nowrap;
  padding-top: 0.4rem;
  flex-shrink: 0;
}

.section--dark .section-head__index { color: rgba(255,255,255,0.4); }

.section-head__index strong {
  color: var(--c-ink);
  font-size: 1rem;
}
.section--dark .section-head__index strong { color: var(--c-white); }

.section-head__body {
  flex: 1;
}

.section-head__body .eyebrow { margin-bottom: 0.6rem; }
.section-head h2 { margin-bottom: var(--sp-sm); }
.section-head .lead { margin-bottom: 0; }

@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    gap: var(--sp-sm);
  }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* If JS is disabled, content must still be visible */
.no-js .reveal,
.no-js .reveal-stagger > * {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Why-it-matters grid (Section 2)
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.why-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(20,24,28,0.25);
  border-color: transparent;
}

.why-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
}

.why-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.why-card p { font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Services (Section 3)
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -24px rgba(20,24,28,0.3);
}

.service-card--featured {
  background: var(--c-green-deep);
  border-color: var(--c-green-deep);
}
.service-card--featured h3,
.service-card--featured .service-card__price { color: var(--c-white); }
.service-card--featured p { color: rgba(255,255,255,0.75); }
.service-card--featured .norm-tag {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: var(--c-white);
}
.service-card--featured .service-card__icon {
  background: rgba(255,255,255,0.12);
  color: var(--c-white);
}
.service-card__badge {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--c-white);
  color: var(--c-green-deep);
  padding: 0.25em 0.6em;
  border-radius: 4px;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.94rem; flex-grow: 1; }

.service-card__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-ink);
  margin: var(--sp-sm) 0;
}
.service-card__price small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--c-grey);
  display: block;
  margin-top: 0.2rem;
}
.service-card--featured .service-card__price small {
  color: rgba(255,255,255,0.5);
}

.service-card .norm-tag {
  align-self: flex-start;
  margin-bottom: var(--sp-sm);
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Process timeline (Section 4)
   ============================================================ */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-md);
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-grey-light);
}

.timeline-step {
  position: relative;
  padding-top: var(--sp-lg);
}

.timeline-step__marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-ink);
  z-index: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.timeline-step:hover .timeline-step__marker {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-white);
}

.timeline-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.timeline-step p { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 1000px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg) var(--sp-md); }
  .timeline::before { display: none; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ============================================================
   Risk / damage cards (Section 5)
   ============================================================ */

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.risk-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  border-left: 4px solid var(--risk-low);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.risk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(20,24,28,0.25);
}

.risk-card[data-risk="mid"] { border-left-color: var(--risk-mid); }
.risk-card[data-risk="high"] { border-left-color: var(--risk-high); }

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey);
  margin-bottom: var(--sp-sm);
}

.risk-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--risk-low);
}
.risk-card[data-risk="mid"] .risk-badge__dot { background: var(--risk-mid); }
.risk-card[data-risk="high"] .risk-badge__dot { background: var(--risk-high); }

.risk-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.risk-card p { font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 1000px) {
  .risk-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .risk-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Photo band — full-bleed visual breather between sections
   ============================================================ */

.photo-band {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(20,24,28,0.92) 0%, rgba(20,24,28,0.5) 55%, rgba(20,24,28,0.2) 100%),
    url("assets/warehouse-aisle.jpg");
  background-size: cover;
  background-position: center;
  color: var(--c-white);
}

.photo-band__content {
  max-width: 480px;
}

.photo-band .eyebrow { color: var(--c-green); }
.photo-band h2 { color: var(--c-white); margin-bottom: var(--sp-sm); }
.photo-band p { color: rgba(255,255,255,0.75); margin-bottom: 0; }

@media (max-width: 700px) {
  .photo-band { min-height: 320px; padding: var(--sp-lg) 0; }
}

/* Photo evidence strip — real inspection photography */
.evidence-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.evidence-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--c-ink-soft);
  aspect-ratio: 4 / 3;
}

.evidence-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evidence-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-sm) var(--sp-md);
  background: linear-gradient(180deg, transparent, rgba(10,12,14,0.85));
  color: var(--c-white);
  font-size: 0.88rem;
  font-weight: 600;
}

.evidence-item__caption span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .evidence-strip { grid-template-columns: 1fr 1fr; }
  .evidence-strip .evidence-item:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-strip .evidence-item:first-child { grid-column: auto; }
}

/* ============================================================
   Advantages (Section 6) — split layout
   ============================================================ */

.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.advantages__list {
  list-style: none;
  display: grid;
  gap: var(--sp-md);
}

.advantages__list li {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
}

.advantages__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages__list h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.advantages__list p { font-size: 0.94rem; margin-bottom: 0; }

/* Portrait / credibility panel */
.advantages__panel {
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.advantages__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.advantages__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.advantages__panel-body {
  padding: var(--sp-lg);
  text-align: center;
}

.advantages__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-sm);
}

.advantages__panel h3 { margin-bottom: 0.1rem; }
.advantages__panel .role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-green);
  margin-bottom: var(--sp-md);
}

.advantages__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--c-grey-light);
  text-align: left;
}

.advantages__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-ink);
}
.advantages__stat span {
  font-size: 0.82rem;
  color: var(--c-grey);
}

@media (max-width: 900px) {
  .advantages { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .advantages__panel { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ============================================================
   Testimonials (Section 7)
   ============================================================ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.testimonial-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-size: 1.02rem;
  color: var(--c-ink);
  margin-bottom: var(--sp-md);
  flex-grow: 1;
}
.testimonial-card__quote::before { content: "\201C"; }
.testimonial-card__quote::after { content: "\201D"; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--c-grey-light);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}
.testimonial-card__author span {
  font-size: 0.82rem;
  color: var(--c-grey);
}

@media (max-width: 1000px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ Accordion (Section 8)
   ============================================================ */

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--c-grey-light);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-md) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-ink);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}
.faq-item__icon::after {
  left: 50%; top: 0;
  height: 100%; width: 2px;
  transform: translateX(-50%);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
  transform: translateX(-50%) scaleY(0);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon::before {
  background: var(--c-green);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}

.faq-item__answer-inner {
  padding-bottom: var(--sp-md);
}

.faq-item__answer p {
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ============================================================
   Contact (Section 9)
   ============================================================ */

.contact-section {
  background: var(--c-ink);
  color: var(--c-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-xl);
}

.contact-info h2 { color: var(--c-white); margin-bottom: var(--sp-sm); }
.contact-info .lead { color: rgba(255,255,255,0.65); margin-bottom: var(--sp-lg); }

.contact-channels {
  display: grid;
  gap: var(--sp-sm);
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-channel:hover {
  border-color: rgba(94,143,98,0.4);
  background: rgba(255,255,255,0.06);
}

.contact-channel__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(94,143,98,0.12);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-channel__value {
  font-weight: 700;
  font-size: 1rem;
}

/* Form panel */
.contact-form-panel {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  color: var(--c-ink);
}

.contact-form-panel h3 { margin-bottom: var(--sp-xs); }
.contact-form-panel > p { margin-bottom: var(--sp-md); font-size: 0.94rem; }

form { display: grid; gap: var(--sp-sm); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--c-ink);
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--c-grey-light);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 4px rgba(94,143,98,0.12);
}

textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--c-grey);
}
.form-note a { color: var(--c-ink); font-weight: 600; text-decoration: underline; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer (Section 10)
   ============================================================ */

.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.6);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: var(--sp-sm);
}
.footer-brand img { height: 32px; }

.footer-grid p { font-size: 0.92rem; color: rgba(255,255,255,0.55); max-width: 36ch; }

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-sm);
}

.footer-grid ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-grid a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s var(--ease);
}
.footer-grid a:hover { color: var(--c-green); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--sp-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-social a:hover {
  background: var(--c-green);
  color: var(--c-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-sm) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--c-green); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   Legal pages (Impressum / Datenschutz)
   ============================================================ */

.legal-header {
  padding: calc(var(--sp-xl) + 3rem) 0 var(--sp-md);
  background: var(--c-ink);
  color: var(--c-white);
}
.legal-header h1 { color: var(--c-white); margin-bottom: 0; }

.legal-content {
  max-width: 720px;
}

.legal-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
}

.legal-card h2 {
  font-size: 1.15rem;
  margin-top: var(--sp-md);
  margin-bottom: 0.5rem;
}
.legal-card h2:first-child { margin-top: 0; }

.legal-card p {
  font-size: 0.96rem;
  margin-bottom: var(--sp-sm);
}

.legal-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: var(--sp-sm);
}
.legal-card ul li {
  font-size: 0.96rem;
  color: var(--c-grey);
  padding-left: 1.2rem;
  position: relative;
}
.legal-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c-green);
}

.legal-card a { color: var(--c-green); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }

/* ============================================================
   Mobile navigation
   ============================================================ */

@media (max-width: 860px) {
  .main-nav__links,
  .main-nav .btn { display: none; }

  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .main-nav.open {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--c-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }

  .main-nav.open .main-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-lg);
  }

  .main-nav.open .main-nav__links a {
    font-size: 1.5rem;
    color: var(--c-white);
  }

  .main-nav.open .btn {
    display: inline-flex;
    margin-top: var(--sp-lg);
  }

  .main-nav.open {
    flex-direction: column;
  }
}

/* ============================================================
   Responsive type & spacing
   ============================================================ */

@media (max-width: 760px) {
  :root {
    --sp-xl: 4rem;
    --sp-lg: 2.25rem;
    --fs-2xl: 2rem;
  }

  .contact-grid,
  .advantages { gap: var(--sp-lg); }
}
