/* ============================================================
   SCHARKU GEBÄUDESERVICE – Globales Stylesheet
   Einbinden in jede HTML-Seite:
   <link rel="stylesheet" href="assets/styles.css" />
   ============================================================ */

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

:root {
  /* ── Markenfarben (unveränderlich) ── */
  --red:         #CC1A1A;
  --red-dark:    #A01212;
  --red-light:   #e52222;
  --shadow-red:  rgba(204, 26, 26, 0.35);

  /* ── Dunkles Theme (Standard) ── */
  --black:       #0D0D0D;
  --grey-dark:   #1a1a1a;
  --grey-mid:    #3a3a3a;
  --grey:        #888;
  --grey-light:  #c8c8c8;
  --white:       #f5f5f5;

  /* ── Theme-Transition ── */
  --theme-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== HELLES THEME ===== */
[data-theme="light"] {
  --black:       #f0f0f0;   /* Seitenhintergrund hell  */
  --grey-dark:   #e2e2e2;   /* Sektionshintergrund     */
  --grey-mid:    #cccccc;   /* Trennlinien             */
  --grey:        #666666;   /* Dezenter Text           */
  --grey-light:  #333333;   /* Haupttext               */
  --white:       #111111;   /* Überschriften / kräftig */
}

/* Automatisch System-Preference respektieren (falls kein manuelles Toggle) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --black:       #f0f0f0;
    --grey-dark:   #e2e2e2;
    --grey-mid:    #cccccc;
    --grey:        #666666;
    --grey-light:  #333333;
    --white:       #111111;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  transition: var(--theme-transition);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 70px;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204,26,26,0.2);
  transition: border-color 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--shadow-red));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--grey-light);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Aktive Seite im Menü hervorheben */
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-light) !important; }
.nav-cta::after { display: none !important; }

/* Burger-Button */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile Nav-Drawer */
.nav-drawer {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(12px);
  padding: 2rem 5vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
  z-index: 99;
  border-bottom: 2px solid var(--red);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--red); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 5vw 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(204,26,26,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #0D0D0D 0%, #111 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204,26,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,26,26,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--red);
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.hero-deco {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: fadeIn 1s 0.8s forwards;
}

.hero-deco img {
  height: min(55vh, 420px);
  width: auto;
  filter: drop-shadow(0 20px 60px rgba(204,26,26,0.4));
  animation: float 6s ease-in-out infinite;
}

/* ===== PAGE HERO (Unterseiten) ===== */
.page-hero {
  padding: 160px 5vw 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(204,26,26,0.1) 0%, transparent 70%),
    var(--black);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204,26,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,26,26,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero .hero-tag {
  animation: fadeUp 0.6s 0.1s forwards;
}

.page-hero .hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  animation: fadeUp 0.7s 0.25s forwards;
}

/* ===== STATS-STREIFEN ===== */
.stats-strip {
  background: var(--red);
  padding: 28px 5vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.stat {
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ===== SECTIONS ALLGEMEIN ===== */
section { padding: 100px 5vw; }

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.75;
  max-width: 560px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--shadow-red);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-red);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  background: none;
}
.btn-secondary:hover {
  border-color: var(--red);
  background: rgba(204,26,26,0.08);
}

/* ===== LEISTUNGS-KARTEN ===== */
#leistungen {
  background: var(--grey-dark);
  position: relative;
  overflow: hidden;
}

#leistungen::before {
  content: 'LEISTUNGEN';
  position: absolute;
  top: -0.1em; right: -0.05em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 18vw;
  text-transform: uppercase;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--black);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}

.service-card:hover { transform: translateY(-4px); }
.service-card:hover::after { width: 100%; }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.service-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.7;
}

.service-new {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
}

.service-list {
  list-style: none;
  margin-top: 0.75rem;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--grey-light);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-list li::before {
  content: '→';
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== WARUM / ÜBER UNS ===== */
.why-visual { position: relative; }

.why-img-box {
  background: var(--grey-dark);
  aspect-ratio: 4/5;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.why-img-box img {
  height: 70%;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(204,26,26,0.3));
}

.why-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--red);
  z-index: -1;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.why-point-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(204,26,26,0.12);
  border: 1px solid rgba(204,26,26,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-point-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.why-point-text p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.6;
}

/* ===== KONTAKT ===== */
#kontakt {
  background: var(--grey-dark);
  position: relative;
  overflow: hidden;
}

#kontakt::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--red);
}

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}

.kontakt-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.kontakt-info p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.kontakt-detail-icon {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.kontakt-detail a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.kontakt-detail a:hover { color: var(--red); }

/* ===== KONTAKT-FORMULAR ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey); }
.form-group select option { background: var(--grey-dark); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(204,26,26,0.05);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== FOOTER ===== */
footer {
  background: #080808;
  padding: 60px 5vw 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--shadow-red));
}

.footer-brand p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: var(--grey-light);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--grey);
}

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--red);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
#toast.show { opacity: 1; transform: none; }

/* ===== ANIMATIONEN ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* Standardmäßig sichtbar – JS aktiviert die Animation */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* JS fügt .js-ready zum <html>-Tag hinzu → dann Animation aktiv */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-visual { display: none; }
  .kontakt-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-deco { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 70px 6vw; }

  /* Alle zweispaltigen Inline-Grid-Layouts auf Mobile einspaltig */
  .responsive-grid,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"][style*="align-items:center"],
  [style*="grid-template-columns:1fr 1fr"][style*="align-items:start"] {
    display: block !important;
  }
  .responsive-grid > *,
  [style*="grid-template-columns:1fr 1fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > * {
    width: 100% !important;
    margin-bottom: 2rem;
  }

  /* Kontakt-Layout */
  .kontakt-inner { grid-template-columns: 1fr; }

  /* Warum-Section */
  #warum { grid-template-columns: 1fr !important; }
  .why-visual { display: none; }
}

/* ================================================================
   🍪  COOKIE-BANNER
   ================================================================ */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(720px, calc(100vw - 2rem));
  background: #111;
  border: 1px solid rgba(204,26,26,0.35);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.cb-inner { padding: 1.5rem; }

.cb-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.6rem;
}

.cb-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.cb-desc a {
  color: var(--red);
  text-decoration: none;
}
.cb-desc a:hover { text-decoration: underline; }

/* Details / Kategorien */
#cookie-details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.cb-category {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cb-category:last-child { border-bottom: none; }

.cb-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cb-cat-header strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.cb-cat-header p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.5;
}

/* Toggle-Switch */
.cb-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cb-toggle input { opacity: 0; width: 0; height: 0; }

.cb-slider {
  position: absolute;
  inset: 0;
  background: var(--grey-mid);
  border-radius: 24px;
  transition: background 0.2s;
}

.cb-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.cb-toggle input:checked + .cb-slider { background: var(--red); }
.cb-toggle input:checked + .cb-slider::before { transform: translateX(20px); }
.cb-toggle--disabled { opacity: 0.5; cursor: not-allowed; }

/* Buttons */
.cb-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cb-btn-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cb-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cb-btn--accept {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 12px var(--shadow-red);
}
.cb-btn--accept:hover { background: var(--red-light); }

.cb-btn--reject {
  background: transparent;
  color: var(--grey-light);
  border: 1px solid rgba(255,255,255,0.2);
}
.cb-btn--reject:hover { border-color: var(--red); color: var(--white); }

.cb-btn--settings {
  background: transparent;
  color: var(--grey-light);
  border: 1px solid rgba(255,255,255,0.15);
}
.cb-btn--settings:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

@media (max-width: 600px) {
  .cb-actions { flex-direction: column; align-items: stretch; }
  .cb-btn-group { flex-direction: column; }
  .cb-btn { text-align: center; }
}

/* ================================================================
   ⚖️  RECHTSSEITEN (Impressum / Datenschutz)
   ================================================================ */
.legal-page { padding: 140px 5vw 100px; max-width: 860px; margin: 0 auto; }

.legal-page h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  font-size: 0.8rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-page .legal-updated::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--red);
}

.legal-page h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}

.legal-page h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.5rem;
  color: var(--grey-light);
}

.legal-page p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--red);
  text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }

.legal-page ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.legal-page ul li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--grey-light);
  line-height: 1.8;
  padding-left: 1.2rem;
  position: relative;
}
.legal-page ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
}

.legal-notice-box {
  background: rgba(204,26,26,0.07);
  border: 1px solid rgba(204,26,26,0.25);
  border-left: 3px solid var(--red);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--grey-light);
  line-height: 1.7;
}

/* Footer legal links */
.footer-legal-link {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
  font-family: 'Barlow', sans-serif;
}
.footer-legal-link:hover { color: var(--red); }

/* ================================================================
   🌓  THEME TOGGLE BUTTON
   ================================================================ */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--grey-dark);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  border-color: var(--red);
  transform: scale(1.1);
  box-shadow: 0 4px 20px var(--shadow-red);
}

/* Im hellen Theme etwas anpassen */
[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

/* Leichte Übergänge für alle häufig betroffenen Elemente */
nav, footer, .service-card, .why-img-box,
.cb-inner, #cookie-banner, .legal-page,
.stats-strip, section {
  transition: var(--theme-transition);
}

/* Helles Theme: Hero-Hintergrund anpassen */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(204,26,26,0.08) 0%, transparent 70%),
    linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
}

[data-theme="light"] .hero-grid-lines {
  background-image:
    linear-gradient(rgba(204,26,26,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,26,26,0.06) 1px, transparent 1px);
}

/* Helles Theme: Service-Karten Schatten */
[data-theme="light"] .service-card {
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Helles Theme: Nav */
[data-theme="light"] nav {
  background: rgba(240,240,240,0.95);
  border-bottom-color: rgba(204,26,26,0.15);
}

/* Helles Theme: Nav-Links sichtbar machen */
[data-theme="light"] .nav-links a {
  color: #222222;
}
[data-theme="light"] .nav-links a:hover {
  color: var(--black);
}
[data-theme="light"] .nav-links a.active {
  color: var(--black);
}
[data-theme="light"] .nav-cta {
  color: var(--white) !important; /* Weißer Text auf rotem Button bleibt */
}
/* Mobile Drawer im Light Mode */
[data-theme="light"] .nav-drawer {
  background: rgba(240,240,240,0.97);
}
[data-theme="light"] .nav-drawer a {
  color: #222222;
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-drawer a:hover {
  color: var(--red);
}
/* Burger-Button im Light Mode */
[data-theme="light"] .burger span {
  background: #222222;
}

/* Helles Theme: Formularfelder */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.15);
  color: var(--white); /* white ist im light-theme #111 */
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: rgba(204,26,26,0.04);
  border-color: var(--red);
}

/* Helles Theme: Cookie-Banner */
[data-theme="light"] #cookie-banner {
  background: #fff;
  border-color: rgba(204,26,26,0.2);
}

/* Helles Theme: stats-strip bleibt rot – gut so */

/* Helles Theme: Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--grey-dark); }