/* ================================
   GLOBAL
================================ */

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f7f9fc;
    color: #2b2f36;
}

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

/* ================================
   HEADER
================================ */

#site-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    padding: 14px 0;
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
}

/* =========================
   NAV TOGGLE (HAMBURGER)
========================= */

/* Desktop: AUS */
#nav-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a4173;
}

/* =========================
   MAIN NAVIGATION – DESKTOP
========================= */

#main-nav {
    display: block;
}

#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav > ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: #1a4173;
    font-size: 16px;
    padding: 8px 0;
    display: inline-block;
}

/* =========================
   DROPDOWN – DESKTOP
========================= */

#main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
    padding: 6px 0;
    z-index: 1000;
}

#main-nav li:hover > ul {
    display: block;
}

#main-nav ul ul li a {
    padding: 8px 20px;
    font-size: 15px;
    white-space: nowrap;
}

/* ================================
   MOBILE NAVIGATION
================================ */

@media (max-width: 900px) {

    /* Hamburger EIN */
    #nav-toggle {
        display: block;
    }

    /* Desktop-Menü AUS */
    #main-nav {
        display: none;
        position: fixed;
        top: 88px;
        left: 16px;
        right: 16px;
        background: #ffffff;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.18);
        z-index: 10001;
    }

    /* Menü sichtbar */
    body.nav-open #main-nav {
        display: block;
    }

    #main-nav > ul {
        flex-direction: column;
        gap: 14px;
    }

    #main-nav a {
        padding: 14px 12px;
        font-size: 17px;
    }

    /* Submenus Mobile */
    #main-nav ul ul {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 14px;
    }

    #main-nav li.open > ul {
        display: block;
    }
}

/* ================================
   MAIN CONTENT
================================ */

main.container {
    padding: 40px 0;
    min-height: 50vh;
}

/* 👉 FIX: Startseite ohne weißen Rahmen */
body.home main.container {
    padding: 0;
}

#site-main {
    color: #2b2f36;
}

/* ================================
   FOOTER – CENTERED & CLEAN
================================ */

#site-footer {
    background: #18212f;
    color: #9aa3b2;
    margin-top: 80px;
}

/* Container */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

/* BRAND */
.footer-brand img {
    max-width: 90px;     /* <<< LOGO FIX */
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 14px;
    color: #cfd6e1;
}

/* LINKS */
.footer-links {
    display: flex;
    justify-content: center;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: #9fb1c9;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #cfd6e1;
    text-decoration: none;
    margin: 4px 0;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 20px;
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    color: #8fa1b8;
}

/* ================================
   CMS / STANDARD SEITEN
================================ */

.page-header {
    font-size: 26px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    color: #1a4173;
}


.page-content,
.page-sections {
    margin-top: 30px;
    line-height: 1.6;
}

/* ================================
   HOME – HERO
================================ */

.home-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    height: 470px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.home-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.55);
}

.home-hero-content {
    position: relative;
    z-index: 5;
}

.home-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.home-hero-content p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 20px;
}

.home-hero-content a.button {
    background: #1a4173;
    padding: 12px 26px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.home-hero-content a.button:hover {
    background: #0d2c55;
}

/* ================================
   HOME – SECTIONS
================================ */

.home-intro {
    margin: 60px auto 40px;
    text-align: center;
    max-width: 900px;
}

.feature-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 40px 0;
}

.feature-grid .card {
    padding: 28px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e4ea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
}

.feature-grid .card h3 {
    margin-bottom: 10px;
    color: #1a4173;
}

.feature-grid .card p {
    color: #4f5b72;
}

.home-main {
    margin: 60px auto;
    max-width: 900px;
}

.home-extra-block {
    background: #f2f5fb;
    padding: 60px 0;
    margin-top: 40px;
}

/* ================================
   HOME – COMMITTEE CARDS
================================ */

.committee-cards {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* Mobile */
@media (max-width: 700px) {
    .committee-cards {
        grid-template-columns: 1fr;
    }
}

/* Card Styling (CMS Card Plugin) */
.committee-cards .card {
    background: #ffffff;
    border: 1px solid #e1e4ea;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.committee-cards .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Headings */
.committee-cards h3,
.committee-cards h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a4173;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Text */
.committee-cards p,
.committee-cards li {
    color: #4f5b72;
    font-size: 14px;
    line-height: 1.6;
}

/* Listen sauber */
.committee-cards ul {
    padding-left: 18px;
    margin: 0;
}

.committees-section h2 {
    text-align: center;
    margin-bottom: 48px;
}

/* ================================
   LAYOUT UTILITIES
================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px auto;
}

.full-width-section {
    padding: 60px 0;
    background: #ffffff;
}

.full-width-section.alt {
    background: #f2f4f8;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 40px auto;
}

/* ==========================
   NEWS
========================== */

.news-list {
    display: grid;
    gap: 30px;
    margin: 40px auto;
}

.news-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e1e4ea;
}

.news-card h2 {
    margin-bottom: 8px;
}

.news-card h2 a {
    text-decoration: none;
    color: #1a4173;
}

.news-card h2 a:hover {
    text-decoration: underline;
}

.news-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.read-more {
    font-weight: 600;
    color: #1a4173;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.news-detail {
    margin: 60px auto;
    max-width: 800px;
}

.news-content {
    margin-top: 20px;
    line-height: 1.7;
}


/* =========================
   TEAM PAGE
========================= */

.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 370px));
    gap: 40px;
    justify-content: center;
}

/* Card */
.team-grid .card {
    background: #0c0c0c;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

/* Image */
.team-grid .card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* Name */
.team-grid .card h3 {
    margin: 18px 0 6px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Position */
.team-grid .card p {
    font-size: 12px;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* =========================
   PAGE HERO (STANDARD)
========================= */

.page-hero {

    background: #f7f9fc;
}

.page-hero h1 {
    color: #1a4173;
}

.page-hero p {
    color: #4b5563;
}


/* =========================
   INTRODUCTION HERO
========================= */

.intro-hero {
    position: relative;
    height: 420px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.intro-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    z-index: 1;
}

.intro-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.intro-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.intro-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* =========================
   COMMITTEES & COUNCILS
========================= */

.committee-section {
    padding: 80px 0;
}

/* Buttons oben */
.committee-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.committee-filters a,
.committee-filters button {
    padding: 10px 22px;
    border: 1px solid #1a4173;
    background: transparent;
    color: #1a4173;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.committee-filters a:hover {
    background: #1a4173;
    color: #ffffff;
}

/* Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 370px));
    gap: 40px;
    justify-content: center;
}

/* Cards */
.committee-grid .card {
    background: #0c0c0c;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

/* Image */
.committee-grid .card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* Name */
.committee-grid .card h3 {
    margin: 18px 0 6px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Position */
.committee-grid .card p {
    font-size: 12px;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* =========================
   COMMITTEE BUTTONS – CENTERED
========================= */

.committee-buttons {
    display: flex;
    justify-content: center;
    margin: 24px 0 56px;
}

/* WICHTIG: Placeholder-Inhalt zentrieren */
.committee-buttons > * {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Links untereinander & zentriert */
.committee-buttons a {
    display: inline-block;
    margin: 6px 0;
    text-align: center;
}


/* ==========================
   NEWS GRID
========================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 24px auto 40px;
    padding: 0;
}

/* Maximal 3, skaliert sauber runter */
@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.news-card {
    background: #ffffff;
    border: 1px solid #e1e4ea;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

.news-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.news-card h2 a {
    padding: 0;
    color: #1a4173;
    text-decoration: none;
}

.news-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.news-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================
   PAGINATION
========================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 60px 0 20px;
    font-weight: 500;
}

.pagination a {
    color: #1a4173;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

.news-filter {
    display: flex;
    gap: 12px;
    margin: 16px 0 24px;
    padding: 0;
    flex-wrap: wrap;
}

.news-filter input,
.news-filter select {
    padding: 10px 14px;
    border: 1px solid #e1e4ea;
    border-radius: 6px;
    font-size: 14px;
}

.news-filter button {
    background: #1a4173;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================
   NEWS DETAIL
========================== */

.news-hero {
    width: 100vw;
    height: 420px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.news-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Container */
.news-detail {
    max-width: 820px;
    margin: 60px auto;
}

/* Header */
.news-detail-header h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #1a4173;
}

.news-detail .news-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Text */
.news-content {
    font-size: 17px;
    line-height: 1.75;
    color: #2b2f36;
}

.news-content p {
    margin-bottom: 18px;
}

/* Back link */
.news-back {
    margin-top: 60px;
}

.news-back a {
    text-decoration: none;
    font-weight: 600;
    color: #1a4173;
}

.news-back a:hover {
    text-decoration: underline;
}

/* ==========================
   RELATED NEWS
========================== */

.related-news {
    margin: 80px auto;
    max-width: 1100px;
}

.related-news h2 {
    font-size: 28px;
    color: #1a4173;
    margin-bottom: 30px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.related-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e4ea;
}

.related-news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-news-card h3 {
    font-size: 18px;
    margin: 16px 16px 6px;
}

.related-news-card h3 a {
    text-decoration: none;
    color: #1a4173;
}

.related-news-card h3 a:hover {
    text-decoration: underline;
}

.related-news-card .news-meta {
    font-size: 13px;
    color: #6b7280;
    margin: 0 16px 16px;
}

/* ==========================
   ASSIGNMENTS
========================== */

.assignment-block {
    margin-bottom: 60px;
}

.assignment-block h2 {
    margin-bottom: 16px;
    color: #1a4173;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 18px;
}

.assignment-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e1e4ea;
    border-radius: 12px;
    overflow: hidden;
}

.assignment-table th,
.assignment-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e1e4ea;
    font-size: 14px;
}

.assignment-table th {
    background: #f7f9fc;
    color: #1a4173;
    text-align: left;
}

.assignment-table tr:last-child td {
    border-bottom: none;
}

/* =========================
   AGENDA
========================= */

.agenda-section {
    padding: 40px 0;
}

.agenda-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #1a4173;
}

/* Grid */
.agenda-grid {
    display: grid;
    grid-template-columns: 1fr; /* alles untereinander */
    gap: 28px;
}

/* Card */
.agenda-card {
    background: #ffffff;
    border: 1px solid #e1e4ea;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* Day + Date */
.agenda-day h2,
.agenda-day h3 {
    margin: 0 0 14px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a4173;
}

/* Agenda content (CMS Text) */
.agenda-list {
    font-size: 18px;
    line-height: 1.65;
}

/* Text aus CMS (Agenda_Day_1–4) */
.agenda-list p {
    font-size: 12px;       /* +5px gegenüber vorher */
    line-height: 1.75;
    margin-bottom: 14px;
}

/* Uhrzeit hervorheben (falls fett geschrieben) */
.agenda-list p strong {
    font-size: 60px;
    font-weight: 600;
    color: #1a4173;
}

/* Responsive */
@media (max-width: 1000px) {
    .agenda-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .agenda-list {
        font-size: 16px;
    }
}

/* =========================
   AGENDA – TEXT PLUGIN FIX
========================= */

/* ALLES was aus dem CMS-Text kommt */
.agenda-list,
.agenda-list * {
    font-size: 16px !important;
    line-height: 1.9;
}

/* Einzelne Zeilen */
.agenda-list p {
    margin-bottom: 16px;
}

/* Uhrzeit (falls fett geschrieben) */
.agenda-list strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a4173;
}

/* =========================
   PHOTO GRID
========================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin: 60px auto;
}

/* Einzelne Karte (CMS Plugin Wrapper) */
.photo-grid .cms-plugin {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-grid .cms-plugin:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Bilder */
.photo-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Optionaler Text unter dem Bild */
.photo-grid p,
.photo-grid h3 {
    margin: 16px;
    text-align: center;
    color: #1a4173;
    font-size: 16px;
    font-weight: 500;
}

/* =========================
   BUTTON CONTEXTS (CMS)
========================= */

.btn {
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 8px;
    padding: 10px 22px;
    transition: all 0.2s ease;
}

/* ---------- PRIMARY ---------- */
.btn-primary {
    background: #1a4173;
    border-color: #1a4173;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0e2d54;
    border-color: #0e2d54;
}

.btn-outline-primary {
    color: #1a4173;
    border-color: #1a4173;
}

.btn-outline-primary:hover {
    background: #1a4173;
    color: #ffffff;
}

/* ---------- SECONDARY ---------- */
.btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
}

.btn-outline-secondary {
    color: #6b7280;
    border-color: #6b7280;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    color: #ffffff;
}

/* ---------- SUCCESS ---------- */
.btn-success {
    background: #2f855a;
    border-color: #2f855a;
    color: #ffffff;
}

.btn-outline-success {
    color: #2f855a;
    border-color: #2f855a;
}

.btn-outline-success:hover {
    background: #2f855a;
    color: #ffffff;
}

/* ---------- DANGER ---------- */
.btn-danger {
    background: #c53030;
    border-color: #c53030;
    color: #ffffff;
}

.btn-outline-danger {
    color: #c53030;
    border-color: #c53030;
}

.btn-outline-danger:hover {
    background: #c53030;
    color: #ffffff;
}

/* ---------- WARNING ---------- */
.btn-warning {
    background: #d69e2e;
    border-color: #d69e2e;
    color: #1a202c;
}

.btn-outline-warning {
    color: #d69e2e;
    border-color: #d69e2e;
}

.btn-outline-warning:hover {
    background: #d69e2e;
    color: #1a202c;
}

/* ---------- INFO ---------- */
.btn-info {
    background: #3182ce;
    border-color: #3182ce;
    color: #ffffff;
}

.btn-outline-info {
    color: #3182ce;
    border-color: #3182ce;
}

.btn-outline-info:hover {
    background: #3182ce;
    color: #ffffff;
}

/* ---------- LIGHT ---------- */
.btn-light {
    background: #f7f9fc;
    border-color: #e1e4ea;
    color: #1a4173;
}

.btn-outline-light {
    color: #1a4173;
    border-color: #e1e4ea;
}

.btn-outline-light:hover {
    background: #f7f9fc;
}

/* ---------- DARK ---------- */
.btn-dark {
    background: #18212f;
    border-color: #18212f;
    color: #ffffff;
}

.btn-outline-dark {
    color: #18212f;
    border-color: #18212f;
}

.btn-outline-dark:hover {
    background: #18212f;
    color: #ffffff;
}

.btn-sm {
    font-size: 13px;
    padding: 8px 16px;
}

.btn-md {
    font-size: 15px;
    padding: 10px 22px;
}

.btn-lg {
    font-size: 17px;
    padding: 14px 28px;
}