/*
 * WEBOMATOR CMS - Eigentum von Murat Danis / aslan4u.de
 * Jegliche Vervielfaeltigung, Weitergabe oder Verkauf ohne
 * schriftliche Genehmigung ist untersagt.
 * (c) 2024-2026 Murat Danis - Alle Rechte vorbehalten.
 */

/**
 * Duran Bau GmbH - Handwerk mit Praezision
 * CI: Anthrazit / Oliv / Creme, Typografie Montserrat
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors - Duran Bau CI: Anthrazit / Oliv / Creme */
    --color-primary: #14171a;
    --color-secondary: #1e2328;
    --color-accent: #6b8a4e;
    --color-accent-dark: #55703c;
    --color-accent-deep: #33492a; /* dunkles Oliv fuer Text auf hellen Flaechen (WCAG AA) */
    --color-on-accent: #ffffff; /* Textfarbe AUF Akzentflaechen - wird vom :root-Override (design_accent_text) ueberschrieben */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #6b6b6b;
    --color-white: #ffffff;
    --color-off-white: #f4f1ec;
    --color-light-gray: #e8e8e8;
    --color-dark: #0c0e10;

    /* Typography */
    --font-heading: 'Montserrat', system-ui, Arial, sans-serif;
    --font-body: 'Montserrat', system-ui, Arial, sans-serif;

    /* Spacing */
    --section-padding: 150px;
    --container-width: 1200px;
    --container-padding: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-elegant: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* WCAG 2.4.1 - Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--color-primary);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom-right-radius: var(--radius-small);
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0;
}

/* WCAG 2.4.7 - Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Olivfarbene Ueberschriften in dunklen Bereichen */
.page-hero h1,
.page-hero h2,
.page-hero h3,
.cta-section h2,
.cta-section h3 {
    color: var(--color-accent);
}
footer h4 {
    color: var(--color-accent);
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent-deep); /* dunkles Oliv: WCAG-AA auf Weiss/Creme */
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 60px;
    border: none;
    border-top: 2px solid var(--color-accent);
    margin: 0 auto 1.5rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    overflow: visible;
    color: var(--color-white);
    /* Fallback ohne backdrop-filter: solider Header-Ton (design_header_bg) */
    background-color: rgba(var(--header-bg-rgb, 20, 23, 26), 0.94);
    border-bottom: 1px solid rgba(107, 138, 78, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

/* Glas-Effekt: halbtransparenter Header-Ton + Blur (nur wo unterstuetzt).
   Milchglas BLEIBT immer - nur der Grundton ist variabel:
   --header-bg-rgb kommt als "R,G,B"-Triplet aus dem :root-Override
   (Settings-Key design_header_bg, Default 20,23,26 = #14171a). */
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .site-header {
        background-color: rgba(var(--header-bg-rgb, 20, 23, 26), 0.72);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
    }
}

/* Scroll-Zustand (Murat FINAL 2026-07-06): Header sieht in JEDEM
   Scroll-Zustand IDENTISCH aus — immer Milchglas rgba(var(--header-bg-rgb),0.72)
   + blur(12px) saturate(140%) + olivfarbene Unterkante (siehe Basis-Regeln
   oben). .scrolled bekommt daher bewusst KEINE eigenen Optik-Regeln;
   der @supports-Fallback (solide rgba 0.94) greift weiterhin ueber die
   Basis-Regel fuer Browser ohne backdrop-filter. */

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* v4.7.4: Logo BUENDIG mit dem Hero-Text (Murat). Der v4.7.3-Negativ-
   margin am .nav-logo ist ENTFERNT — er zog das Logo per 100vw-Formel weit
   links an den Box-Rand (bei 1920px Boxed: x=220 statt Hero-"K" x=352).
   Neue Loesung ist strukturell, ohne vw-Magie: .duran-hero-inner (und
   .duran-values-inner) in sections/hero.php nutzen jetzt DIESELBE Geometrie
   wie .nav-container (max-width var(--container-width) + padding
   var(--container-padding), border-box). Identische Formel = identische
   Inhalts-Kante auf JEDER Breite: Logo-D und Hero-"K" fluchten exakt.
   Rechnung: Kante = max((W-1200)/2, 0) + 20 vom Box-Rand;
   1920px-Viewport (Boxed 1520, Box ab x=200): 200+160+20 = 380px;
   1366px-Viewport (kein Boxed unter 1600px): 83+20 = 103px. */

/* Logo-Bild (neues Querformat-Logo 1131x317): feste Hoehe, Breite auto =
   keine Verzerrung; display:block + Flex-Zentrierung des Elterncontainers
   (.nav-logo align-items:center) haelt es vertikal mittig.
   Keine Groessenaenderung beim Scrollen (Header immer identisch). */
.nav-logo img {
    height: 56px;
    width: auto;
    display: block;
    transition: var(--transition-normal);
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1.3;
    transition: var(--transition-normal);
}

.nav-logo-sub {
    color: var(--color-white);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    /* v4.7.3: fluides Gap statt fixer 40px — die langen TR-Labels
       (HAKKIMIZDA, HIZMETLER, HIZMET BOELGELERI, REFERANSLAR) muessen
       zwischen 1024 und 1920px einzeilig in den Container passen.
       v4.7.5: Gap-Deckel 40px -> 24px. Gemessen (TR, 1920px): die 7
       Menuepunkte sind 746px breit; mit 6x40px Gap = 987px Menue, dazu
       kam das Logo — der Flex-Shrink STAUCHTE es auf 164px statt
       natuerlicher 199.8px (Verzerrung!) und HAKKIMIZDA klebte mit 9px
       am Logo. Mit 24px-Deckel: 746 + 144 = 890px Inhalt -> Platz fuer
       unverzerrtes Logo (199.8px) + padding-left-Mindestabstand (s.u.)
       + ~15-20px Reserve fuer Browser-Font-Rundung (Montserrat ist
       lokal gehostet, Metriken quasi identisch). Abstand letzter
       Nav-Punkt <-> ILETISIM bleibt im Murat-Soll ~24-40px: 24px. */
    gap: clamp(18px, 2.2vw, 24px);
}

/* v4.7.3: Nav-Punkte auf EINER Hoehe — li als Flex-Zeile zentriert,
   damit kein Menuepunkt hoeher/tiefer sitzt als seine Nachbarn
   (Firefox-Screenshot TR: HAKKIMIZDA hoch, REFERANSLAR tief). */
.nav-menu > li {
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    position: relative;
    padding: 5px 0;
    /* v4.7.3: Label + Chevron als Flex-Zeile — das Chevron-Icon
       (<i class="fa-chevron-down">) bleibt IMMER neben dem Label und
       rutscht nie in eine zweite Zeile. Das ::after-Underline ist
       position:absolute und nimmt am Flex-Layout nicht teil. */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* v4.7.3: Ab Desktop-Nav-Breite duerfen Labels nicht mehr umbrechen
   (einzeilig); unter 1024px (Tablet-Fallback) darf ein sehr langes
   Label intern umbrechen, das Chevron bleibt dank Flex daneben. */
@media (min-width: 1024px) {
    .nav-link {
        white-space: nowrap;
    }

    /* v4.7.5: Nav vom Logo trennen und nach RECHTS ziehen (Murat,
       TR-Screenshot: HAKKIMIZDA klebte an der Logo-Wortmarke).
       - margin-left:auto schiebt das Menue als Block an die rechte
         Container-Kante (Logo behaelt links seine Hero-Fluchtlinie);
         wirkt auch dann noch, falls justify-content am .nav-container
         je geaendert wird.
       - padding-left ist der GARANTIERTE Mindestabstand zum Logo:
         space-between verteilt nur Restplatz (bei TR 1920px waren das
         9px), das Padding haelt die Luecke auch bei 1024-1280px mit
         den langen TR-Labels offen.
       Platz-Rechnung (TR, gemessen; Inhalt = 1160px ab 1240px Viewport,
       real minus ~15px Scrollbar):
       1920px: 199.8 Logo + 890.4 Menue + 48 Padding = 1138 -> ~22px frei;
       1366px: 199.8 + 890.4 + 34.2 = 1124 -> ~36px frei. Kein Ueberlauf. */
    .nav-menu {
        margin-left: auto;
        padding-left: clamp(24px, 2.5vw, 48px);
    }
}

/* v4.7.5: 1024-1199px (TR-Kompakt-Fenster, gap 14px / font 0.78rem):
   das fluide Padding oben (25.6-30px) lief hier im Browser-Test bei
   1024px REAL 13px rechts ueber (Client-Breite 1009 wegen Scrollbar,
   TR-Menue-Inhalt ~741px + Logo 199.8px). Darum hier fester, kleiner
   Mindestabstand: 199.8 + 741 + 12 = ~953 von 969px Inhalt -> passt. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-menu {
        padding-left: 12px;
    }
}

/* v4.7.5: Logo nie mehr quetschen — der Flex-Algorithmus staucht sonst
   das Logo-<a> (gemessen: 164px statt natuerlicher 199.8px bei TR/1920
   = VERZERRTES Logobild, img width:auto bei fester Hoehe 56px).
   Ab 1200px ist rechnerisch immer Platz (s.o.), also hart shrink:0.
   Unter 1200px bleibt das Logo bewusst weich als Notventil: lieber
   minimal gestaucht als Menue-Ueberlauf aus dem Container. */
@media (min-width: 1200px) {
    .nav-logo {
        flex-shrink: 0;
    }
}

/* v4.7.3: 769-1199px kompakter, damit die TR-Labels einzeilig bleiben
   und die Nav nicht aus dem Container laeuft. */
@media (min-width: 769px) and (max-width: 1199px) {
    .nav-menu { gap: 14px; }
    .nav-link { font-size: 0.78rem; letter-spacing: 0.06em; }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   MEGA-MENUE v4.7.0 (ersetzt die schmalen Dropdowns)
   v4.6.0: Hover-Robustheit (Luecken-Bruecke ::before, Schliess-
   Transition-Delay 0.08s)
   v4.7.0: Standorte-Panel vollbreit wie Leistungen (.mega-panel-full-
   Muster, 4-Spalten-Orte-Grid, .mega-locations-all als Abschlusszeile)
   - >=1024px: Panels unter dem Header, JS-gesteuert (.mega-open,
     main.js initMegaMenu); ohne JS greift :hover/:focus-within
     ueber :not(.js-mega) als Fallback
   - 769-1023px: kompakter reiner CSS-Hover-Fallback am Menuepunkt
   - <=768px: komplett inaktiv (Mobile-Menue unveraendert)
   ============================================ */
.nav-dropdown {
    position: relative;
}

/* Panel-Grundstil: Milchglas dunkel + feine Akzent-Oberkante.
   transition-delay 0.08s gilt NUR beim Schliessen (Basis = zu-Zustand):
   Mikro-Ausrutscher mit der Maus lassen das Panel nicht sofort
   wegflackern. Beim Oeffnen setzt der offen-Zustand delay auf 0s. */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    transition-delay: 0.08s;
    background-color: rgba(var(--header-bg-rgb, 20, 23, 26), 0.94);
    border-top: 2px solid var(--color-accent);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
    .mega-panel {
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
    }
}

/* Eintrag: Linien-Icon im 1.5px-Kontur-Kreis (wie .service-icon) +
   Titel (+ Kurzzeile) + Hover: Akzent-Linksborder, Aufhellen, Pfeil */
.mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-left: 2px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mega-item:hover,
.mega-item:focus-visible {
    border-left-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.06);
}

.mega-item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
}

.mega-item-icon i {
    font-size: 1rem;
    color: var(--color-accent);
}

.mega-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega-item-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.35;
}

.mega-item-desc {
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.mega-item-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mega-item:hover .mega-item-arrow,
.mega-item:focus-visible .mega-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Kleines Panel (Ueber uns): Linkliste untereinander */
.mega-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ---- Standorte-Panel (v4.7.0: vollbreit wie das Leistungen-Panel) ----
   Markup includes/header.php: .mega-panel.mega-panel-locations >
   .mega-panel-inner > .mega-grid mit 12 Ort-Karten (.mega-item, nur
   Icon+Titel, keine Desc) + .mega-locations-all als vollbreite
   Abschlusszeile im Grid (grid-column 1/-1).
   Basis (<1024px, Tablet-Fallback): einspaltig kompakt - die Karten
   stapeln als Block-Kinder. >=1024px (unten im Desktop-Block):
   Panel vollbreit (left:0/right:0 wie .mega-panel-full), 4-Spalten-Grid. */

/* Ort-Karten kompakter als normale .mega-item (kleinerer Icon-Kreis,
   engeres Padding) - Hover-Verhalten (Akzent-Linksborder + Aufhellen)
   kommt von .mega-item:hover, Titel faerbt zusaetzlich auf Akzent. */
.mega-panel-locations .mega-item {
    padding: 8px 12px;
    gap: 10px;
}

.mega-panel-locations .mega-item-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.mega-panel-locations .mega-item-icon i {
    font-size: 0.82rem;
}

.mega-panel-locations .mega-item-title {
    font-size: 0.9rem;
    white-space: nowrap;
}

.mega-panel-locations .mega-item:hover .mega-item-title,
.mega-panel-locations .mega-item:focus-visible .mega-item-title {
    color: var(--color-accent);
}

/* "Alle Standorte"-Zeile: vollbreite Abschlusszeile unter den Ort-Karten
   (grid-column 1/-1 greift im Desktop-Grid, stoert als Block-Kind auf
   Tablet nicht), feine Trennlinie oben, zentriert, Akzent wie
   .mega-cta-offer */
.mega-locations-all {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 12px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: color 0.18s ease;
}

.mega-locations-all:hover,
.mega-locations-all:focus-visible {
    color: var(--color-white);
}

.mega-locations-all i {
    font-size: 0.72rem;
}

/* CTA-Spalte "Direkt anfragen" (nur volles Panel, nur Desktop) */
.mega-cta-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 8px;
}

.mega-cta-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 16px;
}

.mega-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background-color: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-small);
    transition: background-color 0.18s ease;
}

.mega-cta-phone:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-on-accent, #ffffff);
}

.mega-cta-offer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: color 0.18s ease;
}

.mega-cta-offer:hover {
    color: var(--color-white);
}

/* --- Desktop >=1024px: volles Panel unter dem Header --- */
@media (min-width: 1024px) {
    /* li statisch -> Panels positionieren sich am .site-header (fixed);
       so bekommt das volle Panel die Header-/Boxed-Breite und beide
       Panels sitzen exakt an der Header-Unterkante (top:100%) */
    .nav-menu .nav-mega {
        position: static;
    }

    .mega-panel-full {
        left: 0;
        right: 0;
    }

    /* Kleines Panel: left:auto = statische Position (unter dem Trigger) */
    .mega-panel-small {
        left: auto;
        min-width: 300px;
        padding: 10px 8px;
        border-radius: 0 0 var(--radius-medium) var(--radius-medium);
    }

    .mega-panel-inner {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 28px var(--container-padding) 30px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 0 36px;
        align-items: start;
    }

    /* 6 Leistungs-Karten: 3 Spalten x 2 Reihen */
    .mega-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px 14px;
        align-content: start;
    }

    /* Rechte Spalte durch feine Linie getrennt */
    .mega-cta {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        padding-left: 32px;
    }

    /* Standorte-Panel (v4.7.0): vollbreit wie .mega-panel-full - dockt
       an der Header-Unterkante an und nimmt die Header-/Boxed-Breite
       ein (li ist static, Panel positioniert sich am .site-header). */
    .mega-panel-locations {
        left: 0;
        right: 0;
    }

    /* Ohne CTA-Spalte: Inner einspaltig (ueberschreibt das 2-Spalten-
       Raster minmax(0,1fr) 280px des Leistungen-Panels). */
    .mega-panel-locations .mega-panel-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 12 Ort-Karten: 4 Spalten x 3 Reihen (ueberschreibt die
       3-Spalten-Basis von .mega-grid oben). */
    .mega-panel-locations .mega-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px 14px;
    }

    /* Abschlusszeile liegt im Markup als Panel-Kind UNTER dem Inner-
       Container (includes/header.php v4.7.0): Trennlinie volle Panel-
       breite, Link zentriert, eigene Innenabstaende statt der knappen
       Basis-Werte (Inner bringt oben schon 30px Padding mit). */
    .mega-panel-locations .mega-locations-all {
        margin-top: 0;
        padding: 14px var(--container-padding) 18px;
    }

    /* Luecken-Bruecke: Das Panel dockt zwar exakt an der Header-Unterkante
       an (li ist static -> top:100% bezieht sich auf den fixed .site-header),
       aber ZWISCHEN Trigger-Unterkante (.nav-link ~26px hoch, vertikal
       zentriert im ~100px-Header) und Header-Unterkante liegen ~36px toter
       Bereich, in dem li-mouseleave feuert. Das ::before ueberbrueckt ihn
       von der Panel-Oberkante nach OBEN (bottom:100% statt fixem top-Wert =
       robust gegen Panel-Hoehen). 30px statt voller 36px, damit die
       Bruecke nie in die Klickflaeche der anderen Nav-Links hineinragt.
       pointer-events erbt vom Panel: Bruecke ist nur aktiv wenn das Panel
       offen ist (sonst pointer-events:none) - genau richtig, sie soll ein
       OFFENES Panel halten, keins oeffnen. */
    .mega-panel::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 30px;
        background: transparent;
    }

    /* Offen: per JS (.mega-open); ohne JS :hover/:focus-within-Fallback.
       transition-delay 0s: Oeffnen startet sofort (der 0.08s-Delay der
       Basis-Regel gilt nur in Richtung Schliessen). */
    .nav-mega.mega-open > .mega-panel,
    .nav-mega:not(.js-mega):hover > .mega-panel,
    .nav-mega:not(.js-mega):focus-within > .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }
}

/* --- Tablet 769-1023px: kompakter CSS-Hover-Fallback am Menuepunkt
       (Mega-Interaktion aus main.js ist hier bewusst inaktiv) --- */
@media (min-width: 769px) and (max-width: 1023.98px) {
    .mega-panel {
        min-width: 280px;
        width: max-content;
        max-width: 340px;
        padding: 8px 6px;
        border-radius: 0 0 var(--radius-medium) var(--radius-medium);
    }

    .mega-item-desc,
    .mega-item-arrow,
    .mega-cta {
        display: none;
    }

    /* Standorte-Trigger liegt rechts im Menue: Panel am rechten Rand
       des li verankern, sonst ragt es aus dem Viewport (li ist hier
       position:relative, left:0 wuerde nach rechts ueberlaufen) */
    .mega-panel-locations {
        left: auto;
        right: 0;
    }

    .nav-dropdown:hover > .mega-panel,
    .nav-dropdown:focus-within > .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }
}

/* --- <=768px: Mega-Menue komplett aus (Mobile-Menue unveraendert) --- */
@media (max-width: 768px) {
    .mega-panel {
        display: none;
    }
}

.nav-cta {
    padding: 12px 25px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent) !important;
}

.nav-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-on-accent, #ffffff) !important;
}

.nav-cta::after {
    display: none;
}

/* Mobile Quick-Actions (neben Hamburger) */
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 15px;
}

.nav-mobile-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-size: 1rem;
    transition: var(--transition-normal);
    flex-shrink: 0;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-mobile-icon i {
    pointer-events: none;
}

.nav-mobile-icon:hover {
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
    transition: var(--transition-normal);
    pointer-events: none;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: inherit;
    transition: var(--transition-normal);
    pointer-events: none;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--color-white);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: var(--color-white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 23, 26, 0.85) 0%,
        rgba(30, 35, 40, 0.7) 50%,
        rgba(20, 23, 26, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    color: var(--color-accent);
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.title-accent {
    display: block;
    font-size: 2rem;
    color: var(--color-accent);
    margin: 0.5rem 0;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-cta .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    opacity: 0.7;
    transition: var(--transition-normal);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scroll-arrow {
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* Hero Features Bar */
.hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 23, 26, 0.85);
    border-top: 1px solid rgba(107, 138, 78, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap: 60px;
    z-index: 2;
}

.feature-item {
    text-align: center;
    color: var(--color-white);
}

.feature-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.feature-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.feature-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* About-Sektion: Hochformat-Logo (4:5) komplett zeigen statt anschneiden.
   v4.7.3: Logo liegt DIREKT auf dem Seitenhintergrund (.about ist
   var(--color-white) = #fff, Bild ist reinweiss) — kein Creme-Hintergrund
   mehr (die Balken links/rechts kamen aus den contain-Restflaechen),
   kein Rahmen-Look, kein Hover-Zoom. Scoped auf .about — der generische
   .image-frame (andere Sektionen) bleibt unveraendert. */
.about .image-frame img {
    object-fit: contain;
    background: transparent;
}

.about .image-frame {
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* Hover-Zoom (Basis: .image-frame:hover img { scale(1.05) }) hier aus */
.about .image-frame:hover img {
    transform: none;
}

/* Olivfarbener Offset-Rahmen (.image-accent) = sichtbarer Rahmen-Look —
   in der About-Sektion ausblenden (Markup bleibt, nur CSS) */
.about .image-frame .image-accent {
    display: none;
}

.image-accent {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    border: 2px solid var(--color-accent);
    z-index: -1;
}

.about-headline {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature .feature-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature .feature-icon i {
    font-size: 1.4rem;
    color: var(--color-accent);
}

.about-feature .feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-feature .feature-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.stat-item {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.8;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--color-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 50px 40px;
    position: relative;
    transition: var(--transition-normal);
    border: 1px solid var(--color-light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: transparent;
}

/* Leistungsseiten Bild-Cards */
.leistung-img-card { box-shadow: 0 4px 20px rgba(0,0,0,0.08); cursor: pointer; }
.leistung-img-card:hover img { transform: scale(1.08); }
.leistung-img-card:hover .leistung-img-overlay { background: linear-gradient(135deg, rgba(107,138,78,0.35), rgba(20,23,26,0.15)); }

.service-card.featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.service-card.featured .service-title,
.service-card.featured .service-icon i {
    color: var(--color-accent);
}

.service-card.featured .service-description,
.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.85);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
}

/* Linien-Optik: olivfarbener Kontur-Kreis statt gefuellter Flaeche */
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 1.4rem;
    color: var(--color-accent);
}

/* Hoehere Spezifitaet: schlaegt den Inline-Style-Block der Unterseiten
   (sections/page-header.php definiert .service-icon mit Oliv-Gradient) */
main .service-icon {
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    box-shadow: none;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.service-features {
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.service-features li i {
    color: var(--color-accent);
    font-size: 0.8rem;
}

.services-cta {
    text-align: center;
    margin-top: 60px;
}

.services-cta p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 23, 26, 0.9) 0%,
        rgba(20, 23, 26, 0.3) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    color: var(--color-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gallery-category {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--color-white);
}

.gallery-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
/* ========================================
   LIGHTBOX v2 - Thumbnails seitlich + Overlay
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-layout {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

/* Hauptbereich (Bild + Pfeile) - nimmt gesamte Breite MINUS Sidebar */
.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
    padding: 20px 60px;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 6px;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.3s;
}

/* Overlay auf dem Bild (wie Gallery-Startseite) */
.lightbox-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 60px 24px 20px;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-content:hover .lightbox-overlay {
    opacity: 1;
}

.lightbox-overlay-info {
    flex: 1;
}

.lightbox-category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.lightbox-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    margin: 0;
    max-width: 500px;
    line-height: 1.5;
}

.lightbox-counter {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 16px;
}

/* Close Button - oben rechts IN der Sidebar */
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 112px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.7;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
    background: rgba(107,138,78,0.3);
    color: var(--color-accent);
}

/* Nav Arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.6;
    z-index: 5;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(107,138,78,0.3);
    color: var(--color-accent);
}

/* Sidebar Thumbnails (rechts, NEBEN dem Bild) */
.lightbox-sidebar {
    width: 100px;
    background: rgba(15,15,25,0.95);
    border-left: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 50px 10px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

.lightbox-sidebar::-webkit-scrollbar { width: 3px; }
.lightbox-sidebar::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

.lb-thumb {
    width: 76px;
    height: 52px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.35;
    transition: all 0.25s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.lb-thumb:hover {
    opacity: 0.75;
    transform: scale(1.06);
}

.lb-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(107,138,78,0.4);
}

/* Play/Pause Button */
.lightbox-controls {
    position: absolute;
    top: 12px;
    right: 160px;
    z-index: 10;
}

.lightbox-play {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.7;
}

.lightbox-play:hover {
    opacity: 1;
    background: rgba(107,138,78,0.3);
    color: var(--color-accent);
}

.lightbox-play.playing {
    color: var(--color-accent);
    opacity: 1;
}

/* Mobile Lightbox */
@media (max-width: 768px) {
    .lightbox-layout {
        flex-direction: column;
    }

    .lightbox-main {
        padding: 10px 40px;
    }

    .lightbox-sidebar {
        width: 100%;
        height: 72px;
        flex-direction: row;
        padding: 8px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .lb-thumb {
        width: 58px;
        height: 44px;
    }

    .lightbox-content {
        max-width: 100%;
    }

    /* v4.8.0 - Schliessen-Button (X) Galerie-Lightbox (gallery.php, button.lightbox-close).
       Vorher 38x42 bei 390px - unter 44px, WCAG 2.2 AA 2.5.8-Verstoss. Gleicher Trick
       wie bei .lightbox-prev/.lightbox-next/.lightbox-play: eigenstaendiger Flex-
       Container zentriert das X-Icon in der gewachsenen Kreisflaeche (border-radius:50%
       bleibt, position:absolute wirkt sich nicht auf Nachbarelemente aus). */
    .lightbox-close {
        right: 8px;
        top: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* v4.7.9 - Nav-Pfeile Lightbox (gallery.php Lightbox-Modal). Vorher 30x38 bei
       390px - unter 44px, WCAG 2.2 AA 2.5.8-Verstoss. position:absolute (left:2px/
       right:2px) -> Vergroesserung wirkt sich nicht auf Nachbarelemente aus, das
       Bild schrumpft nicht. display:inline-flex + align-items/justify-content:center
       zentriert das Icon in der gewachsenen Kreisflaeche (border-radius:50% bleibt). */
    .lightbox-prev,
    .lightbox-next {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    .lightbox-prev { left: 2px; padding: 10px; font-size: 1rem; }
    .lightbox-next { right: 2px; padding: 10px; font-size: 1rem; }

    /* v4.7.9 - Play/Pause-Diashow-Button. Vorher 35x36 bei 390px - unter 44px.
       Gleicher Trick wie oben: eigenstaendiger Flex-Container zentriert das Icon,
       .lightbox-controls (Positions-Wrapper) bleibt unangetastet. */
    .lightbox-play {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* v4.8.0 - right von 50px auf 56px verschoben: .lightbox-close ist durch die
       44px-Vergroesserung oben (vorher 38px breit) jetzt 6px breiter nach links
       gewachsen. Ohne Anpassung wuerde .lightbox-controls (Play-Button) den
       Close-Button um 2px ueberlappen. 56px stellt den vorherigen 4px-Abstand
       zwischen Play- und Close-Button wieder her - keins der beiden Ziele
       schrumpft unter 44px. */
    .lightbox-controls { right: 56px; top: 8px; }

    .lightbox-caption { font-size: 0.9rem; }
    .lightbox-description { font-size: 0.75rem; }
}

/* Gallery Erweiterungen */
.gallery-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.gallery-ext-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-normal);
    z-index: 3;
}

.gallery-item:hover .gallery-ext-link {
    opacity: 1;
    transform: translateY(0);
}

.gallery-ext-link:hover {
    background: var(--color-white);
    color: var(--color-accent);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--color-off-white) 0%, var(--color-white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-card {
    background: var(--color-white);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-details p {
    margin: 0;
    color: var(--color-text-light);
}

.contact-details a {
    color: var(--color-text-light);
}

.contact-details a:hover {
    color: var(--color-accent);
}

.contact-social h4 {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-deep);
    transition: var(--transition-normal);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.social-links a i {
    pointer-events: none;
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
}

/* Map */
.contact-map {
    position: relative;
    height: 300px;
    background: var(--color-light-gray);
    overflow: hidden;
}

.map-consent {
    position: absolute;
    inset: 0;
    background: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.map-consent-content {
    text-align: center;
    padding: 30px;
}

.map-consent-content i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.map-consent-content p {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.map-consent-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 50px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-light-gray);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--color-off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-color: var(--color-accent);
    background: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-error {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Checkbox */
.form-checkbox {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-light-gray);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.checkbox-label input:checked + .checkmark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--color-on-accent, #ffffff);
}

.checkbox-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    position: relative;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-block;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    /* Footer-Ton variabel (Settings-Key design_footer_bg, Default #14171a =
       bisheriger Footer-Ton aus includes/footer.php) */
    background: var(--footer-bg, #14171a);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Footer-Logo-Bild: 120px hoch (neues Logo 1131x317 enthaelt eine
   Claim-Zeile - die braucht Luft, 96px machten sie zu klein), Breite
   auto = keine Verzerrung. Deckt .footer-logo-Klasse UND ein direktes
   <img> im Brand-Block ab (Markup aus includes/footer.php). */
.footer-logo,
.site-footer .footer-brand img {
    height: 120px;
    width: auto;
    display: block;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1.4;
    margin: 0;
}

.footer-brand-sub {
    color: var(--color-white);
    font-weight: 400;
}

.footer-tagline {
    width: 100%;
    color: var(--color-accent);
    font-style: italic;
}

.footer-contact h4,
.footer-links h4,
.footer-social h4 {
    color: var(--color-white);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-accent);
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact address p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact address i {
    color: var(--color-accent);
    width: 20px;
}

.footer-contact address a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact address a:hover {
    color: var(--color-accent);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links ul a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    min-width: 44px;
    min-height: 44px;
    border: 1.5px solid rgba(107, 138, 78, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-normal);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.social-icons a i {
    pointer-events: none;
}

.social-icons a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-legal .divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* ============================================
   COOKIE BANNER v2.0
   ============================================ */
.cb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px 16px 0 0;
}

.cb-cookie-banner.visible {
    transform: translateY(0);
}

.cb-cookie-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 30px 20px;
}

.cb-cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cb-cookie-header i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.cb-cookie-header h4,
.cb-cookie-header .cb-cookie-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 0;
}

.cb-cookie-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cb-cookie-link {
    color: var(--color-accent-deep); /* dunkles Oliv fuer WCAG-Kontrast auf hellem Banner (statt zu hellem Akzent) */
    font-weight: 600;
    text-decoration: underline;
}

.cb-cookie-link:hover {
    color: var(--color-accent-dark);
}

/* Cookie Details (aufklappbar) */
.cb-cookie-details {
    display: none;
    background: var(--color-off-white);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.cb-cookie-details.visible {
    display: block;
}

.cb-cookie-option {
    padding: 15px 0;
}

.cb-cookie-option + .cb-cookie-option {
    border-top: 1px solid var(--color-light-gray);
}

.cb-cookie-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.cb-cookie-option-text {
    flex: 1;
}

.cb-cookie-option-text strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.cb-cookie-option-text small {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Toggle Switch */
.cb-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cb-toggle input { display: none; }

.cb-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--color-light-gray);
    border-radius: 26px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.cb-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.cb-toggle input:checked + .cb-toggle-slider {
    background: var(--color-accent);
}

.cb-toggle input:checked + .cb-toggle-slider::after {
    transform: translateX(22px);
}

.cb-toggle-locked .cb-toggle-slider {
    background: var(--color-accent);
    opacity: 0.7;
    cursor: default;
}

.cb-toggle-locked .cb-toggle-slider::after {
    transform: translateX(22px);
}

/* Cookie Buttons */
.cb-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.cb-cookie-btn {
    padding: 14px 24px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cb-cookie-btn-settings {
    background: var(--color-off-white);
    color: var(--color-text);
    border: 1px solid var(--color-light-gray);
}

.cb-cookie-btn-settings:hover {
    background: var(--color-light-gray);
}

/* Gleichwertigkeit von "Ablehnen" und "Akzeptieren"
 *
 * Vorher war "Alle akzeptieren" dreifach bevorzugt: gefuellter Akzent-
 * hintergrund gegen transparent, kraeftiger Text gegen --color-text-light,
 * und flex:1 gegen feste Breite. Die Aufsichtsbehoerden (DSK-Beschluss,
 * EDSA-Leitlinie 03/2022) verlangen, dass das Ablehnen genauso leicht
 * erreichbar und genauso sichtbar ist wie das Annehmen — ein optisch
 * zurueckgesetzter Ablehnen-Knopf gilt als Dark Pattern.
 * Jetzt: beide gefuellt, beide flex:1, beide gleiche Schriftstaerke.
 * Unterschiedliche Farbtoene sind zulaessig, solange keiner zurueckgesetzt
 * wirkt. Vibranium-Gutachten, Befund C7.
 */
.cb-cookie-btn-reject {
    flex: 1;
    background: var(--color-dark, #14171a);
    color: #ffffff;
    border: 2px solid var(--color-dark, #14171a);
    justify-content: center;
}

.cb-cookie-btn-reject:hover {
    background: #22282e;
    border-color: #22282e;
}

.cb-cookie-btn-accept {
    flex: 1;
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    border: 2px solid var(--color-accent);
    justify-content: center;
}

.cb-cookie-btn-accept:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 138, 78, 0.3);
}

/* Cookie Footer */
.cb-cookie-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--color-light-gray);
    font-size: 0.85rem;
}

.cb-cookie-footer a {
    color: var(--color-text-muted);
}

.cb-cookie-footer a:hover {
    color: var(--color-accent);
}

.cb-cookie-footer span {
    color: var(--color-light-gray);
}

.cb-cookie-save-custom {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    display: none;
    padding: 0;
}

.cb-cookie-save-custom:hover {
    text-decoration: underline;
}

.cb-cookie-save-custom.visible {
    display: inline;
}

/* Cookie Settings Icon */
.cb-cookie-settings-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    background: var(--color-primary);
    color: var(--color-accent);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cb-cookie-settings-icon i {
    pointer-events: none;
}

.cb-cookie-settings-icon:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.cb-cookie-settings-icon.visible {
    display: flex;
}

/* WhatsApp Floating Button */
.cb-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    min-width: 44px;
    min-height: 44px;
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(20, 23, 26, 0.35);
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cb-whatsapp-btn i {
    pointer-events: none;
}

.cb-whatsapp-btn:hover {
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(107, 138, 78, 0.4);
}

/* Back to Top (neu, runder Button) */
.cb-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 33px;
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cb-back-to-top i {
    pointer-events: none;
}

.cb-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cb-back-to-top:hover {
    background: var(--color-primary);
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background: var(--color-white);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--color-light-gray);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-content {
    padding: 30px;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-light-gray);
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content h4 {
    font-size: 1rem;
    margin: 20px 0 10px;
}

.modal-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.modal-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.modal-content ul li {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
    list-style: disc;
}

.modal-content a {
    color: var(--color-accent);
}

.modal-content a:hover {
    text-decoration: underline;
}

.legal-date {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-gray);
    color: var(--color-text-muted);
}

/* scroll-top: jetzt in Cookie-Banner integriert als .cb-back-to-top */

/* ============================================
   MOBILE SLIDE-DOWN MENU v2.0
   ============================================ */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-menu.active {
    max-height: 600px;
}

.mobile-menu-nav {
    padding: 15px 20px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 15px;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--color-off-white);
    color: var(--color-accent-dark);
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* Mobile Submenu */
.mobile-submenu {
    padding: 0 0 8px 30px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--color-text-light);
    font-size: 0.88rem;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
    background: var(--color-off-white);
    color: var(--color-accent-dark);
}

.mobile-submenu-link i {
    color: var(--color-accent);
    font-size: 0.7rem;
    width: 16px;
    text-align: center;
}

/* v4.7.5: Mobile-Akkordeon (Murat: offenes Mobile-Menue zeigte ALLE
   Untermenues aufgeklappt -> Liste zu lang). Untermenues sind jetzt
   standardmaessig ZU (.is-collapsed kommt bereits aus dem PHP-Markup),
   der Chevron-Button daneben klappt auf/zu (main.js
   initMobileAccordion pflegt is-collapsed/is-open + aria-expanded).
   Bewusst <=768px gescoped: Desktop-Mega-Menue bleibt unangetastet
   (dort existiert .mobile-menu ohnehin nicht sichtbar). */
@media (max-width: 768px) {
    .mobile-menu-row {
        display: flex;
        align-items: center;
    }

    .mobile-menu-row .mobile-menu-link {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-submenu-toggle {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        border-radius: 8px;
        color: var(--color-accent);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-submenu-toggle:hover {
        background: var(--color-off-white);
    }

    .mobile-submenu-toggle i {
        font-size: 0.85rem;
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .mobile-submenu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    /* zu: max-height 0 UND padding-bottom 0 (das 8px-Bottom-Padding der
       Basisregel wuerde sonst als leerer Streifen stehen bleiben) */
    .mobile-submenu.is-collapsed {
        max-height: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    .mobile-submenu {
        transition: max-height 0.3s ease, padding-bottom 0.3s ease;
        overflow: hidden;
    }

    /* auf: 420px reicht fuer das laengste Untermenue (Leistungen,
       6 Eintraege x ~38px = ~230px) inkl. Luft */
    .mobile-submenu.is-open {
        max-height: 420px;
    }

    /* v4.7.5: Hoehen-Deckel des offenen Menues war 600px bei
       overflow:hidden — die Liste war schon VOR dem Akkordeon unten
       abgeschnitten (Footer-Socials unerreichbar), mit aufgeklapptem
       Untermenue erst recht. Jetzt: maximal Viewport minus Header
       (~80px) und innen scrollbar. */
    .mobile-menu.active {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.mobile-menu-footer {
    padding: 0 20px 20px;
    border-top: 1px solid var(--color-light-gray);
    margin-top: 5px;
}

.mobile-menu-contact {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    margin-bottom: 12px;
}

.mobile-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--color-off-white);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-contact-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.mobile-menu-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mobile-menu-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: var(--color-accent);
    color: var(--color-on-accent, #ffffff);
}

/* Mobile menu nur auf Mobile zeigen */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
    .nav-mobile-actions {
        display: none !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal Animations */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: var(--transition-elegant);
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up { transform: translateY(50px); }

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translate(0);
}

/* Stagger delay for service cards */
.service-card,
.gallery-item {
    transition-delay: var(--delay, 0s);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .about-grid {
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Navigation v2 - Mobile Header (Scroll-Zustand identisch, s.o.) */
    .site-header {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-mobile-actions {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-logo img {
        height: 46px;
    }

    .nav-logo-text {
        font-size: 0.65rem;
        max-width: 130px;
        line-height: 1.25;
    }

    .nav-logo {
        gap: 8px;
    }

    .nav-cta {
        margin-top: 20px;
    }

    /* Hero - mehr Bild sichtbar auf Mobile */
    .hero {
        height: 110vh;
        min-height: 110vh;
    }

    .hero-image {
        object-position: center 20%;
    }

    .hero-features {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
        padding: 15px 10px;
    }

    .feature-number {
        font-size: 1.5rem;
    }

    .feature-label {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
    }

    .feature-divider {
        width: 1px;
        height: 30px;
    }

    .hero-scroll {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact address {
        justify-content: center;
    }

    .footer-contact address p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Cookie Banner v2 */
    .cb-cookie-inner {
        padding: 20px 15px 15px;
    }

    .cb-cookie-header h4,
    .cb-cookie-header .cb-cookie-title {
        font-size: 1rem;
    }

    .cb-cookie-text {
        font-size: 0.85rem;
    }

    .cb-cookie-actions {
        flex-direction: column;
    }

    .cb-cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .cb-cookie-btn-accept {
        order: -1;
    }

    .cb-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .cb-back-to-top {
        bottom: 82px;
        right: 23px;
        width: 42px;
        height: 42px;
    }

    .cb-cookie-settings-icon {
        left: 20px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }

    /* Modals */
    .modal-container {
        max-height: 85vh;
    }
}

/* v4.7.8 - BEFUND A ERWEITERT: Der 30px-Ueberlauf ist NICHT mobil-only,
   er lebt bei 769-1259px weiter (nachgemessen: 800px -> 30px, 1000px -> 30px).
   Grund: .about-content/.contact-form-wrapper (2. Grid-Spalte) endet layout-
   bedingt IMMER an der rechten Inhaltskante des .container (unabhaengig von
   1- oder 2-Spalten-Grid) - die translateX(50px)-Verschiebung (Zeile 3150)
   ragt also bei jeder Breite unter 1260px um 50-20=30px ueber den Viewport.
   Ab 1260px ist .container auf max-width:1200px gedeckelt und zentriert;
   der dann verfuegbare Aussenabstand ((VW-1200)/2) schluckt die 50px wieder
   (Nullstelle rechnerisch bei VW=1260px: (VW-1200)/2 + 1200 - 20 + 50 = VW).
   Fix greift daher bis 1259px (letzte Breite mit Restueberlauf), Desktop
   ab 1260px behaelt den seitlichen Slide unveraendert. */
@media (max-width: 1259px) {
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-accent {
        font-size: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-card,
    .contact-form-wrapper {
        padding: 30px;
    }

    .image-accent {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
    }
}

/* ============================================
   TEAM SECTION (Startseite)
   ============================================ */
.team-section {
    padding: 80px 0;
    background: var(--color-off-white);
}

.team-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.team-home-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-light-gray);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: row;
}

.team-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.team-home-img {
    width: 150px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.team-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-home-card:hover .team-home-img img {
    transform: scale(1.05);
}

.team-home-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 2.5rem;
}

.team-home-info {
    padding: 22px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-home-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.team-home-position {
    display: block;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.team-home-qual {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.team-home-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-home-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(107, 138, 78, 0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.team-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.team-home-tags span {
    padding: 2px 8px;
    background: var(--color-off-white);
    color: var(--color-text-light);
    border-radius: 20px;
    font-size: 0.65rem;
}

.team-home-membership {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--color-light-gray);
}

.team-home-membership i {
    color: var(--color-accent);
    margin-right: 4px;
}

.team-home-cta {
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .team-home-grid {
        grid-template-columns: 1fr;
    }
    .team-home-card {
        flex-direction: column;
    }
    .team-home-img {
        width: 100%;
        min-height: 200px;
    }
}

/* ============================================
   REVIEWS SECTION (Startseite)
   ============================================ */
.reviews-section {
    padding: 80px 0;
    background: var(--color-white);
}

.reviews-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.reviews-avg {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.reviews-stars-wrap {
    text-align: left;
}

.reviews-stars {
    color: var(--color-accent);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.reviews-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: var(--color-off-white);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--color-light-gray);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.review-stars {
    color: var(--color-accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.review-text {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--color-light-gray);
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.review-name {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-primary);
}

.review-project {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.reviews-cta {
    text-align: center;
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-home-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .team-home-card {
        flex-direction: row;
    }
    .team-home-img {
        width: 100px;
        min-height: 140px;
    }
}

/* ============================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    /* Section Headers kompakter */
    .section-header {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* About Image */
    .about-image-container {
        margin-bottom: 20px;
    }

    /* Contact Card */
    .contact-card {
        padding: 30px 20px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    /* Service Cards */
    .service-card {
        padding: 24px;
    }

    .service-features li {
        font-size: 0.88rem;
    }

    /* Reviews Section */
    .review-card {
        padding: 20px;
    }

    .review-text {
        font-size: 0.9rem;
    }

    /* Hero Description */
    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Hero CTA Buttons */
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 80%;
        text-align: center;
    }

    /* Zahlen / Stats besser lesbar */
    .about-stats .stat-item {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    /* Kleinere Phones */
    .section-title {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .feature-number {
        font-size: 1.3rem;
    }

    .feature-label {
        font-size: 0.55rem;
    }

    .hero-features {
        gap: 10px;
        padding: 12px 8px;
    }

    /* Contact Form */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Service Cards */
    .service-card {
        padding: 20px 16px;
    }

    .service-title {
        font-size: 1.1rem;
    }

    /* Reviews */
    .reviews-avg {
        font-size: 1.8rem;
    }

    .reviews-grid {
        gap: 16px;
    }
}

/* ============================================
   TOUCH TARGETS — MOBILE (WCAG 2.2 AA, 2.5.8 Target Size Minimum)
   Gilt AUSSCHLIESSLICH <=768px. Desktop >=769px bleibt Pixel fuer Pixel gleich.
   Schriftgroessen bleiben unveraendert — nur die Trefferflaeche waechst.
   ============================================ */
@media (max-width: 768px) {

    /* Footer-Rechtslinks (Impressum / Datenschutz / Bewertungen).
       Vorher: 87x23 bzw. 78x23 bei gap:20px — unter 24px und ohne greifende
       Spacing-Ausnahme => harter 2.5.8-Verstoss auf allen 13 Seiten.
       Nachher: 87x44 / 78x44. Inline-styles setzen nur font-size/color/
       text-decoration — keine Kollision, kein !important noetig. */
    .footer-legal-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* Footer-Spaltennavigation (Leistungen / Unternehmen / Einzugsgebiet).
       Vorher: 0.85rem * line-height 1.7 = ~23px hoch bei gap:8px => ebenfalls
       unter 24px. padding-block statt min-height, weil "Alle Orte" ein Inline-
       Icon enthaelt: display:flex wuerde das Leerzeichen vor dem Pfeil
       schlucken (Text-Run wird zu anonymem Flex-Item). Padding auf dem
       blockifizierten Flex-Item zentriert den Text ohne Nebenwirkung.
       23 + 2*11 = 45px. */
    .footer-nav-link {
        padding: 11px 0;
    }

    /* Footer-Kontaktlinks (Telefon / WhatsApp / E-Mail).
       display:flex + align-items:center stehen bereits inline => hier reicht
       min-height, der Text bleibt vertikal zentriert. */
    .footer-contact-link {
        min-height: 44px;
    }

    /* Footer-Social-Icons. Vorher nur ~19px breit (Icon-Glyphe) bei gap:12px —
       die schmalsten Ziele im Footer. Icon-Groesse (1.2rem) bleibt gleich,
       nur die Klickflaeche waechst auf 44x44. Ohne background bleibt es
       optisch unveraendert. 4 Icons: 4*44 + 3*12 = 212px < 342px Spaltenbreite. */
    .footer-social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* Footer-Bewertungs-Mini-Link (0.8rem => ~22px hoch).
       inline-flex + align-items:center stehen bereits inline. */
    .footer-rating-link {
        min-height: 44px;
    }

    /* Sprachumschalter DE/TR im Mobile-Menue.
       Vorher: 63x23 bei gap:8px — Nachbarabstand weit unter 24px, also auch
       die Spacing-Ausnahme verfehlt. padding:0 14px loest beides:
       Hoehe 23 -> 44, Breite 63 -> 91, Ziel-Abstand 8 -> 8+14+14 = 36px. */
    .mobile-menu-lang a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 14px;
    }

    /* Cookie-Banner "Mehr erfahren" — steht INLINE mitten im Satz.
       WCAG 2.5.8 nimmt diesen Fall per Inline-Ausnahme aus, es ist also kein
       Normverstoss, aber 16px sind ein schlechtes Daumenziel bei einem
       rechtlich relevanten Link.
       Vertikales Padding auf einem nicht-ersetzten Inline-Element vergroessert
       die Zeilenbox NICHT => der Absatz bleibt exakt gleich hoch, null
       Layout-Shift. Sichtbar aendert sich nichts, weil .cb-cookie-link keinen
       background hat (nur color + underline). 16 + 2*14 = 44px Trefferhoehe.
       Der negative Inline-Margin gleicht das horizontale Padding aus, damit
       der Wortabstand im Satz unveraendert bleibt. */
    .cb-cookie-link {
        padding: 14px 3px;
        margin: 0 -3px;
    }

    /* v4.7.8 - "Mehr erfahren"-Links der 6 Leistungs-Karten (services.php:133).
       Vorher: 124x24px (inline-flex, kein min-height -> nur die 0.9rem-Textzeile
       zaehlte als Hoehe). Es sind die zentralen Conversion-Links der Startseite.
       .duran-service-link ist bereits display:inline-flex + align-items:center
       (services.php Inline-<style>) und steht als letztes Element der Card vor
       dem Card-Ende -> min-height vergroessert nur die Card selbst (jede Card
       einzeln, da .services-grid hier bereits 1-spaltig ist), kein Sprung
       zwischen Karten, kein Zeilenumbruch, Optik/Textgroesse unveraendert. */
    .duran-service-link {
        min-height: 44px;
    }

    /* v4.7.8 - Cookie-Banner-FUSS "Datenschutz"/"Impressum" (cookie-banner.php:108+110).
       ACHTUNG Verwechslungsgefahr: das ist NICHT .cb-cookie-link (Fliesstext-Link,
       oben bereits gefixt) und NICHT .footer-legal-link (Seitenfooter) - dritte,
       eigene Klasse .legal-link, hier scharf auf .cb-cookie-footer gescoped, damit
       sie sich nicht mit der zweiten .legal-link-Verwendung im Kontaktformular
       (weiter unten) ueberschneidet.
       Vorher: "Datenschutz" 87x23, "Impressum" 78x23 - display:block im Fluss der
       Flex-Row .cb-cookie-footer, harter 2.5.8-Verstoss (23 < 24px).
       display:inline-flex + align-items:center zentriert den Text im gewachsenen
       Ziel; align-items:center auf dem Flex-Container verhindert, dass die "|"-
       Trenner und der "Auswahl speichern"-Button per Default-stretch auf 44px
       mitgezogen werden (nur die Links wachsen, sie bleiben untereinander und mit
       den Nachbarn vertikal zentriert). */
    .cb-cookie-footer {
        align-items: center;
    }

    .cb-cookie-footer .legal-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* v4.7.8 - "Datenschutzerklärung" im Kontaktformular-Consent (contact.php:161).
       Zweite Verwendung derselben Klasse .legal-link, hier auf .checkbox-text
       gescoped (siehe Verwechslungshinweis oben) - steht INLINE mitten im Satz
       ("Ich habe die <a>Datenschutzerklärung</a> gelesen..."), WCAG 2.5.8 Inline-
       Ausnahme greift bereits, kein harter Verstoss, aber 220x16px ist ein
       schlechtes Daumenziel bei einem Pflicht-Consent-Link.
       Gleicher Trick wie .cb-cookie-link: vertikales Padding auf einem nicht-
       ersetzten Inline-Element vergroessert die Zeilenbox nicht -> Absatzhoehe
       bleibt unveraendert, negativer Inline-Margin gleicht das horizontale
       Padding aus. 16 + 2*14 = 44px Trefferhoehe. */
    .checkbox-text .legal-link {
        padding: 14px 3px;
        margin: 0 -3px;
    }

    /* v4.7.9 - Telefon/E-Mail-Links Kontaktdaten (contact.php:46+57, .contact-details a).
       Wichtigster Conversion-Weg (tel:/mailto:) eines Handwerksbetriebs - echte tel:/
       mailto:-Links (kein reiner Text). Stehen als Inline-<a> in einem <p> -> die
       WCAG-Inline-Ausnahme greift formal, 19px ist trotzdem ein schlechtes Daumenziel
       fuer den Hauptkontaktweg. Gleicher Trick wie .cb-cookie-link weiter oben:
       vertikales Padding auf einem nicht-ersetzten Inline-Element vergroessert die
       Zeilenbox NICHT -> Absatzhoehe (.contact-details p) bleibt unveraendert, der
       negative Inline-Margin gleicht das horizontale Padding aus. 19 + 2*14 = 47px. */
    .contact-details a {
        padding: 14px 3px;
        margin: 0 -3px;
    }

    /* v4.7.9 - Breadcrumb-Links "Start"/"Leistungen" (alle Unterseiten, sections/
       page-header.php Inline-Style .page-hero .breadcrumb). Der Breadcrumb-Container
       ist display:flex -> jedes <a> wird als Flex-Kind blockifiziert (CSS Display
       Level 3: spezifiziertes 'inline' -> berechnetes 'block'), die WCAG-Inline-
       Ausnahme greift hier NICHT. Vorher 33x23 / 77x23 bei 390px - harter 2.5.8-
       Verstoss. display:inline-flex wird bei Flex-Kindern ebenfalls blockifiziert
       (-> flex) und behaelt die Fit-Content-Breite; align-items:center zentriert den
       Text in der gewachsenen Box. align-items:center steht am Flex-Container
       (.breadcrumb) bereits inline, darum bleibt der ">"-Trenner (<i>) vertikal
       mittig neben den gewachsenen Links - er verschiebt sich nicht. */
    .page-hero .breadcrumb a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    /* v4.7.9 - Schliessen-Button der Rechtstext-Modals (Datenschutz/Impressum,
       includes/datenschutz.php + includes/impressum.php, .modal-header button.modal-
       close). Vorher 18x28 bei 390px - unter 44px. .modal-header ist bereits
       display:flex mit justify-content:space-between -> der Button waechst nur
       selbst, die Ueberschrift links bleibt unberuehrt. display:inline-flex +
       align-items/justify-content:center zentriert das X-Icon in der gewachsenen
       Flaeche. */
    .modal-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* v4.8.1 - Telefon/E-Mail-Links auf den Rechtsseiten (pages/impressum.php:46+47,
       pages/datenschutz.php:41+43+202+232, .legal-contact-link). NICHT verwechseln mit
       .contact-details a (sections/contact.php, bereits gefixt auf 135x47/161x47) -
       eigene Klasse, weil diese Links in <p> ohne umschliessende Kontakt-Klasse stehen
       (Impressum-Kontaktblock + Datenschutz "Verantwortliche Stelle" + "Ihre Rechte" +
       "Widerspruchsrecht"). Vorher 123x19 / 148x19 - unter 24px, echte tel:/mailto:-
       Links, harter 2.5.8-Verstoss. Gleicher Trick wie .contact-details a: vertikales
       Padding auf einem nicht-ersetzten Inline-Element vergroessert die Zeilenbox NICHT
       -> Absatzhoehe bleibt unveraendert, negativer Inline-Margin gleicht das
       horizontale Padding aus. 19 + 2*14 = 47px. */
    .legal-contact-link {
        padding: 14px 3px;
        margin: 0 -3px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .cookie-banner,
    .scroll-top,
    .hero-scroll,
    .hero-features,
    .lightbox,
    .modal {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}


/* Ungültige Editor-Overrides entfernt (layout, map-type sind keine CSS Properties) */

/* ============================================
   CTA-BUTTONS (Unterseiten) - eckiger, Duran-Oliv
   Hoehere Spezifitaet als der Inline-Style-Block
   in sections/page-header.php (.cta-btn dort 8px/#55703c)
   ============================================ */
main a.cta-btn,
a.cta-btn {
    border-radius: 4px;
}

a.cta-btn:hover {
    background: var(--color-accent-dark);
}

/* ============================================
   BOXED-LAYOUT (Desktop ab 1600px)
   Seite als zentrierter Block auf dunklem Randbereich (--page-bg),
   sichtbarer Rand links/rechts. Mobile/Tablet unveraendert.
   Alle Regeln sind auf body.layout-boxed gescoped (Settings-Key
   design_layout, Klasse wird in index.php/sections/page-header.php
   ausgegeben) - body.layout-full nutzt automatisch die volle Breite,
   weil dann KEINE Boxed-Regel greift (kein Spezifitaets-Gegensteuern
   noetig). Breite: --boxed-width (design_boxed_width, 1200-1920px,
   Default 1520px). Der 1600px-Breakpoint bleibt bewusst statisch -
   CSS-Variablen funktionieren nicht in Media-Queries.
   ============================================ */
@media (min-width: 1600px) {
    body.layout-boxed {
        background-color: var(--page-bg, #0c0e10);
    }

    body.layout-boxed main,
    body.layout-boxed > footer {
        width: 100%;
        max-width: var(--boxed-width, 1520px);
        margin-inline: auto;
        box-shadow: 0 0 0 1px rgba(107, 138, 78, 0.12), 0 0 80px rgba(0, 0, 0, 0.6);
    }

    /* Keine dunklen Luecken zwischen Sektionen im geboxten Bereich */
    body.layout-boxed main {
        background-color: var(--color-white);
    }

    /* Fixed-Header boxt mit: gleiche Breite, mittig ueber dem Inhalt */
    body.layout-boxed .site-header {
        left: calc((100% - var(--boxed-width, 1520px)) / 2);
        right: calc((100% - var(--boxed-width, 1520px)) / 2);
    }

    /* Floating-Buttons bleiben ueber dem Inhalt, nicht im dunklen Rand */
    body.layout-boxed .cb-whatsapp-btn {
        right: calc((100% - var(--boxed-width, 1520px)) / 2 + 30px);
    }

    body.layout-boxed .cb-back-to-top {
        right: calc((100% - var(--boxed-width, 1520px)) / 2 + 33px);
    }

    body.layout-boxed .cb-cookie-settings-icon {
        left: calc((100% - var(--boxed-width, 1520px)) / 2 + 30px);
    }
}

/* ============================================
   KI-KENNZEICHNUNG - dezentes Label auf KI-Bildern, Vorbild tinker24 (aus cb-planer v2.29.0)
   Klein + halbtransparent, Hover/Fokus/Antippen klappt "-generiert" auf
   ============================================ */
.cb-kiw { position: relative; display: inline-block; max-width: 100%; }
.cb-ki-lbl {
    position: absolute; right: 8px; bottom: 8px; z-index: 3;
    display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
    border-radius: 9px; background: rgba(255,255,255,0.55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: rgba(30,20,20,0.75); font: 600 10px/1 var(--font-body, system-ui, sans-serif);
    letter-spacing: .02em; white-space: nowrap; opacity: .7; cursor: default;
    transition: opacity .15s, background-color .15s; pointer-events: auto;
}
/* groessere Tippflaeche ohne groesseres Label */
.cb-ki-lbl::after { content: ""; position: absolute; inset: -12px -6px -6px -12px; }
.cb-ki-lbl .voll { display: inline-block; max-width: 0; overflow: hidden; transition: max-width .2s; }
.cb-ki-lbl:hover, .cb-ki-lbl:focus-visible, .cb-ki-lbl.auf { opacity: 1; background: rgba(255,255,255,0.9); color: rgba(30,20,20,0.95); }
.cb-ki-lbl:hover .voll, .cb-ki-lbl:focus-visible .voll, .cb-ki-lbl.auf .voll { max-width: 110px; }
@media (max-width: 767px) { .cb-ki-lbl { right: 6px; bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .cb-ki-lbl, .cb-ki-lbl .voll { transition: none; } }

/* ============================================
   MOBIL-FEINSCHLIFF 4.11.0 (28.10.2026, Murat am iPhone)
   1) Sprung aus dem Menue (/#about usw.) landet nicht mehr unter der
      festen Kopfzeile: scroll-padding-top wirkt auf alle Anker-Spruenge.
   2) Glas-D im Ueber-uns-Bereich am Handy nicht mehr 500px hoch.
   ============================================ */
html { scroll-padding-top: 96px; }
@media (max-width: 768px) {
    html { scroll-padding-top: 78px; }
    .about .image-frame img { height: 260px; }
}

/* ============================================
   MOBIL STARTSEITE 4.12.0 (Ayşe, 28.10.2026, Murat am iPhone)
   1) Hero-CTAs "Kontakt | Anrufen" nebeneinander, gleich breit, 48px hoch
   2) Kennzahl-Zeile "20+ Jahre Erfahrung" und Werte-Leiste kompakter
   3) Werte-Leiste nicht mehr unter Cookie-/WhatsApp-Knopf: Erster Screen
      endet ueber den schwebenden Knoepfen, die Knoepfe kommen auf der
      Startseite erst nach ~120px Scroll herein (nur wo der Browser
      scroll-getriebene Animationen kann, sonst bleibt alles wie bisher)
   4) Startseite: Abstaende/Ueberschriften auf Handy-Mass
   NUR max-width:768px -> Desktop >= 769px unveraendert.
   Hero-/Services-Regeln stehen inline in sections/*.php (<style> im Body,
   also NACH style.css) -> hier mit Eltern-Praefix (Spezifitaet 0,2,0).
   ============================================ */
@media (max-width: 768px) {
    /* 1) Hero: etwas weniger Luft */
    .duran-hero .duran-hero-inner { padding: 24px 20px 20px; }
    .duran-hero .duran-hero-line { margin: 16px 0 14px; }

    /* 1) CTA-Zeile: Raster mit 2 Spalten, alles andere spannt ueber beide */
    .duran-hero .duran-hero-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
    }
    .duran-hero .duran-hero-text > :not(.duran-hero-btn) { grid-column: 1 / -1; }
    /* ohne Telefonnummer gibt es nur den Kontakt-Knopf -> volle Breite */
    .duran-hero .duran-hero-text > .duran-hero-btn:last-child:not(.duran-hero-btn-call) { grid-column: 1 / -1; }
    .duran-hero .duran-hero-btn {
        justify-content: center;
        gap: 8px;
        min-width: 0;
        height: 48px;
        margin: 20px 0 0;
        padding: 0 10px;
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }
    .duran-hero .duran-hero-btn-call { padding: 0 10px; }
    /* Kurzlabel zeigen, Langtext nur optisch verstecken (Screenreader-Name bleibt) */
    .duran-hero .duran-hero-btn-kurz[hidden] { display: inline; }
    .duran-hero .duran-hero-btn-lang {
        position: absolute;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .duran-hero .duran-hero-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

    /* 2) Kennzahl-Zeile: kleiner, naeher an den Knoepfen */
    .duran-hero .duran-hero-card { margin-top: 18px; padding-top: 14px; gap: 10px; }
    .duran-hero .duran-hero-card-number { font-size: 1.35rem; }

    /* 2) Werte-Leiste 2x2 kompakt: 56px -> 40px je Zeile */
    .duran-values .duran-value { padding: 10px; gap: 8px; }
    .duran-values .duran-value-icon { width: 20px; height: 20px; }

    /* 4) Startseite: Abschnitts-Koepfe 80px -> 36px Abstand zum Inhalt */
    .duran-values ~ section .section-header { margin-bottom: 36px; }
    /* Ueber-uns-Ueberschrift 28.8px/5 Zeilen -> 22px/4 Zeilen */
    .duran-values ~ .about .about-headline { font-size: 1.375rem; line-height: 1.3; margin-bottom: 1rem; }
    /* FAQ-Titel war 32px, alle anderen Abschnittstitel 22.4px; inline gesetzt -> !important */
    .duran-values ~ #faq h2 { font-size: 1.4rem !important; }
    /* Leistungs-Karten: Bild sass mit -32px Rand in 20/16px Card-Padding ->
       oben 12px vom Bild (Kopf!) abgeschnitten. Rand = Card-Padding, Bild 170px. */
    .duran-values ~ .services .duran-service-img { margin: -20px -16px 16px; }
    .duran-values ~ .services .duran-service-img img { height: 170px; }
}
@keyframes dbFloatIn {
    from { translate: 0 120px; }
    to   { translate: 0 0; }
}
@media (max-width: 768px) {
    @supports (animation-timeline: scroll()) {
        body:has(.duran-hero) .cb-whatsapp-btn,
        body:has(.duran-hero) .cb-cookie-settings-icon {
            animation: dbFloatIn linear both;
            animation-timeline: scroll(root block);
            animation-range: 120px 220px;
        }
    }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    body:has(.duran-hero) .cb-whatsapp-btn,
    body:has(.duran-hero) .cb-cookie-settings-icon { animation-timing-function: steps(1, end); }
}
/* 5) Kopfzeile auf kleinen Handys (gilt auf ALLEN Seiten, nur <=380px):
      Mit dem Schrift-Logo (header.php 3.9.0) lief "DURANBAU" bei 360px
      11px unter den Telefon-Knopf (gemessen: Text bis x=189, Knopf ab x=178),
      bei 320px 43px. Seitenrand 20px bleibt (Logo-D und Hero-Text fluchten).
      360px: Logo 163px + 9px Luft + 3 Knoepfe (44+8+44+8+44). */
@media (max-width: 380px) {
    .site-header .nav-mobile-actions { gap: 8px; }
    .site-header .duran-logo-name { font-size: 18px; }
}
/* 320-340px: E-Mail-Knopf aus der Kopfzeile (steht im Menue und im Footer),
   Telefon + Menue bleiben. */
@media (max-width: 340px) {
    .site-header .nav-mobile-icon[href^="mailto:"] { display: none; }
}
/* 6) Handy-Menue (gilt auf ALLEN Seiten): Mit aufgeklapptem "Leistungen"
      ist das Menue 813px hoch, sichtbar 732px (375x812) -> Sprachumschalter
      DE|TR liegt darunter. Wischte man im Menue ueber dessen Ende hinaus,
      scrollte die SEITE mit und main.js schloss das Menue (scrollY > 200) -
      DE|TR war praktisch nicht erreichbar (gemessen: Menue zu, Seite 900px
      gescrollt). overscroll-behavior haelt das Wischen im Menue.
      100dvh statt 100vh: auf dem iPhone ist 100vh hoeher als der sichtbare
      Bereich (Safari-Leiste), das Menue-Ende lag dahinter. */
@media (max-width: 768px) {
    .mobile-menu.active {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overscroll-behavior: contain;
    }
}
/* 7) Seitenende (gilt auf ALLEN Seiten): Der Cookie-Knopf (20/748, 44x44)
      lag ueber dem Footer-Link "Impressum" (24/738, 72x44) - gemessen auf
      /, /tr/, /innenputz bei 375x812. 96px Luft unten -> Impressum endet bei
      y=716, Knopf beginnt bei 748. Inline-Padding footer.php:70 -> !important. */
@media (max-width: 768px) {
    footer.site-footer-main { padding-bottom: 96px !important; }
}

/* ============================================
   ORTSSEITEN-BILDER 4.13.0 (Ayşe, 28.10.2026)
   pages/ort.php: Szenenbild als Kopf des hellen Kastens neben jedem
   Leistungsblock - vorher stand dort nur der Anfrage-Knopf, die Spalte
   wirkte leer. Feste, ruhige Hoehe statt Bildformat, damit alle vier
   Kaesten gleich wirken: Desktop 300px, 769-1024px 240px, Handy 200px.
   Der Ausschnitt (object-position) steht je Bild inline in ort.php.
   Gilt nur fuer .ort-leistung-bild - andere Seiten unberuehrt.
   ============================================ */
.ort-leistung-bild { position: relative; }
.ort-leistung-bild img { width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 1024px) {
    .ort-leistung-bild img { height: 240px; }
}
@media (max-width: 768px) {
    .ort-leistung-bild img { height: 200px; }
    /* 360px: mit 24px Rand brach "Jetzt unverbindlich anfragen" zweizeilig um (72px hoch) */
    .ort-leistung-aktion { padding: 16px !important; }
}
