/* style.css - xxl marketing solutions
   Vollständiges Stylesheet inklusive UX-Optimierungen
*/

/* --- 1. Variablen & Basis --- */
:root {
    --primary: #0d6efd;
    --secondary: #20c997;
    --dark: #121416;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    /* WICHTIG: Verhindert, dass die Sticky-Nav Überschriften verdeckt */
    scroll-padding-top: 100px; 
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    background-color: var(--light);
    color: #333;
    overflow-x: hidden; /* Verhindert horizontales Scrollen bei Animationen */
}

/* --- 2. Typography & Farben --- */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient) !important;
}

/* --- 3. Buttons & Badges --- */
.btn-gradient {
    background: var(--gradient);
    border: none;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    display: inline-block;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.badge.bg-light {
    transition: all 0.3s ease;
    cursor: default;
}

.badge.bg-light:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary) !important;
}

/* --- 4. Navigation --- */
.navbar {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important; /* Leicht transparent */
    backdrop-filter: blur(10px); /* Glas-Effekt */
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 10px;
    border: none;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    padding-left: 20px; /* Kleiner Slide-Effekt */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. Hero Sektion (RESTORIERT) --- */
.hero {
    min-height: 100vh;
    padding-top: 80px; 
    display: flex;
    align-items: center;
    /* Der Verlauf sorgt dafür, dass der Text links (dunkel) lesbar ist, 
       während das Bild rechts klarer durchscheint */
    background: 
        linear-gradient(90deg, rgba(18, 20, 22, 0.85) 0%, rgba(13, 110, 253, 0.4) 100%), 
        url('../image/winter-227589_1280.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Fallback für mobile Geräte (Parallax/fixed ist auf Handys oft buggy) */
@media (max-width: 991px) {
    .hero {
        background-attachment: scroll;
        min-height: 80vh;
        background: 
            linear-gradient(180deg, rgba(18, 20, 22, 0.9) 0%, rgba(13, 110, 253, 0.7) 100%), 
            url('../image/winter-227589_1280.jpg') no-repeat center center;
        background-size: cover;
    }
}

/* --- 6. Footer & Links --- */
footer a { transition: 0.3s; }

.hover-teal:hover {
    color: var(--secondary) !important;
    padding-left: 5px;
}

.hover-opacity:hover {
    opacity: 0.7;
}

/* --- 7. Abstände (Spacing) --- */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --- 8. Cards (Industrie & Pricing) --- */
.industry-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Pricing Cards (für webdesign.php) */
.pricing-card {
    transition: all 0.3s;
    border: 1px solid #eee;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
    transform: scale(1.05);
    z-index: 2;
}

/* --- 9. Formular Design --- */
.form-control-lg, .form-select-lg {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    border-radius: 12px;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: var(--primary);
}

/* --- 10. Animationen (benötigt JS Observer) --- */
.animate-up, .animate-fade, .animate-pop {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-up { transform: translateY(50px); }
.animate-pop { transform: scale(0.9); }

/* Klasse wird per JS hinzugefügt */
.visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* --- 11. Utilities --- */
.ls-2 { letter-spacing: 2px; }
.opacity-90 { opacity: 0.9; }