/* ============================================================
   M+P Bauelemente — style.css (v2)
   Design: Dark-first, Red accent, Bebas Neue + DM Sans
   ============================================================ */

/* === LOKALE WEBFONTS (self-hosted, kein Google-Fonts-Request) === */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-v16-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/dm-sans-v17-latin-variable.woff2') format('woff2-variations'), url('../fonts/dm-sans-v17-latin-variable.woff2') format('woff2');
}

/* === TOKENS === */
:root {
  --red:         #ec1d25;
  --red-hover:   #ff3d45;
  --green:       #4a9a1c;
  --dark:        #111111;
  --dark-2:      #181818;
  --dark-3:      #222222;
  --dark-4:      #2a2a2a;
  --text:        #f2ede6;
  --text-muted:  #b8b4ac;
  --text-dim:    #7a7670;
  --border:      rgba(255,255,255,0.07);
  --border-red:  rgba(236,29,37,0.25);
  --shadow:      0 16px 48px rgba(0,0,0,0.30);
  --shadow-sm:   0 4px 18px rgba(0,0,0,0.20);
  --nav-bg:      rgba(14,14,14,0.94);
  --body-bg:     #0d0d0d;
  --max-width:   1320px;
  --gutter:      clamp(16px, 4vw, 48px);
  --radius:      0px;
  --radius-sm:   4px;
}

/* --- Light Mode Overrides --- */
body.light-mode {
  --dark:        #f0f0f0;
  --dark-2:      #e8e8e8;
  --dark-3:      #dedede;
  --dark-4:      #d4d4d4;
  --text:        #1a1a18;
  --text-muted:  #585858;
  --text-dim:    #808080;
  --border:      rgba(0,0,0,0.09);
  --border-red:  rgba(236,29,37,0.28);
  --shadow:      0 16px 48px rgba(0,0,0,0.10);
  --shadow-sm:   0 4px 18px rgba(0,0,0,0.07);
  --nav-bg:      rgba(240,240,240,0.97);
  --body-bg:     #ffffff;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--red); color: #fff;
  padding: 12px 20px;
  font-weight: 700; font-size: 14px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.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;
}
*:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* === LAYOUT UTILITIES === */
.container {
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section-compact {
  padding: clamp(34px, 4.5vw, 56px) 0;
}

/* Section headers */
.section-label-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-label-text::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--red);
  display: block;
}

.section-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-top: 10px;
  word-break: break-word;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,420px);
  gap: 20px;
  align-items: end;
  margin-bottom: 52px;
}

.services-note-centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-intro {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-call,
.btn-outline-red,
.btn-sm-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 14px 24px;
  font-size: 13px;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--red-hover);
  transform: translateY(-2px);
}
.btn-primary.btn-lg { padding: 17px 30px; font-size: 14px; }
.btn-primary.btn-full { width: 100%; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 22px;
  font-size: 13px;
  border: 1.5px solid var(--border);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--border-red);
  color: #fff;
  transform: translateY(-2px);
}

.btn-call {
  background: transparent;
  color: var(--text);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  border: 1.5px solid var(--border);
}
.btn-call:hover, .btn-call:focus-visible {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-outline-red {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  font-size: 13px;
  border: 1.5px solid var(--border-red);
}
.btn-outline-red:hover, .btn-outline-red:focus-visible {
  background: rgba(236,29,37,0.08);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-sm-red {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  font-size: 12px;
}
.btn-sm-red:hover { background: var(--red-hover); }

/* === EYEBROW === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--text-muted);
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-3);
  border-top: 1px solid var(--border-red);
  z-index: 9000;
  padding: 14px var(--gutter);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cookie-inner i { color: var(--red); font-size: 18px; flex-shrink: 0; }
.cookie-inner p { font-size: 13px; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
  pointer-events: auto;
}
.nav-logo img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links > li {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.nav-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--red);
  padding: 11px 20px;
  border: none;
  transition: all 0.22s ease;
}
.nav-contact-btn i { color: #fff; font-size: 14px; }
.nav-contact-btn:hover, .nav-contact-btn:focus-visible {
  background: var(--red-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Konfigurator Dropdown ---- */
.has-dropdown { position: relative; }

.nav-dropdown-btn {
  background: transparent !important;
  border: none !important;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn:focus-visible { color: var(--text); }
.nav-dropdown-btn .nav-chevron { transition: transform 0.2s ease; font-size: 11px; }

/* Dropdown panel – IMMER versteckt, nur mit .open sichtbar */
.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 230px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 6px 0;
  z-index: 500;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  flex-direction: column;
  display: flex;
}
.nav-dropdown.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  border-bottom: none !important;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a i { color: var(--red); font-size: 16px; flex-shrink: 0; }
.nav-dropdown a.nav-dropdown-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.nav-badge-soon {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(236,29,37,0.15);
  color: var(--red);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
body.light-mode .nav-dropdown a:hover,
body.light-mode .nav-dropdown a:focus-visible,
body.light-mode .nav-dropdown a.active { background: rgba(0,0,0,0.04); }
/* ----- end Konfigurator Dropdown ----- */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px; height: 44px;
  padding: 0; cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: 0.25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  padding: clamp(52px,8vw,90px) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0.62) 100%),
    url('../images/hero-startseite.webp') center 38% / cover no-repeat;
  z-index: 0;
}
body.light-mode .hero-bg {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0.62) 100%),
    url('../images/hero-startseite.webp') center 38% / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(90%, 1400px);
  margin: 0 auto;
}

.hero-image-credit {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-grid {
  display: block;
}

.hero-title {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.9;
  letter-spacing: 2px;
  margin: 12px 0 16px;
  min-height: calc(4 * 0.9em);
  color: #fff;
}
.hero-title .accent { color: var(--red); }

.hero-flip {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: calc(4 * 0.9em);
  perspective: 1200px;
  cursor: pointer;
  outline-offset: 6px;
}

.hero-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: 50% 50%;
  transition: transform 0.7s cubic-bezier(.45,.05,.15,1);
  will-change: transform;
}
.hero-flip-line {
  display: block;
  line-height: 0.9;
}
.hero-flip-face.hero-flip-front { transform: rotateX(0deg); }
.hero-flip-face.hero-flip-back { transform: rotateX(180deg); }
.hero-flip.flipped .hero-flip-face.hero-flip-front { transform: rotateX(-180deg); }
.hero-flip.flipped .hero-flip-face.hero-flip-back { transform: rotateX(0deg); }

@media (prefers-reduced-motion: reduce) {
  .hero-flip-face { transition: none; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
  max-width: 420px;
}
.hero-subtitle-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-subtitle-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Hero text always white over image regardless of light/dark mode */
.hero .eyebrow { color: rgba(255,255,255,0.72); }
.hero .eyebrow::before { background: rgba(255,255,255,0.50); }
body.light-mode .hero-title { color: #fff; }
body.light-mode .hero-subtitle { color: rgba(255,255,255,0.88); }

/* Hero copy: max-width for readability */
.hero-copy { max-width: 720px; }

/* Glassmorphism card behind hero text */
.hero-glass-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(100%, 660px);
  height: 400px;
  overflow: hidden;
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(5px) saturate(105%);
  -webkit-backdrop-filter: blur(5px) saturate(105%);
  border: none;
  border-radius: 14px;
  padding: 48px 56px;
}
/* subtitle fills card width without its own max-width */
.hero-glass-card .hero-subtitle {
  max-width: 100%;
}

/* Quick Contact Box — kept for compatibility, hidden via HTML */
.hero-side { display: flex; justify-content: flex-end; }

/* Red card variant */
.hero-glass-card--red {
  background: linear-gradient(145deg, #d91218 0%, var(--red) 55%, #b01016 100%);
  border: none;
  box-shadow: 0 24px 64px rgba(180, 0, 8, 0.40);
}
.hero-glass-card--red .accent { color: #fff; }
.hero-glass-card--red .hero-subtitle { color: rgba(255,255,255,0.88); }
.hero-glass-card--red .eyebrow { color: rgba(255,255,255,0.78); }
.hero-glass-card--red .eyebrow::before { background: rgba(255,255,255,0.45); }
.hero-glass-card--red .btn-primary {
  background: #fff;
  color: var(--red);
}
.hero-glass-card--red .btn-primary:hover,
.hero-glass-card--red .btn-primary:focus-visible {
  background: rgba(255,255,255,0.88);
  color: #b01016;
  transform: translateY(-2px);
}


/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 6vw, 64px);
  background:
    radial-gradient(circle at top right, rgba(236,29,37,0.06), transparent 26%),
    linear-gradient(180deg, rgba(244,244,244,0.96) 0%, rgba(236,236,236,0.98) 46%, rgba(255,255,255,0.98) 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--red); }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.page-hero-copy p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-hero-aside,
.service-detail-card,
.service-side-card,
.service-cta-band {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
}

.page-hero-aside {
  display: none;
}

.page-hero-aside,
.service-detail-card,
.service-side-card {
  padding: clamp(24px, 3vw, 32px);
}

.page-hero-aside h2 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-list,
.check-list,
.service-side-stack {
  display: grid;
  gap: 12px;
}

.service-side-stack { gap: 20px; }

.service-side-stack .service-side-card:not(.service-image) {
  display: none;
}

.detail-list li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-list li::before,
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 30px;
  align-items: start;
}

.service-detail-grid--reverse {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.service-copy {
  display: grid;
  gap: 14px;
}

.service-copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

.service-copy p + p {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 24px;
}

.service-detail-cta {
  margin-top: 24px;
}

.feature-card {
  background: transparent;
  padding: 0;
  border: 0;
}

.feature-card h3 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-image {
  overflow: hidden;
  min-height: 100%;
}

.service-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.service-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 38px);
  background: linear-gradient(180deg, #f6f6f6 0%, #eeeeee 100%);
}

.service-cta-band p {
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.related-links a:hover,
.related-links a:focus-visible {
  color: var(--red);
}

.quick-box {
  width: 100%;
  padding: 26px 24px;
  background: rgba(14,14,14,0.90);
  backdrop-filter: blur(12px);
  border-top: 3px solid var(--red);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
}
body.light-mode .quick-box {
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.qb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.qb-header i { color: var(--red); font-size: 20px; }
.qb-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1px;
}

.qb-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.quick-form { display: grid; gap: 12px; }

.qf-group { display: grid; gap: 5px; }
.qf-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.qf-input,
.qf-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
body.light-mode .qf-input,
body.light-mode .qf-select {
  background: #f4f4f4;
  border-color: rgba(0,0,0,0.13);
  color: var(--text);
}
.qf-input:focus, .qf-select:focus {
  border-color: var(--red);
  outline: none;
}
.qf-input::placeholder { color: var(--text-dim); }

.qf-privacy {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: -4px;
}
.qf-privacy i { font-size: 11px; }

.form-status {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  background: rgba(74,154,28,0.10);
  border-color: rgba(74,154,28,0.30);
  color: #2f5d14;
}

.form-status.is-error {
  background: rgba(236,29,37,0.08);
  border-color: rgba(236,29,37,0.25);
  color: #9d1820;
}

body.light-mode .form-status.is-success {
  background: #eef6ea;
  border-color: rgba(74,154,28,0.25);
}

body.light-mode .form-status.is-error {
  background: #fdeeee;
  border-color: rgba(236,29,37,0.22);
}

.required { color: var(--red); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 18px 0 6px;
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.trust-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  text-align: center;
}
.trust-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--red);
  font-size: 18px;
}
.trust-item strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  font-weight: 700;
  color: var(--text);
}
.trust-item span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 26ch;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  padding: 0 0 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 40px) / 3);
}
.service-card:hover {
  background: var(--dark-3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
body.light-mode .service-card { background: #fff; }
body.light-mode .service-card:hover { background: #f2f2f2; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.service-card:hover::before,
.service-card:focus-within::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: rgba(236,29,37,0.10);
  border: 1px solid var(--border-red);
  color: var(--red);
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Bildkarten für Service-Grid */
.service-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
  display: block;
}
.service-img-wrap img.service-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
}
.service-img-wrap img.service-img-primary {
  position: relative;
  opacity: 1;
}
.service-card:hover .service-img-wrap img.service-img-primary {
  opacity: 0;
  transform: scale(1.05);
}
.service-card:hover .service-img-wrap img.service-img-hover {
  opacity: 1;
  transform: scale(1.05);
}
.service-card:hover .service-img-wrap img:only-child { transform: scale(1.05); }

.service-img-wrap img.service-img--noscale {
  transform: scale(1);
}
.service-card:hover .service-img-wrap img.service-img--noscale {
  transform: scale(1);
}
.service-card .service-body { padding: 22px; }

.service-body { flex: 1; }
.service-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.service-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(236,29,37,0.18);
  transition: gap 0.2s, border-color 0.2s;
}
.service-link:hover,
.service-link:focus-visible {
  gap: 12px;
  border-color: rgba(236,29,37,0.42);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.service-tags li {
  font-size: 11px;
  padding: 5px 11px;
  background: rgba(236,29,37,0.08);
  border: 1px solid rgba(236,29,37,0.18);
  color: var(--red);
  letter-spacing: 0.3px;
  border-radius: 2px;
}
body.light-mode .service-tags li { color: #c0171e; }

.service-card--montage {
  border-color: var(--border-red);
}

.services-note {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.services-note p {
  max-width: 760px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3/2 !important;
  object-fit: cover !important;
  box-shadow: var(--shadow);
}
.about-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background:
    linear-gradient(145deg, rgba(236,29,37,0.08), rgba(236,29,37,0.02)),
    linear-gradient(180deg, var(--dark-2), var(--dark-3));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}
body.light-mode .about-placeholder {
  background:
    linear-gradient(145deg, rgba(236,29,37,0.08), rgba(236,29,37,0.03)),
    linear-gradient(180deg, #ffffff, #efefef);
}
.about-placeholder-icon {
  width: 88px;
  height: 88px;
  border: 1px solid var(--border-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(236,29,37,0.10);
  color: var(--red);
  font-size: 34px;
}
.about-placeholder strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--text);
}
.about-placeholder span {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.about-badge {
  position: absolute;
  right: -18px; bottom: -18px;
  background: var(--red);
  color: #fff;
  padding: 20px 22px;
}
.about-badge strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 46px;
  line-height: 0.9;
}
.about-badge span {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 7px;
}

.about-copy p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 540px;
}

.about-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--red);
}
.about-more-link:hover, .about-more-link:focus-visible { color: var(--red-hover); }
.about-more-link i { font-size: 13px; transition: transform 0.2s ease; }
.about-more-link:hover i { transform: translateX(3px); }

.about-detail-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-detail-columns {
  column-count: 2;
  column-gap: 48px;
  margin-top: 8px;
}
.about-detail-columns p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
  break-inside: avoid;
}
.about-detail-columns strong { color: var(--text); }

.about-points {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.about-point:first-child { border-top: 1px solid var(--border); }
.about-point i { color: var(--red); font-size: 16px; flex-shrink: 0; margin-top: 3px; }
.about-point strong { color: var(--text); }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: clamp(72px, 10vw, 120px);
}

/* ============================================================
   ABWECHSELNDE SEKTION-HINTERGRÜNDE (Light Mode)
   Reihenfolge: Leistungen → Über uns → Ablauf → Partner → Kontakt
   ============================================================ */
body.light-mode .services  { background: #ffffff; }
body.light-mode .about     { background: #f0f0f0; }
body.light-mode .steps     { background: #f5f5f5; }
body.light-mode .partners  { background: #ffffff; }
body.light-mode .contact-cta { background: #f0f0f0; }

/* Steps section label: red accent line */

/* Steps intro: red left border */
.steps-intro {
  border-left: 3px solid var(--red);
  padding-left: 20px;
}

/* Grid: 7 columns — card | arrow | card | arrow | card | arrow | card */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  gap: 0;
  align-items: stretch;
}
.steps-grid::after { display: none; }

/* Connector arrows between cards */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-connector i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--red);
  opacity: 0.55;
}

/* Cards */
.step-card {
  position: relative;
  z-index: 1;
  padding: 36px 28px 28px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.light-mode .step-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Red top accent line */
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(0,0,0,0.28);
  border-color: var(--border-red);
}
.step-card:hover::before {
  transform: scaleX(1);
}
body.light-mode .step-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Step number */
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* Icon circle */
.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(236,29,37,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.step-card:hover .step-icon-wrap {
  background: rgba(236,29,37,0.22);
}
.step-icon {
  font-size: 20px;
  color: var(--red);
  display: block;
  margin-bottom: 0;
}

/* Title */
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Body text */
.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* CTA link with arrow */
.step-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-top: auto;
}
.step-cta i {
  transition: transform 0.2s ease;
}
.step-card:hover .step-cta i {
  transform: translateX(4px);
}

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 52px;
}

/* ============================================================
   REFERENCES
   ============================================================ */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.reference-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--dark-2);
  transition: border-color 0.22s, transform 0.22s;
}
.reference-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
}
body.light-mode .reference-card { background: #fff; }

.ref-img-wrap {
  position: relative;
  overflow: hidden;
}
.ref-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.reference-card:hover .ref-img-wrap img { transform: scale(1.04); }

.ref-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
}

.reference-copy { padding: 16px; }
.ref-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.reference-copy h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
}
.reference-copy p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.references-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-3) 100%);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.testimonial-card {
  padding: 26px 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.light-mode .testimonial-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  font-size: 18px;
  color: #f5a623;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  padding-left: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card footer strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-card footer span {
  font-size: 12px;
  color: var(--text-dim);
}

.testimonials-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.testimonials-google i { color: #4285F4; font-size: 18px; }
.testimonials-google a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { overflow: hidden; }

.partners-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
/* fade edges */
.partners-marquee::before,
.partners-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--body-bg), transparent);
}
.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--body-bg), transparent);
}

.partners-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: max-content;
  width: max-content;
  will-change: transform;
  animation: partnerMarquee 28s linear infinite;
  animation-delay: 0s;
  animation-play-state: running;
}
@media (hover: hover) {
  .partners-track:hover { animation-play-state: paused; }
}

@keyframes partnerMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0 48px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
/* Kein border-right:none auf last-child — beide Sätze müssen
   exakt gleich breit sein, damit translate3d(-50%) nahtlos zurückspringt. */

.partner-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.partner-item img.partner-logo-wolf {
  height: 54px;
  max-width: 190px;
}
.partner-item img.partner-logo-wuerth {
  height: 36px;
  max-width: 200px;
}
.partner-item a:hover img,
.partner-item a:focus-visible img {
  transform: translateY(-1px);
}

.partner-item a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--dark);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 52px;
  align-items: start;
}
.faq-intro .section-title { font-size: clamp(26px, 4vw, 44px); }
.faq-intro p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  margin-bottom: 16px;
}
.faq-call { font-size: 15px; }
.faq-hours {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
}

.faq-list { display: grid; gap: 2px; }

.faq-item {
  border: 1px solid var(--border);
  background: var(--dark-2);
  overflow: hidden;
  margin-bottom: -1px;
}
body.light-mode .faq-item { background: #fff; }

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--dark-3); color: var(--text); }
.faq-item[open] summary {
  background: rgba(236,29,37,0.06);
  color: var(--text);
  border-bottom: 1px solid var(--border-red);
}

.faq-answer {
  padding: 16px 20px 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.contact-page-simple {
  padding-top: clamp(52px, 8vw, 84px);
}

.contact-page-head {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  justify-items: center;
  text-align: center;
}

.contact-page-intro {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-cta {
  padding: 64px 0;
}

.contact-cta-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: 1px;
}

.contact-cta-copy {
  max-width: 42rem;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.contact-trust-list {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(236,29,37,0.05);
  border: 1px solid var(--border-red);
  margin-bottom: 24px;
}
.ctrust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.ctrust-item i { color: var(--red); font-size: 14px; flex-shrink: 0; }

.contact-items { display: grid; gap: 0; }
.contact-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-child { border-top: 1px solid var(--border); }
.contact-item i { color: var(--red); font-size: 15px; margin-top: 1px; }
.contact-item strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.contact-item a {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--red); }
.contact-item span { display: block; font-size: 12px; color: var(--text-muted); }

.opening-hours {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.opening-hours-compact {
  font-size: 12px;
  color: var(--text-muted);
}

.opening-hours-current {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
}

.opening-hours-current strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.contact-form-wrap {
  padding: 28px 24px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
body.light-mode .contact-form-wrap { background: #fff; }

.contact-form { display: grid; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: grid; gap: 6px; }
.form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode .form-textarea {
  background: #f4f4f4;
  border-color: rgba(0,0,0,0.12);
  color: var(--text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 110px; resize: vertical; }

/* Honeypot: fuer Menschen unsichtbar (Position statt display:none), fuer Screenreader per aria-hidden ausgeblendet */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
body.light-mode .privacy-check { background: #f2f2f2; }
.privacy-check input[type="checkbox"] {
  margin-top: 2px;
  width: 17px; height: 17px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.privacy-check label {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.privacy-check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.form-submit {
  background: var(--red);
  color: #fff;
  padding: 16px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.22s, transform 0.22s;
}
.form-submit:hover:not(:disabled) { background: var(--red-hover); transform: translateY(-2px); }
.form-submit:disabled { cursor: default; }
.form-submit i,
.btn-primary i { flex-shrink: 0; }

.form-privacy-note {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}
.form-privacy-note i { font-size: 11px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(236,29,37,0.07), transparent 34%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  border-top: 1px solid var(--border);
  padding: 0;
}
.footer-shell.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(38px, 5vw, 56px) var(--gutter) 28px;
}
.footer-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(236,29,37,0.35) 65%, transparent 100%);
}
.footer-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-top-copy {
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}
.footer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: 1px;
}
.footer-top p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 30px 34px;
  align-items: start;
}
.footer-logo img { height: 40px; width: auto; }
.footer-brand {
  display: grid;
  gap: 18px;
  max-width: 540px;
}
.footer-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
}
body.light-mode .footer-badge {
  background: rgba(255,255,255,0.55);
}
.footer-badge i {
  color: var(--red);
  font-size: 14px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 100%;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-link-list,
.footer-contact-list {
  display: grid;
  gap: 10px;
}
.footer-link,
.footer-contact-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color 0.2s, transform 0.2s;
}
.footer-link i,
.footer-contact-item i {
  color: var(--red);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-link:hover,
.footer-contact-item:hover {
  color: var(--text);
  transform: translateX(2px);
}
.footer-contact-note {
  font-size: 12px;
  color: var(--text-dim);
}
.footer-copy {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE — LG (≤1080px)
   ============================================================ */
@media (max-width: 1080px) {
  .hero { min-height: auto; padding: 52px 0 44px; }

  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
  .step-card { border-radius: 10px; }

  .section-header { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 440px; }
  .about-badge { position: static; margin-top: 14px; display: inline-block; }

  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .faq-layout { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-top,
  .footer-main { grid-template-columns: 1fr; }
  .footer-top {
    align-items: start;
  }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-copy {
    justify-content: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — MD (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  :root { --gutter: clamp(14px, 4vw, 28px); }

  .nav-links, .nav-cta { display: none; }
  .nav-contact-btn { display: none; }
  .nav-logo img { height: 32px; max-width: 140px; }
  .nav-inner { min-height: 64px; gap: 10px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(18,18,18,0.99);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-red);
    padding: 12px 0;
    gap: 0;
  }
  body.light-mode .nav-links.active { background: rgba(240,240,240,0.99); }
  .nav-links.active a {
    display: block;
    padding: 15px var(--gutter);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active a:last-child { border-bottom: none; }

  /* Dropdown im mobilen Menü */
  .has-dropdown { width: 100%; }
  .nav-dropdown-btn {
    width: 100%;
    display: flex;
    padding: 15px var(--gutter);
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 12px;
    justify-content: space-between;
  }
  /* Mobile: kein absolut positioniertes Panel, sondern inline eingeklappt */
  .nav-dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: static;
    transform: none;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    border: none;
    background: rgba(255,255,255,0.03);
    backdrop-filter: none;
    padding: 0;
    transition: opacity 0.15s, visibility 0.15s, max-height 0.2s ease;
    flex-direction: column;
    display: flex;
  }
  body.light-mode .nav-dropdown { background: rgba(0,0,0,0.05); }
  .nav-dropdown.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 200px;
    transform: none;
  }
  .nav-dropdown a {
    padding: 13px calc(var(--gutter) + 16px) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 11px;
    white-space: normal;
  }

  .page-hero-grid,
  .service-detail-grid,
  .service-cta-band {
    grid-template-columns: 1fr;
  }

  .about-detail-columns { column-count: 1; }

  .services-grid { gap: 14px; }
  .services-grid .service-card { flex: 0 0 calc((100% - 14px) / 2); }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-bar-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ============================================================
   RESPONSIVE — SM (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  .partners-marquee {
    margin-top: 32px;
    padding: 20px 0;
  }

  .partners-marquee::before,
  .partners-marquee::after {
    width: 36px;
  }

  .partners-track {
    animation-duration: 22s;
  }

  .partner-item {
    min-width: 150px;
    padding: 0 20px;
  }

  .partner-item img {
    height: 34px;
    max-width: 110px;
  }

  .partner-item img.partner-logo-wolf {
    height: 42px;
    max-width: 136px;
  }

  .partner-item img.partner-logo-wuerth {
    height: 30px;
    max-width: 140px;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    margin-top: -64px;
    padding: 100px 0 36px;
  }

  .hero-bg,
  body.light-mode .hero-bg {
    background-position: center center;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
    max-width: 100%;
  }
  .hero-subtitle-list {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .hero-subtitle-list span:not(.hero-subtitle-dot) {
    font-size: 13px;
    white-space: nowrap;
  }
  .hero-glass-card {
    width: min(100%, 560px);
    height: 350px;
    padding: 36px 34px;
  }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-call { width: 100%; justify-content: center; }

  .services-grid { gap: 12px; }
  .services-grid .service-card { flex: 0 0 100%; }
  .feature-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps-cta { flex-direction: column; }
  .steps-cta .btn-primary,
  .steps-cta .btn-secondary { width: 100%; justify-content: center; }

  .trust-item { padding: 0; }

  .form-row { grid-template-columns: 1fr; }
  .about-badge strong { font-size: 38px; }
  .contact-cta-copy { font-size: 17px; }

  .footer-shell.container { padding: 30px var(--gutter) 22px; }
  .footer-title { font-size: clamp(30px, 12vw, 44px); }
  .footer-badges { gap: 8px; }
  .footer-badge { width: 100%; justify-content: flex-start; }
  .footer-copy { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — XS (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    margin-top: -64px;
    padding: 92px 0 28px;
  }

  .hero-title {
    font-size: clamp(30px, 10vw, 44px);
    max-width: 100%;
  }
  .hero-glass-card {
    width: 100%;
    height: 320px;
    padding: 30px 24px;
  }
  .btn-primary.btn-lg { padding: 15px 20px; }
  .section-title { font-size: clamp(28px, 10vw, 40px); }
  .quick-box { padding: 20px 16px; }
}

#navToggle, #servicesDropdownBtn {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* ============================================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ============================================================ */
.legal-section {
  padding: clamp(8px, 1.5vw, 20px) 0 clamp(72px, 10vw, 120px);
}

.legal-content {
  max-width: 780px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 12px;
}
.legal-content h2:first-child,
.legal-content h3:first-child { margin-top: 0; }
.legal-content h2 { font-size: 22px; }
.legal-content h3 { font-size: 18px; }
.legal-content h4 { font-size: 16px; }

.legal-content p { margin: 0 0 16px; }
.legal-content ul,
.legal-content ol { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover, .legal-content a:focus-visible { color: var(--red-hover); }
.legal-content strong { color: var(--text); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.legal-content table td, .legal-content table th { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }

.legal-fallback {
  max-width: 620px;
  padding: 24px 26px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
body.light-mode .legal-fallback { background: #f5f5f5; }
.legal-fallback strong { color: var(--text); display: block; margin-bottom: 6px; }
