/* ============================================================
   LEHRER-HOMEPAGE – Jan Herrmann, Oberschule Spelle
   Stylesheet: Alle Stile für index.html und abgabe.html
   ============================================================ */


/* ---- Selbst gehostete Schriftart „Inter" (ersetzt Google Fonts) ----
   Variable Font, lateinisches Subset (deckt deutsche Texte ab),
   Gewichte 400–700. Datei: assets/fonts/inter-var-latin.woff2 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/inter-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- CSS-Variablen: Farben, Abstände, Effekte ---- */
:root {
    --farbe-primaer:        #1e3a5f;   /* Dunkelblau – Hauptfarbe */
    --farbe-primaer-hell:   #2d6a9f;   /* Mittleres Blau */
    --farbe-akzent:         #4a9eda;   /* Hellblau für Badges & Hover */
    --farbe-hintergrund:    #f4f6f9;   /* Seitenhintergrund (Hellgrau) */
    --farbe-weiss:          #ffffff;
    --farbe-text:           #2c3e50;   /* Dunkler Fließtext */
    --farbe-text-hell:      #6c757d;   /* Grauer Hilfstext */
    --farbe-rahmen:         #dee2e6;   /* Rahmen & Trennlinien */
    --farbe-erfolg:         #27ae60;   /* Grün für Erfolgsmeldungen */

    --schatten:     0 2px 12px rgba(30, 58, 95, 0.10);
    --radius:       8px;
    --transition:   0.3s ease;
}


/* ================================================================
   RESET & GRUNDSTILE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Sanftes Scrollen bei Anker-Links */
}

body {
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--farbe-text);
    background-color: var(--farbe-hintergrund);
}

a {
    color: var(--farbe-primaer-hell);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--farbe-akzent);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}


/* ================================================================
   HILFSKLASSEN
   ================================================================ */

/* Zentrierter Inhalts-Container mit maximalem Seitenabstand */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Abschnittsüberschriften */
.section-titel {
    font-size: 2rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 10px;
}

.section-untertitel {
    font-size: 1.05rem;
    color: var(--farbe-text-hell);
    margin-bottom: 40px;
    max-width: 600px;
}


/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
    position: sticky; /* Bleibt beim Scrollen oben */
    top: 0;
    z-index: 100;
    background: transparent;            /* schwebend: keine durchgezogene Leiste */
    padding: 12px clamp(12px, 3vw, 22px);
}

/* Schwebende Navigations-„Karte" */
.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 60px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;  /* Logo · zentrierte Icons · Widget */
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--farbe-primaer) 0%, var(--farbe-primaer-hell) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 42, 75, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Logo (Bildmarke) oben links */
.navbar-logo {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--farbe-weiss);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
}

.navbar-logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.navbar-logo span {
    color: var(--farbe-akzent); /* Nachname farbig hervorheben */
}

/* Navigations-Icons – zentriert in der Leiste, alle gleich hoch */
.navbar-links {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Einzelnes Navigations-Icon (Link oder Dropdown-Button) –
   nur direkte Navi-Items, NICHT die Links im Fächer-Aufklappmenü */
.navbar-links .nav-item,
.navbar-links > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.navbar-links .nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Linktext nur für Screenreader – der Tooltip übernimmt die Sichtbarkeit */
.nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.navbar-links .nav-item:hover,
.navbar-links > li > a:hover,
.navbar-links > li > a.aktiv {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--farbe-weiss);
    transform: translateY(-1px);
}

/* === TOOLTIP: zeigt beim Hover/Fokus, wohin das Icon führt === */
.nav-item[data-tooltip]::after,
.nav-item[data-tooltip]::before {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 400;
}
.nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(3px);
    background: #16243a;
    color: #fff;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.nav-item[data-tooltip]::before {
    content: "";
    top: calc(100% + 4px);
    transform: translateX(-50%) translateY(3px);
    border: 6px solid transparent;
    border-bottom-color: #16243a;
}
.nav-item[data-tooltip]:hover::after,
.nav-item[data-tooltip]:focus-visible::after,
.nav-item[data-tooltip]:hover::before,
.nav-item[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Beim Dropdown „Fächer" den Tooltip unterdrücken (Menü öffnet ohnehin) */
.navbar-dropdown:hover .navbar-dropdown-toggle[data-tooltip]::after,
.navbar-dropdown:hover .navbar-dropdown-toggle[data-tooltip]::before,
.navbar-dropdown-toggle[aria-expanded="true"][data-tooltip]::after,
.navbar-dropdown-toggle[aria-expanded="true"][data-tooltip]::before {
    opacity: 0 !important;
}

/* Login-Widget rechts in der schwebenden Leiste */
#kolosseum-widget,
#kolo-widget {
    grid-column: 3;
    justify-self: end;
}

/* === NAVBAR DROPDOWN === */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
    white-space: nowrap;
    font-family: inherit;
    line-height: inherit;
}

.navbar-dropdown-toggle.navbar-gb-link {
    color: rgba(255, 210, 80, 0.88) !important;
}

.navbar-dropdown-toggle:hover,
.navbar-dropdown-toggle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--farbe-weiss);
}

.navbar-dropdown-toggle.navbar-gb-link:hover,
.navbar-dropdown-toggle.navbar-gb-link[aria-expanded="true"] {
    background-color: rgba(255, 210, 80, 0.15) !important;
    color: #FFD84D !important;
}

.navbar-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: var(--farbe-weiss);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    min-width: 220px;
    padding: 6px 0;
    z-index: 200;
}

/* Unsichtbare „Brücke" über die Lücke zwischen Button und Menü,
   damit das Menü beim Rübergehen mit der Maus geöffnet bleibt */
.navbar-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.navbar-dropdown-menu.offen {
    display: block;
}

/* Hover auf Desktop öffnet Dropdown automatisch */
@media (hover: hover) {
    .navbar-dropdown:hover .navbar-dropdown-menu {
        display: block;
    }
    .navbar-dropdown:hover .navbar-dropdown-toggle {
        background-color: rgba(255, 210, 80, 0.15);
        color: #FFD84D;
    }
}

.navbar-dropdown-menu li {
    list-style: none;
}

.navbar-dropdown-menu a {
    display: block;
    padding: 9px 18px;
    color: var(--farbe-text);
    font-size: 0.92rem;
    transition: background-color var(--transition);
}

.navbar-dropdown-menu a:hover {
    background-color: var(--farbe-hintergrund);
    color: var(--farbe-primaer);
}

.dropdown-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--farbe-text-hell);
    padding: 8px 18px 3px;
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background: var(--farbe-rahmen);
    margin: 4px 10px;
}

/* === NAVBAR: GESCHÜTZTER-BEREICH TRENNER & LINKS === */
.navbar-gb-trenner {
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin: 0 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 28px;
    align-self: center;
}

.navbar-gb-label {
    /* Auf dem Desktop nur als Screenreader-Hinweis – der Trenner reicht visuell */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.navbar-gb-link {
    color: rgba(255, 210, 80, 0.88) !important;
}

.navbar-gb-link:hover,
.navbar-gb-link.aktiv {
    background-color: rgba(255, 210, 80, 0.15) !important;
    color: #FFD84D !important;
}

/* Kolosseum-Widget: heller Text auf dunkler Navbar */
#kolo-widget .kolo-user-chip {
    color: #FFE66D !important;
    background: rgba(255, 230, 109, 0.12) !important;
    border-color: rgba(255, 230, 109, 0.38) !important;
}

#kolo-widget .kolo-user-chip:hover {
    background: rgba(255, 230, 109, 0.22) !important;
}

#kolo-widget .kolo-level {
    color: rgba(255, 230, 109, 0.6) !important;
}

/* Hamburger-Button – nur auf mobilen Geräten sichtbar */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--farbe-weiss);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}


/* ================================================================
   HERO-BEREICH (Startseite – großer Willkommensbereich)
   ================================================================ */
.hero {
    background: linear-gradient(145deg, var(--farbe-primaer) 0%, var(--farbe-primaer-hell) 100%);
    color: var(--farbe-weiss);
    padding: 80px 0;
    text-align: center;
}

.hero-inhalt {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Platzhalter für Profilbild */
.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-schule {
    font-size: 1.05rem;
    color: var(--farbe-akzent);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
}

/* Kurzer Tagline-Text im Hero */
.hero-tagline {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* CTA-Buttons im Hero */
.hero-cta-gruppe {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.75rem;
}

.hero-cta-btn {
    display: inline-block;
    padding: .78rem 1.9rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.hero-cta-primaer {
    background: var(--farbe-akzent);
    color: #fff;
    box-shadow: 0 4px 18px rgba(74, 158, 218, 0.45);
}

.hero-cta-primaer:hover {
    background: #3a8ecb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 158, 218, 0.55);
}

.hero-cta-ghost {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.hero-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    transform: translateY(-2px);
}

/* Fach-Badges im Hero */
.hero-faecher {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.hero-faecher-reihe {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fach-badge {
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--farbe-weiss);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

a.fach-badge:hover {
    background-color: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Kurzbeschreibung auf Fachseiten */
.fach-beschreibung {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--farbe-text);
    max-width: 720px;
    margin: 28px auto 0;
    padding: 24px 28px;
    background: #e8f0fe;
    border-left: 4px solid var(--farbe-primaer);
    border-radius: var(--radius);
}

/* Themen-Kasten: kompakte Liste statt Karten-Grid */
.themen-kasten {
    background: var(--farbe-weiss);
    border: 1px solid var(--farbe-rahmen);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--schatten);
}

.themen-kasten .section-titel { margin-top: 0; font-size: 1.05rem; }
.themen-kasten .section-untertitel { font-size: 0.9rem; color: var(--farbe-text-hell); margin-bottom: 1rem; }

.themen-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.3rem 2rem;
}

.themen-liste li {
    padding: 0.45rem 0;
    font-size: 0.93rem;
    color: var(--farbe-text);
    border-bottom: 1px solid var(--farbe-hintergrund);
}

@media (max-width: 600px) { .themen-liste { grid-template-columns: 1fr; } }

/* === MATERIALIEN-KARTEN (kombinierte Fachseiten) === */
.fach-materialien-bereich {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--farbe-rahmen);
}

.fach-materialien-bereich h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 1.5rem;
}

.mat-kategorie {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--farbe-text-hell);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--farbe-rahmen);
}

.mat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.mat-card {
    background: var(--farbe-weiss);
    border: 1px solid var(--farbe-rahmen);
    border-left: 4px solid var(--farbe-primaer-hell);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--farbe-text);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: box-shadow 0.18s, border-left-color 0.18s;
    box-shadow: var(--schatten);
}

.mat-card:hover { box-shadow: 0 4px 16px rgba(30,58,95,0.15); border-left-color: var(--farbe-akzent); }

.mat-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.mat-badge.ab   { background: #e8f5e9; color: #2e7d32; }
.mat-badge.quiz { background: #fff3e0; color: #c07000; }
.mat-badge.mat  { background: #e8f4fd; color: var(--farbe-primaer); }
.mat-badge.proj { background: #f3e8ff; color: #6b21a8; }
.mat-title { font-weight: 600; font-size: 0.92rem; }
.mat-desc  { font-size: 0.82rem; color: var(--farbe-text-hell); }
.mat-leer  { color: var(--farbe-text-hell); font-size: 0.9rem; padding: 0.5rem 0 0.75rem; }

@media (max-width: 600px) { .mat-grid { grid-template-columns: 1fr; } }


/* ================================================================
   SECTION-GRUNDLAYOUT
   ================================================================ */
section {
    padding: 72px 0;
}

/* Abwechselnder Hintergrund für optische Trennung */
section:nth-child(even) {
    background-color: var(--farbe-weiss);
}


/* ================================================================
   FÄCHER-BEREICH
   ================================================================ */
.faecher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

/* Hauptfächer-Reihe: immer genau 2 gleichbreite Spalten */
.faecher-haupt {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .faecher-haupt {
        grid-template-columns: 1fr;
    }
}

.fach-karte {
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--schatten);
    border-top: 4px solid var(--farbe-primaer-hell);
    transition: transform var(--transition), box-shadow var(--transition);
}

.fach-karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(30, 58, 95, 0.15);
}

.fach-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.fach-karte h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 10px;
}

.fach-karte p {
    font-size: 0.93rem;
    color: var(--farbe-text-hell);
    line-height: 1.65;
    margin-bottom: 16px;
}

.fach-karte-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--farbe-primaer-hell);
    margin-top: auto;
    transition: color var(--transition);
}

.fach-karte-link:hover {
    color: var(--farbe-akzent);
}

/* Fach-Karte als Flex-Column damit Link unten bleibt */
.fach-karte {
    display: flex;
    flex-direction: column;
}


/* ================================================================
   MATERIALIEN-BEREICH
   ================================================================ */
#materialien {
    background-color: var(--farbe-hintergrund);
}

/* Farbige Hinweis-Box */
.hinweis-box {
    background-color: #e8f0fe;
    border-left: 4px solid var(--farbe-primaer-hell);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.93rem;
    color: var(--farbe-primaer);
}

.materialien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.material-karte {
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--schatten);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow var(--transition);
}

.material-karte:hover {
    box-shadow: 0 5px 18px rgba(30, 58, 95, 0.13);
}

.material-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.material-info h4 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--farbe-primaer);
    margin-bottom: 4px;
}

.material-info p {
    font-size: 0.87rem;
    color: var(--farbe-text-hell);
}

.material-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--farbe-primaer-hell);
}

.material-link:hover {
    color: var(--farbe-akzent);
}


/* ================================================================
   KONTAKT-BEREICH
   ================================================================ */
#kontakt {
    background-color: var(--farbe-weiss);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.kontakt-karte {
    background-color: var(--farbe-hintergrund);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--schatten);
    transition: transform var(--transition);
}

.kontakt-karte:hover {
    transform: translateY(-3px);
}

.kontakt-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.kontakt-karte h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--farbe-primaer);
    margin-bottom: 8px;
}

.kontakt-karte p {
    font-size: 0.9rem;
    color: var(--farbe-text-hell);
    line-height: 1.6;
}


/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: transparent;            /* schwebend statt durchgezogen */
    padding: 24px clamp(12px, 3vw, 22px) 32px;
    font-size: 0.88rem;
    position: relative;
}

/* Schwebende Footer-„Karte" mit Logo unten links */
.footer-marke {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-inner p {
    margin: 0;
}

.admin-footer-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
    white-space: nowrap;
}
.admin-footer-link:empty {
    display: none;
}
.admin-footer-link:hover {
    color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, var(--farbe-primaer) 0%, var(--farbe-primaer-hell) 100%);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 42, 75, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--farbe-weiss);
}


/* ================================================================
   ABGABE-SEITE (abgabe.html)
   ================================================================ */

/* Einfacher Header ohne vollständige Navigation */
.abgabe-header {
    background: linear-gradient(145deg, var(--farbe-primaer) 0%, var(--farbe-primaer-hell) 100%);
    color: var(--farbe-weiss);
    padding: 40px 0;
    text-align: center;
}

.abgabe-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.abgabe-header p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.abgabe-bereich {
    padding: 52px 0 80px;
    min-height: 60vh;
}

/* Formular-Rahmenbox */
.formular-box {
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    padding: 40px 44px;
    box-shadow: var(--schatten);
    max-width: 700px;
    margin: 0 auto;
}

.formular-titel {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--farbe-rahmen);
}


/* ================================================================
   FORMULAR-ELEMENTE
   ================================================================ */
.formular-gruppe {
    margin-bottom: 22px;
}

.formular-gruppe label {
    display: block;
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--farbe-text);
    margin-bottom: 6px;
}

/* Rotes Sternchen für Pflichtfelder */
.pflichtfeld {
    color: #e74c3c;
    margin-left: 2px;
}

/* Gemeinsame Stile für alle Eingabefelder */
.formular-gruppe input[type="text"],
.formular-gruppe select,
.formular-gruppe textarea,
.formular-gruppe input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: var(--radius);
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--farbe-text);
    background-color: var(--farbe-weiss);
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* Fokus-Highlight */
.formular-gruppe input:focus,
.formular-gruppe select:focus,
.formular-gruppe textarea:focus {
    outline: none;
    border-color: var(--farbe-primaer-hell);
    box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.15);
}

/* Eigener Pfeil für Select-Felder */
.formular-gruppe select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.formular-gruppe textarea {
    resize: vertical;
    min-height: 100px;
}

.formular-gruppe input[type="file"] {
    padding: 8px 10px;
    cursor: pointer;
    background-color: var(--farbe-hintergrund);
}

/* Kleiner Hinweistext unter dem Datei-Upload */
.datei-hinweis {
    font-size: 0.81rem;
    color: var(--farbe-text-hell);
    margin-top: 5px;
}

/* Zwei Felder nebeneinander (Klasse + Fach) */
.formular-zeile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Hinweis zu Pflichtfeldern */
.pflichtfeld-hinweis {
    font-size: 0.81rem;
    color: var(--farbe-text-hell);
    margin-bottom: 18px;
}


/* ================================================================
   BUTTON
   ================================================================ */
.btn-primaer {
    display: block;
    width: 100%;
    background-color: var(--farbe-primaer);
    color: var(--farbe-weiss);
    padding: 13px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
    margin-top: 4px;
}

.btn-primaer:hover {
    background-color: var(--farbe-primaer-hell);
    transform: translateY(-1px);
}

.btn-primaer:active {
    transform: translateY(0);
}

.btn-primaer:disabled {
    background-color: var(--farbe-text-hell);
    cursor: not-allowed;
    transform: none;
}

/* Ladeanzeige unter dem Button */
.laden-anzeige {
    display: none;
    text-align: center;
    margin-top: 14px;
    color: var(--farbe-text-hell);
    font-size: 0.93rem;
}


/* ================================================================
   ERFOLGS-MELDUNG (nach Abgabe)
   ================================================================ */
.erfolg-meldung {
    display: none;           /* Standardmäßig versteckt */
    text-align: center;
    padding: 40px 20px;
}

.erfolg-meldung.sichtbar {
    display: block;          /* Per JavaScript eingeblendet */
}

.erfolg-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.erfolg-meldung h2 {
    color: var(--farbe-erfolg);
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.erfolg-meldung p {
    color: var(--farbe-text-hell);
    font-size: 0.97rem;
    margin-top: 8px;
}


/* ================================================================
   BLOG-TEASER (auf index.html)
   ================================================================ */
#blog-teaser {
    background-color: var(--farbe-hintergrund);
}

.blog-teaser-box {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--schatten);
    border-left: 5px solid var(--farbe-primaer-hell);
}

.blog-teaser-icon {
    font-size: 3rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.blog-teaser-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 8px;
}

.blog-teaser-text p {
    font-size: 0.97rem;
    color: var(--farbe-text-hell);
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-teaser-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-teaser-btn-primaer {
    display: inline-block;
    background-color: var(--farbe-primaer);
    color: var(--farbe-weiss);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color var(--transition);
}

.blog-teaser-btn-primaer:hover {
    background-color: var(--farbe-primaer-hell);
    color: var(--farbe-weiss);
}

.blog-teaser-btn-sekundaer {
    display: inline-block;
    border: 2px solid var(--farbe-primaer-hell);
    color: var(--farbe-primaer-hell);
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color var(--transition), color var(--transition);
}

.blog-teaser-btn-sekundaer:hover {
    background-color: var(--farbe-primaer-hell);
    color: var(--farbe-weiss);
}

@media (max-width: 600px) {
    .blog-teaser-box {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }
}


/* ================================================================
   BLOG-SEITE
   ================================================================ */

/* Hero */
.blog-hero {
    background: linear-gradient(145deg, var(--farbe-primaer) 0%, var(--farbe-primaer-hell) 100%);
    color: var(--farbe-weiss);
    padding: 64px 0 56px;
    text-align: center;
}

.blog-hero-inhalt {
    max-width: 680px;
    margin: 0 auto;
}

.blog-hero-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.blog-hero-untertitel {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 28px;
}

.btn-blog-einreichen {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--farbe-weiss);
    padding: 11px 26px;
    border-radius: 24px;
    font-size: 0.97rem;
    font-weight: 600;
    transition: background-color var(--transition), border-color var(--transition);
}

.btn-blog-einreichen:hover {
    background-color: rgba(255, 255, 255, 0.32);
    border-color: var(--farbe-weiss);
    color: var(--farbe-weiss);
}

/* Filter-Leiste */
.blog-filter-leiste {
    background-color: var(--farbe-weiss);
    border-bottom: 1px solid var(--farbe-rahmen);
    padding: 16px 0;
    position: sticky;
    top: 64px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.07);
}

.blog-filter-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-gruppe {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--farbe-text);
    white-space: nowrap;
}

.filter-select {
    padding: 7px 32px 7px 11px;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--farbe-text);
    background-color: var(--farbe-weiss);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--farbe-primaer-hell);
    box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.15);
}

.filter-zurueck {
    padding: 7px 14px;
    background: none;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-family: inherit;
    color: var(--farbe-text-hell);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    display: none; /* wird per JS eingeblendet wenn Filter aktiv */
}

.filter-zurueck.sichtbar {
    display: block;
}

.filter-zurueck:hover {
    border-color: var(--farbe-primaer-hell);
    color: var(--farbe-primaer-hell);
}

/* Blog-Bereich */
.blog-bereich {
    padding: 40px 0 80px;
    min-height: 50vh;
}

.blog-anzahl {
    font-size: 0.88rem;
    color: var(--farbe-text-hell);
    margin-bottom: 24px;
}

/* Blog-Grid: 3 Spalten auf Desktop */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Blog-Karte */
.blog-karte {
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(30, 58, 95, 0.15);
}

/* Vorschaubereich oben in der Karte */
.blog-karte-vorschau {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: var(--farbe-hintergrund);
}

/* Platzhalter-Vorschau (kein Bild) */
.blog-karte-vorschau-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background-color: var(--farbe-hintergrund);
    border-bottom: 1px solid var(--farbe-rahmen);
}

/* Inhalt der Karte */
.blog-karte-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fach-Badge */
.blog-fach-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fach-deutsch       { background-color: #fde8e8; color: #c0392b; }
.fach-geschichte    { background-color: #fef3e2; color: #d35400; }
.fach-wipo          { background-color: #e8f5e9; color: #27ae60; }
.fach-informatik    { background-color: #e8f0fe; color: #2d6a9f; }
.fach-werte-normen  { background-color: #f3e8ff; color: #7c3aed; }
.fach-ag-projekte   { background-color: #e0f7fa; color: #00838f; }
.fach-sonstige      { background-color: #f0f0f0; color: #555; }

.blog-karte h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-karte-meta {
    font-size: 0.82rem;
    color: var(--farbe-text-hell);
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-karte-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-karte-beschreibung {
    font-size: 0.88rem;
    color: var(--farbe-text-hell);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    /* Maximal 3 Zeilen anzeigen */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-karte-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--farbe-rahmen);
}

.blog-karte-typ {
    font-size: 0.78rem;
    color: var(--farbe-text-hell);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-karte-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--farbe-primaer-hell);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color var(--transition);
}

.blog-karte-btn:hover {
    color: var(--farbe-akzent);
}

/* Leer-Zustand */
.blog-leer {
    text-align: center;
    padding: 60px 0;
    color: var(--farbe-text-hell);
}

.blog-leer-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.blog-leer p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Lightbox / Vorschau-Dialog */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-schliessen {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--farbe-weiss);
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
    z-index: 501;
}

.lightbox-schliessen:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-inhalt {
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 40px;
    position: relative;
}

/* Textvorschau in der Lightbox */
.lightbox-text-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--farbe-rahmen);
}

.lightbox-text-header h2 {
    font-size: 1.4rem;
    color: var(--farbe-primaer);
    margin-bottom: 6px;
}

.lightbox-text-header .lightbox-meta {
    font-size: 0.87rem;
    color: var(--farbe-text-hell);
}

.lightbox-textinhalt {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--farbe-text);
    white-space: pre-wrap;
    font-family: 'Inter', Georgia, serif;
}

/* Bildvorschau in der Lightbox */
.lightbox-bild {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}

.lightbox-bild-header {
    margin-bottom: 16px;
}

.lightbox-bild-header h2 {
    font-size: 1.2rem;
    color: var(--farbe-primaer);
    margin-bottom: 4px;
}

.lightbox-bild-header .lightbox-meta {
    font-size: 0.87rem;
    color: var(--farbe-text-hell);
}

/* Download-Link in der Lightbox */
.lightbox-download {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 22px;
    background-color: var(--farbe-primaer);
    color: var(--farbe-weiss);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color var(--transition);
}

.lightbox-download:hover {
    background-color: var(--farbe-primaer-hell);
    color: var(--farbe-weiss);
}


/* ================================================================
   RESPONSIVES DESIGN (Smartphones & Tablets)
   ================================================================ */
@media (max-width: 768px) {

    /* --- Navigation: Hamburger-Menü aktivieren --- */
    .hamburger {
        display: flex;
        grid-column: 3;
        justify-self: end;
    }

    /* Schwebende Leiste auf Mobile: Logo links, Hamburger rechts */
    .navbar-inner {
        display: flex;
        justify-content: space-between;
        height: 56px;
    }

    /* Wortmarke auf Mobile ausblenden – die Bildmarke genügt */
    .navbar-logo-text {
        display: none;
    }

    .navbar-links {
        /* Dropdown-Menü unter der schwebenden Leiste */
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 8px);
        left: clamp(12px, 3vw, 22px);
        right: clamp(12px, 3vw, 22px);
        background: linear-gradient(135deg, var(--farbe-primaer) 0%, var(--farbe-primaer-hell) 100%);
        padding: 10px 12px;
        gap: 2px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 16px;
        box-shadow: 0 14px 34px rgba(15, 42, 75, 0.3);
    }

    /* Klasse wird per JS umgeschaltet */
    .navbar-links.offen {
        display: flex;
    }

    /* Im Mobile-Menü: Icon + Text nebeneinander (Tooltips entfallen bei Touch) */
    .navbar-links .nav-item,
    .navbar-links > li > a {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px;
        display: flex;
        font-size: 1rem;
    }

    .nav-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        overflow: visible;
    }

    .nav-item[data-tooltip]::after,
    .nav-item[data-tooltip]::before {
        display: none;          /* Tooltip auf Touch-Geräten ausblenden */
    }

    .navbar-dropdown-toggle {
        width: 100%;
        text-align: left;
        font-size: 1rem;
    }

    .navbar-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
        margin: 2px 0;
        padding: 4px 0;
    }

    .navbar-dropdown-menu a {
        color: rgba(255, 255, 255, 0.82);
        padding: 10px 24px;
    }

    .navbar-dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--farbe-weiss);
    }

    /* Geschützter-Bereich Trenner: auf Mobile horizontal */
    .navbar-gb-trenner {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        height: auto;
        margin: 6px 0 2px;
        padding: 6px 14px 2px;
        align-items: flex-start;
    }

    /* Bereichs-Label im Mobile-Menü wieder sichtbar machen */
    .navbar-gb-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        overflow: visible;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 210, 80, 0.65);
        padding: 0;
    }

    .navbar-gb-link {
        padding: 12px 14px;
    }

    /* Footer auf Mobile: Logo + Copyright zentriert */
    .footer-marke {
        justify-content: center;
    }

    /* --- Hero --- */
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 52px 0;
    }

    /* --- Sections --- */
    section {
        padding: 48px 0;
    }

    .section-titel {
        font-size: 1.6rem;
    }

    /* --- Formular: einspaltig auf Mobilgeräten --- */
    .formular-zeile {
        grid-template-columns: 1fr;
    }

    .formular-box {
        padding: 28px 20px;
    }

    /* --- Footer --- */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* --- Blog --- */
    .blog-filter-inner {
        gap: 12px;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-inhalt {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.4rem;
    }

    .formular-box {
        padding: 22px 16px;
    }

    .blog-filter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ── QUIZZE-SEKTION ─────────────────────────────────────────────────────────── */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.quiz-feature-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #163050 100%);
  border: 2px solid #4a9eda;
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(74, 158, 218, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.quiz-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(74, 158, 218, 0.28);
}

/* Variante: Literaturwissenschaft-Quiz (lila Akzent) */
.quiz-feature-card.quiz-lila {
  background: linear-gradient(135deg, #2a1e5f 0%, #1e1640 100%);
  border-color: #9b7fe8;
  box-shadow: 0 8px 32px rgba(155, 127, 232, 0.18);
}
.quiz-feature-card.quiz-lila:hover {
  box-shadow: 0 14px 40px rgba(155, 127, 232, 0.28);
}
.quiz-feature-card.quiz-lila .quiz-badge {
  background: rgba(155, 127, 232, 0.2);
  color: #c4aff5;
  border-color: #9b7fe8;
}
.quiz-feature-card.quiz-lila .quiz-fach-badge {
  border-color: #9b7fe8;
  color: #c4aff5;
}
.quiz-feature-card.quiz-lila .btn-primary {
  background: linear-gradient(135deg, #9b7fe8, #6a5acd);
  box-shadow: 0 4px 16px rgba(155, 127, 232, 0.4);
}
.quiz-feature-card.quiz-lila .btn-primary:hover {
  background: linear-gradient(135deg, #b39af0, #9b7fe8);
}
/* Variante: Rechtschreib-Quiz (grün Akzent) */
.quiz-feature-card.quiz-gruen {
  background: linear-gradient(135deg, #1a3d1a 0%, #0f2b0f 100%);
  border-color: #5db85d;
  box-shadow: 0 8px 32px rgba(93, 184, 93, 0.18);
}
.quiz-feature-card.quiz-gruen:hover {
  box-shadow: 0 14px 40px rgba(93, 184, 93, 0.28);
}
.quiz-feature-card.quiz-gruen .quiz-badge {
  background: rgba(93, 184, 93, 0.2);
  color: #a3d9a3;
  border-color: #5db85d;
}
.quiz-feature-card.quiz-gruen .quiz-fach-badge {
  border-color: #5db85d;
  color: #a3d9a3;
}
.quiz-feature-card.quiz-gruen .btn-primary {
  background: linear-gradient(135deg, #5db85d, #3a8a3a);
  box-shadow: 0 4px 16px rgba(93, 184, 93, 0.4);
}
.quiz-feature-card.quiz-gruen .btn-primary:hover {
  background: linear-gradient(135deg, #7dcc7d, #5db85d);
}

.quiz-feature-meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}
.quiz-badge {
  background: #e8c468;
  color: #1e3a5f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}
.quiz-fach-badge {
  background: rgba(74,158,218,0.18);
  color: #7ec8f8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #4a9eda;
}
.quiz-feature-icon { font-size: 2.8rem; margin-bottom: 12px; }
.quiz-feature-titel { color: #fff; font-size: 1.55rem; margin-bottom: 12px; font-weight: 700; }
.quiz-feature-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.quiz-btn { padding: 13px 36px; font-size: 1rem; font-weight: 700; }

@media (max-width: 768px) {
  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-feature-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .quiz-feature-card { padding: 22px 16px; }
  .quiz-feature-titel { font-size: 1.25rem; }
  .quiz-feature-desc { font-size: 0.88rem; }
}


/* ================================================================
   WAS IST NEU?
   ================================================================ */

#was-ist-neu {
    background-color: var(--farbe-weiss);
    padding: 2rem 0 2.25rem;
    border-bottom: 1px solid var(--farbe-rahmen);
}

#was-ist-neu .section-titel::before {
    content: '';
    display: inline-block;
    width: 5px; height: 1em;
    background: linear-gradient(to bottom, var(--farbe-akzent), var(--farbe-primaer));
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
    position: relative; top: -2px;
}

.win-laden {
    text-align: center;
    color: var(--farbe-text-hell);
    padding: 1rem 0;
    font-size: 0.9rem;
}

.win-leer {
    color: var(--farbe-text-hell);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Kompaktes 5-Spalten-Grid */
.win-tabellen-wrapper { }

.win-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .75rem;
}

.win-col {
    background: var(--farbe-hintergrund);
    border: 1px solid var(--farbe-rahmen);
    border-radius: var(--radius);
    overflow: hidden;
}

.win-col-header {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    background: var(--farbe-primaer);
    color: #fff;
}

.win-col-icon { font-size: .95rem; flex-shrink: 0; }

.win-col-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.2;
}

.win-item {
    display: block;
    padding: .5rem .7rem;
    border-bottom: 1px solid var(--farbe-rahmen);
    text-decoration: none;
    transition: background var(--transition);
}

.win-item:last-child { border-bottom: none; }

.win-item:hover { background: rgba(74,158,218,.07); }

.win-item-titel {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--farbe-text);
    line-height: 1.35;
    margin-bottom: 2px;
}

.win-item:hover .win-item-titel { color: var(--farbe-akzent); }

.win-item-meta {
    display: block;
    font-size: .7rem;
    color: var(--farbe-text-hell);
    line-height: 1.3;
}

.win-item-datum {
    display: block;
    font-size: .67rem;
    color: var(--farbe-akzent);
    margin-top: 2px;
}

@media (max-width: 1100px) {
    .win-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .win-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ================================================================
   LERNKOLOSSEUM – Herrmanns Lernwelt
   ================================================================ */

.lernkolosseum-section {
    background: linear-gradient(160deg, #0d1b2a 0%, #1e2d45 50%, #0f2237 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Dekorative Sternchen im Hintergrund */
.lernkolosseum-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 15% 20%, rgba(255,255,255,0.18) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(2px 2px at 70% 15%, rgba(255,255,255,0.14) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 75%, rgba(255,255,255,0.16) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 85%, rgba(255,255,255,0.10) 0%, transparent 100%);
    pointer-events: none;
}

/* Header-Bereich */
.kolosseum-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.kolosseum-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFE66D;
    background: rgba(255, 230, 109, 0.1);
    border: 1px solid rgba(255, 230, 109, 0.3);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    margin-bottom: 0.8rem;
}

.kolosseum-titel {
    color: #ffffff !important;
    font-size: 2.4rem;
}

.kolosseum-untertitel {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.05rem;
}

.kolosseum-login-btn {
    display: inline-block;
    margin-top: 1.4rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 1.15rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.kolosseum-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(124, 58, 237, 0.7);
    color: #fff;
}

/* Ghost-Variante (ohne Login spielen) */
.kolosseum-btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}
.kolosseum-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

/* === GLADIATOREN-KAMPF TEASER === */
.gladiatoren-teaser {
    position: relative;
    overflow: hidden;
    background: #0d1b2a;
    padding: 3.5rem 0;
}

.gladiatoren-teaser-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 65% 40%, rgba(74,158,218,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 70%, rgba(74,158,218,0.04) 0%, transparent 45%);
}

.gladiatoren-teaser-content {
    position: relative;
    z-index: 1;
}

.gladiatoren-teaser-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.gladiatoren-teaser-text {
    flex: 1;
    min-width: 260px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 1.75rem 2rem;
}

.gladiatoren-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f6ad55;
    margin-bottom: .6rem;
}

.gladiatoren-headline {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .75rem;
}

.gladiatoren-beschr {
    font-size: 1rem;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 1.25rem;
}

.gladiatoren-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    margin-bottom: 1.5rem;
}

.gladiatoren-stat {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}
.gs-icon { font-size: 1rem; }

.gladiatoren-btn {
    display: inline-block;
    padding: .9rem 2.2rem;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(231,76,60,.4);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gladiatoren-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(231,76,60,.5);
}

.gladiatoren-teaser-bild {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gladiatoren-img {
    width: clamp(200px, 28vw, 320px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    display: block;
}

.gladiatoren-svg-icon {
    width: clamp(160px, 22vw, 260px);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.45));
}

@media (max-width: 680px) {
    .gladiatoren-teaser { padding: 2.5rem 0; }
    .gladiatoren-teaser-bild { display: none; }
}


/* === KOLOSSEUM TEASER (kompakter Startseiten-Block) === */
.kolosseum-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f0f6ff, #e8f4fe);
    border: 1.5px solid rgba(74,158,218,.25);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    flex-wrap: wrap;
}
.kolosseum-teaser-left { flex: 1; min-width: 240px; }
.kolosseum-teaser-right {
    display: flex; flex-direction: column; gap: .5rem;
    flex-shrink: 0;
}
@media (max-width: 700px) {
    .kolosseum-teaser { padding: 1.5rem; }
    .kolosseum-teaser-right { display: none; } /* Bild auf Handy ausblenden */
}

/* CTA-Gruppe: zwei Buttons nebeneinander */
.kolosseum-cta-gruppe {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

/* === PORTAL-KARTEN === */
.portale-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.portal-karte {
    position: relative;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: block;
}

.portal-karte:hover {
    transform: translateY(-6px);
    text-decoration: none;
    color: #ffffff;
}

.portal-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.portal-karte:hover .portal-glow { opacity: 1; }

/* Heldenprofil – Lila */
.portal-held {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    border: 1.5px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
}
.portal-held:hover {
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.45);
}
.portal-held .portal-glow {
    background: radial-gradient(circle at 50% 0%, rgba(167,139,250,0.3) 0%, transparent 70%);
}

/* Heldenrangliste – Gold */
.portal-rangliste {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
    border: 1.5px solid rgba(252, 211, 77, 0.4);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.25);
}
.portal-rangliste:hover {
    box-shadow: 0 16px 48px rgba(217, 119, 6, 0.45);
}
.portal-rangliste .portal-glow {
    background: radial-gradient(circle at 50% 0%, rgba(252,211,77,0.3) 0%, transparent 70%);
}

/* Arbeitsblätter – Teal */
.portal-arbeitsblatt {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    border: 1.5px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.25);
}
.portal-arbeitsblatt:hover {
    box-shadow: 0 16px 48px rgba(5, 150, 105, 0.45);
}
.portal-arbeitsblatt .portal-glow {
    background: radial-gradient(circle at 50% 0%, rgba(52,211,153,0.3) 0%, transparent 70%);
}

.portal-emoji {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.portal-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.portal-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.portal-pfeil {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s;
}

.portal-karte:hover .portal-pfeil {
    background: rgba(255, 255, 255, 0.25);
}

/* === DIVIDER === */
.kolosseum-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.kolosseum-divider::before,
.kolosseum-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}
.kolosseum-divider span {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.6);
}

/* === QUIZ-GRID IM KOLOSSEUM === */
.kolosseum-quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 1rem;
}

/* Quizze erben die bestehenden .quiz-feature-card Styles */
.kolosseum-quiz-grid .quiz-feature-card {
    /* leicht erhöhter Kontrast im dunklen Sektionshintergrund */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === ARBEITSBLATT-INTRO === */
.arbeitsblatt-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2rem 2.5rem;
}

.arbeitsblatt-intro-titel {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.arbeitsblatt-intro-text p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-size: 0.97rem;
    margin-bottom: 1rem;
}

.arbeitsblatt-intro-text p strong { color: #FFE66D; }

.arbeitsblatt-badges-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arbeitsblatt-badge-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Vorschau-Karten */
.arbeitsblatt-vorschau {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ab-vorschau-karte {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ab-vc-fach {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    width: 130px;
    flex-shrink: 0;
}

.ab-vc-titel {
    flex: 1;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.ab-vc-xp {
    font-weight: 800;
    color: #4ECDC4;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .portale-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .portal-karte { padding: 1.5rem 1.2rem; }
    .portal-emoji { font-size: 2.2rem; }
    .arbeitsblatt-intro {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .arbeitsblatt-vorschau { display: none; }
    .kolosseum-titel { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .kolosseum-quiz-grid { grid-template-columns: 1fr; }
}

/* === DIGITALE MATERIALIEN – Arbeitsblätter & Quizze === */
#digitale-materialien {
    padding: 3rem 0;
    background: var(--farbe-weiss);
}

.dm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.dm-karte {
    background: #fff;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
}
.dm-karte:hover {
    box-shadow: 0 6px 20px rgba(30,58,95,.12);
    border-color: var(--farbe-akzent);
    transform: translateY(-2px);
    color: inherit;
}

.dm-karte-badges {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.dm-typ {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}
.dm-typ-ab   { background: #E6F1FB; color: #0C447C; }
.dm-typ-quiz { background: #FFF3CD; color: #7A4800; }

.dm-fach {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #555;
}

.dm-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-top: .1rem;
}

.dm-titel {
    font-size: .97rem;
    font-weight: 600;
    color: var(--farbe-primaer);
    line-height: 1.3;
}

.dm-beschr {
    font-size: .82rem;
    color: var(--farbe-text-hell, #6c757d);
    line-height: 1.5;
    flex: 1;
}

.dm-pfeil {
    font-size: .82rem;
    font-weight: 600;
    color: var(--farbe-akzent);
    margin-top: .2rem;
}

@media (max-width: 900px) {
    .dm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .dm-grid { grid-template-columns: 1fr; }
}

/* Jahrgangs-Filter-Leiste */
.dm-filter-leiste {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: .25rem;
}

.dm-filter-btn {
    padding: .38rem .95rem;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: 20px;
    background: #fff;
    color: var(--farbe-text-hell);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.dm-filter-btn:hover {
    border-color: var(--farbe-akzent);
    color: var(--farbe-primaer);
}

.dm-filter-btn.aktiv {
    background: var(--farbe-primaer);
    border-color: var(--farbe-primaer);
    color: #fff;
}


/* ================================================================
   UPLOAD-FEED – Chronologische Materialien-Übersicht
   ================================================================ */

#upload-feed {
    padding: 60px 0 64px;
    background: var(--farbe-hintergrund);
}

.uf-filter {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.75rem;
}

.uf-laden,
.uf-leer {
    color: var(--farbe-text-hell);
    font-size: .95rem;
    padding: 1rem 0;
}

.uf-liste {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.uf-item {
    display: grid;
    grid-template-columns: 6rem 2.2rem 1fr auto;
    align-items: center;
    gap: .75rem 1rem;
    background: #fff;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    text-decoration: none;
    color: var(--farbe-text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.uf-item:hover {
    border-color: var(--farbe-akzent);
    box-shadow: 0 4px 14px rgba(74,158,218,.13);
    transform: translateY(-1px);
}

.uf-datum {
    font-size: .78rem;
    color: var(--farbe-text-hell);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.uf-icon {
    font-size: 1.35rem;
    text-align: center;
    line-height: 1;
}

.uf-content {
    min-width: 0;
}

.uf-titel {
    font-size: .95rem;
    font-weight: 600;
    color: var(--farbe-primaer);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uf-item:hover .uf-titel {
    color: var(--farbe-akzent);
}

.uf-beschr {
    font-size: .8rem;
    color: var(--farbe-text-hell);
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uf-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
    flex-shrink: 0;
}

.uf-typ {
    font-size: .72rem;
    font-weight: 700;
    padding: .18rem .55rem;
    border-radius: 12px;
    white-space: nowrap;
}

.uf-typ-ab      { background: #E6F1FB; color: #0C447C; }
.uf-typ-quiz    { background: #FFF3CD; color: #7A4800; }
.uf-typ-raetsel { background: #EDE7F6; color: #4527A0; }
.uf-typ-ppp     { background: #E8F5E9; color: #1B5E20; }
.uf-typ-mat     { background: #F3F3F3; color: #555;    }

.uf-fach {
    font-size: .72rem;
    color: var(--farbe-text-hell);
    white-space: nowrap;
}

.uf-mehr-btn {
    padding: .6rem 2rem;
    background: var(--farbe-primaer);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
}

.uf-mehr-btn:hover {
    background: var(--farbe-primaer-hell);
}

@media (max-width: 768px) {
    .uf-item {
        grid-template-columns: 5.5rem 1.8rem 1fr;
        grid-template-rows: auto auto;
    }
    .uf-badges {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: .4rem;
    }
}

@media (max-width: 480px) {
    .uf-item {
        grid-template-columns: 1.8rem 1fr;
        grid-template-rows: auto auto auto;
    }
    .uf-datum {
        grid-column: 1 / -1;
        text-align: left;
    }
    .uf-badges {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}


/* ================================================================
   LEGAL-SEITEN (impressum.html, datenschutz.html)
   ================================================================ */

.legal-main {
    padding: 3rem 0 4rem;
    min-height: calc(100vh - 140px);
}

.legal-container {
    max-width: 800px;
}

.legal-titel {
    font-size: 2rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 6px;
}

.legal-gemaess {
    font-size: 0.88rem;
    color: var(--farbe-text-hell);
    margin-bottom: 2.5rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-abschnitt-titel {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--farbe-rahmen);
}

.legal-block {
    background-color: var(--farbe-weiss);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1rem;
    box-shadow: var(--schatten);
}

.legal-block h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--farbe-primaer);
    margin-bottom: 0.6rem;
}

.legal-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--farbe-primaer);
    margin-bottom: 0.6rem;
}

.legal-block p {
    font-size: 0.93rem;
    color: var(--farbe-text);
    line-height: 1.7;
    margin-bottom: 0.7rem;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.legal-block address {
    font-style: normal;
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--farbe-text);
    margin-bottom: 0.5rem;
}

.legal-hinweis-klein {
    font-size: 0.82rem !important;
    color: var(--farbe-text-hell) !important;
}

.legal-liste {
    list-style: disc;
    padding-left: 1.3rem;
    margin: 0.6rem 0;
}

.legal-liste li {
    font-size: 0.93rem;
    color: var(--farbe-text);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-block-warnung {
    border-left: 4px solid #e67e22;
    background-color: #fff8f3;
}

.legal-block-warnung h3 {
    color: #c0392b;
}


/* ================================================================
   NUTZUNGSHINWEIS (auf Formular-Seiten)
   ================================================================ */

.nutzungshinweis {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #e67e22;
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    color: #5a3e00;
    line-height: 1.6;
}

.nutzungshinweis a {
    color: #7d4e00;
    text-decoration: underline;
}

.nutzungshinweis a:hover {
    color: var(--farbe-primaer);
}

@media (max-width: 600px) {
    .legal-block {
        padding: 1rem 1.1rem;
    }
    .legal-titel {
        font-size: 1.6rem;
    }
}


/* ================================================================
   BEREICHE-ÜBERSICHT (Homepage – immer öffentlich sichtbar)
   ================================================================ */

/* Aufbau-Banner zwischen Navbar und Kacheln */
.aufbau-banner {
    background: #fff8e6;
    border-bottom: 2px solid #f6c84e;
    color: #6b4a00;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.55;
    padding: .7rem 1.5rem;
    text-align: center;
}

#bereiche-uebersicht,
.bereiche-uebersicht-section {
    background: var(--farbe-hintergrund);
    padding: 4rem 0;
}

.bereiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.bereich-karte {
    background: #fff;
    border: 1.5px solid var(--farbe-rahmen);
    border-radius: 14px;
    padding: 1.5rem 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.bereich-karte:hover {
    box-shadow: 0 6px 24px rgba(30,58,95,.13);
    transform: translateY(-3px);
    border-color: var(--farbe-akzent);
    color: inherit;
}

.bereich-karte-klickbar {
    cursor: pointer;
}

.bereich-badge-zeile {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.bereich-status {
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 20px;
    letter-spacing: .02em;
}

.bereich-status-offen {
    background: #e8f8f0;
    color: #1a7a4a;
}

.bereich-status-gesperrt {
    background: #fef0e7;
    color: #b05600;
}

.bereich-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-top: .25rem;
}

.bereich-karte h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--farbe-primaer);
    margin: 0;
}

.bereich-karte p {
    font-size: .9rem;
    color: var(--farbe-text-hell);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.bereich-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .25rem;
}

.bereich-links a {
    font-size: .8rem;
    font-weight: 600;
    color: var(--farbe-akzent);
    text-decoration: none;
    background: rgba(74,158,218,.1);
    padding: .25rem .65rem;
    border-radius: 20px;
    transition: background var(--transition);
}

.bereich-links a:hover {
    background: rgba(74,158,218,.22);
}

.bereich-cta {
    font-size: .9rem;
    font-weight: 700;
    color: var(--farbe-akzent);
    margin-top: .25rem;
}

.bereich-aufbau-hinweis {
    font-size: .78rem;
    color: var(--farbe-text-hell);
    margin: .5rem 0 0;
    padding-top: .5rem;
    border-top: 1px solid var(--farbe-rahmen);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .bereiche-grid {
        grid-template-columns: 1fr;
    }
}
