/* ==========================================================================
   1. BASICS & VARIABLEN (Jetzt mit deinem Blau als Hintergrund)
   ========================================================================== */
:root {
    --primary-color: #79BFFD;       /* Dein Blau - Jetzt die Hauptfarbe */
    --primary-dark: #479CEB;        /* Ein sattes, dunkleres Blau für Kontraste/Hover */
    --bg-light: #79BFFD;            /* Dein Blau als großflächiger Hintergrund */
    --text-dark: #1A1E24;           /* Sehr tiefes, fast schwarzes Anthrazit für Text */
    --text-muted: #505A69;          /* Dezenteres Dunkelgrau für Nebeninfos */
    --white: #FFFFFF;               /* Strahlendes Weiß für die Inhalts-Boxen */
    --border-color: #E2ECF5;        /* Sehr softes Hellblau für feine Trennlinien */
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light); /* Hier strahlt jetzt dein Blau */
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px; 
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Rein CSS Burger-Menü - Fixiert)
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Die Checkbox bleibt im Hintergrund unsichtbar */
.menu-checkbox {
    display: none;
}

/* --- BURGER BUTTON (Standardmäßig am PC ausgeblendet) --- */
.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- MOBIL-ANSICHT (Smartphone & Tablet) --- */
@media (max-width: 767px) {
    
    .menu-toggle {
        display: flex; /* Zeigt das Burger-Icon auf dem Handy */
    }

    .main-nav {
        display: none; /* Versteckt das Menü standardmäßig */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        list-style: none;
    }

    .main-nav a {
        display: block;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    /* --- HIER PASSIERT DER DIE INTERAKTION --- */
    /* Wenn die Checkbox geklickt ist (~ sucht das nachfolgende Element), zeige das Menü */
    .menu-checkbox:checked ~ .main-nav {
        display: block;
    }

    /* Verwandelt die 3 Striche flüssig in ein X, wenn geöffnet */
    .menu-checkbox:checked ~ .menu-toggle .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-checkbox:checked ~ .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked ~ .menu-toggle .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- DESKTOP-ANSICHT (PC & große Bildschirme) --- */
@media (min-width: 768px) {
    .main-nav {
        display: block; /* Auf dem PC immer sichtbar */
    }

    .main-nav ul {
        display: flex;
        list-style: none;
        gap: 30px;
    }

    .main-nav a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 1.05rem;
        transition: color 0.2s ease;
    }

    .main-nav a:hover {
        color: var(--primary-dark);
    }
}
/* ==========================================================================
   3. HERO SECTION (Nahtloser Übergang in den Hintergrund)
   ========================================================================== */
.hero-section {
    background-color: var(--primary-color); /* Gleiche Farbe wie der Body */
    padding: 100px 0 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark); /* Dunkler Text knallt richtig gut auf dem Blau */
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-dark);
    opacity: 0.85; /* Macht den Text etwas softer, bleibt aber top lesbar */
    max-width: 650px;
    margin: 0 auto 35px auto;
}

/* Der Button muss sich jetzt vom blauen Hintergrund abheben -> Er wird dunkel */
.btn-primary {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: #000000; /* Wird knackig schwarz beim Drüberfahren */
    transform: translateY(-2px);
}
.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-dark);
    border: none;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* ==========================================================================
   4. LAYOUT GRID & CARDS
   ========================================================================== */
.main-content {
    padding: 60px 20px;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr; /* Eine Spalte auf dem Handy */
    gap: 60px;                  /* Größerer Abstand zwischen den beiden Hauptblöcken */
    width: 100%;
}

.highlight-box {
    display: flex;
    flex-direction: column;
}

.highlight-box h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-dark); /* Sorgt für klaren Kontrast auf dem Blau */
}

/* Der blaue/dunkle Strich unter der Überschrift */
.highlight-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--text-dark); /* Dunkel, damit man ihn auf dem blauen Grund sieht */
}

/* Ab Tablet/PC stehen sie wieder sauber nebeneinander */
@media (min-width: 768px) {
    .grid-split {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px; /* Seitlicher Abstand zwischen den Spalten am PC */
    }
}



.highlight-box h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Kleiner blauer Akzentstrich unter den Sektions-Überschriften */
.highlight-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Die Karten-Struktur für Blog & Sammlung */
.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Spezieller Hover-Effekt für die Sammlung (Blauer Rahmen) */
.collection-card:hover {
    border-color: var(--primary-color);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Format für die Platzhalter-Bilder */
    background-color: #E9ECEF;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date, .card-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: inline-block;
}

.card-category {
    color: var(--primary-color);
    font-weight: 600;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ==========================================================================
   5. BUTTONS & LINKS
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Schiebt den Link immer ganz nach unten in der Karte */
    display: inline-block;
}

.text-link:hover {
    color: var(--primary-dark);
}

.section-footer {
    margin-top: 25px;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: #CED4DA;
    padding: 40px 0;
    margin-top: 80px;
    font-size: 0.9rem;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

@media (min-width: 576px) {
    .footer-flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-info strong {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (min-width: 576px) {
    .footer-links {
        justify-content: flex-end;
    }
}

/* HIER IST DIE GEÄNDERTE UND SPEZIFISCHERE REGEL: */
.main-footer .footer-links a {
    color: #FFFFFF !important; /* Das !important erzwingt das Weiß radikal gegen andere Regeln */
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.main-footer .footer-links a:hover {
    color: var(--primary-color) !important; /* Färbt sich beim Hovern blau */
}

/* ==========================================================================
   7. BLOG-UNTERSEITE STYLING
   ========================================================================== */

/* Die Einleitung oben auf der Blog-Seite */
.page-title-section {
    text-align: center;
    padding: 60px 0 20px 0;
    color: var(--text-dark);
}

.page-title-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-title-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Der Inhaltsbereich für die Blog-Liste */
.blog-main-content {
    padding: 40px 20px 80px 20px;
}

/* Das Raster für die Blog-Karten */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil: Schön untereinander */
    gap: 40px; /* Abstand zwischen den Karten */
    width: 100%;
}

/* Ab PC-Größe (768px) ordnen sich die Beiträge zweispaltig an */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ein kleiner visueller Bonus: Der aktive Menüpunkt wird im Header markiert */
.main-nav a.active {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 4px;
}
/* ==========================================================================
   8. ARCHIV / BLOG-LISTE FÜR ÄLTERE BEITRÄGE
   ========================================================================== */
.older-posts-section {
    margin-top: 60px;
}

.older-posts-section h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Die weiße "Insel-Box" für die gesamte Liste */
.posts-list {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* Sorgt dafür, dass die Ecken der Einträge nicht überstehen */
}

/* Ein einzelner Zeileneintrag in der Liste */
.list-item {
    display: flex;
    flex-direction: column; /* Standard für Mobilgeräte: Datum über Überschrift */
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

/* Entfernt die Trennlinie beim letzten Eintrag der Liste */
.list-item:last-child {
    border-bottom: none;
}

/* Dezenter Hintergrund-Effekt beim Drüberfahren mit der Maus */
.list-item:hover {
    background-color: #F8FAFC; 
}

/* Das Datum in der Liste */
.list-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 120px; /* Verhindert das Verrutschen am PC */
    margin-bottom: 5px;
}

.list-title-wrap h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.list-title-wrap a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

/* Wenn man über den Titel in der Liste fährt, färbt er sich dunkelblau */
.list-title-wrap a:hover {
    color: var(--primary-dark);
}

/* --- AB DESKTOP/TABLET (Nebeneinander anordnen) --- */
@media (min-width: 576px) {
    .list-item {
        flex-direction: row; /* Datum und Titel stehen am PC nebeneinander */
        align-items: center;
    }
    
    .list-date {
        margin-bottom: 0; /* Entfernt den mobilen Abstand nach unten */
    }
}
/* ==========================================================================
   9. SAMMLUNGS-UNTERSEITE (Alphabet & Pop-up)
   ========================================================================== */
.collection-main-content {
    padding: 40px 20px 80px 20px;
}

/* Die weiße Gesamtbox für die Liste */
.collection-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 30px;
}

/* Ein kompletter Buchstaben-Abschnitt (z.B. alles unter 'A') */
.alphabet-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.alphabet-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Der dicke Buchstabe als Trenner */
.letter-badge {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    width: 40px;
}

.artists-list {
    width: 100%;
}

.artist-row {
    margin-bottom: 10px;
}

/* Der Interpret als klickbarer Button */
.artist-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.artist-toggle:hover {
    color: var(--primary-dark);
}

/* Ein kleiner Pfeil, der sich beim Öffnen dreht */
.artist-toggle::after {
    content: '➔';
    font-size: 0.9rem;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.artist-toggle.open::after {
    transform: rotate(-90deg);
}

/* Das versteckte Alben-Dropdown */
.albums-dropdown {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.albums-dropdown.open {
    display: block;
}

.albums-dropdown ul {
    list-style: none;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
}

.albums-dropdown li {
    margin-bottom: 8px;
}

/* Das eigentliche Album als klickbarer Link */
.album-link {
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-link:hover {
    color: var(--text-dark);
    font-weight: 600;
    padding-left: 5px;
}

/* ==========================================================================
   10. POP-UP / MODAL WINDOW
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 30, 36, 0.8); /* Dunkler, semitransparenter Hintergrund */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background-color: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-window {
    transform: scale(1);
}

/* Schließen X oben rechts */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Layout im Pop-up */
.modal-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-cover-wrap {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    aspect-ratio: 1 / 1; /* Quadratisch für Plattencover */
}

.modal-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Platzhalter wenn kein Cover vorhanden ist */
.no-cover-placeholder {
    width: 100%;
    height: 100%;
    background-color: #E9ECEF;
    border: 2px dashed #CED4DA;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-artist-name {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-info hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.modal-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-tracks {
    list-style: none;
    padding-left: 0;
}

.modal-tracks li {
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 1px solid #F1F3F5;
    color: var(--text-dark);
}

.modal-tracks li:last-child {
    border-bottom: none;
}

/* --- AB TABLEN/PC (Cover links, Text rechts) --- */
@media (min-width: 576px) {
    .alphabet-section {
        flex-direction: row;
    }
    
    .letter-badge {
        margin-bottom: 0;
    }
    
    .modal-flex {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .modal-cover-wrap {
        margin: 0;
    }
}
/* ==========================================================================
   11. SAMMELFIGUREN-UNTERSEITE
   ========================================================================== */

.brand-section {
    margin-bottom: 40px;
}

.brand-section:last-child {
    margin-bottom: 0;
}

/* Der Name des Herstellers (z.B. Funko, Lego) */
.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-dark);
    padding-left: 12px;
}

.subcategories-list {
    width: 100%;
}

.subcat-row {
    margin-bottom: 8px;
}

/* Der Button für die Unterkategorie (z.B. Marvel) */
.subcat-toggle {
    width: 100%;
    text-align: left;
    background-color: var(--bg-light); /* Nutzt dein helles Blau als weichen Hintergrund */
    border: none;
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.subcat-toggle:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.subcat-toggle::after {
    content: '➔';
    font-size: 0.85rem;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.subcat-toggle:hover::after {
    color: var(--white);
}

.subcat-toggle.open::after {
    transform: rotate(-90deg);
}

/* Das versteckte Figuren-Dropdown */
.figures-dropdown {
    display: none;
    padding: 15px 5px 5px 5px;
}

.figures-dropdown.open {
    display: block;
}

/* Ein einzelner Zeileneintrag für eine Figur (Bild links, Info rechts) */
.figure-item {
    display: flex;
    flex-direction: column; /* Mobil standardmäßig untereinander */
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.figure-item:last-child {
    border-bottom: none;
}

/* Bild-Container (Quadratisch gehalten für die Boxen) */
.figure-img-wrap {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-color: #E9ECEF;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto; /* Zentriert das Bild auf dem Handy */
}

.figure-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Der Info-Bereich rechts daneben */
.figure-info {
    flex: 1;
    text-align: center; /* Mobil zentriert */
}

.figure-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.figure-meta {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.figure-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- AB SMARTPHONE QUER / TABLET (Bild links, Text rechts nebeneinander) --- */
@media (min-width: 576px) {
    .figure-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .figure-img-wrap {
        margin: 0; /* Entfernt die mobile Zentrierung */
    }
    
    .figure-info {
        text-align: left;
    }
}
/* ==========================================================================
   12. UNIVERSAL TEXT-PAGE TEMPLATE (Über mich, Impressum, Datenschutz)
   ========================================================================== */

.page-main-content {
    padding: 40px 20px 80px 20px;
}

/* Die weiße Text-Insel: Schmaler gehalten (max-width: 780px) für perfektes Lesen */
.standard-page-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 40px;
    max-width: 780px;
    margin: 0 auto; /* Zentriert die Text-Insel auf der blauen Seite */
}

/* --- AUTOMATISCHES TEXT-STYLING (formatiert allen reinen Text im Wrapper) --- */
.formatted-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Verhindert zu großen Abstand, wenn das H2 direkt ganz oben steht */
.formatted-text h2:first-child {
    margin-top: 0;
}

.formatted-text p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Letzter Absatz braucht keinen Abstand nach unten */
.formatted-text p:last-child {
    margin-bottom: 0;
}

/* Listen-Styling innerhalb von Textseiten */
.formatted-text ul, .formatted-text ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.formatted-text li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Zitate oder hervorgehobene Info-Boxen */
.formatted-text blockquote {
    background-color: var(--bg-light); /* Nutzt dein weiches Blau als Hintergrund */
    border-left: 4px solid var(--primary-dark);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.formatted-text blockquote p {
    margin-bottom: 0; /* Verhindert doppelten Abstand im Zitat */
}

/* Mobil-Optimierung für kleinere Displays (weniger Innenabstand am Handy) */
@media (max-width: 576px) {
    .standard-page-wrapper {
        padding: 25px 20px;
    }
    
    .formatted-text h2 {
        font-size: 1.4rem;
        margin-top: 25px;
    }
}
/* ==========================================================================
   13. BONUS: DARK MODE (Mit funktionierendem Gedächtnis)
   ========================================================================== */

/* Styling für den Mond-Button im Header */
.darkmode-toggle {
    font-size: 1.3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    margin-left: auto; 
    margin-right: 20px;
    transition: transform 0.3s ease;
    padding: 0;
}

.darkmode-toggle:hover {
    transform: scale(1.15);
}

/* --- HIER GREIFT DER SPEICHER-EFFEKT --- */

/* 1. Hintergrund der kompletten Seite und des Headers wird dunkel */
body.dark-mode,
body.dark-mode .main-header,
body.dark-mode .hero-section {
    background-color: #11161B !important; 
}

/* 2. Große Überschriften werden weiß */
body.dark-mode .hero-section h1,
body.dark-mode .page-title-section h1,
body.dark-mode main .highlight-box h2,
body.dark-mode main h2 {
    color: #FFFFFF !important;
}

/* 3. Einleitungstexte werden hellgrau */
body.dark-mode .hero-section p,
body.dark-mode .page-title-section p {
    color: #A0AEC0 !important;
}

/* 4. Menü-Links im Header anpassen */
body.dark-mode .main-header .main-nav a {
    color: #FFFFFF !important;
}

/* 5. Inhalts-Boxen werden dunkelgrau */
body.dark-mode main .card,
body.dark-mode main .posts-list,
body.dark-mode main .collection-wrapper {
    background-color: #1A202C !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 6. Texte in den Boxen werden hell */
body.dark-mode main .card h3,
body.dark-mode main .list-title-wrap a,
body.dark-mode main .artist-toggle,
body.dark-mode main .figure-info h3,
body.dark-mode main .standard-page-wrapper h2,
body.dark-mode main .standard-page-wrapper p {
    color: #ffffff !important;
}

body.dark-mode main #standard-page-wrapper{
    background-color: #1A202C !important;
}

/* 7. Trennlinien anpassen */
body.dark-mode main .list-item,
body.dark-mode main .alphabet-section,
body.dark-mode main .figure-item {
    border-color: #2D3748 !important;
}

/* 8. Hover-Effekt für Listen im Dark Mode */
body.dark-mode main .list-item:hover {
    background-color: #2D3748 !important;
}
/* ==========================================================================
   14. EASTER EGG: SCI-FI RAUMSCHIFF (Lange Version)
   ========================================================================== */

.hidden-spaceship {
    position: fixed;
    top: 30%; /* Startet im oberen Drittel */
    left: -180px;
    font-size: 6rem;
    z-index: 9999;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(121, 191, 253, 0.8));
}

/* Hier wird die Dauer auf 7 Sekunden hochgedreht */
.hidden-spaceship.sail-away {
    animation: cruiseSpeed 7s linear forwards;
}

/* Das Raumschiff fliegt jetzt länger und schwebt dabei wie im Weltall auf und ab */
@keyframes cruiseSpeed {
    0% {
        left: -180px;
        transform: translateY(0) rotate(5deg);
    }
    25% {
        transform: translateY(-30px) rotate(0deg); /* Schwebt nach oben */
    }
    50% {
        transform: translateY(20px) rotate(-5deg); /* Schwebt nach unten */
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
    100% {
        left: 100vw; /* Kommt sicher am rechten Rand an */
        transform: translateY(0) rotate(0deg);
    }
}

/* Das Erbeben beim Triebwerksstart lassen wir am Anfang kurz und knackig */
.earthquake {
    animation: spaceshipShake 0.5s ease-in-out;
}

@keyframes spaceshipShake {
    0%, 100% { transform: translate(0, 0); }
    20%, 60% { transform: translate(-5px, 3px); }
    40%, 80% { transform: translate(5px, -3px); }
}
/* ==========================================================================
   ERWEITERUNG: NAVIGATION DROPDOWNS
   ========================================================================== */

/* --- PC / DESKTOP STYLING (Ab 768px) --- */
@media (min-width: 768px) {
    .main-nav ul {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .main-nav li {
        position: relative; /* Wichtig, damit sich das Dropdown am Hauptpunkt ausrichtet */
    }

    /* Das versteckte Untermenü */
    .main-nav .dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: var(--white);
        min-width: 150px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        padding: 10px 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 100;
    }

    /* Zeigt das Dropdown beim Hovern an */
    .main-nav .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Links innerhalb des Dropdowns am PC */
    .main-nav .dropdown li {
        width: 100%;
    }

    .main-nav .dropdown a {
        color: var(--text-dark) !important;
        padding: 8px 20px;
        display: block;
        font-size: 0.95rem;
        font-weight: 500;
        text-align: center;
        border: none !important; /* Entfernt den aktiven Unterstrich am PC */
    }

    .main-nav .dropdown a:hover {
        background-color: var(--bg-light);
        color: var(--primary-dark) !important;
    }
}

/* --- MOBIL STYLING (Bis 767px) --- */
@media (max-width: 767px) {
    /* Auf dem Handy stehen die Unterpunkte einfach leicht eingerückt darunter */
    .main-nav .dropdown {
        padding-left: 20px;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .main-nav .dropdown a {
        font-size: 1.1rem;
        opacity: 0.8;
        color: var(--white) !important;
    }
}

/* Dark Mode Anpassung für das Dropdown-Fenster am PC */
body.dark-mode .main-nav .dropdown {
    background-color: #1A202C;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode .main-nav .dropdown a {
    color: #FFFFFF !important;
}

body.dark-mode .main-nav .dropdown a:hover {
    background-color: #2D3748;
    color: var(--primary-color) !important;
}