:root {
    --primary: #005c99;
    --primary-dark: #00426d;
    --secondary: #00a8a8;
    --light-bg: #f5f7fa;
    --text: #222;
    --muted: #666;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* =========================================
   INTER – LOKALER WEBFONT (Latin-Ext)
   ========================================= */

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-500italic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-600italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter/inter-v20-latin-ext-700italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

/* =========================================
   TYPOGRAFIE – GLOBAL
   ========================================= */

/* Grundschrift */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.7;
    padding-top: 100px;
    display: flex;
    flex-direction: column;

    /* Vollflächen-Hintergrund + soft Overlay */
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.25),
            rgba(255,255,255,0.99)
        ),
        image-set(
            url("img/hero-bg.webp") type("image/webp"),
            url("img/hero-bg.jpg") type("image/jpeg")
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 640px) {
    body {
        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,0.25),
                rgba(255,255,255,0.99)
            ),
            image-set(
                url("img/hero-bg.webp") type("image/webp"),
                url("img/hero-bg.jpg") type("image/jpeg")
            );

        background-size: cover;
        background-position: center top;
        background-attachment: scroll; /* vermeidet Mobile-Ruckeln */
        background-repeat: no-repeat;
    }
}

/* Überschriften – einheitlicher Look auf allen Seiten */
h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--primary-dark);
    margin-bottom: 0.4em;
}

/* globale Größen & Abstände */
h1 {
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 600;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
}

p,
li {
    font-size: 0.96rem;
    line-height: 1.7;
}

/* Einheitlicher Absatzabstand */
p {
    margin-bottom: 0.9em;
}


/* kleine Meta-Texte (Breadcrumb, Hinweise) */
.small,
.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Harmonisierung von Überschrift-Abständen */
h1 + p,
h2 + p,
h3 + p {
    margin-top: -2px;   /* minimal enger, wirkt hochwertiger */
}

.section-header h2 {
    margin-bottom: 4px; /* weniger Luft direkt unter H2 */
}

.section-header p {
    margin-top: 4px;    /* leichte Trennung, ruhiger Rhythmus */
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ------------------------------------------ */
/* HEADER / NAVIGATION */
/* ------------------------------------------ */

/* Header ist auf ALLEN Geräten fixiert */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}

.header-inner {
    position: relative; /* Referenz für nav (mobil) */
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 10px 0;
    gap: 24px;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

/* Desktop-Logo */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* (optional, falls du das alte Icon je wieder nutzt) */
.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

/* NAV BASIS (Desktop) */

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

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

/* Micro-Hover für Hauptnavigation */
#mainNav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Laser-Line / Underline-Effekt */
#mainNav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform-origin: center;
    transform: scaleX(0.25) translateY(2px);
    opacity: 0;
    transition:
        transform 220ms ease-out,
        opacity 180ms ease-out;
}

/* Aktiver Menüpunkt – dauerhaft hervorgehoben */
#mainNav a.active,
#mainNav a.is-active {
    color: var(--primary);
}

/* Aktive Seite: Linie dauerhaft sichtbar */
#mainNav a.active::after,
#mainNav a.is-active::after {
    opacity: 1;
    transform: scaleX(1) translateY(0);
}


/* Hover/Focus: Linie „fährt“ ein */
#mainNav a:hover::after,
#mainNav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1) translateY(0);
}

/* Farbveredelung beim Hover (etwas edler als das alte nav a:hover) */
#mainNav a:hover,
#mainNav a:focus-visible {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 92, 153, 0.18);
}

/* Deutlicher Tastatur-Fokus für Links und Buttons */
#mainNav a:focus-visible,
.submenu-toggle:focus-visible,
.btn:focus-visible,
.btn-whatsapp:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Leicht hinterlegte Fläche für fokussierte Nav-Links */
#mainNav a:focus-visible {
    background: rgba(0, 168, 168, 0.06);
}

/* Fokus-Hinterlegung für den Submenü-Pfeil */
.submenu-toggle:focus-visible {
    background: rgba(0, 168, 168, 0.06);
}

/* Dropdown-Menü "Leistungen" */

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.has-submenu > a {
    display: inline-flex;
    align-items: center;
}

/* Pfeil-Button – wir verstecken den echten Text und nutzen ::before für das Symbol */
.submenu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0; /* Text (▾) im Button ausblenden, wir arbeiten mit ::before */
    line-height: 1;
    color: var(--muted);

    /* Für Positionierung des Pfeils */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    transform-origin: center;
    transition:
        transform 180ms ease-out,
        color 160ms ease-out;
}

/* Standard-Pfeil (zu) */
.submenu-toggle::before {
    content: "▾";
    font-size: 0.9rem;
    line-height: 1;
}

/* Wenn das Submenü offen ist, Pfeil nach oben + farbig */
.nav-item.submenu-open > .submenu-toggle {
    color: var(--primary);
}

.nav-item.submenu-open > .submenu-toggle::before {
    content: "▴";
}


/* Submenü Desktop: Dropdown – gläsern */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;

    /* Glasmorphismus wie bei Cards/Boxen */
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-radius: 10px;
    padding: 8px 0;
    display: none;
    z-index: 1001;
}

/* Hover-Farbe an Gesamtlook angepasst */
.submenu a {
    display: block;
    padding: 6px 14px;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.submenu a:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 92, 153, 0.06),
        rgba(0, 168, 168, 0.10)
    );
    color: var(--primary);
}

/* Desktop: Hover zeigt Submenü */
@media (min-width: 1025px) {
    .has-submenu:hover .submenu {
        display: block;
    }
}

.desktop-cta {
    display: flex;
}

/* ------------------------------------------ */
/* BUTTONS */
/* ------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: none;
    text-align: center;

    /* Micro-Lift Basis */
    position: relative;
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* sanftes Anheben + mehr Tiefe beim Hover/Focus */
.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Apple-Style Primary Button */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: #fff;
    border: none;
    border-radius: 999px;
    position: relative;
    overflow: hidden;

    /* depth layer */
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 8px 26px rgba(0, 92, 153, 0.22);

    /* smoother Apple easing */
    transition:
        background 340ms cubic-bezier(.21, .61, .35, 1),
        transform 260ms cubic-bezier(.21, .61, .35, 1),
        box-shadow 320ms cubic-bezier(.21, .61, .35, 1),
        color 200ms ease-out;
}

/* Apple glow layer */
.btn-primary::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -6px;
    height: 12px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.25) 0%,
        transparent 70%
    );
    filter: blur(14px);
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 380ms cubic-bezier(.21, .61, .35, 1),
        transform 380ms cubic-bezier(.21, .61, .35, 1);
}

/* Apple-Style Hover: soft lift, deeper glow, brighter gradient */
.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 100%
    );

    transform: translateY(-2px);

    /* richer depth */
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.14),
        0 12px 34px rgba(0, 92, 153, 0.28);
}

/* glow effect intensifies on hover */
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

/* Outline / Ghost Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: none;
}

/* Apple-Style Hover für Outline-Buttons (z. B. Leistungscards) */
.btn-outline:hover,
.btn-outline:focus-visible {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: #fff;
    border-color: var(--primary-dark);

    /* super smooth Apple-Ease */
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.08),
        0 12px 32px rgba(0, 92, 153, 0.18); /* dezenter Farb-Shadow */

    transition:
        background 260ms cubic-bezier(.21, .61, .35, 1),
        color 200ms ease-out,
        border-color 240ms ease-out,
        transform 240ms cubic-bezier(.21, .61, .35, 1),
        box-shadow 300ms cubic-bezier(.21, .61, .35, 1);
}

/* WhatsApp Button bleibt nah am Original, bekommt aber auch den Micro-Lift */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid #25D366;
    color: #128C7E;
    background: #e7f9f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #d5f3e4;
}

/* Buttons nach Absätzen – angenehmer Rhythmus */
p + .btn,
p + .btn-primary,
p + .btn-outline {
    margin-top: 10px;
}

/* Micro-Interaction – globale Transitions für Links & Buttons */
a,
button,
.btn {
    transition:
        transform 160ms ease-out,
        box-shadow 160ms ease-out,
        background 180ms ease-out,
        color 160ms ease-out,
        border-color 160ms ease-out,
        text-shadow 160ms ease-out;
}

/* ------------------------------------------ */
/* MOBILE NAVIGATION */
/* ------------------------------------------ */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 999px;
}

/* ------------------------------------------ */
/* HERO SECTION */
/* ------------------------------------------ */

.hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid #e1e5ee;
    background: transparent;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 14px;
    color: var(--primary-dark);
    letter-spacing: -0.015em;
    font-weight: 700;
}

.hero-lead {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 640px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;

    /* Glasmorphismus */
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border: 1px solid rgba(255, 255, 255, 0.85); /* dezente Glas-Kante */
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-card {
    background: rgba(255, 255, 255, 0.50); /* transparente Glass-Optik */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}


.hero-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.hero-card ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.hero-card li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: 700;
    margin-top: 1px;
}

/* ------------------------------------------ */
/* SECTIONS / LAYOUT */
/* ------------------------------------------ */

section {
    padding: 64px 0 72px;
}

section.alt-bg {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 1.7rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.section-header p {
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 0;
    line-height: 1.8;
}

/* Mikro-Spacing optimiert für eleganten Flow */
section .section-header {
    margin-bottom: 36px;
}

section .section-header p {
    line-height: 1.75;
}

main {
    flex: 1 0 auto;  /* nimmt den verbleibenden Platz ein */
}

footer {
    flex-shrink: 0;  /* Footer wird nicht zusammengedrückt und bleibt unten sichtbar */
}

/* Grids */

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Cards */

.card {
    background: rgba(255, 255, 255, 0.50); /* leicht transparent */
    backdrop-filter: blur(4px);           /* Glass-Effekt */
    -webkit-backdrop-filter: blur(4px);   /* Safari Unterstützung */

    border-radius: var(--border-radius);
    padding: 18px 18px 24px; /* unten gleich integriert */
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 260px; /* einheitliche Höhenbasis */
}

/* Spezielle Höhe für Werte-Karten (Qualität / Transparenz / Verlässlichkeit) */
.card-werte {
    min-height: 150px;     /* Reduzierte Höhe */
    padding-bottom: 20px;  /* Optional: etwas weniger Luft unten */
}

/* Mobile Ansicht kann nochmal kleiner sein */
@media (max-width: 640px) {
    .card-werte {
        min-height: 120px;
    }
}


.card h3 {
    margin-bottom: 6px;
    font-size: 1.03rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 4px;
    color: var(--muted);
}

/* letzten Absatz im Card-Text ohne extra Abstand */
.card p:last-child {
    margin-bottom: 0;
}

/* Buttons am unteren Rand fixieren */
.card .btn,
.card a.btn {
    margin-top: auto;
    align-self: flex-start; 
}

/* Premium-Hover für Cards – nur Desktop */
@media (min-width: 769px) {
    .card {
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
        border-top-color: var(--secondary);
    }
}


/* Button immer unten in der Card ausrichten */
.card .btn,
.card a.btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Two-Column Layout */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Highlight Box */

/* Gläserne Kontakt-/Info-Box */
.highlight-box {
    background: rgba(255, 255, 255, 0.50); /* transparente Glass-Optik */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    margin-top: 24px;
}


/* Letzte Zeile in Boxen ohne Zusatzabstand */
.highlight-box p:last-child,
.contact-details p:last-child {
    margin-bottom: 0;
}

/* Pill-Liste / Referenzen (falls genutzt) */

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pill {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dde3ee;
    background: #fff;
    color: var(--muted);
}

.ref-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.ref-list li {
    margin-bottom: 6px;
}

/* ------------------------------------------ */
/* SLIDER / GALERIE */
/* ------------------------------------------ */

.slider {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* einzelne Slides – nur die aktive sichtbar */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    position: relative;
    opacity: 1;
}

/* Bilder nicht beschneiden, komplett anzeigen */
.slide img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    display: block;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Textbox im Bild */
.caption {
    position: absolute;
    left: 5%;
    bottom: 5%;
    max-width: 40%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1rem 1.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.caption h2 {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
    color: #eaf4ff;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.4);
}

/* Slider-Beschreibung – Premium Look */
.caption p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

/* Navigationspunkte unter dem Slider */
.slider-nav {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-nav .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-nav .dot.active {
    background: #ffffff;
}

/* (Alte Button-Navigation behalten wir optional für später) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.4rem;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* ------------------------------------------ */
/* FAQ */
/* ------------------------------------------ */

.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.3rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 16px 12px;
    color: var(--muted);
    font-size: 0.9rem;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ------------------------------------------ */
/* KONTAKT / FORMULAR */
/* ------------------------------------------ */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

form {
    background: #fff;
    padding: 18px 18px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.form-row {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccd3e0;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-details {
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-details p {
    margin-bottom: 8px;
}

.contact-details strong {
    color: var(--primary-dark);
}

/* ------------------------------------------ */
/* FOOTER */
/* ------------------------------------------ */

footer {
    padding: 20px 0 28px;
    background: #0b1727;
    color: #cfd6e3;
    font-size: 0.84rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-inner a {
    color: #cfd6e3;
    opacity: 0.9;
}

.footer-inner a:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ------------------------------------------ */
/* PAGE HERO / BREADCRUMB – Premium */
/* ------------------------------------------ */

.page-hero {
    padding: 40px 0 26px;
    border-bottom: 1px solid #e1e5ee;
    background: transparent;
}

.page-hero h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    letter-spacing: -0.015em;
    font-weight: 700;
}

.page-hero p {
    max-width: 720px;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--muted);
}


/* ------------------------------------------ */
/* HELFER-KLASSEN */
/* ------------------------------------------ */

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

/* ------------------------------------------ */
/* MOBILE GLOBAL */
/* ------------------------------------------ */

@media (max-width: 1024px) {

    .header-inner {
        min-height: 70px;
        padding: 8px 0;
    }

    .logo-img {
        height: 42px;
    }

    .desktop-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* ------------------------------------------ */
    /* MOBILE NAV (FIX) */
    /* ------------------------------------------ */
    /* Wir nutzen #mainNav für höhere Spezifität */
    
    #mainNav {
        position: fixed;
        top: 70px;              
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        z-index: 9999;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;

        /* GLAS-LOOK statt hartem Weiß */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        box-shadow: 0 10px 28px rgba(0,0,0,0.16);

        visibility: hidden; 
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
        
        transition: 
            transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
            opacity 0.25s ease,
            visibility 0s linear 0.3s;

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Geöffneter Zustand */
    #mainNav.open {
        transform: scaleY(1);
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }

    /* Links im Mobile-Menü anpassen */
    #mainNav a {
        width: 100%;
        text-align: left;
        padding: 0.6rem 0;
    }

    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* Submenü – Mobile: eingerückt, untereinander */
    .submenu {
        position: static;
        width: 100%;
        border-left: 2px solid #dde3ee;
        padding: 4px 0 4px 12px;
        box-shadow: none;
        border-radius: 0;

        display: none;
        flex-direction: column;
        gap: 4px;
    }

    .submenu.open {
        display: flex;
    }

    #mainNav .submenu {
        align-items: flex-start;
    }

    .submenu a {
        display: block;
        padding: 4px 0;
        white-space: normal;  /* Umbrüche erlaubt */
        width: 100%;
        text-align: left;
    }

    /* Größerer Pfeil & mehr Klickfläche auf Mobile */
    .submenu-toggle {
        padding: 0 6px;
    }

    .submenu-toggle::before {
        font-size: 1.2rem;
    }

    /* Farbe im Menü */
    #mainNav a {
        color: var(--muted);
    }

    #mainNav a:hover,
    #mainNav a:focus,
    #mainNav a.active {
        color: var(--primary);
    }

    /* Layout-Anpassungen */
    .hero {
        padding-top: 32px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Slider auf Mobile: volle Breite & kleinere Caption */
    .slider {
        max-width: 100%;
    }

    .caption {
        max-width: 70%;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .caption h2 {
        font-size: 1.1rem;
    }

    /* Mobile Typografie-Feinschliff */
    section {
        padding: 40px 0 44px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .hero-lead {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Tap-Feedback speziell für Touch-Geräte */
@media (pointer: coarse) {
    #mainNav a,
    .submenu-toggle {
        transition:
            background-color 150ms ease-out,
            color 150ms ease-out;
    }

    #mainNav a:active,
    .submenu-toggle:active {
        background: rgba(0, 92, 153, 0.10);
        color: var(--primary);
    }
}


/* ------------------------------------------ */
/* GALERIE – MASONRY / PINTEREST-STYLE */
/* ------------------------------------------ */

.gallery-grid {
    /* Grid-Einstellungen überschreiben */
    display: block !important;  /* WICHTIG, damit .grid nicht gewinnt */
    margin-top: 12px;

    /* Masonry-Effekt */
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;

    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: var(--shadow);

    /* Verhindert, dass ein Element mitten in der Spalte gebrochen wird */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.gallery-item figcaption {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.gallery-video-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.gallery-video video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-video figcaption {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 8px;
}

/* Responsives Verhalten: weniger Spalten auf kleineren Bildschirmen */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* =========================================
   LIGHTBOX-OVERLAY FÜR DIE GALERIE
   ========================================= */

body.no-scroll {
    overflow: hidden;
}

/* Grund-Overlay (ausgeblendet) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 3000;
    padding: 20px;
    box-sizing: border-box;
}

/* Wenn geöffnet */
.lightbox.open {
    display: flex;
}

/* Bild in der Lightbox */
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    object-fit: contain;
    background: #000;
}

/* Caption unter dem Bild */
.lightbox-caption {
    margin-top: 12px;
    max-width: 90vw;
    color: #f5f5f5;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Schließen-Button oben rechts */
.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 3100;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
}

/* Body nicht scrollen, wenn Lightbox offen */
body.no-scroll {
    overflow: hidden;
}

/* Lightbox-Navigation (Pfeile) */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Globale Gewichtung für Headings / Logo / Nav / Buttons */
h1, h2, h3,
.header-inner .logo span,
nav a,
.btn {
    font-weight: 600;
}

/* Schritt 4 – Typografie-Feinschliff für Überschriften (bereinigt) */

.section-header h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 0.98rem;
    line-height: 1.8;
}

/* Schritt 5 – Galerie- & Lightbox-Typografie */

.gallery-item figcaption,
.lightbox-caption {
    font-size: 0.85rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Letzten Absatz in Sektionen ohne extra Luft */
section p:last-child {
    margin-bottom: 0;
}

/* Nutzerwunsch „Bewegung reduzieren“ respektieren */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================
   ERGÄNZUNG FÜR IMPRESSUM & DATENSCHUTZ
   ========================================= */

/* Legal-Box für rechtliche Inhalte */
.legal-box {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.legal-box h3 {
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.legal-box ul {
    margin-left: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.legal-box li {
    margin-bottom: 6px;
    color: var(--muted);
    line-height: 1.7;
}

.legal-box p {
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

.legal-box a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-box a:hover {
    color: var(--primary-dark);
}


/* =========================================
   VEREINFACHTES KONTAKTFORMULAR
   ========================================= */

.form-intro {
    background: linear-gradient(135deg, rgba(0, 168, 168, 0.1), rgba(0, 92, 153, 0.1));
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
}


/* =========================================
   STICKY CTA BUTTON
   ========================================= */

.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    
    /* Anfangs ausgeblendet */
    opacity: 0;
    transform: translateY(100px);
    visibility: hidden;
    
    /* Smooth transitions */
    transition: 
        opacity 0.3s ease-out,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0s linear 0.3s;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.sticky-cta .btn {
    box-shadow: 0 8px 24px rgba(0, 92, 153, 0.3);
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.sticky-cta .btn:hover {
    box-shadow: 0 12px 32px rgba(0, 92, 153, 0.4);
    transform: translateY(-3px);
}

/* Mobile Anpassung */
@media (max-width: 640px) {
    .sticky-cta {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .sticky-cta .btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}


/* =========================================
   LANDING PAGES
   ========================================= */

.landing-page {
    padding-top: 80px;
}

.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.landing-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.landing-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.landing-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.trust-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.landing-form-section {
    padding: 48px 0;
}

.landing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.landing-form-box {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.landing-form-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.form-subtitle {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    width: 100%;
}

.landing-benefits h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.benefit-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.landing-cta-section {
    background: linear-gradient(135deg, rgba(0, 92, 153, 0.05), rgba(0, 168, 168, 0.05));
    padding: 48px 0;
    text-align: center;
}

.landing-cta-text {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.landing-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================================
   TRUST SECTION (OHNE TESTIMONIALS)
   ========================================= */

.trust-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(0, 92, 153, 0.03), rgba(0, 168, 168, 0.03));
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

.trust-card {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.trust-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.trust-card p {
    color: var(--muted);
    line-height: 1.7;
}

.trust-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.trust-detail-box {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 24px;
}

.trust-detail-box h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

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

.trust-list li {
    padding: 8px 0;
    color: var(--muted);
    line-height: 1.6;
}

.trust-list li strong {
    color: var(--text);
}

.trust-cta {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 2px solid rgba(0, 168, 168, 0.1);
}

.trust-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
}

@media (max-width: 768px) {
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-details {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   GALERIE VERBESSERUNGEN
   ========================================= */

/* BESSERES GRID LAYOUT (statt Masonry) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Masonry-Klasse optional behalten für Kompatibilität */
.gallery-grid.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* HOVER-EFFEKTE VERSTÄRKT */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Hover Overlay */
.gallery-item::after {
    content: '🔍 Klicken zum Vergrößern';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* LIGHTBOX BILDNUMMER */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10002;
}

/* GALLERY CTA SECTION */
.gallery-cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.gallery-cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.gallery-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 24px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .gallery-item::after {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gallery-cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* "MEHR LADEN" BUTTON */
.load-more-btn {
    min-width: 250px;
    font-size: 1rem;
    padding: 12px 32px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}


/* =========================================
   GOOGLE MAPS KARTE
   ========================================= */

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.map-container iframe {
    display: block;
    width: 100%;
}

.map-note {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    line-height: 1.7;
}

.map-note strong {
    color: var(--primary-dark);
}

.map-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.map-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}


/* =========================================
   LANDING PAGES - ZUSÄTZLICHE ELEMENTE
   ========================================= */

/* PROZESS SECTION */
.landing-process {
    padding: 60px 0;
    background: #f8f9fa;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.process-step {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.process-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* INTERVALL OPTIONS */
.services-note {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    text-align: center;
}

.services-note h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.interval-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.interval-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interval-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* MOBILE ANPASSUNGEN */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .process-step {
        max-width: 100%;
    }
    
    .interval-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .interval-badge {
        text-align: center;
    }
}

/* =========================================
   TRUST SECTION - ICONS & TEXT CENTER
   ========================================= */

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.text-center {
    text-align: center;
}

.text-center h3 {
    margin-top: 0.5rem;
}

/* =========================================
   LEISTUNGEN.HTML - GRÖßERE H3 ÜBERSCHRIFTEN
   ========================================= */

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* WICHTIG: Überschriften in card-werte und text-center Cards zentrieren */
/* Muss nach allen anderen .card h3 Regeln kommen! */
.card-werte h3,
.card.text-center h3 {
    text-align: center !important;
    justify-content: center !important;
}
/* =========================================
   GALERIE - MASONRY GRID (3 SPALTEN)
   ========================================= */

.gallery-grid.masonry {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.gallery-item figcaption {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* =========================================
   WEISSER OUTLINE BUTTON FÜR GALERIE CTA
   ========================================= */

.btn-outline-white {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    color: white !important;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* RESPONSIVE GALERIE */
@media (max-width: 1024px) {
    .gallery-grid.masonry {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .gallery-grid.masonry {
        column-count: 1;
    }
}

/* =========================================
   ÜBER UNS - ÜBERSCHRIFTEN ANPASSUNGEN
   ========================================= */

/* Hero-Überschrift linksbündig */
.page-hero h1 {
    text-align: left !important;
    max-width: 100%;
}

/* =========================================
   USP SECTION - CLEAN PROFESSIONAL V3
   ========================================= */

.usps-section {
    background: 
        linear-gradient(
            135deg,
            rgba(255,255,255,0.25),
            rgba(255,255,255,0.99)
        ),
        image-set(
            url("img/hero-bg.webp") type("image/webp"),
            url("img/hero-bg.jpg") type("image/jpeg")
        ) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.usp-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    padding: 2rem;
    border: 2px solid #e9ecef !important;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none !important;
    
    /* FLEXBOX FÜR GLEICHE BUTTON-HÖHE */
    display: flex !important;
    flex-direction: column !important;
    min-height: 550px !important;
}

.usp-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.1) !important;
}

.usp-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
    text-align: left;
}

.usp-card h3 {
    color: var(--primary) !important;
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
}

.usp-subtitle {
    color: var(--muted) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-align: left;
}

/* Kompakte Steps */
.usp-steps-compact {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa !important;
    border-radius: 8px;
    flex-wrap: wrap;
}

.step-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
}

.step-badge {
    background: var(--primary) !important;
    color: white !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-arrow {
    color: var(--primary) !important;
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0.2rem;
}

.usp-detail {
    margin: 1.5rem 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.usp-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto !important;  /* Button nach unten drücken */
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.usp-note {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center !important;
}

/* Guarantee Benefits */
.guarantee-benefits {
    margin: 1.5rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.benefit-check {
    background: #28a745 !important;
    color: white !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Review Section */
.review-section {
    margin-top: auto !important;  /* Review Section nach unten drücken */
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.review-text {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.review-subtext {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-text-link {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    transition: color 0.3s ease;
}

.btn-text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .usps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .usp-card {
        padding: 1.5rem;
    }
    
    .usp-steps-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.2rem 0;
    }
    
    .usp-icon {
        font-size: 2rem !important;
    }
}

/* Review Buttons nebeneinander */
.review-buttons-inline {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
}

.review-buttons-inline .btn {
    flex: 1 1 0 !important;
    min-width: 220px !important;
    white-space: normal !important;
    padding: 0.875rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 640px) {
    .review-buttons-inline {
        flex-direction: column !important;
    }
    
    .review-buttons-inline .btn {
        width: 100% !important;
        flex: 1 1 auto !important;
    }
}