/* --- Core Layout Fixes (Die in deiner style.css fehlen) --- */
.grid {
    display: grid !important;
}

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.text-center {
    text-align: center !important;
}

.max-w-4xl {
    max-width: 56rem !important;
}

.max-w-6xl {
    max-width: 72rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Abstände */
.gap-4 {
    gap: 1rem !important;
}

.gap-12 {
    gap: 3rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

/* --- Grid System Wiederherstellung --- */
#domain-list {
    display: grid !important;
    gap: 1.5rem !important;
}

@media (min-width: 640px) {
    #domain-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-5 {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3 !important;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2 !important;
    }
}

/* --- Premium Design: Glassmorphism & Cards --- */
.glass {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    border-radius: 1.5rem !important;
}

/* --- Premium Domain Card: Optimiertes Padding & Spacing --- */
.domain-card {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    /* Signifikant mehr Padding (oben/unten 2rem, links/rechts 2.5rem) */
    padding: 2rem 2.5rem !important;

    border-radius: 1.5rem !important;
    /* Etwas runder für mehr Eleganz */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;

    /* Interner Abstand zwischen Domainname, Status und Copy-Icon */
    gap: 1.25rem !important;
}

.domain-card:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: rgba(30, 41, 59, 0.7) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2) !important;
}

/* Formular & Buttons */
.form-input {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
}

/* --- Finaler Button Fix (Verhindert Überlagerungen) --- */
.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    color: white !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    /* Wichtig für die vertikale Zentrierung */
}

.btn-primary:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5) !important;
}

/* Fix für das Icon im Button */
.btn-primary svg {
    margin-right: 0.75rem !important;
    flex-shrink: 0 !important;
    /* Verhindert, dass das Icon gequetscht wird */
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* --- Cookie Banner Fix (Position Bottom, Solid Background & Z-Index) --- */
#cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    /* Absolut auf der obersten Ebene */

    /* Hintergrund: Sehr dunkles Slate, fast solid (95% Deckkraft) für perfekte Lesbarkeit */
    background-color: #0f172a !important;

    /* Etwas weniger Blur, dafür mehr Kontrast zum Hintergrundtext */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -10px 40px -15px rgba(0, 0, 0, 0.6) !important;
    padding: 1.5rem 0 !important;
    /* Mehr Padding oben/unten */

    /* Startposition: Für die Animation nach unten verschoben (Initial ausgeblendet) */
    transform: translateY(100%) !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hilfsklasse: Um das Banner per JS sichtbar zu machen */
#cookie-banner.banner-visible {
    transform: translateY(0) !important;
}

/* --- 1. Hero & Typography Fixes --- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    /* Dynamische Größe: Klein auf Mobile, groß auf Desktop */
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2rem !important;
    font-weight: 800 !important;
}

section.max-w-6xl {
    padding-top: 8rem !important;
    /* Mehr Platz nach oben */
    padding-bottom: 4rem !important;
    /* Platz zum nächsten Abschnitt */
}

section.max-w-6xl p {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 4rem !important;
    /* Deutlicher Abstand vor den Domains/Formular */
    color: #94a3b8 !important;
}

/* --- 2. Formular-Container Padding Fix --- */
/* Wir sprechen den Container mit der Klasse .glass und p-8 gezielt an */
.lg\:col-span-2 .glass {
    padding: 3rem !important;
    /* Von 2rem (p-8) auf 3rem erhöht für mehr Luft */
    border-radius: 2rem !important;
}

/* Abstand innerhalb des Formulars optimieren */
#contact-form {
    margin-top: 2rem !important;
}

#contact-form .space-y-5>*+* {
    margin-top: 1.5rem !important;
}

/* --- 3. Domain Cards Padding (Nochmals verfeinert) --- */
.domain-card {
    padding: 2.5rem !important;
    /* Mehr Platz in den kleinen Karten */
    gap: 1.5rem !important;
}

/* --- 4. Responsive Adjustments --- */
@media (max-width: 768px) {
    section.max-w-6xl {
        padding-top: 4rem !important;
    }

    .lg\:col-span-2 .glass {
        padding: 1.5rem !important;
        /* Auf Mobile etwas weniger, um Platz zu sparen */
    }
}

/* --- Domain Filter Styling (Premium Chips) --- */
#domain-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    /* Wichtig für Mobile, damit sie umbrechen */
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

#domain-filters button {
    padding: 0.5rem 1.25rem !important;
    border-radius: 9999px !important;
    /* Volle Abrundung */
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 41, 59, 0.4) !important;
    color: #94a3b8 !important;
}

#domain-filters button:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: white !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}

/* Der leuchtende Zustand für den aktiven Filter */
#domain-filters button.active-filter {
    background: rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
}

/* --- Footer & Spacing Fixes --- */
main {
    padding-bottom: 8rem !important;
    /* Viel Platz zwischen Content und Footer */
}

footer {
    background: rgba(2, 6, 23, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 4rem 0 !important;
}

.footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
}

.footer-links {
    display: flex !important;
    gap: 2rem !important;
    /* Abstand zwischen Impressum und Datenschutz */
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
}

/* --- Subpage Header & SVG Fix --- */
header.header-glass {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: sticky !important;
    top: 0;
    z-index: 50;
}

/* Hard-Fix für die SVGs, damit sie nie wieder riesig werden */
svg.w-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

svg.w-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* Typografie auf Unterseiten */
.subpage-content h1 {
    font-size: 3rem !important;
    margin-top: 2rem !important;
}

/* --- 1. Filter Fix: Diese Klasse schlägt das display:flex !important --- */
.hidden-card {
    display: none !important;
}

/* --- 2. Subpage Card Upgrade (Impressum & Datenschutz) --- */
.subpage-content .glass {
    border: none !important;
    /* Rahmen unsichtbar */
    padding: 4rem 5rem !important;
    /* Massiv mehr Platz innen */
    max-width: 100% !important;
    /* Nutzt den vollen Platz des Containers */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    /* Tieferer Schatten für Fokus */
}

/* Optimierung für Mobile (Unterseiten) */
@media (max-width: 768px) {
    .subpage-content .glass {
        padding: 2rem 1.5rem !important;
    }

    .subpage-content h1 {
        font-size: 2.25rem !important;
    }
}

/* --- 3. Header Link Fix (Icons) --- */
.header-glass svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    display: inline-block !important;
}

/* --- Subpage Spezial: Die Glass-Card --- */
.glass-card {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    /* Fast unsichtbarer Rand */
    border-radius: 2.5rem !important;
    padding: 4rem !important;
    /* Massiv Platz innen */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Header-Fix für Unterseiten */
.header-glass {
    background: rgba(2, 6, 23, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Mobile Optimierung für die Card */
@media (max-width: 640px) {
    .glass-card {
        padding: 2rem !important;
        border-radius: 1.5rem !important;
    }

    h1 {
        font-size: 2.5rem !important;
        margin-bottom: 2rem !important;
    }
}