/* Path: css/style.css */

/* =========================================
   1. VARIABLEN (Zentrale Steuerung)
   ========================================= */
:root {
    /* Farben */
    --primary-color: #2563eb;       /* Modernes Royal Blue */
    --primary-hover: #1d4ed8;       /* Dunkleres Blau für Hover */
    
    /* Hintergrund & Text */
    --bg-body: #f8fafc;             /* Hintergrund der Seite */
    --bg-card-top: #f0f7ff;         /* Verlauf Startfarbe (helles Blau) */
    --bg-card-bottom: #ffffff;      /* Verlauf Endfarbe (Weiß) */
    
    --text-main: #1e293b;           /* Dunkles Grau-Blau für Überschriften */
    --text-muted: #475569;          /* Lesbares Grau für Fließtext */
    --border-color: #cbd5e1;        /* Etwas kräftigerer Rahmen für Kontrast */

    /* Abstände & Formen */
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* =========================================
   2. BASIS SETTINGS & RESET
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.logo-icon { font-size: 2.5rem; }
.logo-text { font-size: 2rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }

.site-slogan {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* =========================================
   4. GRID LAYOUT (Bento-Style)
   ========================================= */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.bento-grid {
    display: grid;
    /* Responsive Magie: Passt sich automatisch an */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* =========================================
   5. KARTEN DESIGN (Einheitlich)
   ========================================= */
.card {
    /* Der gewünschte Farbverlauf für ALLE Karten */
    background: linear-gradient(to bottom, var(--bg-card-top), var(--bg-card-bottom));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

/* Standard Hover-Effekt (NUR wenn nicht legal-card, siehe unten) */
.card:not(.legal-card):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Schiebt Button nach unten */
    font-size: 0.95rem; /* Etwas kompakter für mehr Text */
}

/* =========================================
   6. BUTTONS & LINKS
   ========================================= */
.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #ffffff; /* Weißer Button auf Verlauf */
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

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

/* Trennlinie */
.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 4rem 0;
    opacity: 0.5;
}

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
    margin-top: auto;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 0.4rem 0; /* Etwas mehr Platz */
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer nav {
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--text-muted);
    margin: 0 10px;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* =========================================
   8. MOBILE OPTIMIERUNG
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .bento-grid {
        gap: 1rem;
    }
}

/* =========================================
   9. IMPRESSUM & RECHTLICHES (Anti-Wackel & Text-Layout)
   ========================================= */
.legal-card {
    /* Deaktiviert Animationen und Hover-Effekte komplett */
    transform: none !important;
    transition: none !important;
    box-shadow: var(--shadow-sm) !important;
    background: #ffffff !important; /* Weißer Hintergrund, kein Verlauf für Text */
}

.legal-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--border-color) !important;
}

/* Kompakte Abstände für besseren Lesefluss bei langen Texten */
.legal-card h2, 
.legal-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Erste Überschrift in der Box ohne Abstand oben */
.legal-card h2:first-child,
.legal-card h3:first-child {
    margin-top: 0;
}

.legal-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-main); /* Dunkler als Teaser-Text */
}