/* ==========================================================================
   1. GLOBAL RESET & BG-IMAGE FOR MILCHGLAS (Aus der Angebot.css)
   ========================================================================== */
body {
    background-color: var(--farbe-3, #250606) !important;
    color: var(--farbe-5, #9fa0a3) !important;
    min-height: 100vh !important;
    max-height: none !important; 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; 
    overflow-y: auto !important; 
    position: relative !important;
}

/* Das Hintergrundbild liegt ganz unten im Raum – Jetzt mit hellerem Zentrum */
body::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -10 !important;
    
    background-image: 
        radial-gradient(
            circle at 50% 28%,
            rgba(37, 6, 6, 0.0) 0%,        
            rgba(37, 6, 6, 0.10) 25%, /* 💡 AUFGEHELLT: Sanfterer Verlauf im Zentrum */     
            rgba(37, 6, 6, 0.35) 50%, /* Weniger brutale Abdunkelung im Mittelbereich */     
            hsl(0, 65%, 12%) 70%,          
            hsl(0, 0%, 5%) 90%             
        ),
        url("bilder/a-2.webp") !important;
    
    background-blend-mode: multiply !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important; 
    background-position: center center, 50% 20% !important; 
    background-size: 100% 100%, auto 100vh !important;
}

/* 🎯 DEINE BITTE: Das main-Element als deutlich hellere, leuchtendere Zwischenebene! */
main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    
    /* 💡 AUFGEHELLT: Extrem dezentes, lichtes Schleier-Vlies (0.20 statt 0.45) */
    background: linear-gradient(180deg, rgba(25, 4, 4, 0.20) 0%, rgba(15, 2, 2, 0.40) 100%) !important;
    
    /* 💡 AUFGEHELLT: Der Helligkeitsfilter wurde von 85% auf strahlende 105% angehoben! */
    backdrop-filter: blur(8px) brightness(105%) contrast(90%) !important;
    -webkit-backdrop-filter: blur(8px) brightness(105%) contrast(90%) !important;
    
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    
    padding-top: calc(165px + 4vh) !important; 
    padding-bottom: 100px !important;
}

/* ==========================================================================
   1.1 DETEKTIERTER REFINEMENT-BLOCK (Der eiserne Schutz für 600px bis 850px Breite)
   ========================================================================== */
@media screen and (min-width: 600px) and (max-width: 850px) {
    main {
        padding-top: 245px !important; 
        padding-bottom: 60px !important;
    }
    
    .seite-titel {
        margin: 1vh 0 2vh 5% !important;
    }
}

/* ==========================================================================
   2. ÜBERSCHRIFT (Gestochen scharf durch dreifaches Schatten-Kissen)
   ========================================================================== */
.seite-titel {
    text-align: left !important;
    align-self: flex-start !important;
    margin: 2vh 0 3vh 5% !important; 
    padding: 10px 0 !important;
    color: beige !important;
    
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(1.3rem, 4.5vw, 3.2rem) !important; 
    font-weight: 250 !important; 
    letter-spacing: 0.24em !important;
    text-transform: uppercase !important;
    
    text-shadow: 
        0 4px 15px rgba(0, 0, 0, 1.0),
        0 8px 30px rgba(27, 4, 4, 1.0),
        0 0 40px rgba(0, 0, 0, 0.9) !important;
    
    border-bottom: 1px solid rgba(245, 245, 220, 0.25) !important;
    width: calc(90% + 20px) !important;
    max-width: 1400px !important;
}

/* ==========================================================================
   3. DER RESPONSIVE WRAPPER (Flexibles Kachelraster)
   ========================================================================== */
#container-card {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important; 
    gap: 25px !important; 
    flex-wrap: wrap !important; 
    margin: 2vh auto !important;
    width: 90% !important;
    max-width: 1400px !important;
    box-sizing: border-box !important;
}

/* Link-Wrapper */
#container-card a {
    text-decoration: none !important;
    display: flex !important;
    flex: 1 1 300px !important;  
    max-width: 420px !important;  
}

/* ==========================================================================
   4. DIE TRANSLUZENTEN KAPITEL-CARDS (Kristallklare Eleganz)
   ========================================================================== */
.card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; 
    align-items: center !important;
    width: 100% !important; 
    
    height: calc(10vh + 110px) !important; 
    min-height: 170px !important; 
    max-height: 280px !important; 
    
    padding: 3vh 2vw !important; 
    box-sizing: border-box !important;
    
    /* 🎯 💡 AUFGEHELLT & REIN RESPONSIV: Die Karten-Deckkraft wurde auf lichtdurchlässige 54% geöffnet (0.54 / 0.35).
       Da die Zwischenebene den Kontrast sichert, glänzen die Karten nun herrlich klar! */
    background: linear-gradient(0deg, rgba(27, 4, 4, 0.54), rgba(27, 4, 4, 0.54)), rgba(25, 6, 6, 0.35) !important;
    
    /* Der Filter klärt die Karten-Innenseiten auf strahlende 105% Helligkeit auf */
    backdrop-filter: blur(15px) brightness(105%) contrast(85%) !important;
    -webkit-backdrop-filter: blur(15px) brightness(105%) contrast(85%) !important; 
    
    border: 1px solid rgba(245, 245, 220, 0.15) !important; /* Kontur minimal verstärkt für gläserne Kanten */
    border-radius: 8px !important;
    
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease !important;
}

/* ==========================================================================
   4.2 DER HÖHEN-FEINSCHLIFF (Kompaktierung bei flachen Bildschirmen)
   ========================================================================== */
@media screen and (max-height: 1000px) and (min-width: 600px) {
    main {
        padding-top: calc(130px + 2vh) !important; 
        padding-bottom: 50px !important;
    }
    
    @media (max-width: 850px) {
        main { padding-top: 195px !important; }
    }
    
    .seite-titel {
        margin: 1.5vh 0 1.5vh 5% !important;
    }

    .card {
        height: calc(8vh + 100px) !important;
        min-height: 150px !important;
        padding: 2.5vh 2vw !important; 
    }
    
    .card-titel {
        font-size: clamp(1rem, 1.3vw, 1.25rem) !important; 
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }
    
    .card-ziffer {
        font-size: clamp(2.8rem, 5.5vw, 3.8rem) !important; 
    }
}

/* ==========================================================================
   5. INNERES DESIGN DER CARDS (Typografie)
   ========================================================================== */
.card-titel {
    color: beige !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    
    border-bottom: 1px solid rgba(245, 245, 220, 0.15) !important;
    padding-bottom: 8px !important;
    transition: color 0.3s ease, border-color 0.3s ease !important;
}

.card-ziffer {
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(3.2rem, 6vw, 4.8rem) !important;
    font-weight: 100 !important; 
    color: rgba(245, 245, 220, 0.18) !important; /* Sichtbarkeit minimal erhöht für feine Präsenz */
    text-align: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
}

.card:hover .card-titel {
    color: #ffffff !important;
    border-color: rgba(245, 245, 220, 0.4) !important;
}

.card:hover .card-ziffer {
    color: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.03) !important;
}

/* Schwebender Hover-Effekt: Karte leuchtet vollends auf */
.card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(245, 245, 220, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7) !important;
    
    background: linear-gradient(0deg, rgba(27, 4, 4, 0.65), rgba(27, 4, 4, 0.65)), rgba(25, 6, 6, 0.40) !important;
    backdrop-filter: blur(20px) brightness(115%) contrast(90%) !important;
    -webkit-backdrop-filter: blur(20px) brightness(115%) contrast(90%) !important;
}

/* ==========================================================================
   6. INNERES SCROLL-VERHALTEN FÜR KLEINE DISPLAYS (Mobil-Sicherung)
   ========================================================================== */
@media screen and (max-width: 599px) {
main {
        padding-top: calc(140px + 2vh) !important;
        /* 👍 GEÄNDERT: Hintergrund auf transparent setzen, damit body::before durchscheint */
        background: transparent !important; 
        
        /* Falls Sie den leichten dunklen Schleier behalten wollen, nutzen Sie stattdessen: */
        /* background: linear-gradient(180deg, rgba(25, 4, 4, 0.40) 0%, rgba(15, 2, 2, 0.60) 100%) !important; */
        
        /* Falls Sie den Weichzeichner mobil doch möchten, aktivieren Sie ihn wieder: */
        backdrop-filter: blur(8px) brightness(105%) contrast(90%) !important;
        -webkit-backdrop-filter: blur(8px) brightness(105%) contrast(90%) !important;
    }
    .card {
        height: auto !important;
        min-height: 200px !important;
    }
}