/* =========================================================
   Singh Gartenbau – Zentrale Stylesheet (alle Seiten)
   ========================================================= */

/* ---------- CSS-Variablen (Light / Default) ---------- */
:root {
  --card: #ffffff;
  --ring: #7c9082;
  --input: #ffffff;
  --muted: #e8e6e1;
  --accent: #bfc9bb;
  --border: #e8e6e1;
  --radius: 0.35rem;
  --chart-1: #7c9082;
  --chart-2: #a0aa88;
  --chart-3: #8b9d83;
  --chart-4: #6b7280;
  --chart-5: #e8e6e1;
  --popover: #ffffff;
  --primary: #7c9082;
  --sidebar: #fafaf8;
  --spacing: 0.23rem;
  --font-mono: JetBrains Mono, Courier New, monospace;
  --font-sans: Antic, ui-sans-serif, sans-serif, system-ui;
  --secondary: #ced4bf;
  --background: #f8f7f4;
  --font-serif: Signifier, Georgia, serif;
  --foreground: #1a1f2e;
  --destructive: #c73e3a;
  --shadow-blur: 2px;
  --shadow-color: #1a1f2e;
  --shadow-spread: 0px;
  --letter-spacing: 0em;
  --shadow-opacity: 0.04;
  --shadow-offset-x: 0px;
  --shadow-offset-y: 1px;
  --muted-foreground: #6b7280;
  --accent-foreground: #1a1f2e;
  --primary-foreground: #ffffff;
  --secondary-foreground: #1a1f2e;
  --destructive-foreground: #ffffff;
  /* Knallgrün-Markenfarbe (Akzent: CTA, Topbar, Badges, Footer) */
  --brand: #6aa31f;
  --brand-dark: #517d17;
  --brand-light: #8bc34a;
  --brand-foreground: #ffffff;
  --footer-bg: #1f3d1a;
  --topbar-h: 40px; /* echte Höhe wird per JS gesetzt */
}

/* ---------- Globales Reset / Box-Sizing ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px; /* Platz für Sticky Header bei Ankern */
  scrollbar-color: var(--brand) var(--muted); /* Firefox: Daumen grün, Spur hell */
  scrollbar-width: thin;
}

/* Grüner Scrollbalken (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 6px;
  border: 2px solid var(--muted); /* schlankerer Daumen mit Rand */
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ---------- Typografie ---------- */
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--topbar-h); /* Platz für die fixe Topbar */
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--foreground); }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Layout-Hilfen ---------- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

section { padding: clamp(2.5rem, 6vw, 5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background-color: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 4px 14px rgba(106, 163, 31, 0.3);
}
.btn-primary:hover { background-color: var(--brand-dark); }

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-call {
  background-color: var(--brand);
  color: var(--brand-foreground);
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(106, 163, 31, 0.3);
}
.btn-call:hover { background-color: var(--brand-dark); }

/* ---------- Header / Navigation (Sticky) ---------- */
.site-header {
  position: sticky;
  top: var(--topbar-h); /* klebt unter der Topbar */
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: top 0.35s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
/* Topbar versteckt → Header rückt nach ganz oben */
body.tb-hidden .site-header { top: 0; }
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(26, 31, 46, 0.08);
}

/* Dreispaltig: Logo links | Navigation mittig | Aktionen rechts.
   Volle Breite mit Rand-Padding, damit Logo/Button an den Seitenrand rücken. */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto; /* Logo links füllt Platz, Nav+Aktionen rechts */
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.8rem 2.5rem;
}

/* Logo: Größe HIER per height ändern. Negative margin-block lässt das Logo
   über die Header-Leiste hinausragen (Overlap), ohne den Header höher zu machen. */
.logo-link {
  display: flex;
  align-items: center;
  justify-self: start;
  position: relative;
  z-index: 5;
  margin-block: -38px -47px; /* Overlap oben/unten – leicht nach unten versetzt für optische Mitte */
}
.logo-link img { height: 170px; width: auto; } /* <-- Logo-Größe */

/* Navigation (rechts) */
.main-nav { justify-self: end; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.main-nav a {
  color: var(--foreground);
  font-weight: 600;
  font-size: 1.3rem;
}
.main-nav a:hover { color: var(--brand-dark); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (linksbündig) ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-start; /* Inhalt oben statt mittig → Überschrift höher */
  justify-content: flex-start;
  text-align: left;
  color: #ffffff;
  /* Scrim links dunkler → rechts heller für Lesbarkeit des linken Textes */
  background-image: linear-gradient(90deg, rgba(18, 26, 18, 0.82) 0%, rgba(18, 26, 18, 0.55) 45%, rgba(18, 26, 18, 0.2) 100%), url("Media/Ergebniss3.jpeg");
  background-size: cover;
  background-position: center;
  padding: clamp(3.5rem, 11vh, 8rem) clamp(1.5rem, 5vw, 5.5rem) 3rem;
}
.hero-content { max-width: 760px; }
/* Vertrauenszeile (Erfahrung + Google) unter dem Untertitel */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.hero-trust .review-badge { font-size: 1rem; padding: 0.45rem 1.05rem; }
.hero h1 {
  color: #ffffff;
  font-size: clamp(3.4rem, 8vw, 6.5rem); /* sehr groß */
  line-height: 1.05;
  margin-bottom: 0.35em;
}
.hero p { color: #f0f0f0; font-size: 1.3rem; }
/* .hero .hero-sub: muss spezifischer sein als ".hero p" (sonst überschrieben) */
.hero .hero-sub { margin-top: 0.4rem; font-size: clamp(1.4rem, 2.1vw, 1.8rem); }
/* Hero-Buttons größer */
.hero .btn { padding: 1.1rem 2.2rem; font-size: 1.22rem; }

/* Typewriter-Zeile – groß, aber einzeilig (sonst Umbruch beim längsten Satz).
   ".hero ..." schlägt ".hero p". */
.hero .hero-typewriter {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); /* groß, passt aber in eine Zeile */
  font-weight: 700;
  color: var(--brand-light);
  white-space: nowrap; /* kein Zeilenumbruch auf Desktop */
  min-height: 1.4em; /* kein Springen während des Tippens */
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
/* Auf schmalen Screens Umbruch erlauben + Platz für 2 Zeilen reservieren */
@media (max-width: 640px) {
  .hero .hero-typewriter { white-space: normal; min-height: 2.7em; }
}
.tw-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: var(--brand-light);
  animation: tw-blink 1s steps(1) infinite;
}
@keyframes tw-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Hero-Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.btn-hero-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Vertrauens-Badge */
.badge {
  display: inline-block;
  background-color: var(--brand);
  color: var(--brand-foreground);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(106, 163, 31, 0.35);
}

/* ---------- Über uns ---------- */
.about { background-color: var(--sidebar); }
/* breiter als Standard-Container + linker Abstand zum Rand, linksbündiger Text */
.about .container {
  width: 100%;
  max-width: none;
  margin-inline: 0; /* nicht zentriert: bis fast zum rechten Rand ziehen */
  text-align: left;
  padding-left: clamp(1.5rem, 5vw, 5rem);
  padding-right: clamp(5.5rem, 6vw, 7rem); /* Platz für Side-Rail (Squircle-Leiste) + Abstand zum Rand */
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.trust-pill {
  background-color: var(--muted);
  color: var(--accent-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
}

/* ---------- Karten-Grid (Dienstleistungen) ---------- */
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title p { color: var(--muted-foreground); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-spread) rgba(26, 31, 46, var(--shadow-opacity));
}
.card h3 { color: var(--brand-dark); }

.service-photo {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.5rem auto 0;
  max-width: 720px;
  width: 100%;
}

/* ---------- Bild-Galerie (Referenzen) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.7), transparent 60%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ---------- Kontakt-Kurzblock ---------- */
.contact-short { background-color: var(--sidebar); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info p { margin-bottom: 0.6rem; }
.contact-info strong { color: var(--primary); }

/* ---------- Kontaktformular ---------- */
.form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* DSGVO-Einwilligung */
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.link-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--brand-dark);
  text-decoration: underline;
  cursor: pointer;
}

/* Status-Meldung nach dem Absenden */
.form-status {
  margin-top: 1rem;
  margin-bottom: 0;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok { color: var(--brand-dark); }
.form-status.err { color: var(--destructive); }

/* ---------- Standort ---------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  max-width: 480px;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.hours-table th { color: var(--primary); }
/* Heutiger Tag hervorgehoben (JS setzt .is-today, main.js #13) */
.hours-table tr.is-today td {
  background-color: var(--muted);
  font-weight: 700;
  color: var(--brand-dark);
}
.hours-table tr.is-today td:first-child::after {
  content: " · heute";
  font-weight: 600;
  color: var(--brand);
}
.hours-table .closed { color: var(--destructive); font-weight: 600; }

/* Live-Status-Badge „Jetzt geöffnet / geschlossen" (main.js #14) */
.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}
.hours-status:empty { display: none; } /* solange JS nichts gesetzt hat */
.hours-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.hours-status.is-open {
  color: var(--brand-dark);
  background: rgba(106, 163, 31, 0.12);
}
.hours-status.is-closed {
  color: var(--destructive);
  background: rgba(199, 62, 58, 0.10);
}
/* dezenter Puls am Punkt, wenn geöffnet (bei reduzierter Bewegung aus) */
@media (prefers-reduced-motion: no-preference) {
  .hours-status.is-open::before { animation: status-pulse 2s ease-in-out infinite; }
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(106, 163, 31, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(106, 163, 31, 0); }
}

.page-header {
  /* Wolken-Hintergrund (Media/Clouds.jpg) + heller Schleier für Lesbarkeit.
     url() ist relativ zur style.css (Root) → gilt auf allen Seiten. */
  background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)), url("Media/Clouds.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--footer-bg);
  color: #d8e0d4;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: #ffffff; }
.footer-grid a { color: #bfc9bb; }
.footer-grid button.link-btn {
  background: none;
  border: none;
  color: #bfc9bb;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}
.footer-grid button.link-btn:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aab0b8;
}
.ig-link { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Modals (Impressum / Datenschutz) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 31, 46, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-content {
  background-color: var(--card);
  color: var(--foreground);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}
.modal-content h2 { color: var(--primary); }
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--foreground);
  line-height: 1;
}

/* ---------- Cookie-Banner ---------- */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 31, 46, 0.65);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.cookie-overlay.show { display: flex; }
.cookie-box {
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(26, 31, 46, 0.25);
}
.cookie-box h3 { color: var(--primary); }
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- Utility-Topbar (über dem Header) ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: var(--brand);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 300;          /* dünne Schrift */
  letter-spacing: 0.04em;    /* knallig/klar, aber nicht zu fett */
  transition: transform 0.35s ease;
}
/* Slide-out beim Runterscrollen (JS togglet body.tb-hidden) */
body.tb-hidden .topbar { transform: translateY(-100%); }

.topbar a { color: #ffffff; }
.topbar-contact a:hover { color: #ffffff; text-decoration: underline; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* alles mittig, in einer Reihe nebeneinander */
  gap: 1.5rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.topbar-social { display: flex; gap: 0.5rem; align-items: center; }
/* Pipe-Trenner zwischen Kontakt-Text und Social-Buttons in der Topbar */
.topbar-sep { color: rgba(255, 255, 255, 0.55); font-weight: 300; user-select: none; }

/* Mini-Squircle-Buttons in der Topbar (Instagram/Facebook) */
.tbar-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  clip-path: url(#squircleClip);
  color: #ffffff;
  transition: transform 0.2s ease;
}
.tbar-btn:hover { transform: scale(1.12); text-decoration: none; }
.tbar-btn svg { width: 17px; height: 17px; }

/* ---------- Schwebende Kontakt-/Social-Leiste (rechts, Squircle-Buttons) ---------- */
.side-rail {
  position: fixed;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  z-index: 90;
}
/* Glas-Container */
.side-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
/* Einzel-Button (Squircle via clip-path) */
.srail-btn {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  clip-path: url(#squircleClip);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.srail-btn:hover {
  transform: scale(1.1) translateX(-6px); /* poppt nach links Richtung Inhalt */
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.srail-btn svg { width: 28px; height: 28px; }
/* Plattform-Farbverläufe */
.srail-phone { background: linear-gradient(135deg, #6aa31f, #3f6312); }
.srail-mail { background: linear-gradient(135deg, #4b5563, #1f2937); }
.srail-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.srail-facebook { background: linear-gradient(135deg, #1877f2, #0d4fa8); }
.srail-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

/* ---------- Google-Bewertungs-Badge ---------- */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 6px rgba(26, 31, 46, 0.08);
}
.review-badge .stars { color: #f5b400; letter-spacing: 1px; }

/* ---------- Google-Bewertungen Karussell ("Revolver") ---------- */
.reviews { background: var(--sidebar); }
.review-carousel {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rc-viewport { overflow: hidden; flex: 1; }
.rc-track {
  display: flex;
  list-style: none;
  transition: transform 0.5s ease;
}
/* Slide = 50% der Viewport-Breite → linker + rechter Nachbar je zur Hälfte sichtbar */
.rc-slide { flex: 0 0 50%; padding: 0.5rem; position: relative; }
.rc-slide.is-current { z-index: 2; }
.rc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(26, 31, 46, 0.07);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Nachbar-Karten abgedunkelt + leicht verkleinert (aktive hebt sich ab) */
.rc-slide:not(.is-current) .rc-card { opacity: 0.45; transform: scale(0.9); }
.rc-stars { color: #f5b400; letter-spacing: 2px; font-size: 1.25rem; margin-bottom: 0.5rem; }
.rc-quote { font-size: 1.2rem; font-style: italic; margin: 0.75rem 0 1rem; color: var(--foreground); }
.rc-author { font-weight: 700; color: var(--brand-dark); margin: 0; }
.rc-source { font-size: 0.85rem; color: var(--muted-foreground); margin: 0; }
.rc-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.rc-arrow:hover { background: var(--brand-dark); transform: scale(1.08); }
.rc-dots {
  position: absolute;
  bottom: -1.9rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.rc-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rc-dot.is-active { background: var(--brand); transform: scale(1.2); }

@media (max-width: 860px) {
  .rc-slide { flex: 0 0 70%; } /* weniger Peek auf Tablet */
}
@media (max-width: 520px) {
  .rc-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .rc-quote { font-size: 1.05rem; }
  .rc-slide { flex: 0 0 86%; } /* fast volle Karte auf Handy */
}

/* ---------- Service-Karten mit Bild + vertikalem Label ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover img { transform: scale(1.06); }
.service-card .vlabel {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--brand);
  color: var(--brand-foreground);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 1rem 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-top-left-radius: var(--radius);
}

/* ---------- Karten-Akzentbalken oben ---------- */
.card {
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background-color: var(--brand);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

/* ---------- Interaktive Karte (OpenStreetMap) ---------- */
.map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 8px rgba(26, 31, 46, 0.08);
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.map-note {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}
.map-actions { margin-top: 0.85rem; }

/* ---------- Standort: Karte | Öffnungszeiten | Adresse ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr; /* Karte breit, Zeiten + Adresse je schmaler */
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: 1.5rem;
}
.location-map iframe { height: 100%; min-height: 380px; }
/* Tabelle füllt ihre Spalte (statt fester 480px) */
.location-hours .hours-table { max-width: none; margin-top: 1rem; }
.location-address p { margin-bottom: 0.8rem; }

/* Mittel: Karte volle Breite oben, Zeiten + Adresse 2-spaltig darunter */
@media (max-width: 1100px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
  .location-map { grid-column: 1 / -1; }
}
/* Schmal: alles gestapelt */
@media (max-width: 640px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map { grid-column: auto; }
}

/* ---------- Lightbox (Galerie) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 12, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-item { cursor: pointer; }

/* ---------- Responsive / Mobile ---------- */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  /* Header auf Mobile wieder zweispaltig: Logo links, Aktionen rechts */
  .header-inner {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
  }
  .logo-link { margin-block: 0; } /* kein Overlap auf Mobile */
  .logo-link img { height: 64px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 6%;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .side-rail { display: none; } /* auf Mobile Platz sparen */
  .topbar-inner { justify-content: center; }
  .topbar-contact { gap: 0.85rem; font-size: 0.8rem; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .topbar-social { display: none; }
  .topbar-sep { display: none; } /* Trenner mit ausblenden, wenn Social weg ist */
}

/* ---------- Dienstleistungen-Tabelle (Akkordeon) ---------- */
.services-accordion {
  max-width: 720px;
  margin: 1.5rem auto 0;
}
.services-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--brand);
  color: var(--brand-foreground);
  border: none;
  border-radius: var(--radius);
  padding: 0.95rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 14px rgba(106, 163, 31, 0.3);
  transition: background-color 0.2s ease;
}
.services-toggle:hover { background-color: var(--brand-dark); }
.services-toggle-icon {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 0.85rem;
}
.services-toggle[aria-expanded="true"] .services-toggle-icon { transform: rotate(90deg); }

.services-table-panel {
  overflow: hidden;
}
.services-table-panel[hidden] { display: none; }

.services-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.services-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
}
.services-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.services-table tr:last-child td { border-bottom: none; }
.services-table tr:hover td { background-color: var(--muted); }
.services-table td::before {
  content: "🌿";
  margin-right: 0.6rem;
}

/* ---------- Navi-Dropdown (Hover) mit Leistungs-Tabelle ---------- */
.has-dropdown { position: relative; }
/* unsichtbare Brücke, damit Hover beim Übergang Navi → Tabelle nicht abreißt */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.8rem;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 360px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(26, 31, 46, 0.16);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.has-dropdown:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-services-table { width: 100%; border-collapse: collapse; }
.nav-services-table td { border-bottom: 1px solid var(--border); }
.nav-services-table tr:last-child td { border-bottom: none; }
.nav-services-table a {
  display: block;
  padding: 0.65rem 0.95rem;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 0.1rem);
}
.nav-services-table a:hover {
  background: var(--muted);
  color: var(--brand-dark);
  text-decoration: none;
}

/* ---------- Intro / CTA: Text + Bild nebeneinander ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr; /* Bild rechts deutlich breiter */
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  text-align: left;
}
.split-media {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.split h2 {
  color: var(--brand-dark);
  font-size: clamp(2rem, 3.2vw, 2.9rem); /* größere Überschrift */
}
.split p { font-size: 1.15rem; } /* größerer Fließtext */
.split .lead-sub {
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: -0.25rem;
  margin-bottom: 1.25rem;
}

/* CTA-Block (Bild links, Text rechts auf Sidebar-Fläche) */
/* breiter als Standard-Container + linker Abstand zum Rand */
.cta-section .container {
  width: 100%;
  max-width: none;
  margin-inline: 0; /* nicht zentriert: bis fast zum rechten Rand ziehen */
  padding-left: clamp(1.5rem, 5vw, 5rem);
  padding-right: clamp(5.5rem, 6vw, 7rem); /* Platz für Side-Rail (Squircle-Leiste) + Abstand zum Rand */
}
.cta-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* Bild links deutlich breiter */
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cta-img {
  background-size: cover;
  background-position: center;
  min-height: 520px; /* größeres Bild */
}
.cta-text {
  background: var(--sidebar);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-text h2 {
  color: var(--brand-dark);
  font-size: clamp(2rem, 3.2vw, 2.9rem); /* größere Überschrift */
}
.cta-text p { font-size: 1.15rem; } /* größerer Fließtext */

/* ---------- Leistungs-Buttons (Pillen-Grid) ---------- */
.service-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand);
  color: var(--brand-foreground);
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(106, 163, 31, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.service-btn::before { content: "→"; font-weight: 700; }
.service-btn:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- Leistungs-Detailseite ---------- */
.leistung-page {
  max-width: 820px;
  margin-inline: auto;
}
.leistung-intro p { font-size: 1.12rem; }
.leistung-page h2 { color: var(--brand-dark); margin-top: 2rem; }
.leistung-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.75rem;
  margin-top: 1rem;
}
.leistung-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.leistung-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}
@media (max-width: 620px) {
  .leistung-list { grid-template-columns: 1fr; }
}

/* ---------- Leistungs-Uebersicht: Karten-Grid ---------- */
.leistung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.leistung-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.3rem);
  padding: 1.85rem 1.6rem 1.7rem;
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(26, 31, 46, 0.05);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
/* Akzent-Balken oben, wächst beim Hover von links */
.leistung-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.leistung-card:hover::before { transform: scaleX(1); }
.leistung-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(26, 31, 46, 0.15);
  border-color: var(--brand);
  text-decoration: none;
}

/* Icon-Badge (gerundetes Quadrat mit grünem Tint) */
.lc-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.9rem;
  line-height: 1;
  border-radius: 16px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, rgba(106, 163, 31, 0.16), rgba(139, 195, 74, 0.22));
  border: 1px solid rgba(106, 163, 31, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}
.lc-icon .lc-svg { width: 30px; height: 30px; }
.leistung-card:hover .lc-icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, rgba(106, 163, 31, 0.28), rgba(139, 195, 74, 0.34));
}

.leistung-card h3 { color: var(--brand-dark); margin-bottom: 0.4rem; font-size: 1.18rem; }
.leistung-card p {
  color: var(--muted-foreground);
  font-size: 0.97rem;
  flex: 1 0 auto;
  margin-bottom: 1rem;
}
.leistung-card-more {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.leistung-card:hover .leistung-card-more { gap: 0.65rem; }

/* ---------- Bento-Variante (breite Leistungs-Übersicht) ---------- */
.container--wide { width: min(1500px, 94%); }

.leistung-grid--bento {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  gap: 1.25rem;
}
/* Span-Kacheln: Gartenbau groß (2x2), Landschaftsbau + Neupflanzungen breit (2x1) */
.leistung-grid--bento .lc-xl { grid-column: span 2; grid-row: span 2; }
.leistung-grid--bento .lc-wide { grid-column: span 2; }

/* großes Feld: mehr Luft, größeres Icon + Headline, mittig */
.leistung-grid--bento .lc-xl { padding: 2.4rem 2.2rem; justify-content: center; }
.leistung-grid--bento .lc-xl .lc-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}
.leistung-grid--bento .lc-xl .lc-icon .lc-svg { width: 38px; height: 38px; }
.leistung-grid--bento .lc-xl h3 { font-size: 1.7rem; }
.leistung-grid--bento .lc-xl p { font-size: 1.05rem; max-width: 34ch; }

/* Tablet: 2 Spalten, breite Felder über volle Breite */
@media (max-width: 1100px) {
  .leistung-grid--bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .leistung-grid--bento .lc-xl { grid-column: span 2; grid-row: span 1; }
  .leistung-grid--bento .lc-wide { grid-column: span 2; }
  .leistung-grid--bento .lc-xl h3 { font-size: 1.45rem; }
}
/* Handy: alles 1-spaltig, Spans zurücksetzen */
@media (max-width: 620px) {
  .leistung-grid--bento { grid-template-columns: 1fr; }
  .leistung-grid--bento .lc-xl,
  .leistung-grid--bento .lc-wide { grid-column: span 1; }
  .leistung-grid--bento .lc-xl { padding: 1.85rem 1.6rem 1.7rem; }
  .leistung-grid--bento .lc-xl h3 { font-size: 1.3rem; }
  .leistung-grid--bento .lc-xl .lc-icon { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 1.1rem; }
  .leistung-grid--bento .lc-xl .lc-icon .lc-svg { width: 30px; height: 30px; }
}

@media (max-width: 860px) {
  .leistung-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .leistung-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .cta-split { grid-template-columns: 1fr; }
  /* Gestapelt: erst Text + Buttons, dann Bild darunter (sonst kleben CTA-Bild
     und Intro-Bild direkt aufeinander). PC-Layout (>860px) bleibt Bild links. */
  .cta-text { order: 1; }
  .cta-img { order: 2; min-height: 300px; } /* gestapelt nicht zu hoch */
  .split-media { max-height: 360px; }
  /* Sonder-Abstände auf Mobile zurücknehmen, Container wieder zentriert */
  .about .container,
  .cta-section .container {
    width: min(1200px, 92%);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .nav-dropdown { display: none !important; } /* Hover-Dropdown nur Desktop */
}

/* ---------- Suchleiste in der Navi (Uiverse by boryanakrasteva) ---------- */
.input-container {
  width: 220px;
  position: relative;
}
.input-container .icon {
  position: absolute;
  right: 10px;
  top: calc(50% + 5px);
  transform: translateY(calc(-50% - 5px));
  cursor: pointer;
  line-height: 0;
}
.input-container .input {
  width: 100%;
  height: 40px;
  padding: 10px 38px 10px 12px; /* rechts Platz für die Lupe */
  transition: 0.2s linear;
  border: 2.5px solid #000;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #fff;
  color: var(--foreground);
  font-family: inherit;
}
.input-container .input::placeholder { color: #888; }
.input-container .input:focus {
  outline: none;
  border: 0.5px solid #000;
  box-shadow: -5px -5px 0px #000;
}
.input-container:hover > .icon {
  animation: search-anim 1s linear infinite;
}
@keyframes search-anim {
  0%, 100% { transform: translateY(calc(-50% - 5px)) scale(1); }
  50% { transform: translateY(calc(-50% - 5px)) scale(1.1); }
}

/* Trefferliste (Dropdown unter dem Eingabefeld) */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  background: #fff;
  border: 2px solid #000;
  max-height: 320px;
  overflow-y: auto;
  z-index: 250;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.search-results[hidden] { display: none; }
.search-results li a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: var(--foreground);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.search-results li:last-child a { border-bottom: none; }
.search-results li a:hover,
.search-results li a.is-active {
  background: var(--muted);
  color: var(--brand-dark);
  text-decoration: none;
}
.search-empty {
  padding: 0.6rem 0.8rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .input-container { width: 170px; } /* schmaler bei wenig Platz */
}
@media (max-width: 860px) {
  .input-container { display: none; } /* Navi-Suche nur Desktop (Platz) */
}

/* ---------- Footer Startseite: Hintergrundbild + leichter Blur ---------- */
/* url() ist relativ zur style.css (Root) → Pfad gilt auf jeder Seite, genutzt
   aber nur von .site-footer--home (Startseite). */
.site-footer--home {
  position: relative;
  isolation: isolate; /* eigener Stacking-Context für die Pseudo-Layer */
  overflow: hidden; /* skaliertes ::before-Bild nicht seitlich überlaufen lassen */
  background-color: transparent; /* Bild übernimmt */
}
/* Bild-Ebene (leicht unscharf, abgedunkelt) */
.site-footer--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("Media/CreditsBackground.jpg") center / cover no-repeat;
  filter: blur(2px) brightness(0.55);
  transform: scale(1.06); /* überdeckt die weichen Blur-Ränder */
}
/* Grün-Tönung darüber → Text bleibt klar lesbar */
.site-footer--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 36, 16, 0.76);
}
/* Text aufhellen + Schatten für gute Lesbarkeit über dem Bild */
.site-footer--home { color: #edf2e9; }
.site-footer--home p,
.site-footer--home .footer-nav a,
.site-footer--home .footer-grid a { color: #e2ead9; }
.site-footer--home .footer-grid h4,
.site-footer--home p,
.site-footer--home .footer-nav a,
.site-footer--home .footer-bottom,
.site-footer--home .footer-legal .link-btn {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* 4-Spalten-Variante (Startseite) */
.footer-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Navigations-/Social-Listen im Footer */
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: #bfc9bb; }
.footer-nav a:hover { color: #ffffff; }

/* Bottom-Bar zweigeteilt: Copyright links, Rechtliches rechts */
.footer-bottom--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  text-align: left;
}
.footer-bottom--split p { margin: 0; }
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-legal .link-btn {
  background: none;
  border: none;
  color: #cdd5c8;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.footer-legal .link-btn:hover { color: #ffffff; text-decoration: underline; }

@media (max-width: 860px) {
  .footer-grid--4 { grid-template-columns: 1fr 1fr; }
  .footer-bottom--split { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .footer-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Rechtstexte (Datenschutz / Impressum als Seite) ---------- */
.legal-content {
  max-width: 860px;
  margin-inline: auto;
}
.legal-content h2 {
  color: var(--brand-dark);
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--muted);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { margin-top: 1.6rem; font-size: 1.2rem; }
.legal-content p { font-size: 1.02rem; }
.legal-content ul { margin: 0.5rem 0 1.1rem 1.4rem; }
.legal-content li { margin-bottom: 0.4rem; font-size: 1.02rem; }
.legal-content a { color: var(--brand-dark); text-decoration: underline; word-break: break-word; }
.legal-note {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.96rem;
  color: var(--muted-foreground);
}
.legal-note strong { color: var(--foreground); }

/* ---------- Leistungs-Detailseite: Kalla-Style Sektionen ---------- */
/* Seitenkopf: großes Uppercase-H1 + kursiver Subtitle, linksbündig */
.detail-header {
  /* Wolken-Hintergrund + heller Schleier (wie .page-header) */
  background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)), url("Media/Clouds.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.detail-header h1 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.detail-sub {
  font-style: italic;
  color: #2f3a52; /* dunkles Slate – klar lesbar auf dem Wolkenhimmel */
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Abschnitts-Überschrift mit kursivem Unter-Label */
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.1rem; }
.section-head .sub { font-style: italic; color: var(--muted-foreground); }

/* Lead-Satz (fett, größer) */
.lead { font-weight: 700; font-size: 1.2rem; color: var(--foreground); margin-bottom: 1rem; }

/* Detail-Intro 2-spaltig (wie Kalla) */
.detail-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.detail-intro p { font-size: 1.05rem; }
@media (max-width: 760px) { .detail-intro { grid-template-columns: 1fr; } }

/* Grüne Feature-Karten (Pfeil + Titel + Text) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}
.feature-card h3 {
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.feature-card h3::before { content: "→"; color: var(--brand-light); font-weight: 700; }
.feature-card p { color: #e6efdd; margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* FAQ-Boxen (grau, Pfeil + Frage + Antwort) */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.faq-item {
  background-color: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.faq-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 1.08rem;
  color: var(--brand-dark);
  margin-bottom: 0.55rem;
}
.faq-item h3::before { content: "→"; color: var(--brand); font-weight: 700; }
.faq-item p { margin: 0; color: var(--foreground); font-size: 0.97rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* =========================================================
   HANDY-OPTIMIERUNG (nur Smartphones ≤640px)
   Desktop/Tablet-Layout bleibt komplett unangetastet.
   - grüne Utility-Topbar ausblenden → mehr Platz oben
   - Social Media + Schnellkontakt unten ins Menü (per main.js injiziert,
     ersetzt die auf dem Handy ausgeblendete Topbar/Side-Rail)
   - Hero entzerren (kleinere Schrift, Buttons volle Breite)
   ========================================================= */

/* Injizierte Menü-Zeilen: standardmäßig aus (Desktop/Tablet zeigen sie nie) */
.nav-social,
.nav-contact-line { display: none; }

@media (max-width: 640px) {
  /* 1) Grüne Topbar weg – Header rückt nach ganz oben (kein Reserve-Padding) */
  .topbar { display: none; }
  body { padding-top: 0; }
  .site-header { top: 0; }

  /* 2) Menü höher, damit Social-/Kontaktzeile Platz hat */
  .main-nav.open { max-height: 640px; }

  /* Öffnungszeiten + Telefon (kleine Info-Zeile über den Icons) */
  .nav-contact-line {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    padding: 0.95rem 6% 0.15rem;
    border-top: 1px solid var(--border);
  }
  .nav-contact-line a { color: var(--brand-dark); font-weight: 600; }

  /* Social-Icon-Zeile (bunte Squircle-Buttons, aus Side-Rail geklont) */
  .nav-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.85rem 6% 1.1rem;
    background: var(--sidebar);
  }
  /* Klon-Buttons: die .main-nav-a-Regeln (block/border/dunkle Farbe) überschreiben,
     damit die Squircle-Optik erhalten bleibt. (0,2,0) schlägt .main-nav a (0,1,1)) */
  .nav-social .srail-btn {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    color: #fff;
  }
  .nav-social .srail-btn:hover { color: #fff; text-decoration: none; }
  .nav-social .srail-btn svg { width: 24px; height: 24px; }

  /* 3) Hero entzerren – nicht mehr riesig/gequetscht */
  .hero {
    min-height: 80vh;
    padding: 2.5rem 1.4rem 3rem;
  }
  .hero h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); line-height: 1.1; }
  .hero .hero-typewriter { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
  .hero .hero-sub { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn { padding: 0.9rem 1.4rem; font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* 4) Suche zwischen Logo und Sandwich-Menü einblenden. Breite füllt den Platz
     (Länge passte), aber die Skalierung insgesamt etwas kleiner (Höhe/Schrift/Rahmen). */
  .header-actions { flex: 1 1 auto; margin-left: 0.75rem; }
  .input-container { display: block; width: auto; flex: 1 1 auto; }
  .input-container .input {
    height: 34px;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 32px 6px 10px; /* rechts Platz für die (kleinere) Lupe */
    border-width: 2px;
  }
  .input-container .icon svg { width: 16px; height: 16px; }

  /* 5) Gestapelte CTA-Buttons klar trennen (Kontakt-CTA + Detail-CTAs) */
  .cta-text p:last-child,
  .contact-short p:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .cta-text p:last-child { align-items: flex-start; }   /* linksbündiger Block */
  .contact-short p:last-child { align-items: center; }  /* zentrierter Block */
}
