/* Core Styling & Variablen */
:root {
    --primary: #1e3a8a;
    --primary-hover: #1e40af;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --text: #1f2937;
    --text-muted: #4b5563;
    --bg-light: rgba(255, 255, 255, 0.90);
    --white: #ffffff;
    --white-translucent: rgba(255, 255, 255, 0.95);
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Reset & Basic Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('bg-room.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 70px;
}

/* Layout Container & Sektionen */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
    position: relative;
}

.section-wave-top {
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.bg-light {
    background-color: var(--bg-light);
    backdrop-filter: blur(12px);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Navigationsleiste */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 45px;
    width: auto;
}

.logo-fallback {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-fallback span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-primary,
.btn-primary-sm {
    background-color: var(--accent);
    color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary-sm:hover,
.nav-links a.btn-primary-sm:hover {
    background-color: var(--accent-hover) !important;
    color: var(--white) !important;
}

.btn-primary-sm {
    padding: 8px 18px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 90px 0 100px 0;
    text-align: center;
    background: rgba(239, 246, 255, 0.75);
    backdrop-filter: blur(6px);
}

.badge {
    display: inline-block;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 35px auto;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 600;
    color: var(--primary);
}

@keyframes softPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    50% { transform: scale(1.04); box-shadow: 0 0 15px 5px rgba(249, 115, 22, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero .btn, 
.hero a.btn-primary,
.hero a[href^="tel"] {
    animation: softPulse 2.5s infinite ease-in-out !important;
    will-change: transform;
}

.hero a[href^="tel"] {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero a[href^="tel"]:hover {
    background-color: var(--accent-hover) !important;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
    margin-top: 30px;
    transition: transform 0.3s ease;
}

.badge-inner {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.badge-number {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-top: 2px;
}

/* Grids & Basis-Kacheln */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ALLGEMEINES KACHEL-STYLING */
.card, 
.service-box, 
.step, 
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.4s ease !important;
    transition-delay: 0s !important;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    transform-style: preserve-3d;
}

.card *, .service-box *, .step *, .review-card * {
    pointer-events: none;
}

/* Kacheln leuchten nur bei echtem Hover (Desktop) ODER per JS-Touch-Klasse (Mobil) */
.card:hover, 
.card.is-touch-hover,
.service-box:hover, 
.service-box.is-touch-hover,
.step:hover, 
.step.is-touch-hover,
.review-card:hover, 
.review-card.is-touch-hover {
    box-shadow: 0 15px 30px -8px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}

.card {
    padding: 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ICON-LEUCHTEN (Reagiert sauber auf :hover und .is-touch-hover) */
.card .card-icon, .card .icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
    will-change: filter, transform;
}

.card:hover .card-icon,
.card.is-touch-hover .card-icon,
.card:hover .icon,
.card.is-touch-hover .icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px currentColor) brightness(1.35);
}

@media (min-width: 769px) {
    .card-center {
        grid-column: 2;
    }
}

.service-box {
    border-left: 6px solid var(--accent);
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.service-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease;
}

.service-box:hover .service-img-wrapper img,
.service-box.is-touch-hover .service-img-wrapper img {
    transform: scale(1.04);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    padding: 30px;
}

.step-num {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.reviews-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.google-rating-header {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.google-rating-header .stars {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    color: #334155;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.review-author strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

.review-author .verified {
    font-size: 0.8rem;
    color: #64748b;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 45px;
    border: 1px solid #e2e8f0;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.direct-contact {
    margin-top: 30px;
}

.direct-contact p {
    margin-bottom: 10px;
}

.direct-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.footer {
    background-color: #0f172a;
    color: var(--white);
    padding: 35px 0;
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 15px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 20px 10px;
}

.modal-content {
    background-color: var(--white);
    margin: 80px auto 20px auto;
    padding: 30px 20px;
    border-radius: var(--radius);
    max-width: 700px;
    width: 95%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.close-modal {
    color: #334155;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
    line-height: 1;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    z-index: 10000;
    border: 1px solid #e2e8f0;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.is-active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.cookie-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 15px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-cookie.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-cookie.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* Scroll-Animationen & Sichtbarkeit */
.section-title, 
.hero h1, 
.contact-info h2 {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.section-title.is-visible, 
.hero h1.is-visible, 
.contact-info h2.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card, .service-box, .review-card, .step, .gallery-card {
    opacity: 0;
    transform: translateY(20px);
}

.card.is-visible, 
.service-box.is-visible, 
.review-card.is-visible, 
.step.is-visible,
.gallery-card.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Mobile Optimierung */
.mobile-call-btn {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }

    .modal-content {
        margin-top: 110px;
        max-height: calc(100vh - 140px);
        padding: 25px 15px;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .logo-img {
        max-height: 40px;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100% !important;
        padding: 0 !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px 15px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .contact-form, .form-group, .form-group input, 
    .form-group select, .form-group textarea, .contact-form .btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }

    .mobile-call-btn {
        display: flex !important;
        position: fixed !important;
        bottom: 25px !important;
        right: 25px !important;
        width: 65px !important;
        height: 65px !important;
        background: linear-gradient(135deg, #22c55e, #16a34a) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 2rem !important;
        text-decoration: none !important;
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5) !important;
        z-index: 99999 !important;
        animation: callPulse 2s infinite ease-in-out !important;
    }
}

@keyframes callPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ISOLIERTER STYLING-BEREICH FÜR GALERIE */
.gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}

.gallery-card * {
    pointer-events: auto !important;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    touch-action: pan-y;
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none !important;
}

.ba-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none !important;
}

.ba-before {
    width: 50%;
    z-index: 2;
    border-right: 2px solid #ffffff;
}

.ba-before img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.ba-badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    pointer-events: none !important;
}

.ba-badge.before {
    left: 10px;
    background-color: #ef4444;
}

.ba-badge.after {
    right: 10px;
    background-color: #22c55e;
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10 !important;
    cursor: ew-resize;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
    z-index: 3;
    pointer-events: none !important;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.ba-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.gallery-content {
    padding: 20px;
    text-align: center;
}

.gallery-content h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.gallery-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Interaktives Aufleuchten einzelner Sterne */
.hover-stars {
    display: inline-flex;
    gap: 2px;
    touch-action: pan-y;
}

.hover-stars span {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

@media (hover: hover) {
    .hover-stars span:hover {
        transform: scale(1.4) translateY(-2px);
        filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9)) brightness(1.25);
    }
}

.hover-stars span.is-glowing {
    transform: scale(1.4) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9)) brightness(1.25);
}