/* =========================================
   1. CSS Variablen (Modern & Tech-Focused)
   ========================================= */
:root {
    /* Ein tieferes, satteres Tech-Blau für exzellente Lesbarkeit */
    --primary-color: #0056b3; 
    --primary-hover: #003d82; /* Noch etwas dunkler für Button-Hover */
    
    --accent-color: #f97316;  /* Lebhaftes Orange als Warn-/Aktionsfarbe */
    
    /* Ein sattes, sehr dunkles Navy-Blau für die Schrift */
    --text-main: #0a2540; 
    --text-muted: #475569; 
    --text-light: #ffffff;
    
    /* Hintergrundfarbe (als Fallback) */
    --bg-base: #e2e8f0; 

    /* Glassmorphismus */
    --glass-bg: rgba(255, 255, 255, 0.6); 
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(12px);
    
    /* Sanfter Schatten im Tech-Design */
    --shadow-soft: 0 10px 30px rgba(10, 37, 64, 0.1); 
}
/* =========================================
   2. Reset & Grundlagen
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    
    /* NEU: Ein etwas dunklerer, variierender Verlauf aus Stahlblau und Schiefer */
    background: linear-gradient(135deg, 
        #dbe4ec 0%, 
        #b9c6d2 25%, 
        #9caebf 50%, 
        #b9c6d2 75%, 
        #dbe4ec 100%
    ); 
    background-size: 400% 400%; 
    animation: gradientPulse 25s ease-in-out infinite; 
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   3. Barrierefreiheit (Accessibility)
   ========================================= */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =========================================
   4. Layout: Header, Logo & Slogan
   ========================================= */
.glass-header {
    background: rgba(255, 255, 255, 0.7); /* Minimal transparenter für besseren Tech-Look */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0; 
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.glass-header .container {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
}

.logo-wrapper {
    display: flex; 
    align-items: center; 
    gap: 12px;
}

.slogan {
    font-family: 'Segoe UI', Roboto, sans-serif; /* Im Tech-Design verzichten wir oft auf Serifen */
    font-weight: 500;
    font-size: 1.1rem; 
    color: var(--primary-color); 
    letter-spacing: 0.5px; 
    margin: 0;
}

.nav-links {
    list-style: none; 
    display: flex; 
    gap: 1rem; 
    align-items: center;
}

.nav-links > li > a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: all 0.3s ease;
    padding: 0.5rem 0.2rem;
    position: relative; /* Für den Unterstrich-Effekt */
}

/* Tech-Hover: Ein kleiner Strich erscheint unter dem Menüpunkt */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after {
    width: 100%;
}

.nav-links > li > a:hover {
    color: var(--primary-color);
}

@media (max-width: 1150px) {
    .slogan { display: none; }
}
@media (max-width: 950px) {
    .nav-links { gap: 0.6rem; }
    .nav-links > li > a { font-size: 0.85rem; }
}

/* =========================================
   5. Dropdown-Menü Navigation
   ========================================= */
.nav-links li.dropdown { position: relative; }

.dropdown-menu {
    display: none; 
    position: absolute; top: 100%; left: 0;
    background: rgba(255, 255, 255, 0.9); /* Klareres Weiß */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px; list-style: none; padding: 0.5rem 0;
    min-width: 260px; 
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1); 
    z-index: 1000;
}

.nav-links li.dropdown:hover .dropdown-menu,
.nav-links li.dropdown:focus-within .dropdown-menu {
    display: block; animation: fadeInMenu 0.3s ease forwards;
}

.dropdown-menu a {
    display: block; padding: 0.8rem 1.5rem; color: var(--text-main);
    text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover, .dropdown-menu a:focus {
    background: rgba(14, 165, 233, 0.08); /* Sehr dezentes Cyan als Hinterlegung */
    color: var(--primary-color); 
    padding-left: 2rem; 
    border-left: 3px solid var(--primary-color); /* Harter Rand links beim Hover */
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   6. Hauptinhalt & Hero Section
   ========================================= */
main { flex: 1; width: 100%; padding-bottom: 4rem; }

.hero-section {
    /* Ein kühlerer, etwas technischerer Overlay-Schleier für das Bild */
    background: linear-gradient(rgba(248, 250, 252, 0.4), rgba(226, 232, 240, 0.6)), 
                url('images/forum.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 0; 
    border-bottom: 1px solid var(--glass-border);
}

/* =========================================
   7. Grid-Layout für Kacheln
   ========================================= */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-content: center;
    gap: 1.5rem; /* Etwas mehr Abstand für den cleanen Look */
    padding: 2rem 0;
}

.glass-card-link {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px; 
    padding: 1.5rem; 
    text-align: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Snappier Transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-soft); 
}

/* Im Tech-Design arbeiten wir gerne mit feinen Rändern beim Hover */
.glass-card-link:hover, .glass-card-link:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15); /* Schatten bekommt die Farbe des Primary */
    border-color: rgba(14, 165, 233, 0.5); 
}

.glass-card-link i {
    font-size: 2.2rem; 
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.glass-card-link:hover i {
    transform: scale(1.1); /* Icon wird beim Hover leicht größer */
}

.glass-card-link h3 {
    font-size: 1.1rem; 
    margin: 0;
    line-height: 1.3;
}

.glass-card-link p {
    font-size: 0.85rem; 
    color: var(--text-muted);
    margin: 0;
}

h2 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* =========================================
   8. Footer
   ========================================= */
.glass-footer {
    background: rgba(15, 23, 42, 0.03); /* Ein sehr dezentes Grau im Footer */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: auto; 
    color: var(--text-muted);
}

.glass-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.glass-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   9. Media Queries (Responsives Design)
   ========================================= */
@media (min-width: 768px) {
    .glass-grid { gap: 1.5rem; }
}

@media (min-width: 1024px) {
    .glass-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: column; 
        text-align: center;
        gap: 5px;
    }
    .slogan { font-size: 1rem; }
    .glass-header .container {
        flex-direction: column;
        justify-content: center;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}