/*
=====================================================
CSS-VARIABLEN UND GLOBALE EINSTELLUNGEN
=====================================================
- Definition von Farbvariablen für konsistentes Design
- Primärfarbe und deren Variationen für ein einheitliches Farbschema
- Textfarben für optimalen Kontrast
- Übergangsvariable für einheitliche Animationen
- Smooth Scroll für sanftes Navigieren innerhalb der Seite
*/
:root {
    --primary-color: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/*
=====================================================
NAVIGATION
=====================================================
- Responsive Hauptnavigation mit Desktop- und Mobilversion
- Unterstreichungseffekt für aktive und Hover-Zustände
- Sticky Navigation mit Hintergrundänderung beim Scrollen
- Einfache Übergänge für verbesserte Benutzererfahrung
- Mobile Navigation mit seitlichen Markierungen für aktiven Zustand
*/
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after, .nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: #f3f4f6;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/*
=====================================================
HERO-SECTION
=====================================================
- Vollflächen-Hintergrund mit Overlay für besseren Textkontrast
- Skalierungs-Animation für Hintergrundbild bei Hover
- Angepasste Textschatten für verbesserte Lesbarkeit
- Responsive Anpassungen für verschiedene Bildschirmgrößen
*/
.hero-bg {
    background-image: url('https://source.unsplash.com/random/1920x1080/?entrümpelung,cleaning');
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    transition: transform 10s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

/*
=====================================================
BUTTONS
=====================================================
- Verschiedene Button-Stile für unterschiedliche Zwecke
- Primäre, sekundäre, weiße und Outline-Varianten
- Hover-Effekte mit Hintergrundänderung und leichter Erhebung
- Sanfte Übergänge durch Transformationen und Schatten
*/
.btn-primary, .btn-secondary, .btn-white, .btn-outline-white {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: #1a4db0;
    color: var(--white);
    border: 2px solid #1a4db0;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*
=====================================================
SERVICE-KARTEN
=====================================================
- Einheitliches Kartendesign mit Schatten und Rundungen
- Hover-Effekte für bessere Interaktivität
- Kreisförmige Icons mit Farbänderung bei Hover
- Dreheffekt für Icons beim Überfahren
*/
.service-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(29, 78, 216, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #1d4ed8);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color, #1d4ed8);
    color: #ffffff;
    transform: rotateY(180deg);
}

/*
=====================================================
ABOUT-SECTION
=====================================================
- Zweispalten-Layout mit responsivem Verhalten
- Bildcontainer mit Overflow und Schatten
- Hover-Effekt für Bildvergrößerung
*/
.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 400px;
}

.about-image {
    background-image: url('https://source.unsplash.com/random/800x600/?entrümpelung,waste');
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

/*
=====================================================
PROCESS-TIMELINE
=====================================================
- Fortgeschrittenes Timeline-Layout mit Verbindungslinie
- Nummerierte Kreise für jeden Schritt mit Hover-Effekten
- Inhaltskästen mit Schatten und Pfeilspitzen
- Responsive Anpassung für verschiedene Bildschirmgrößen
*/
.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 3rem;
}

.timeline-number {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.2);
    transition: var(--transition);
}

.timeline-content {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-left: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    flex-grow: 1;
    position: relative;
    transition: var(--transition);
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 1.125rem;
    left: -0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--white);
    transform: rotate(45deg);
    border-radius: 0.125rem;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

@media (min-width: 768px) {
    .timeline-item {
        padding-left: 50%;
        padding-right: 2rem;
    }
    
    .timeline-item.timeline-right {
        padding-left: 2rem;
        padding-right: 50%;
        flex-direction: row-reverse;
    }
    
    .timeline-right .timeline-content {
        margin-left: 0;
        margin-right: 1.5rem;
    }
    
    .timeline-right .timeline-content::before {
        left: auto;
        right: -0.75rem;
        box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
    }
}

.timeline-item:hover .timeline-number {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(29, 78, 216, 0.2);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/*
=====================================================
FAQ-BEREICH
=====================================================
- Akkordeon-Stil mit sanften Übergängen
- Dreheffekt für Pfeile zur Anzeige des Zustands
- Höhenanimation für den Antwortbereich
*/
.faq-item {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1rem 1.5rem;
    background-color: var(--white);
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    text-align: left;
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(-180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/*
=====================================================
LESBARKEITSVERBESSERUNGEN
=====================================================
- Erhöhte Schriftgrößen für bessere Lesbarkeit
- Optimierter Zeilenabstand für längere Texte
- Dunklere Textfarben für besseren Kontrast
- Textschatten auf dunklen Hintergründen
*/
section p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333333 !important;
}

h2, h3 {
    color: #1a1a1a !important;
}

.bg-blue-700 {
    background-color: #1a4db0 !important;
}

.bg-blue-700 .text-white {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#about p {
    color: #333333 !important;
    font-weight: 400;
    line-height: 1.8;
}

@media (max-width: 768px) {
    section p {
        font-size: 1rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .timeline-content {
        margin-left: 1rem;
        padding: 1.25rem;
    }
}

/*
=====================================================
FOOTER-STYLING
=====================================================
- Verbesserte Sichtbarkeit der Footer-Überschriften
- Hover-Effekte für Links
- Spezifische Farbanpassungen für dunkleren Hintergrund
*/
footer {
    position: relative;
}

footer h3 {
    color: #3b82f6 !important;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.25rem !important;
}

footer a {
    position: relative;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

footer a:hover {
    transform: translateY(-1px);
}

footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #3b82f6;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/*
=====================================================
ANIMATIONEN
=====================================================
- Bounce-Animation für Scroll-Indikator
*/
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* WhatsApp Button */
a[href^="https://wa.me"] {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

a[href^="https://wa.me"]:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Kontaktformular */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #1a4db0;
    box-shadow: 0 0 0 2px rgba(26, 77, 176, 0.2);
}

/* Cookie-Banner */
#cookie-banner {
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

#cookie-banner.show {
    transform: translateY(0);
}