/* assets/style.css */

:root {
    /* --- STEIRER RÄUMPROFIS FARBEN --- */
    --primary-color: #0B6E4F;   /* Mittleres Logo-Grün */
    --primary-hover: #073B3A;   /* Dunkelgrün für Hover */
    --primary-dark: #073B3A;    /* Dunkler Akzent */

    --brand-green: #08A045;     /* Kräftiges Signal-Grün */
    --brand-green-hover: #077a35;
    --brand-green-light: #6BBF59; /* Helles Grün für Highlights */

    --brand-gold: #DDB771;      /* Warmer Gold-Ton (Sterne, Akzente) */

    --secondary-color: #6c757d;
}

body {
    background-color: #f8f9fa;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}
/* --- FARB-ÜBERSCHREIBUNGEN (Bootstrap Override) --- */

/* 1. Hauptfarbe (Blau) für Text und Hintergründe */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* 2. Sekundärfarbe (Grün) - Ersetzt das Standard-Grün von Bootstrap */
.text-success {
    color: var(--brand-green) !important;
}

.bg-success {
    background-color: var(--brand-green) !important;
}

/* --- BUTTONS --- */

/* Primär-Button (Blau) */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Outline-Button (Blauer Rand) */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Success-Button (Grün - z.B. für WhatsApp oder den Schritt 4 Haken) */
.btn-success {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    border-radius: 50px;
    font-weight: 600;
}

.btn-success:hover {
    background-color: var(--brand-green-hover);
    border-color: var(--brand-green-hover);
}

/* --- NAVBAR TWEAKS --- */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    background-color: #ffffff !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-brand img {
    max-height: 70px; 
    transition: transform 0.3s ease;
}

@media (max-width: 400px) {
    .navbar-brand img {
        max-height: 50px;
    }
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Icons in der Nav */
.nav-link i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* --- NAVBAR TWEAKS --- */
/* --- NAVBAR LOGO ANPASSUNG --- */
.navbar-brand img {
    /* Damit das Logo auf dem Handy nicht zu riesig wird */
    max-height: 80px; 
    transition: transform 0.3s ease;
}

/* Auf sehr kleinen Handys das Logo etwas kleiner machen, damit das Menü daneben passt */
@media (max-width: 400px) {
    .navbar-brand img {
        max-height: 50px;
    }
}

.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;

    box-shadow: 0 2px 4px rgba(0,0,0,.08); /* Dezenter Schatten */
    background-color: #ffffff !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Icons in der Nav etwas Platz geben */
.nav-link i {
    margin-right: 5px;
    color: var(--primary-color);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11, 110, 79, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler:focus {
    box-shadow: none; /* Entfernt den Standard-Rahmen beim Klicken */
}
/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px; /* Pillen-Form */
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* --- DROPDOWN --- */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    margin-top: 10px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #e8f5ee;
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary-color);
}
/* --- HERO V3 (Split: Text links, Schnell-Anfrage-Formular rechts) --- */
.hero-v3 {
    background:
        linear-gradient(135deg, rgba(7, 59, 58, 0.88) 0%, rgba(11, 110, 79, 0.82) 100%),
        url('img/header-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    margin-top: -80px;      /* zieht den Hero unter die fixed Navbar */
    padding-top: 11rem !important;  /* Ausgleich für Navbar */
    padding-bottom: 5rem !important;
    position: relative;
}

/* Badge oben ("Festpreis-Garantie...") */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Haupt-Headline */
.hero-headline {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-subline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
    max-width: 520px;
}

/* Bullet-Liste mit grünen Check-Icons */
.hero-bullets {
    margin-bottom: 1.5rem;
}
.hero-bullets li {
    padding: 6px 0;
    font-weight: 500;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
}
.hero-bullets li i {
    color: var(--brand-green-light);
    background: rgba(255, 255, 255, 0.15);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Rating-Zeile */
.hero-rating {
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
}
.hero-rating .stars {
    color: var(--brand-gold);
    letter-spacing: 2px;
}

/* Das weiße Anfrage-Formular-Panel rechts */
.hero-form-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Icon-Kreis oben im Formular */
.hero-form-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e8f5ee 0%, #d1ebd9 100%);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Input-Styling im Hero-Formular */
.hero-form-card .form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.hero-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.12);
}
.hero-form-card textarea.form-control {
    resize: vertical;
    min-height: 70px;
}
.hero-form-card .form-label {
    color: #374151;
    margin-bottom: 4px !important;
}

/* Submit-Button im Hero-Formular */
.hero-form-card .btn-primary {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border-radius: 50px;
}

/* Mobile-Anpassungen */
@media (max-width: 991.98px) {
    .hero-v3 {
        padding-top: 8rem !important;
        padding-bottom: 3rem !important;
    }
    .hero-form-card {
        padding: 1.25rem 1.1rem;
    }
}

/* --- HERO (legacy - falls noch irgendwo verwendet) --- */
.hero-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/header-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 0;
    margin-top: -80px;
    padding-top: 10rem;
}

/* --- REGION MARQUEE (unter dem Hero: Icon + endlos laufende Orte) --- */
.region-marquee {
    background: var(--primary-color);
    color: #fff;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-top: 3px solid var(--brand-green);
    border-bottom: 3px solid var(--brand-green);
}

.region-marquee-inner {
    display: flex;
    align-items: stretch;
    min-height: 70px;
}

/* Linke Seite: Icon + Label auf dunklerem Grün-Block */
.region-marquee-icon {
    background: var(--primary-dark);
    color: #fff;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.region-marquee-icon i {
    font-size: 1.5rem;
    color: var(--brand-green-light);
    flex-shrink: 0;
}

.region-marquee-label {
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Dreieck-Übergang vom dunklen Block zum helleren Grün */
.region-marquee-icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    border-left: 20px solid var(--primary-dark);
    z-index: 3;
}

/* Rechte Seite: das Laufband */
.region-marquee-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 40px,
        #000 calc(100% - 40px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 40px,
        #000 calc(100% - 40px),
        transparent 100%
    );
}

.region-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: region-marquee-scroll 45s linear infinite;
    padding-left: 2rem;
}

.region-marquee-item {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    padding: 0 0.5rem;
    letter-spacing: 0.2px;
}

.region-marquee-sep {
    color: var(--brand-green-light);
    opacity: 0.7;
    padding: 0 0.5rem;
    font-weight: 700;
}

@keyframes region-marquee-scroll {
    from { transform: translateX(0); }
    /* -50% weil die Liste doppelt gerendert ist → nahtloser Loop */
    to   { transform: translateX(-50%); }
}

/* Pause on hover — unterstützt neugierige Nutzer */
.region-marquee-track-wrapper:hover .region-marquee-track {
    animation-play-state: paused;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .region-marquee-track {
        animation: none;
        /* Statisch: erste paar Gemeinden sichtbar, Rest klar im DOM */
        transform: translateX(0);
    }
}

/* Mobile: Label weglassen, nur Icon, Speed leicht erhöhen */
@media (max-width: 575.98px) {
    .region-marquee-label {
        display: none;
    }
    .region-marquee-icon {
        padding: 0.85rem 1rem;
    }
    .region-marquee-icon::after {
        right: -14px;
        border-left-width: 14px;
        border-top-width: 35px;
        border-bottom-width: 35px;
    }
    .region-marquee-track {
        animation-duration: 35s;
    }
    .region-marquee-item {
        font-size: 0.92rem;
    }
}

/* --- ALERTS an Marken-Palette angepasst --- */
.alert-success {
    background-color: #e8f5ee;
    color: var(--primary-dark);
    border-left: 4px solid var(--brand-green);
}
.alert-success strong {
    color: var(--primary-dark);
}
.alert-success i.fa-circle-check,
.alert-success i.fa-check {
    color: var(--brand-green);
}

/* --- CONTACT INTERCEPT MODAL --- */
#contact-intercept-modal .modal-content {
    border-radius: 1.25rem !important;
}

.cim-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Farbcodierung nach Link-Typ */
.cim-icon-call {
    background: linear-gradient(135deg, #e8f5ee 0%, #d1ebd9 100%);
    color: var(--primary-color);
}
.cim-icon-mail {
    background: linear-gradient(135deg, #fdf4e3 0%, #f7e4bf 100%);
    color: #b5851f; /* dunkler Gold-Ton, lesbar auf hellem Gold */
}
.cim-icon-wa {
    background: linear-gradient(135deg, #dcf8c6 0%, #b6e7a1 100%);
    color: #128c7e; /* WhatsApp-Markengrün */
}

/* Dezenter Puls-Effekt beim Öffnen */
.modal.show .cim-icon-circle {
    animation: cim-icon-in 0.4s ease-out;
}

@keyframes cim-icon-in {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Karten Hover-Effekt */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #e8f5ee;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* --- FEATURE SECTION (Die 3 Vorteile) --- */

/* Die Box selbst */
.feature-card {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem; /* Schön abgerundet */
    border: 1px solid rgba(0,0,0,0.05); /* Ganz feiner Rand */
    transition: all 0.3s ease; /* Weiche Animation */
    height: 100%; /* Alle Boxen gleich hoch */
    position: relative;
    overflow: hidden;
}

/* Hover-Effekt: Box hebt sich und Schatten wächst */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* Das Icon-Design */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f5ee 0%, #d1ebd9 100%); /* Helles Grün */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.3s ease;
}

/* Icon dreht sich leicht beim Hovern */
.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white; /* Icon wird weiß, Hintergrund blau */
}

.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}
/* --- ANIMATIONEN --- */

/* Definition der Bewegung (von unten nach oben + Einblenden) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Die Klasse, die wir den Karten geben */
.animate-up {
    opacity: 0; /* Startet unsichtbar */
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Verzögerungen, damit sie nacheinander kommen (Wasserfall-Effekt) */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- SERVICES GRID --- */
.service-box {
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%; /* Alle Boxen gleich hoch */
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-box:hover .service-img-wrapper img {
    transform: scale(1.1); /* Zoom-Effekt beim Hovern */
}

/* --- TESTIMONIALS (Kundenmeinungen) --- */
.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
    position: relative;
}

.testimonial-stars {
    color: #ffc107; /* Goldene Sterne */
    margin-bottom: 1rem;
}

/* Kleines Zitat-Icon im Hintergrund */
.testimonial-card::before {
    content: '\201C'; /* Anführungszeichen */
    font-family: serif;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    color: rgba(0,0,0,0.05);
    line-height: 1;
}
/* --- MOBILE FOOTER FIX --- */
/* Auf Handys (unter 992px Breite) geben wir dem Footer unten extra Platz.
   So kann man so weit scrollen, dass der Text ÜBER den Buttons steht. */
@media (max-width: 991.98px) {
    footer {
        padding-bottom: 110px !important; 
    }
}
/* --- DANKE-SEITE --- */
.danke-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e8f5ee 0%, #d1ebd9 100%);
    border-radius: 50%;
    color: var(--brand-green);
    font-size: 4rem;
    margin: 0 auto;
    position: relative;
    animation: danke-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dezenter Puls im Hintergrund */
.danke-icon::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px solid var(--brand-green);
    opacity: 0;
    animation: danke-pulse 2s ease-out infinite;
}

@keyframes danke-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes danke-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.danke-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto;
}