/* --- 1. PREMIUM DESIGN SYSTEM: AT GEBÄUDEREINIGUNG --- */
:root {
    --blue: #0d3153;
    --gold: #c5b358;
    --gold-light: rgba(197, 179, 88, 0.2);
    --navy-dark: #05121f;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    --mobile-side-padding: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    /* Verhindert, dass Elemente die Seite nach rechts drücken */
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

body {
    background-color: var(--white);
    color: var(--blue);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   ALLGEMEINE REGELN (Desktop & Global)
   ============================================================ */

.container {
    width: 90%;
    /* Sorgt für die 5% Rand links/rechts am Desktop */
    max-width: 1400px;
    /* Begrenzt die Breite auf großen Bildschirmen */
    margin: 0 auto;
    /* Zentriert alles perfekt in der Mitte */
    padding-top: 180px;
    /* Platz für den großen Header */
    padding-bottom: 80px;
    box-sizing: border-box;
}

/* --- 2. HINTERGRUND EFFEKTE (Fixed & Layered) --- */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
}

/* Premium Dot-Matrix Overlay */
.bg-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(13, 49, 83, 0.06) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 80%);
    mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 80%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: move 25s infinite alternate ease-in-out;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gold-light);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(13, 49, 83, 0.1);
    bottom: -10%;
    right: -5%;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 80px);
    }
}

.bubble {
    position: absolute;
    background: var(--gold-light);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: -8;
    animation: floatBubble 15s infinite ease-in-out;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-100px);
    }
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 179, 88, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -7;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* --- 3. HEADER SYSTEM (KONSOLIDIERT & SYMMETRISCH) --- */
/* Der äußere Container, der den Header fixiert und zentriert */
.header-wrap {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Perfekte Zentrierung am Desktop */
    width: 90%;
    /* 5% Rand links, 5% Rand rechts */
    max-width: 1400px;
    /* Maximale Breite auf großen Monitoren */
    z-index: 1000;
    padding-top: 30px;
    /* Schwebender Look von oben */
    transition: var(--transition);
    pointer-events: none;
    /* Erlaubt Klicken am Rand des Bildschirms */
}

/* Der weiße Balken selbst */
header {
    width: 100%;
    height: 90px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(13, 49, 83, 0.05);
    border: 1px solid rgba(13, 49, 83, 0.05);
    pointer-events: auto;
    /* Aktiviert Klicks im Header-Bereich */
    transition: var(--transition);
    position: relative;
    box-sizing: border-box;
}

/* Zustand beim Scrollen (wird via script.js .scrolled hinzugefügt) */
.header-wrap.scrolled {
    padding-top: 0;
    width: 100%;
    /* Geht beim Scrollen auf volle Breite */
    max-width: 100%;
}

.header-wrap.scrolled header {
    height: 75px;
    border-radius: 0;
    /* Verliert Rundung für Cleanx-Look am Rand */
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 49, 83, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Logo Box */
.logo-box img {
    height: 60px;
    width: auto;
    display: block;
    transition: 0.3s;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.header-wrap.scrolled .logo-box img {
    height: 45px;
}

/* Navigation */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    transition: 0.5s ease;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Call Box Rechts */
.header-right {
    display: flex;
    align-items: center;
}

.call-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.call-icon {
    width: 45px;
    height: 45px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.call-info {
    display: flex;
    flex-direction: column;
}

.call-title {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.call-number {
    font-size: 1rem;
    color: #111;
    font-weight: 800;
}

.call-box:hover .call-icon {
    background: var(--gold);
    transform: scale(1.1);
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--blue);
    margin-left: 20px;
}

/* --- 4. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 5% 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1300px;
    margin: auto;
}

.hero-subtitle {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text h1 span {
    color: var(--gold);
}

.hero-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* USP Liste */
.hero-usps {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.usp-item i {
    color: var(--gold);
}

/* Buttons */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-luxe {
    padding: 18px 40px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

.btn-luxe:hover {
    background: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--gold-light);
}

.btn-ghost {
    text-decoration: none;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-ghost i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-ghost:hover {
    color: var(--gold);
}

.btn-ghost:hover i {
    transform: translateX(5px);
}

/* --- GOOGLE TRUST STYLING --- */
.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(13, 49, 83, 0.1);
    padding-top: 25px;
    margin-top: 10px;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-stars {
    color: #ffb400;
    /* Google Stern-Gold */
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.google-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--blue);
}

.google-label i {
    color: #4285F4;
    /* Original Google Blau */
    font-size: 1.1rem;
}

.hero-trust p {
    font-size: 0.85rem !important;
    color: #777 !important;
    margin: 0 !important;
    font-weight: 400;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    border: 10px solid white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

/* Floating Badge auf dem Bild */
.floating-badge {
    position: absolute;
    /* Position auf Desktop: Ragt leicht links über das Bild hinaus */
    bottom: 40px;
    left: -30px;

    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 45px rgba(13, 49, 83, 0.15);
    z-index: 10;
    border: 1px solid rgba(197, 179, 88, 0.2);

    /* Sanfte Schwebe-Animation */
    animation: badgeFloat 5s infinite ease-in-out;
    transition: all 0.4s ease;
}

.floating-badge i {
    font-size: 1.8rem;
    color: var(--gold);
}

.floating-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.floating-badge strong {
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.floating-badge span {
    color: #777;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Schwebe-Animation */
@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}


/* --- SERVICES GRID SYSTEM --- */
.services-grid,
.contact-grid {
    width: 100%;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Spalten Layout */
    gap: 30px;
    width: 100%;
}

/* HERO CARD: Nimmt die ganze Breite ein und teilt sich 50/50 */
.card-hero {
    grid-column: 1 / -1;
    /* Geht über alle 3 Spalten */
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    min-height: 450px;
}

.hero-content-side {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-content-side i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-image-side {
    flex: 1;
    overflow: hidden;
}

.hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.card-hero:hover .hero-image-side img {
    transform: scale(1.05);
}

/* NORMALE CARDS (Die 6 darunter) */
.card {
    background: white;
    border-radius: 25px;
    padding: 45px 30px;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(13, 49, 83, 0.08);
}

.card i {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.card h3 {
    color: var(--blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cta-form-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- 5. FOOTER --- */
.footer {
    background: var(--navy-dark);
    color: #cbd5e0;
    padding: 80px 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 0 60px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    height: 70px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--gold);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--gold);
    margin-right: 12px;
    width: 20px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.bottom-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.ak-sig a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

/* --- 6. MOBILE RESPONSIVE --- */

@media (max-width: 1100px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.5s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 25px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-image {
        order: 2;
        margin-top: 30px;
    }

    .google-rating {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Spalten auf Tablets */
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }
}

@media (max-width: 1024px) {

    .container {
        width: 100%;
        /* Am Handy nutzen wir die volle Breite... */
        padding-left: 20px;
        /* ...lassen aber einen kleinen Sicherheitsabstand */
        padding-right: 20px;
        padding-top: 130px;
        /* Header ist am Handy flacher, also weniger Abstand */
    }

    .card-hero,
    .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .footer-container,
    .footer-bottom {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-wrap {
        width: 100%;
        left: 0;
        transform: none;
        padding: 15px 20px 0;
        /* Gleicher Rand wie der Content am Handy */
    }

    header {
        height: 75px;
        padding: 0 20px;
    }

    .floating-badge {
        left: 20px;
        /* Nicht mehr überhängend, sondern innerhalb des Bildes */
        bottom: 20px;
        padding: 12px 20px;
        transform: scale(0.9);
    }

    @keyframes badgeFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }
}

@media (max-width: 850px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 Spalte auf Handys */
    }

    .card-hero {
        flex-direction: column;
        /* Bild unter Text am Handy */
    }

    .hero-image-side {
        height: 300px;
    }

    .hero-content-side {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        margin-top: 40px;
        position: relative;
    }

    .hero-image img {
        height: 350px;
        object-fit: cover;
        border-radius: 30px;
        border-width: 6px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 650px) {
    header {
        padding: 10px 20px;
        height: 75px;
    }

    .logo-box img {
        height: 45px;
    }

    .call-info {
        display: none;
        /* Versteckt Text, lässt Icon für Platz am Handy */
    }

    .hero {
        padding-top: 130px;
    }

    .bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .floating-badge {
        left: 50%;
        bottom: 15px;
        transform: translateX(-50%) scale(0.85);
        padding: 10px 15px;
        gap: 10px;
        width: max-content;
    }

    .floating-badge i {
        font-size: 1.4rem;
    }

    @keyframes badgeFloat {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        50% {
            transform: translateX(-50%) translateY(-8px);
        }
    }
}

@media (max-width: 480px) {
    :root {
        --mobile-side-padding: 20px;
    }

    .logo-box img {
        height: 45px !important;
    }
}

/* --- 7. COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Start hidden below the screen */
    left: 0;
    width: 100%;
    background: rgba(5, 18, 31, 0.95); /* Using var(--navy-dark) with opacity */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(197, 179, 88, 0.2); /* Using var(--gold-light) */
    transition: bottom 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.show {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.cookie-content {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.cookie-text p {
    font-size: 0.85rem;
    color: #cbd5e0;
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-text a:hover {
    color: var(--white);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-buttons .btn-luxe {
    padding: 10px 25px;
    font-size: 0.9rem;
    box-shadow: none;
}

.cookie-buttons .btn-luxe:hover {
    box-shadow: 0 5px 15px var(--gold-light);
    transform: translateY(-2px);
}

.cookie-buttons .btn-ghost {
    padding: 10px 25px;
    font-size: 0.9rem;
    color: #cbd5e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: var(--transition);
}

.cookie-buttons .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 850px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 0;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}