/* ========================================= Farbpalette (müsste Überholt werden in Bezug auf Darkmode z.B.) ========================================= */
:root {
    --redbrown: #aa1945;
    --icewhite: #ececec;
    --brown: #74112f;
    --iceyellow: #E6CD88;
    --gold: #DFAE23;
    --text-muted: #E8C1C5;
}

/* ========================================= Globales Layout ========================================= */
body {
    background-color: white;
    color: var(--redbrown);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.4;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

#particles-js {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 50%,
        black 75%
    );

    mask-image: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 50%,
        black 75%
    );
}

@media (max-width: 768px) {
    #particles-js {
        -webkit-mask-image: radial-gradient(
            ellipse 70% 55% at center,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.2) 65%,
            black 95%
        );

        mask-image: radial-gradient(
            ellipse 70% 55% at center,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.2) 65%,
            black 95%
        );
    }
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* ===================== Header + Navigation ===================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 60px;
    background: var(--icewhite);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #36363B;
    font-size: 0.9rem;
    background: var(--icewhite);
}



.logo {
    height: 70px;
    width: auto;
    object-fit: contain;

    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    flex-shrink: 0;

    transition: transform 0.25s ease, filter 0.25s ease;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    color: #36363B;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links a.active {
    text-decoration: underline;
}

/* === Responsive Anpassung === */
@media (max-width: 820px) {
    header {
        flex-direction: column;
        padding: 12px 20px;
        gap: 10px;
    }

    .logo {
        height: 48px;
        left: 6px;
        top: 27px;
        transform: translateY(-50%);
    }

    nav {
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

/* ========================================= Hauptbereich + Footer ========================================= */
.home-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;
    width: min(1500px, calc(100% - 2rem));
    height: min(800px, 82vh);
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

section {
    margin-bottom: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #36363B;
    font-size: 0.9rem;
    z-index: 2;
    background: var(--icewhite);
}



/* ========================================= Wichtige Dokumente ========================================= */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-top: 2rem;
    font-size: 2rem;
    color: var(--gold);
}

.page-header p {
    color: #36363B;
    font-size: 1.1rem;
}

.file-category {
    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-category h2 {
    color: var(--gold);
    font-size: 1.4rem;
    border-bottom: 2px solid #36363B;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.file-category p {
    color: #36363B;
    margin-bottom: 1rem;
}

/* === Link-Liste === */
.file-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-links li {
    margin: 0.6rem 0;
}

.file-links a {
    text-decoration: none;
    color: #36363B;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border: 1px solid #36363B;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.file-links a:hover {
    background: var(--icewhite);
    color: #36363B;
    transform: translateX(4px);
}

/* === Fade-in Animation === */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= Kontakt ========================================= */
.team-section {
    margin: 4rem auto;
    max-width: 1100px;
    padding: 2rem;
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-section h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--brown);
    padding-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
    max-width: 90%;
    /* Verhindert, dass die Überschrift zu breit wird */
    margin-left: auto;
    margin-right: auto;
}

.team-section p {
    text-align: center;
    color: #36363B;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}

/* Team Cards */
.team-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.team-card p {
    overflow-wrap: anywhere;
    /* bricht an Stellen, wo es nötig ist */
    word-break: normal;
    /* verhindert Brüche mitten im Wort */
    white-space: normal;
}

/* Bilder */
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Namen + Rollen */
.team-card h3 {
    font-size: 1.25rem;
    color: #36363B;
    margin: 0.4rem 0;
}

/*Allgemeiner Kontakt Info*/
.contact-info {
    background: rgba(255, 255, 255, 1);
    padding: 1rem 2rem 1.5rem 2rem;
    /* oben etwas kleiner, unten gleich */
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info h2 {
    color: var(--gold);
    margin: 0 0 0.8rem 0;
    /* oben = 0, unten = 0.8rem */
}

.contact-info p,
.contact-info a {
    color: #36363B;
    font-size: 1rem;
    margin: 0.3rem 0;
    /* etwas enger */
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsiv */
@media (max-width: 600px) {
    .team-card img {
        width: 100px;
        height: 100px;
    }

    .team-card h3 {
        font-size: 1.1rem;
    }
}

/* =========================================================
   STARTSEITE – HERO
========================================================= */

.hero {
    position: relative;

    width: min(1500px, calc(100% - 2rem));
    height: min(800px, 82vh);

    margin: 2rem auto;

    overflow: hidden;

    border-radius: 24px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   GRUPPENFOTO
========================================================= */

.hero {
    position: relative;

    width: min(1500px, calc(100% - 2rem));
    height: min(800px, 82vh);

    margin: 2rem auto;
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.group-photo {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center 50%;

    display: block;

    transform: scale(1.2);

    transition: transform 0.5s ease;
}


/* =========================================================
   LEICHTER VERLAUF ÜBER DEM FOTO
========================================================= */

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.28) 35%,
            rgba(0, 0, 0, 0.05) 70%,
            rgba(0, 0, 0, 0) 100%
        );

    pointer-events: none;
}


/* =========================================================
   TEXT-BEREICH
========================================================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 2rem;
}


.hero-text {
    width: min(600px, 60%);

    padding: 1.4rem 1.8rem;

    background: rgba(255, 255, 255, 0.93);

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(8px);
}


/* =========================================================
   KLEINE ÜBERSCHRIFT
========================================================= */

.hero-kicker {
    margin: 0 0 0.5rem 0;

    color: var(--gold);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   HAUPTÜBERSCHRIFT
========================================================= */

.hero-text h1 {
    margin: 0 0 0.7rem 0;

    color: #36363B;

    font-size: clamp(1.8rem, 2.5vw, 2.4rem);

    line-height: 1.1;

    text-align: left;
}


/* =========================================================
   TEXT
========================================================= */

.hero-text p {
    color: #36363B;

    font-size: 0.95rem;

    line-height: 1.55;

    margin: 0 0 0.8rem 0;
}


/* =========================================================
   BUTTON
========================================================= */

.hero-button {
    display: inline-block;

    margin-top: 0.5rem;

    padding: 0.7rem 1.1rem;

    background: var(--gold);

    color: white;

    border-radius: 9px;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.hero-button:hover {
    background: var(--gold);

    color: white;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 820px) {

    .hero {
        width: calc(100% - 1.5rem);

        height: auto;

        min-height: 650px;

        margin: 1rem auto;

        border-radius: 18px;
    }


    .group-photo {
        transform: scale(1) translateY(-21%);
    }


    .hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.05) 20%,
                rgba(0, 0, 0, 0.55) 100%
            );
    }


    .hero-overlay {
        align-items: flex-end;

        padding: 1rem;
    }


    .hero-text {
        width: 100%;

        padding: 1.5rem;

        border-radius: 15px;

        background: rgba(255, 255, 255, 0.94);
    }


    .hero-text h1 {
        font-size: 2rem;

        line-height: 1.15;
    }


    .hero-text p {
        font-size: 0.95rem;

        line-height: 1.55;
    }


    .hero-button {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }

}
/* === Events Timeline === */
.events-section {
    padding: 10px clamp(1rem, 6vw, 5rem) 80px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--icewhite) 100%);
    color: white;
}

.events-section h1 {
    margin-top: 0;
    /* entfernt Standardabstand */
    text-align: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.events-section .intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #36363B;
}

/* Timeline Struktur */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 50px;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 3px;

    transform: translateX(-50%);

    background: var(--gold);

    opacity: 0.35;

    z-index: 0;
}

.event-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        80px
        minmax(0, 1fr);

    position: relative;
    z-index: 1;

    align-items: center;
    width: 100%;
}
.event-card::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 16px;
    height: 16px;

    transform: translate(-50%, -50%);

    background: var(--gold);

    border: 4px solid var(--icewhite);

    border-radius: 50%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

    z-index: 3;
}

/* EVENT LINKS */
.event-card.left .event-content {
    grid-column: 1;
    grid-row: 1;
}

.event-card.left .event-image {
    grid-column: 3;
    grid-row: 1;
}


/* EVENT RECHTS */
.event-card.right .event-content {
    grid-column: 3;
    grid-row: 1;
}

.event-card.right .event-image {
    grid-column: 1;
    grid-row: 1;
}

/* Textinhalt */
.event-content {
    color: #36363B;
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-content h2 {
    color: #36363B;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.event-content .date {
    font-weight: 700;
    color: #36363B;
    margin-bottom: 1rem;
}

.event-content .time {
    font-weight: 600;
    color: #36363B;
    margin-left: 0.3rem;
}

.event-content .desc {
    line-height: 1.6;
}

/* Bilder */
.event-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-image img {
    width: 100%;
    max-width: 300px;
    max-height: 380px;

    height: auto;

    border-radius: 16px;

    object-fit: contain;

    display: block;

    transition: transform 0.3s ease;
}

@media (max-width: 900px) {

    /* =========================
       MOBILE TIMELINE
    ========================= */

    .timeline {
        position: relative;

        display: flex;
        flex-direction: column;

        gap: 50px;

        padding: 20px 0 50px;

        width: 100%;
    }


    /* Vertikale Linie links */
    .timeline::before {
        content: "";

        position: absolute;

        top: 0;
        bottom: 0;

        left: 12px;

        width: 3px;

        transform: none;

        background: var(--gold);

        opacity: 0.35;

        z-index: 0;
    }


    /* =========================
       EVENT CARD
    ========================= */

    .event-card {
        position: relative;

        display: grid;

        grid-template-columns: 30px minmax(0, 1fr);

        gap: 12px;

        width: 100%;

        align-items: start;

        z-index: 1;
    }


    /* =========================
       PUNKT
    ========================= */

    .event-card::before {
        content: "";

        position: absolute;

        left: 12px;
        top: 25px;

        width: 16px;
        height: 16px;

        transform: translateX(-50%);

        background: var(--gold);

        border: 4px solid var(--icewhite);

        border-radius: 50%;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

        z-index: 3;
    }


    /* =========================
       TEXT
    ========================= */

    .event-card.left .event-content,
    .event-card.right .event-content {

        grid-column: 2;
        grid-row: 1;

        width: 100%;
        max-width: none;

        justify-self: stretch;

        box-sizing: border-box;
    }


    /* =========================
       BILD
    ========================= */

    .event-card.left .event-image,
    .event-card.right .event-image {

        grid-column: 2;
        grid-row: 2;

        width: 100%;

        justify-self: stretch;

        display: flex;
        justify-content: center;
        align-items: center;
    }


    .event-image img {

        display: block;

        width: 100%;

        max-width: 400px;

        height: auto;

        margin: 0 auto;

        border-radius: 16px;
    }

}

/* =========================================
   SCHWARZES BRETT
========================================= */

#aktuellesContainer {
    width: 100%;
}


/* =========================================
   HAUPTCONTAINER
========================================= */

/* =========================================================
   SCHWARZES BRETT – DESKTOP
========================================================= */

.noticeboard {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}


/* =========================================================
   KATEGORIE-NAVIGATION DESKTOP
========================================================= */

.category-nav {
    position: sticky;
    top: 6rem;

    align-self: start;

    display: flex;
    flex-direction: column;

    gap: 0.6rem;

    width: 100%;

    /* KEIN max-height */
    /* KEIN overflow */
}


/* Überschrift */

.category-nav h2 {
    margin: 0 0 0.5rem 0;

    color: var(--gold);

    font-size: 1.2rem;
}


/* Buttons */

.category-button {
    width: 100%;
    box-sizing: border-box;

    padding: 0.8rem 1rem;

    border: none;
    border-radius: 10px;

    background: white;
    color: #36363B;

    text-align: left;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.category-button:hover {
    transform: translateX(3px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15);
}


.category-button.active {
    background: var(--icewhite);
    color: #36363B;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   INHALTSBEREICH
========================================================= */

.category-content {
    min-width: 0;
    width: 100%;
}


.category-title {
    color: #36363B;

    font-size: 1.6rem;
    font-weight: 700;

    margin-top: 0;
    margin-bottom: 1.2rem;

    padding-bottom: 0.7rem;

    border-bottom:
        2px solid rgba(0, 0, 0, 0.08);
}


/* =========================================
   EINTRÄGE
========================================= */

.entry {
    color: #36363B;

    background-color: white;

    border-radius: 12px;

    padding: 1.2rem 1.3rem;

    margin-bottom: 1.2rem;

    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;

    overflow: hidden;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.entry:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.18);
}


/* =========================================
   TITEL
========================================= */

.entry-title {
    color: #36363B;

    font-size: 1.15rem;
    line-height: 1.4;

    margin: 0 0 0.8rem 0;

    padding-bottom: 0.6rem;

    border-bottom:
        1px solid rgba(54, 54, 59, 0.12);

    overflow-wrap: break-word;
}


/* =========================================
   EINTRAG-INHALT
========================================= */

.entry-content {
    color: #36363B;

    font-size: 1rem;
    line-height: 1.6;

    max-height: 12rem;

    overflow: hidden;

    position: relative;

    min-width: 0;
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;

    transition:
        max-height 0.4s ease;
}

/* Importierte Bilder aus E-Mails responsiv halten */
.entry-content img {
    display: block;

    max-width: 100% !important;
    height: auto !important;

    object-fit: contain;
}

/* Auch andere importierte Elemente dürfen den Eintrag nicht sprengen */
.entry-content table,
.entry-content iframe,
.entry-content video {
    max-width: 100% !important;
}

/* Lange Links und andere problematische Inhalte umbrechen */
.entry-content a,
.entry-content span,
.entry-content td,
.entry-content th {
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/*
 * Verlauf am unteren Rand des gekürzten Textes
 */

.entry-content::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3rem;

    background:
        linear-gradient(
            transparent,
            white
        );

    pointer-events: none;

    transition: opacity 0.2s ease;
}

.entry-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto;
    border-collapse: collapse;
}

.entry-content td,
.entry-content th {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/*
 * Vollständig geöffneter Eintrag
 */

.entry.expanded .entry-content {
    max-height: 5000px;
}


.entry.expanded .entry-content::after {
    opacity: 0;
}


/* Text innerhalb des Inhalts */

.entry-content p,
.entry-content div {
    color: #36363B;

    font-size: 1rem;
    line-height: 1.6;

    overflow-wrap: break-word;
    word-break: normal;
}


/* =========================================
   READ MORE
========================================= */

.read-more {
    display: inline-block;

    margin-top: 0.8rem;

    padding: 0.45rem 0.8rem;

    background: white;

    color: #36363B;

    border: 1px solid #36363B;

    border-radius: 8px;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.read-more:hover {
    background: #36363B;
    color: white;

    transform: translateY(-1px);
}


/* =========================================
   ATTACHMENTS
========================================= */

.entry .attachment-link {
    display: inline-block;

    margin-top: 0.8rem;
    margin-left: 0.5rem;

    padding: 0.45rem 0.8rem;

    background-color: white;

    color: #36363B;

    border: 1px solid #36363B;

    text-decoration: none;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 500;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.entry .attachment-link:hover {
    color: #36363B;

    transform: translateY(-1px);
}


.entry a {
    color: #36363B;
}

.hamburger {
    display: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .entry {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .entry-content {
        width: 100%;
        max-width: 100%;
    }

    .entry-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .entry-content table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    table-layout: auto;
    }

    .entry-content td,
    .entry-content th {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }


    .noticeboard {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }


    /*
     * Navigation bleibt oben stehen.
     * Horizontal scrollbar bei vielen Kategorien.
     */

  .category-nav {

        position: relative;
        top: auto;

        display: flex;
        flex-direction: row;
        align-items: center;

        gap: 0.6rem;

        width: 100%;

        max-height: none;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 0.2rem 0 0.8rem 0;

        /* Wichtig: ganz links beginnen */
        justify-content: flex-start;

        /* Scrollverhalten */
        scroll-behavior: smooth;
        scroll-padding-left: 0;

        /* Scrollbar verstecken */
        scrollbar-width: none;
    }


    .category-nav h2 {
        display: none;
    }


    .category-button {
        width: auto;

        flex: 0 0 auto;

        white-space: nowrap;
    }


    .category-button:hover,
    .category-button.active {
        transform: none;
    }


    .category-title {
        font-size: 1.4rem;
    }

}

/* ================= Mobile Navigation ================= */
/* ===== Hamburger Button ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin: 0.5rem auto 0;
        /* zentriert unter Logo */
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 20;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #36363B;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Dropdown-Menü unterhalb vom Hamburger */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 90%;
        margin: 0.5rem auto 1rem;
        /* zentriert, direkt unter Hamburger */
        color: #36363B;
        border-radius: 14px;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        text-align: center;
        z-index: 15;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .nav-links li a:visited,
    .nav-links li a {
        color: #36363B;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        display: block;
        padding: 0.5rem 0;
        transition: color 0.2s ease;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        text-decoration: underline;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}