/*--------------------------------------------------------------
# Raccoon Facility — Design System (theme.css)
# Ersetzt main.css + custom.css.
# Struktur: 1. Fonts  2. Tokens  3. Base  4. Layout (Header/Footer)
#           5. Komponenten  6. Seiten-Sektionen  7. Utilities
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. Fonts (lokal, DSGVO-konform)
--------------------------------------------------------------*/
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
# 2. Design-Tokens
--------------------------------------------------------------*/
:root {
  /* Farbpalette: Petrol + warmes Amber */
  --rf-primary: #0e4a5b;
  --rf-primary-dark: #0b3b49;
  --rf-primary-light: #20718a;
  --rf-primary-tint: #e8f1f4;
  --rf-primary-tint-2: #f4f9fa;
  --rf-accent: #f0a429;
  --rf-accent-dark: #d98e17;
  --rf-ink: #10303b;
  --rf-text: #334a52;
  --rf-text-muted: #5c7078;
  --rf-border: #dce5e8;
  --rf-surface: #ffffff;
  --rf-bg: #fafbfc;
  --rf-footer-bg: #0b2830;
  --rf-success: #1e7f4f;
  --rf-warning: #b45309;
  --rf-danger: #b42318;

  /* Typografie */
  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2rem, 4.5vw, 3.25rem);
  --fs-h1: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 2.5vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 96px;
  --section-py: clamp(56px, 8vw, 104px);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Schatten */
  --shadow-xs: 0 1px 2px rgb(16 48 59 / 0.06);
  --shadow-sm: 0 2px 8px rgb(16 48 59 / 0.08);
  --shadow-md: 0 8px 24px rgb(16 48 59 / 0.1);

  /* Header-Höhe (für scroll-padding) */
  --header-h: 76px;

  /* Bootstrap-Bridge */
  --bs-primary: #0e4a5b;
  --bs-primary-rgb: 14, 74, 91;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--rf-text);
  --bs-body-bg: var(--rf-bg);
  --bs-border-radius: var(--r-md);
  --bs-link-color: var(--rf-primary);
  --bs-link-hover-color: var(--rf-primary-dark);
}

/*--------------------------------------------------------------
# 3. Base
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--rf-text);
  background-color: var(--rf-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
  line-height: 1.25;
}

a {
  color: var(--rf-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rf-primary-dark);
}

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

:focus-visible {
  outline: 3px solid var(--rf-primary-light);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Skip-Link für Tastaturnutzer */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--rf-primary);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

/*--------------------------------------------------------------
# 4. Layout — Header
--------------------------------------------------------------*/
.rf-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--rf-surface);
  border-bottom: 1px solid var(--rf-border);
  transition: box-shadow 0.25s ease;
}

.rf-header.sticked {
  box-shadow: var(--shadow-sm);
}

.rf-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.rf-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rf-header .logo img {
  height: 44px;
  width: auto;
}

.rf-header .logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rf-ink);
  white-space: nowrap;
}

/* Desktop-Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav > li {
  position: relative;
}

.desktop-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rf-ink);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.desktop-nav > li > a:hover,
.desktop-nav > li > a.active {
  color: var(--rf-primary);
  background: var(--rf-primary-tint-2);
}

.desktop-nav .dropdown-indicator {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.desktop-nav .dropdown:hover .dropdown-indicator,
.desktop-nav .dropdown:focus-within .dropdown-indicator {
  transform: rotate(180deg);
}

/* Dropdown-Panel */
.desktop-nav .dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  padding: var(--sp-3);
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.desktop-nav .dropdown:hover > .dropdown-panel,
.desktop-nav .dropdown:focus-within > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.desktop-nav .dropdown-panel.dropdown-wide {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.desktop-nav .dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rf-text);
  border-radius: var(--r-sm);
}

.desktop-nav .dropdown-panel a:hover {
  background: var(--rf-primary-tint-2);
  color: var(--rf-primary);
}

.desktop-nav .dropdown-panel a i {
  font-size: 1.05rem;
  color: var(--rf-primary-light);
  flex-shrink: 0;
}

.desktop-nav .dropdown-panel .dropdown-cta {
  grid-column: 1 / -1;
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rf-border);
  font-weight: 600;
  color: var(--rf-primary);
}

/* Header-Aktionen rechts */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rf-ink);
  white-space: nowrap;
}

.header-phone i {
  color: var(--rf-primary);
  font-size: 1.1rem;
}

.header-phone:hover {
  color: var(--rf-primary);
}

/* Mobile-Nav-Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.75rem;
  color: var(--rf-ink);
  cursor: pointer;
  line-height: 1;
  border: 0;
  background: none;
  padding: 6px;
}

/*--------------------------------------------------------------
# 4a. Mobile Navigation (weißes Vollhöhen-Panel)
--------------------------------------------------------------*/
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--rf-surface);
  overflow-y: auto;
  padding: 0 var(--sp-4) var(--sp-5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}

body.mobile-nav-active .mobile-nav {
  transform: translateX(0);
  visibility: visible;
}

body.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rf-border);
  margin-bottom: var(--sp-4);
}

.mobile-nav-header img {
  height: 36px;
  width: auto;
}

.mobile-nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
}

.mobile-nav-close {
  border: 0;
  background: var(--rf-primary-tint-2);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--rf-ink);
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-5);
}

.mobile-menu-item {
  padding: 13px 4px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--rf-ink);
  border-bottom: 1px solid var(--rf-border);
}

.mobile-menu-item.active {
  color: var(--rf-primary);
}

.mobile-services-title {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rf-text-muted);
  margin-bottom: var(--sp-3);
}

.mobile-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.mobile-service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--rf-primary-tint-2);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rf-ink);
}

.mobile-service-card i {
  font-size: 1.15rem;
  color: var(--rf-primary);
  flex-shrink: 0;
}

.mobile-nav-footer {
  border-top: 1px solid var(--rf-border);
  padding-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

.mobile-nav-footer .company-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
}

.mobile-nav-footer span {
  display: block;
}

.mobile-nav-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--sp-4) 0;
  padding: 13px;
  background: var(--rf-accent);
  color: var(--rf-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--r-md);
}

.mobile-nav-call-btn:hover {
  background: var(--rf-accent-dark);
  color: var(--rf-ink);
}

.mobile-nav-hours {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 991px) {
  .desktop-nav,
  .header-phone {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .rf-header .header-cta {
    display: none;
  }
}

@media (min-width: 992px) {
  .mobile-nav {
    display: none;
  }
}

/*--------------------------------------------------------------
# 4b. Layout — Footer
--------------------------------------------------------------*/
.footer {
  background: var(--rf-footer-bg);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9375rem;
}

.footer .footer-content {
  padding: var(--sp-8) 0 var(--sp-6);
}

.footer .footer-info img {
  height: 56px;
  width: auto;
}

.footer .footer-info p {
  margin-top: var(--sp-4);
  max-width: 320px;
}

.footer .footer-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-4);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgb(255 255 255 / 0.75);
}

.footer ul a:hover {
  color: #fff;
}

.footer .footer-legal {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding: var(--sp-4) 0;
  font-size: var(--fs-small);
  color: rgb(255 255 255 / 0.6);
}

.footer .footer-legal a {
  color: rgb(255 255 255 / 0.75);
}

/*--------------------------------------------------------------
# 5. Komponenten — Buttons
--------------------------------------------------------------*/
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 12px 24px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  --bs-btn-bg: var(--rf-primary);
  --bs-btn-border-color: var(--rf-primary);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--rf-primary-dark);
  --bs-btn-hover-border-color: var(--rf-primary-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rf-primary-dark);
  --bs-btn-active-border-color: var(--rf-primary-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--rf-primary-light);
  --bs-btn-disabled-border-color: var(--rf-primary-light);
  --bs-btn-focus-shadow-rgb: 32, 113, 138;
}

.btn-outline-primary {
  --bs-btn-color: var(--rf-primary);
  --bs-btn-border-color: var(--rf-primary);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--rf-primary);
  --bs-btn-hover-border-color: var(--rf-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rf-primary);
  --bs-btn-active-border-color: var(--rf-primary);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 32, 113, 138;
}

/* Amber-Akzent — DER Conversion-Button */
.btn-accent {
  --bs-btn-bg: var(--rf-accent);
  --bs-btn-border-color: var(--rf-accent);
  --bs-btn-color: var(--rf-ink);
  --bs-btn-hover-bg: var(--rf-accent-dark);
  --bs-btn-hover-border-color: var(--rf-accent-dark);
  --bs-btn-hover-color: var(--rf-ink);
  --bs-btn-active-bg: var(--rf-accent-dark);
  --bs-btn-active-border-color: var(--rf-accent-dark);
  --bs-btn-active-color: var(--rf-ink);
  --bs-btn-focus-shadow-rgb: 240, 164, 41;
  font-weight: 700;
}

/* Weißer Outline-Button für dunkle Bänder */
.btn-outline-light-band {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgb(255 255 255 / 0.6);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--rf-primary);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--rf-primary);
  --bs-btn-active-border-color: #fff;
}

.header-cta {
  padding: 10px 20px;
}

/*--------------------------------------------------------------
# 5a. Komponenten — Sektions-Header & Eyebrow
--------------------------------------------------------------*/
section {
  padding: var(--section-py) 0;
}

.section-tint {
  background: var(--rf-primary-tint-2);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rf-primary-light);
  margin-bottom: var(--sp-3);
}

.section-header {
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}

.section-header h1,
.section-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-3);
}

.section-header p {
  color: var(--rf-text-muted);
  margin: 0;
}

/*--------------------------------------------------------------
# 5b. Komponenten — Karten
--------------------------------------------------------------*/
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rf-primary-tint);
  color: var(--rf-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Service-Karten (Startseite + Übersichten) */
.service-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-5);
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

a.service-item {
  color: var(--rf-text);
}

.service-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--rf-primary-tint);
}

.service-item .icon-circle {
  margin-bottom: var(--sp-4);
}

.service-item .title {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-2);
  color: var(--rf-ink);
}

.service-item .description {
  color: var(--rf-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-3);
}

.service-item .read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--rf-primary);
}

.service-item:hover .read-more {
  color: var(--rf-primary-dark);
}

.service-item:hover .read-more i {
  transform: translateX(3px);
}

.service-item .read-more i {
  transition: transform 0.2s ease;
}

/* USP / Why-Us — bewusst ohne Karten-Rahmen */
.why-box {
  height: 100%;
  padding: 0 var(--sp-4);
  text-align: center;
}

.why-box .why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rf-primary-tint);
  color: var(--rf-primary);
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
}

.why-box .why-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--rf-ink);
  margin-bottom: var(--sp-2);
}

.why-box p {
  color: var(--rf-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Services-Index: redaktionelle nummerierte Liste statt Kartenraster */
.services-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.services-intro h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-4);
}

.services-intro p {
  color: var(--rf-text-muted);
  margin-bottom: var(--sp-5);
}

.services-index {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: svc;
}

.services-index li {
  counter-increment: svc;
  border-bottom: 1px solid var(--rf-border);
}

.services-index li:first-child {
  border-top: 1px solid var(--rf-border);
}

.services-index a {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: 20px 12px;
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.services-index a::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--rf-primary-light);
  flex-shrink: 0;
  width: 2.2ch;
}

.services-index .svc-body {
  min-width: 0;
}

.services-index .svc-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rf-ink);
  transition: color 0.2s ease;
}

.services-index .svc-desc {
  display: block;
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
  margin-top: 2px;
}

.services-index .svc-arrow {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rf-border);
  color: var(--rf-primary);
  font-size: 1.1rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.services-index a:hover {
  background: var(--rf-primary-tint-2);
  padding-left: 20px;
}

.services-index a:hover .svc-title {
  color: var(--rf-primary);
}

.services-index a:hover .svc-arrow {
  background: var(--rf-primary);
  border-color: var(--rf-primary);
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .services-intro {
    position: static;
    margin-bottom: var(--sp-5);
  }
}

@media (max-width: 575px) {
  .services-index .svc-desc {
    display: none;
  }

  .services-index a {
    gap: var(--sp-3);
    padding: 16px 8px;
  }
}

/* Testimonials: großes Zitat + versetzte Nebenzitate */
.testimonial-feature {
  position: relative;
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-6);
}

.testimonial-feature::before {
  content: "\201E";
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: var(--font-heading);
  font-size: 9rem;
  line-height: 1;
  color: var(--rf-primary-tint);
  pointer-events: none;
}

.testimonial-feature blockquote {
  position: relative;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--rf-ink);
  margin-bottom: var(--sp-5);
}

.testimonial-feature blockquote strong {
  color: var(--rf-primary);
}

.testimonial-side {
  border-left: 3px solid var(--rf-primary-tint);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
}

.testimonial-side + .testimonial-side {
  margin-top: var(--sp-6);
}

.testimonial-side blockquote {
  font-size: 1rem;
  color: var(--rf-text);
  margin-bottom: var(--sp-3);
}

.testimonial-attribution .author-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
}

.testimonial-attribution span:not(.author-name) {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

/* Testimonials (Karten-Variante, weiterhin für Unterseiten nutzbar) */
.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
}

.testimonial-card .testimonial-quote-icon {
  font-size: 1.75rem;
  color: var(--rf-primary-light);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.testimonial-card .testimonial-text {
  color: var(--rf-text);
  margin-bottom: var(--sp-4);
}

.testimonial-card .testimonial-author {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rf-border);
}

.testimonial-card .author-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
}

.testimonial-card .author-info span:not(.author-name) {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

/* Blog-Karten */
.post-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--rf-text);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--rf-text);
}

.post-box .post-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-box .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-box .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--rf-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-pill);
}

.post-box .post-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--sp-4);
}

.post-box .post-title {
  font-size: 1.0625rem;
  margin-bottom: var(--sp-2);
  color: var(--rf-ink);
}

.post-box:hover .post-title {
  color: var(--rf-primary);
}

.post-box p {
  font-size: 0.9375rem;
  color: var(--rf-text-muted);
  margin-bottom: var(--sp-3);
}

.post-box .post-meta {
  margin-top: auto;
  display: flex;
  gap: var(--sp-4);
  font-size: 0.8125rem;
  color: var(--rf-text-muted);
}

.post-box .post-meta i {
  margin-right: 4px;
}

/*--------------------------------------------------------------
# 5c. Komponenten — Formulare
--------------------------------------------------------------*/
.form-control,
.form-select {
  border: 1px solid var(--rf-border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: var(--fs-body);
  color: var(--rf-ink);
  background-color: var(--rf-surface);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rf-primary-light);
  box-shadow: 0 0 0 3px rgb(32 113 138 / 0.15);
}

.form-control::placeholder {
  color: var(--rf-text-muted);
}

label,
.form-label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--rf-ink);
  margin-bottom: 6px;
}

.form-error {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--rf-danger);
}

/* Service-Badges (Hero-Formular + Wizard) */
.selected-services-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.selected-services-container:not(:empty) {
  margin-bottom: var(--sp-3);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  background: var(--rf-primary-tint);
  border: 1px solid var(--rf-primary-light);
  color: var(--rf-primary-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--r-pill);
}

.service-badge button,
.service-badge .remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgb(14 74 91 / 0.1);
  color: var(--rf-primary-dark);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.service-badge button:hover,
.service-badge .remove-btn:hover {
  background: var(--rf-danger);
  color: #fff;
}

/* Standort-Autocomplete (Nominatim) */
.location-input-wrapper {
  position: relative;
}

.location-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.suggestion-item i {
  color: var(--rf-primary-light);
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--rf-primary-tint-2);
}

.suggestion-item .suggestion-main {
  color: var(--rf-ink);
  font-weight: 600;
}

.suggestion-item .suggestion-sub {
  font-size: 0.8125rem;
  color: var(--rf-text-muted);
}

.suggestion-item.loading {
  color: var(--rf-text-muted);
  cursor: default;
}

/*--------------------------------------------------------------
# 5d. Komponenten — FAQ Accordion
--------------------------------------------------------------*/
.faq .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--rf-border);
  background: transparent;
}

.faq .accordion-button {
  padding: var(--sp-4) var(--sp-2);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--rf-ink);
  background: transparent;
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  color: var(--rf-primary);
  background: transparent;
}

.faq .accordion-button:focus {
  box-shadow: none;
}

.faq .accordion-button:focus-visible {
  outline: 3px solid var(--rf-primary-light);
  outline-offset: -3px;
}

.faq .accordion-button::after {
  filter: grayscale(1) brightness(0.4);
}

.faq .accordion-button:not(.collapsed)::after {
  filter: none;
}

.faq .accordion-button i {
  color: var(--rf-primary-light);
}

.faq .accordion-body {
  padding: 0 var(--sp-2) var(--sp-4);
  color: var(--rf-text-muted);
}

/*--------------------------------------------------------------
# 5e. Komponenten — Cookie-Banner
--------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1080;
  max-width: 560px;
  margin: 0 auto;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-5);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner .cookie-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--rf-ink);
  margin-bottom: var(--sp-2);
}

.cookie-banner p {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
  margin-bottom: var(--sp-4);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.btn-cookie {
  flex: 1 1 auto;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  color: var(--rf-ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-cookie:hover {
  background: var(--rf-primary-tint-2);
  border-color: var(--rf-primary-light);
}

.btn-cookie.accept {
  background: var(--rf-primary);
  border-color: var(--rf-primary);
  color: #fff;
}

.btn-cookie.accept:hover {
  background: var(--rf-primary-dark);
}

.cookie-settings {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rf-border);
}

.cookie-settings.hidden {
  display: none;
}

.cookie-settings .cookie-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--rf-ink);
  margin-bottom: var(--sp-3);
}

.cookie-settings label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--rf-text);
  margin-bottom: var(--sp-2);
}

.cookie-settings .btn-cookie.save {
  margin-top: var(--sp-2);
}

/*--------------------------------------------------------------
# 5f. Komponenten — Page-Hero (Unterseiten) & Breadcrumbs
--------------------------------------------------------------*/
.page-hero {
  background: var(--rf-primary-tint-2);
  border-bottom: 1px solid var(--rf-border);
  padding: var(--sp-7) 0;
}

.page-hero .breadcrumb {
  font-size: var(--fs-small);
  margin-bottom: var(--sp-3);
}

.page-hero .breadcrumb a {
  color: var(--rf-text-muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--rf-primary);
}

.page-hero .breadcrumb-item.active {
  color: var(--rf-primary);
  font-weight: 600;
}

.page-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--sp-3);
}

.page-hero .page-hero-intro {
  max-width: 680px;
  font-size: 1.0625rem;
  color: var(--rf-text-muted);
  margin: 0;
}

/* Page-Hero mit vollflächigem Bild + Petrol-Verlauf */
.page-hero--image {
  position: relative;
  overflow: hidden;
  background: var(--rf-primary-dark);
  border-bottom: 0;
  padding: clamp(64px, 9vw, 120px) 0;
}

.page-hero--image .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 40, 48, 0.93) 15%, rgba(14, 74, 91, 0.72) 55%, rgba(14, 74, 91, 0.35) 100%);
  z-index: 1;
}

.page-hero--image > .container,
.page-hero--image > .container-xl {
  position: relative;
  z-index: 2;
}

.page-hero--image h1 {
  color: #fff;
}

.page-hero--image .eyebrow {
  color: var(--rf-accent);
}

.page-hero--image .page-hero-intro {
  color: rgb(255 255 255 / 0.85);
}

.page-hero--image .breadcrumb a {
  color: rgb(255 255 255 / 0.7);
}

.page-hero--image .breadcrumb a:hover {
  color: #fff;
}

.page-hero--image .breadcrumb-item.active {
  color: #fff;
}

.page-hero--image .breadcrumb-item + .breadcrumb-item::before {
  color: rgb(255 255 255 / 0.5);
}

.page-hero--image .stat-row .stat-item .stat-number {
  color: var(--rf-accent);
}

.page-hero--image .stat-row .stat-item .stat-label {
  color: rgb(255 255 255 / 0.78);
}

/* Start-Hero mit Bild: gleiche Behandlung, Formular-Karte bleibt weiß */
.hero--image {
  position: relative;
  overflow: hidden;
  background: var(--rf-primary-dark);
  border-bottom: 0;
}

.hero--image .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 40, 48, 0.94) 20%, rgba(14, 74, 91, 0.78) 60%, rgba(14, 74, 91, 0.55) 100%);
  z-index: 1;
}

.hero--image > .container-xl {
  position: relative;
  z-index: 2;
}

.hero.hero--image .hero-title,
.hero.hero--image .hero-usps li {
  color: #fff;
}

.hero.hero--image .hero-title .text-highlight {
  color: var(--rf-accent);
}

.hero.hero--image .eyebrow {
  color: var(--rf-accent);
}

.hero.hero--image .hero-subtitle {
  color: rgb(255 255 255 / 0.85);
}

.hero.hero--image .hero-city-link {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.4);
}

.hero.hero--image .hero-city-link:hover {
  text-decoration-color: #fff;
}

.hero.hero--image .hero-usps li small {
  color: rgb(255 255 255 / 0.7);
}

.hero.hero--image .hero-usps li i {
  color: #7dd8a5;
}

.hero.hero--image .hero-trust {
  border-top-color: rgb(255 255 255 / 0.2);
}

.hero.hero--image .hero-trust .trust-item {
  color: #fff;
}

.hero.hero--image .hero-trust .trust-item i {
  color: var(--rf-accent);
}

/* Google-Maps-Zwei-Klick-Panel (DSGVO) */
.map-consent {
  position: relative;
  background: var(--rf-primary-tint-2);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
}

.map-consent .map-consent-icon {
  font-size: 2.25rem;
  color: var(--rf-primary);
  margin-bottom: var(--sp-3);
}

.map-consent .map-consent-address {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
  margin-bottom: var(--sp-2);
}

.map-consent .map-consent-note {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
  max-width: 460px;
  margin: 0 auto var(--sp-4);
}

.map-consent .map-consent-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--r-lg);
  display: block;
}

/*--------------------------------------------------------------
# 5g. Komponenten — CTA-Band
--------------------------------------------------------------*/
.cta-band {
  background: var(--rf-primary);
  color: #fff;
  text-align: center;
}

.cta-band h2,
.cta-band .cta-title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-3);
}

.cta-band p {
  color: rgb(255 255 255 / 0.85);
  max-width: 560px;
  margin: 0 auto var(--sp-5);
}

.cta-band .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

/*--------------------------------------------------------------
# 5h. Komponenten — Scroll-Top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--rf-primary);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--rf-primary-dark);
  color: #fff;
}

/*--------------------------------------------------------------
# 6. Seiten-Sektionen — Hero (Startseite)
--------------------------------------------------------------*/
.hero {
  background: linear-gradient(180deg, var(--rf-primary-tint-2) 0%, var(--rf-bg) 100%);
  border-bottom: 1px solid var(--rf-border);
  padding: clamp(48px, 7vw, 88px) 0;
}

.hero .hero-title {
  font-size: var(--fs-display);
  margin-bottom: var(--sp-4);
}

.hero .hero-title .text-highlight {
  color: var(--rf-primary);
}

.hero .hero-subtitle {
  font-size: 1.0625rem;
  color: var(--rf-text-muted);
  max-width: 560px;
  margin-bottom: var(--sp-5);
}

.hero .hero-city-link {
  font-weight: 600;
  color: var(--rf-primary);
  text-decoration: underline;
  text-decoration-color: rgb(14 74 91 / 0.3);
  text-underline-offset: 3px;
}

.hero .hero-city-link:hover {
  text-decoration-color: var(--rf-primary);
}

/* Checkmark-USPs */
.hero-usps {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.hero-usps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--rf-ink);
}

.hero-usps li i {
  color: var(--rf-success);
  font-size: 1.2rem;
  line-height: 1.4;
}

.hero-usps li small {
  display: block;
  font-weight: 400;
  color: var(--rf-text-muted);
}

/* Trust-Zeile */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rf-border);
}

.hero-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--rf-ink);
}

.hero-trust .trust-item i {
  color: var(--rf-primary);
  font-size: 1.15rem;
}

/* Lead-Formular-Karte */
.hero-form-container {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}

.hero-form-container .form-header {
  margin-bottom: var(--sp-5);
}

.hero-form-container .form-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rf-ink);
  margin-bottom: var(--sp-1);
}

.hero-form-container .form-header p {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
  margin: 0;
}

.hero-form .form-group {
  margin-bottom: var(--sp-4);
}

.hero-form label {
  display: flex;
  align-items: center;
}

.hero-form label i {
  color: var(--rf-primary-light);
}

.btn-form-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.0625rem;
}

.hero-form .form-note {
  margin-top: var(--sp-3);
  text-align: center;
  color: var(--rf-text-muted);
}

.hero-form .form-note i {
  color: var(--rf-success);
}

/*--------------------------------------------------------------
# 6a. Seiten-Sektionen — Features / Software
--------------------------------------------------------------*/
/* Feature-Liste (ohne Karten-Boxen) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.feature-row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.feature-row .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--rf-primary-tint);
  color: var(--rf-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-row .feature-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--rf-ink);
  margin-bottom: 4px;
}

.feature-row p {
  font-size: 0.9375rem;
  color: var(--rf-text-muted);
  margin: 0;
}

/* Portal-Screenshot (echtes Produktbild) */
.portal-screenshot {
  width: 100%;
  height: auto;
  border: 1px solid var(--rf-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

@media (min-width: 992px) {
  .portal-screenshot {
    width: 106%;
    max-width: none;
    margin-left: -6%;
  }
}

/* Portal-Mockup (reines CSS, kein Bild) */
.portal-mockup {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.portal-mockup .mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rf-border);
  background: var(--rf-primary-tint-2);
}

.portal-mockup .mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rf-border);
}

.portal-mockup .mockup-dot:first-child {
  background: var(--rf-accent);
}

.portal-mockup .mockup-bar-title {
  margin-left: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rf-text-muted);
}

.portal-mockup .mockup-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

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

.mockup-stat {
  background: var(--rf-primary-tint-2);
  border-radius: var(--r-md);
  padding: 14px;
}

.mockup-stat .stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--rf-primary);
}

.mockup-stat .stat-label {
  font-size: 0.75rem;
  color: var(--rf-text-muted);
}

.mockup-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mockup-activity li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--rf-text);
  padding: 10px 12px;
  border: 1px solid var(--rf-border);
  border-radius: var(--r-sm);
}

.mockup-activity .activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-activity .activity-dot.done { background: var(--rf-success); }
.mockup-activity .activity-dot.progress { background: var(--rf-accent); }
.mockup-activity .activity-dot.planned { background: var(--rf-primary-light); }

.mockup-activity .activity-status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rf-text-muted);
  white-space: nowrap;
}

/*--------------------------------------------------------------
# 6b. Seiten-Sektionen — Service-Detail (Unterseiten)
--------------------------------------------------------------*/
.service-detail-content h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-4);
}

.service-detail-content h3 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.service-detail-content img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

.check-list {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.check-list li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  color: var(--rf-success);
  line-height: 1.65;
}

/* Unterleistungen: strukturiertes Trennlinien-Raster (ohne Karten-Boxen) */
.subservices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rf-border);
}

.subservice {
  padding: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--rf-border);
  transition: background-color 0.25s ease;
}

.subservice:hover {
  background: var(--rf-primary-tint-2);
}

@media (min-width: 768px) {
  .subservices {
    grid-template-columns: 1fr 1fr;
  }

  .subservice:nth-child(2n) {
    border-left: 1px solid var(--rf-border);
  }
}

@media (min-width: 992px) {
  .subservices--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .subservices--3 .subservice {
    border-left: 1px solid var(--rf-border);
  }

  .subservices--3 .subservice:nth-child(3n - 2) {
    border-left: 0;
  }
}

.subservice .subservice-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.subservice .icon-circle {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}

.subservice .subservice-head .icon-circle,
.subservice .subservice-head h3 {
  margin-bottom: 0;
}

.subservice h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
}

.subservice p {
  color: var(--rf-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-3);
}

.subservice .check-list {
  margin-bottom: 0;
}

.subservice .check-list li {
  padding: 3px 0;
  font-size: 0.9375rem;
}

/* Stadtteil-/Einsatzgebiets-Liste (Standort-Seiten) */
.district-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--sp-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 576px) {
  .district-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .district-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.district-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 12px 4px;
  border-bottom: 1px solid var(--rf-border);
}

.district-list .district-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--rf-ink);
}

.district-list .district-tag {
  font-size: 0.8125rem;
  color: var(--rf-text-muted);
  text-align: right;
}

/* Stat-Zeile (Standort-Hero) */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-7);
  margin: var(--sp-5) 0;
}

.stat-row .stat-item .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rf-primary);
  line-height: 1.2;
}

.stat-row .stat-item .stat-label {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

.page-hero .page-hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* Verwandte Services / Cross-Links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--rf-primary-tint-2);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--rf-primary);
}

.related-links a:hover {
  background: var(--rf-primary-tint);
  border-color: var(--rf-primary-light);
}

/*--------------------------------------------------------------
# 6c. Seiten-Sektionen — Wizard (Kostenlose Anfrage)
--------------------------------------------------------------*/
.wizard-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.step-indicator .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--rf-text-muted);
}

.step-indicator .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--rf-border);
  background: var(--rf-surface);
  color: var(--rf-text-muted);
  font-size: var(--fs-small);
}

.step-indicator .step.active .step-number {
  border-color: var(--rf-primary);
  background: var(--rf-primary);
  color: #fff;
}

.step-indicator .step.active {
  color: var(--rf-primary);
}

.step-indicator .step.completed .step-number {
  border-color: var(--rf-success);
  background: var(--rf-success);
  color: #fff;
}

.step-indicator .step-line {
  flex: 0 0 32px;
  height: 2px;
  background: var(--rf-border);
  align-self: center;
}

/*--------------------------------------------------------------
# 6d. Seiten-Sektionen — Artikel (Ratgeber) & Rechtstexte
--------------------------------------------------------------*/
.page-hero .page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

.page-hero .page-meta i {
  margin-right: 4px;
  color: var(--rf-primary);
}

.article-body {
  font-size: 1.0625rem;
}

.article-body > .lead-text {
  font-size: 1.15rem;
  color: var(--rf-ink);
}

.article-body h2 {
  font-size: var(--fs-h2);
  margin: var(--sp-7) 0 var(--sp-4);
}

.article-body h3 {
  font-size: var(--fs-h3);
  margin: var(--sp-6) 0 var(--sp-3);
}

.article-body h4 {
  font-size: 1.0625rem;
  margin: var(--sp-5) 0 var(--sp-3);
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-bottom: var(--sp-4);
}

.article-body li {
  margin-bottom: var(--sp-2);
}

.article-figure {
  margin: 0 0 var(--sp-6);
}

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.article-body .info-box,
.article-body .warning-box,
.article-body .success-box {
  border: 1px solid var(--rf-border);
  border-left: 4px solid var(--rf-primary);
  border-radius: var(--r-md);
  background: var(--rf-primary-tint-2);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}

.article-body .warning-box {
  border-left-color: var(--rf-warning);
  background: #fdf6ec;
}

.article-body .success-box {
  border-left-color: var(--rf-success);
  background: #eef7f1;
}

.article-body .box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--rf-ink);
  margin-bottom: var(--sp-2);
}

.article-body .info-box > :last-child,
.article-body .warning-box > :last-child,
.article-body .success-box > :last-child {
  margin-bottom: 0;
}

.article-body table {
  width: 100%;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: var(--fs-small);
  margin-bottom: var(--sp-4);
}

.article-body th {
  background: var(--rf-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.article-body td {
  padding: 12px 16px;
  border-top: 1px solid var(--rf-border);
  vertical-align: top;
}

.article-body .table-note {
  font-size: var(--fs-small);
  color: var(--rf-text-muted);
}

.legal-content h2 {
  font-size: 1.375rem;
  margin: var(--sp-7) 0 var(--sp-4);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin: var(--sp-5) 0 var(--sp-3);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: var(--sp-4);
}

.legal-content ul.index {
  list-style: none;
  padding: var(--sp-4) var(--sp-5);
  background: var(--rf-primary-tint-2);
  border: 1px solid var(--rf-border);
  border-radius: var(--r-md);
}

.legal-content ul.index li {
  margin-bottom: var(--sp-1);
}

/*--------------------------------------------------------------
# 7. Utilities
--------------------------------------------------------------*/
/* Scroll-Reveal (Ersatz für AOS) — greift nur mit aktivem JS (html.js) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

.text-muted-rf {
  color: var(--rf-text-muted) !important;
}

.bg-tint {
  background: var(--rf-primary-tint-2);
}

/* Responsive Feinheiten */
@media (max-width: 767px) {
  .hero-form-container {
    padding: var(--sp-5);
  }

  .section-header {
    margin-bottom: var(--sp-6);
  }

  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: var(--sp-4);
  }

  .step-indicator .step span:not(.step-number) {
    display: none;
  }
}
