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


/* ---- 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 {
    background-color: var(--farbe-primaer);
    position: sticky; /* Bleibt beim Scrollen oben */
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo / Name links */
.navbar-logo {
    color: var(--farbe-weiss);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

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

/* Navigationslinks rechts */
.navbar-links {
    display: flex;
    gap: 4px;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color var(--transition), color var(--transition);
}

.navbar-links a:hover,
.navbar-links a.aktiv {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--farbe-weiss);
}

/* 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;
}

/* Fach-Badges im Hero */
.hero-faecher {
    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;
}


/* ================================================================
   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-color: var(--farbe-primaer);
    color: rgba(255, 255, 255, 0.65);
    padding: 28px 0;
    font-size: 0.88rem;
    position: relative;
}

.admin-footer-link {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
}
.admin-footer-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    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;
    }

    .navbar-links {
        /* Dropdown-Menü unter der Navbar */
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--farbe-primaer);
        padding: 12px 16px;
        gap: 2px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

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

    .navbar-links a {
        padding: 12px 14px;
        display: block;
        font-size: 1rem;
    }

    /* --- 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: 56px 0 64px;
    border-bottom: 1px solid var(--farbe-rahmen);
}

/* Leuchtender Akzentbalken links an der Sektion */
#was-ist-neu .section-titel::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1em;
    background: linear-gradient(to bottom, var(--farbe-akzent), var(--farbe-primaer));
    border-radius: 3px;
    margin-right: 12px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Lade-Platzhalter */
.win-laden {
    text-align: center;
    color: var(--farbe-text-hell);
    padding: 28px 0;
    font-size: 0.95rem;
}

/* Kein-Inhalt-Nachricht */
.win-leer {
    color: var(--farbe-text-hell);
    font-style: italic;
    text-align: center;
    padding: 28px 0;
}

/* Tabellen-Wrapper für horizontales Scrollen auf kleinen Screens */
.win-tabellen-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
}

/* Tabelle */
.win-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--farbe-weiss);
}

.win-tabelle thead tr {
    background: var(--farbe-primaer);
    color: var(--farbe-weiss);
}

.win-tabelle thead th {
    padding: 13px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.win-tabelle tbody tr {
    border-bottom: 1px solid var(--farbe-rahmen);
    transition: background-color var(--transition);
}

.win-tabelle tbody tr:last-child {
    border-bottom: none;
}

.win-tabelle tbody tr:hover {
    background-color: rgba(74, 158, 218, 0.06);
}

.win-tabelle td {
    padding: 14px 18px;
    vertical-align: top;
}

/* Kategorie-Spalte */
.win-kat {
    min-width: 150px;
    white-space: nowrap;
}

.win-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 1.05em;
}

.win-kat-text {
    font-weight: 600;
    color: var(--farbe-primaer);
    font-size: 0.88rem;
}

.win-meta {
    display: block;
    color: var(--farbe-text-hell);
    font-size: 0.78rem;
    margin-top: 2px;
    font-weight: 400;
}

/* Titel-Spalte */
.win-titel a {
    color: var(--farbe-text);
    font-weight: 500;
    transition: color var(--transition);
}

.win-titel a:hover {
    color: var(--farbe-akzent);
    text-decoration: underline;
}

/* Datum-Spalte */
.win-datum {
    white-space: nowrap;
    color: var(--farbe-text-hell);
    font-size: 0.86rem;
    text-align: right;
    min-width: 120px;
}

.win-uhrzeit {
    color: var(--farbe-akzent);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
    .win-tabelle { font-size: 0.88rem; }
    .win-tabelle td,
    .win-tabelle th { padding: 11px 12px; }
    .win-kat { min-width: 110px; }
    .win-uhrzeit { display: none; }
}


/* ================================================================
   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;
}

/* === 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; }
}
