/* ==========================================================================
   Aktiviert Ihre lokale Inter-Schriftart für das gesamte Quark2-System
   ========================================================================== */

:root {
    --q2-font-body: 'Inter', sans-serif !important;
    --q2-font-heading: 'Inter', sans-serif !important;
}

/* ==========================================================================
   Responsive Mode Schriftstil für Seitenmenü anpassen (Quark2 & Blades CSS)
   ========================================================================== */

/* Erzwingt die globale Schriftstärke für ALLE Elemente innerhalb des mobilen Navigations-Overlays */
header nav[aria-label="mobile"],
.mobile-nav, 
#sidebar,
nav ul li a {
    --pico-font-weight: 400 !important; /* Hier steht jetzt Ihr finaler Wunschwert */
}

header nav a,
header nav a strong,
nav ul li a,
nav ul li a strong {
    font-weight: 400 !important; 
    font-size: 1rem !important;
}

/* Optional: Falls Sie Unterseiten (Subseiten) noch eine Stufe kleiner wünschen */
#sidebar .tree .tree-item .tree a,
#sidebar .tree .tree-item ul .tree-item a {
    font-size: 0.9rem !important;
    font-weight: 300 !important;
}

/* ==========================================================================
   Lokale Schriftart "Inter" einbinden (DSGVO-konform)
   ========================================================================== */

/* 300 - Light */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-300.woff2') format('woff2');
}

/* 400 - Regular */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-regular.woff2') format('woff2');
}

/* 400 - Regular Italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-italic.woff2') format('woff2');
}

/* 500 - Medium */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-500.woff2') format('woff2');
}

/* 500 - Medium Italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-500italic.woff2') format('woff2');
}

/* 600 - Semi-Bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-600.woff2') format('woff2');
}

/* 600 - Semi-Bold Italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-ext-600italic.woff2') format('woff2');
}

/* ==========================================================================
   Schriftstile auf der Website anwenden
   ========================================================================== */

/* --- Globale Basis-Schriftart für die gesamte Website --- */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Globale Ansicht (Desktop & Tablets) --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em; 
}

/* --- KONSOLIDIERUNG: Spezifische H2-Anpassungen (Trennlinien entfernen) --- */
h2 {
    border-top: none !important;
    margin-top: 1.5rem !important; /* Sorgt für einen sauberen Abstand nach oben */
    padding-top: 0 !important;
}

/* Entfernt den Strich, falls das Theme ihn als Pseudo-Element erzeugt */
h2::before {
    content: none !important;
    display: none !important;
    border: none !important;
}

/* --- Responsive Ansicht (Mobilgeräte bis 768px) --- */
@media (max-width: 768px) {
    h1, .event-title {
        font-size: 1.8rem !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.4rem !important;
        font-weight: 500 !important;
        margin-top: 1.2rem !important; /* Passt den Abstand für Smartphones leicht an */
    }
    
    h3 {
        font-size: 1.15rem !important;
        font-weight: 500 !important;
        margin-top: 1.2rem !important;
    }
}

/* ==========================================================================
   Schriftstile für Links ohne Unterstrich
   ========================================================================== */

a.link-mouseover {
    color: #007bff !important;
    text-decoration: none !important;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease-in-out; 
}

a.link-mouseover:hover {
    text-decoration: none !important;
    border-color: blue !important;     
}

a.link-mouseover[class*="fs-"] {
    font-size: calc(1px * var(--fs)) !important;
}
a.fs-14 { --fs: 14; }
a.fs-16 { --fs: 16; }
a.fs-18 { --fs: 18; }
a.fs-20 { --fs: 20; }
a.fs-22 { --fs: 22; }
a.fs-24 { --fs: 24; }
a.fs-26 { --fs: 26; }
a.fs-28 { --fs: 28; }
a.fs-30 { --fs: 30; }
a.fs-32 { --fs: 32; }

/* ==========================================================================
   Terminliste darstellen
   ========================================================================== */

/* Container-Design */
.termine-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
}

.stand-datum {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

/* Tabellen-Grunddesign für Desktop-Monitore */
.table-responsive {
    width: 100%;
}

.termin-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.termin-tabelle th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    padding: 12px 15px;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

.termin-tabelle td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #444;
    vertical-align: top;
}

/* Zeilen-Wechsel-Farbe für bessere Lesbarkeit */
.termin-tabelle tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover-Effekt auf Desktop */
.termin-tabelle tbody tr:hover {
    background-color: #f1f1f1;
}


/* --- RESPONSIVE DESIGN (Für Smartphones & Tablets unter 768px) --- */
@media screen and (max-width: 768px) {
    
    /* Versteckt die originale Tabellen-Kopfzeile vollständig */
    .termin-tabelle thead {
        display: none;
    }
    
    /* Verwandelt die Tabelle in ein Block-Layout */
    .termin-tabelle, 
    .termin-tabelle tbody, 
    .termin-tabelle tr, 
    .termin-tabelle td {
        display: block;
        width: 100%;
    }
    
    /* Jede Tabellenzeile wird zu einer separaten Karte */
    .termin-tabelle tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        background-color: #fff;
        padding: 8px 0;
    }
    
    /* Verhindert Hintergrundfarben-Wechsel auf dem Handy */
    .termin-tabelle tbody tr:nth-child(even) {
        background-color: #fff;
    }
    
    /* Jede Zelle verhält sich wie eine Textzeile */
    .termin-tabelle td {
        text-align: left;
        padding: 8px 15px;
        border-bottom: 1px solid #f5f5f5;
        position: relative;
    }
    
    /* Entfernt die untere Linie beim letzten Element der Karte */
    .termin-tabelle td:last-child {
        border-bottom: none;
    }
    
    /* Erzeugt das Label auf der linken Seite aus dem "data-label"-Attribut */
    .termin-tabelle td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 8px;
        font-weight: bold;
        color: #777;
        text-align: left;
    }
    
    /* Spezifische optische Anpassung für das Datum in der Karte */
    .termin-tabelle td[data-label="Datum"] strong {
        color: #000;
        font-size: 1.05rem;
    }
}

@media print {
    /* 1. Versteckt Navigation, Header und Footer */
    header, footer, .navigation, #sidebar, .navbar {
        display: none !important;
    }

    /* 2. Setzt alle Layout-Container auf Standard-Druck-Modus zurück */
    body, html, main, .termine-container {
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        position: static !important;
    }

    /* 3. Zwingt das responsive Design, beim Drucken auf echtes Tabellen-Layout zu wechseln */
    .table-responsive {
        overflow-x: visible !important;
        display: block !important;
    }

    .termin-tabelle {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .termin-tabelle thead {
        display: table-header-group !important; /* Blendet Kopfzeile ein und wiederholt sie */
    }

    .termin-tabelle tbody {
        display: table-row-group !important;
    }

    .termin-tabelle tr {
        display: table-row !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .termin-tabelle th, .termin-tabelle td {
        display: table-cell !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #ddd !important;
        text-align: left !important;
    }

    /* 4. Blendet die künstlichen Smartphone-Labels beim Drucken aus */
    .termin-tabelle td::before {
        display: none !important;
    }
}
/* Responsive Design für Smartphones (Bildschirme schmaler als 768px) */
@media (max-width: 767px) {
    
    /* Hebelt die Tabellenstruktur komplett aus und macht daraus Blöcke */
    .table-responsive,
    .termin-tabelle, 
    .termin-tabelle tbody,
    .termin-tabelle tr, 
    .termin-tabelle td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Blendet die originale Kopfzeile aus */
    .termin-tabelle thead,
    .termin-tabelle th {
        display: none !important;
    }
    
    /* Gestaltet jede Tabellenzeile als separate, optisch getrennte "Karte" */
    .termin-tabelle tr {
        margin-bottom: 25px !important;
        padding: 10px 0 15px 0 !important;
        border-bottom: 2px solid #eaae00 !important; /* Nutzt eine Akzentfarbe als Trenner */
    }
    
    /* Richtet die Tabellenzellen aus und verhindert jegliches Überlappen */
    .termin-tabelle td {
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
        padding: 6px 0 6px 110px !important; /* Schafft links Platz für das Label */
        position: relative !important;
        line-height: 1.4 !important;
    }
    
    /* Nutzt Ihr "data-label" Attribut, um links das Wort (z.B. "Datum:") anzuzeigen */
    .termin-tabelle td::before {
        content: attr(data-label) ": ";
        position: absolute !important;
        left: 0 !important;
        top: 6px !important;
        width: 95px !important;
        font-weight: bold !important;
        color: #555 !important;
    }
}
/* Blendet den 'Weitere Informationen' Link auf Seiten mit der Klasse 'hide-event-extra' aus */
body.hide-event-extra .read-more,
body.hide-event-extra .event-summary .read-more {
    display: none !important;
}
/* Styling für die Event-Terminliste */
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.agenda-table th {
    background-color: #f4f4f4;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ccc;
}

.agenda-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.agenda-table tr:nth-child(even) {
    background-color: #fafafa;
}
/* Erreicht die korrekte Tabellen-Darstellung auf Desktop-Bildschirmen */
@media screen and (min-width: 840px) {
    body .agenda-table, 
    body table {
        display: table !important;
        width: 100% !important;
    }
    body .agenda-table tr, 
    body table tr {
        display: table-row !important;
    }
    body .agenda-table th, 
    body table th,
    body .agenda-table td, 
    body table td {
        display: table-cell !important;
    }
}
/* Verwandelt die Tabelle auf Mobilgeräten in eine saubere Block-Struktur */
@media screen and (max-width: 840px) {
    /* Verhindert das seitliche Scrollen und erzwingt Blöcke */
    .agenda-table, 
    .agenda-table tbody, 
    .agenda-table tr, 
    .agenda-table td {
        display: block !important;
        width: 100% !important;
    }

    /* Versteckt die Tabellen-Überschriften (Datum, Zeit etc.), da sie im Block stören */
    .agenda-table thead {
        display: none !important;
    }

    /* Jeder Termin wird zu einem abgegrenzten Block (Karte) */
    .agenda-table tr {
        margin-bottom: 20px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        background-color: #fff !important;
        padding: 10px !important;
    }

    /* Abstand der einzelnen Zeilen innerhalb des Blocks minimieren */
    .agenda-table td {
        padding: 6px 8px !important;
        border-bottom: none !important;
    }

    /* Das Datum wird optisch als Titel des Blocks hervorgehoben */
    .agenda-table td:first-child {
        font-size: 1.1rem !important;
        color: #000 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 6px !important;
    }
}
/* ==========================================================================
   Events Titel darstellen
   ========================================================================== */

.event-title a,
a.event-title {
     text-decoration: none !important; /* Entfernt den Unterstrich */
     color: #007bff;                   /* Das gewünschte Blau */
     font-size: 2.25rem;               /* Steuert die Schriftgrösse */
}
     
/* Optional: Farbe ändern, wenn man mit der Maus über den Titel fährt */
.event-title a:hover,
a.event-title:hover {
    color: #0056b3;
    text-decoration: none;
}

/* ==========================================================================
   Responsive Tabelle: Auf Mobilgeräten als Block (Cards) darstellen
   ========================================================================== */
@media (max-width: 600px) {
    /* Verwandelt die Tabelle und deren Elemente in flexible Blöcke */
    table, tbody, tr, td {
        display: block !important;
        width: 100% !important;
    }

    /* Versteckt den Tabellenkopf komplett, da er im Block-Design stört */
    thead {
        display: none !important;
    }

    /* Gestaltet jede Zeile (jeden Vorstand) als eigenen, optisch getrennten Block */
    table tr {
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: #f9f9f9; /* Dezenter Hintergrund für die Karte */
        border: 1px solid #e1e1e1;
        border-radius: 4px;
    }

    /* Stylt die einzelnen Textzeilen innerhalb des Blocks */
    table td {
        padding: 0.25rem 0 !important;
        border: none !important; /* Entfernt die alten Tabellen-Linien */
        text-align: left !important;
    }

    /* Hebt das erste Element (z.B. "Präsident:") fett hervor */
    table td:first-child {
        font-weight: bold;
        color: #333;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Ämter auf der Kontaktseite farblich anpassen
   ========================================================================== */

/* Färbt die fettgedruckten Ämter im Inhaltsbereich blau */
.page-content strong,
.main-content strong,
#body-wrapper strong {
    color: #007bff; /* Das gleiche Blau wie bei den Event-Titeln */
    display: inline-block;
    margin-bottom: 0.2rem; /* Sorgt für einen minimalen Abstand zum Namen darunter */
}

/* Erzeugt einen harmonischen Abstand vor jedem neuen Vorstandsamt */
.page-content strong:not(:first-of-type) {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Responsive Menü: Schriftstärke der Navigation optimieren
   ========================================================================== */

/* Greift gezielt im mobilen Modus (unter 960px Bildschirmbreite) */
@media (max-width: 960px) {
    .menu-nav a, 
    .navbar-section .nav a,
    #app-sidebar a,
    .mobile-menu-wrapper a {
        font-weight: 400 !important;   /* Ändert von "bold" (700) auf "Medium" (500) */
        letter-spacing: 0.02rem;       /* Gibt den Buchstaben minimal mehr Atemraum */
    }
}

/* ==========================================================================
   Responsive Menü: Event Start- und Endzeit aufbereiten
   ========================================================================== */

/* Erzwingt den Zeilenumbruch für die Uhrzeit im Event-Plugin */
.event-full.date time,
time[datetime] {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 4px !important;
}

/* Erzwingt, dass der Event-Titel (Link) darunter in einer neuen Zeile startet */
.event-full.date a.u-url,
a.u-url.p-name {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}


