﻿/* -----------------------------------------
   Lokale Schriften: Libre Franklin
------------------------------------------ */
@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/librefranklin/libre-franklin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/librefranklin/libre-franklin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/librefranklin/libre-franklin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/librefranklin/libre-franklin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/librefranklin/libre-franklin-700.woff2') format('woff2');
}




html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Cursor + aktiver Eintrag links hervorheben */
.list-group-item.pub-item {
    cursor: pointer;
}

    .list-group-item.pub-item.active-pub {
        background: #f1f3f5;
        border-left: 4px solid #0d6efd;
    }

/* Hover-Kür: */
.list-group-item.pub-item {
    cursor: pointer;
}

/* Aktiver Eintrag deutlich hervorheben */
/*.list-group .pub-item.active-pub {
    background-color: #f2f2f2 !important;
    border-left: 4px solid #999 !important;
}*/

/*.list-group .pub-item.active-pub {
    background-color: #f2f2f2 !important;
    border-left: 4px solid #999 !important;
}

.list-group .pub-item {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}*/

.list-group .pub-item.active-pub {
    background-color: transparent !important;
    border-left: 4px solid #aaa !important;
}

.list-group .pub-item {
    transition: border-color 0.2s ease;
}

.pub-item {
    padding-left: 1.8rem;
}

/* --- Eigene Styles unten --- */

.tab-group .tab {
    background: #fff;
    color: #333;
    border: 1px solid #cfcfcf;
    padding: .25rem .6rem;
}

    .tab-group .tab + .tab {
        margin-left: -1px;
    }

    .tab-group .tab:hover {
        background: #f6f6f6;
    }

    .tab-group .tab.active {
        background: #eee;
        border-color: #b5b5b5;
        color: #111;
        /* pointer-events: none;  <- ENTFERNEN */
        pointer-events: auto; /* optional explizit erlauben */
    }

    .tab-group .tab:disabled {
        background: #fafafa;
        color: #999;
        border-color: #e0e0e0;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Abstand zwischen Text und Icon */
}

    .navbar-brand img {
        height: 20px;
    }


/* Entfernen des grauen Trennstrichs */
.navbar-light {
    border-bottom: none !important;
}


/* A4-Seitenverhältnis für den PDF-Viewer: Breite : Höhe = 1 : 1.4142 */
.a4box {
    width: 100%;
    aspect-ratio: 1 / 1.4142; /* A4 Hochformat */
    background: #fff; /* optisch sauber */
    position: relative;
}

    .a4box iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Liste links weiterhin gut scrollbar */
#pubList {
    font-size: 0.95rem;
}

/* Bild (Cover/Einladung) angenehm begrenzen */
#coverImg {
    max-height: 55vh;
    object-fit: contain;
}

/* --- Sticky Footer Layout --- */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Dropdown-Menüs beim Hover anzeigen (ab Tablet-Breite) */
@media (min-width: 576px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block !important; /* überschreibt Bootstrap */
        margin-top: 0;
    }
}

/* Ersten Menüpunkt (HOME) ohne linken Innenabstand */
.navbar-nav .nav-item:first-child .nav-link {
    padding-left: 0;
}

/* Name oben links größer, ohne die Navbar höher zu machen */
.navbar-brand-name {
    font-size: 1.6rem; /* nach Bedarf anpassen */
    line-height: 1; /* verhindert, dass die Navbar höher wird */
}

/* Abstand zwischen Menü und Seiten-Überschrift */
main.container h1,
main.container h2 {
    margin-top: 1.5rem; /* bei Bedarf z.B. 2rem daraus machen */
}


/* ============================
   INFO-BLOCK TYPOGRAFIE
   ============================ */

.pub-info {
    font-family: system-ui, sans-serif;
    line-height: 1.55;
    color: #222;
}

    /* --- Kopfbereich (Autoren, Titel etc.) --- */

    .pub-info .info-head {
        margin-bottom: 2rem;
    }

    /* Autorenzeile oben – rechtsbündig, fett */
    .pub-info .info-authors {
        text-align: right;
        font-family: "Libre Franklin", sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    /* Haupttitel – groß, leicht, zentriert */
    .pub-info .info-title {
        text-align: right;
        font-family: "Libre Franklin", sans-serif;
        font-size: 2.0rem;
        font-weight: 400;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    /* Untertitel rechtsbündig */
    .pub-info .info-subtitle {
        text-align: right;
        font-family: "Libre Franklin", sans-serif;
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 1.2;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Verlag fett */
    .pub-info .info-publisher {
        text-align: right;
        font-family: "Libre Franklin", sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    /* ============================
   TEXTABSCHNITTE
   ============================ */

    .pub-info p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .pub-info blockquote {
        margin: 1.5rem 0;
        padding-left: 1rem;
        border-left: 4px solid #ccc;
        font-style: italic;
    }

    /* ============================
   Zwischenüberschriften
   ============================ */

    .pub-info h3 {
        font-family: "Libre Franklin", sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 0.6rem;
    }

    .pub-info a {
        color: #0066cc;
        text-decoration: underline;
    }

    /* Listen im Info-Bereich: keine Punkte, normale Schriftgröße */
    .pub-info ul {
        list-style: none; /* Punkte weg */
        margin: 0 0 1rem 0;
        padding: 0;
    }

    .pub-info li {
        margin-bottom: 0.3rem;
        font-size: 1.1rem; /* wie Fließtext */
    }

/* Links im Info-Panel (Abstract/Info) */
.pub-body a {
    color: inherit; /* gleiche Textfarbe wie der Fließtext */
    text-decoration: underline;
    text-decoration-style: dotted; /* dezente gepunktete Unterstreichung */
    text-underline-offset: 0.18em; /* etwas Abstand zur Grundlinie */
    font-weight: 500; /* leicht betont */
}

    /* Hover-Effekt: klarer, aber nicht schreiend */
    .pub-body a:hover {
        color: #0d6efd; /* leichtes Bootstrap-Blau */
        text-decoration-style: solid;
    }

/* Liste im Info-Bereich ohne klassische Bullet-Punkte */
.pub-body ul.pub-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

    .pub-body ul.pub-list li {
        margin-bottom: 0.35rem;
    }

/* kleines Icon für externe Links (optional, aber hübsch) */
.pub-link-external::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 0.2em;
    opacity: 0.7;
}


/*=======================================================
    Lehrveranstaltungen
========================================================
.course {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
} */

    .course .detail h1 {
        font-size: 2.0rem;
        margin-bottom: 0.75rem;
    }

    .course .course-meta {
        color: #666;
        font-size: 0.95rem;
    }

    .course .teacher {
        
        margin-bottom: 8px;
    }

    .course .subjects {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .course .course-meta p {
        margin-bottom: 0.3rem; /* Standard wäre ~1rem */
        line-height: 1.35;
    }

/* Klickbare Kurse: Hand */
#courseList .course-item {
    cursor: pointer;
}

/* Semester-Header: normaler Cursor (kein Hand-Cursor) */
#courseList .semester-header {
    cursor: default;
}



/*nachträglich für accordeon-layout*/
/* Hand nur auf klickbaren Kursen */
.course-item {
    cursor: pointer;
}

/* Semester-Header nicht klickbar */
.semester-header {
    cursor: default;
}

/* Active Kurs: Grau statt Blau */
.course-item.active-course {
    background: rgba(0, 0, 0, .04);
    border-left: 4px solid rgba(173, 181, 189, 1); /* Bootstrap-ish Grau */
}

/* Mobile Accordion: Button-Inhalt sauber links */
.accordion-button > div {
    width: 100%;
}

/* Optional: weniger Innenabstand */
.accordion-body {
    padding: 0.9rem;
}

/* Optional: InfoHtml etwas entschärfen (falls es sehr große h1 enthält) */
.teaching-info h1 {
    font-size: 1.4rem;
    margin-bottom: .6rem;
}




/* Accordion geöffnet: Grau statt Bootstrap-Blau */
.accordion-button:not(.collapsed) {
    color: rgb(33, 37, 41); /* Bootstrap text-dark */
    background-color: rgba(0, 0, 0, 0.04); /* leicht grau */
    box-shadow: none; /* entfernt den Bootstrap-Look */
}

/* Focus-Ring: Grau statt Blau */
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(173, 181, 189, 0.5); /* grauer Fokus */
    border-color: rgba(173, 181, 189, 1);
}

/* Optional: Pfeil/Icon ebenfalls neutral */
.accordion-button:not(.collapsed)::after {
    filter: grayscale(1);
}


/*lehre: Accordeon! die abbildung etwas weiter von der info*/
.teaching-cover {
    margin-bottom: 3rem;
}
/*Abstand Uni Titel im Accordeon-Button*/

.teaching-uni {
    margin-bottom: .15rem;
}
/* minimal */

/*Semester WS SoSe mittig usw.*/
.semester-divider {
    text-align: right;
    color: #6c757d;
    font-size: .85rem;
    margin: 1.25rem 0;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
}

  /*  .semester-divider:before,
    .semester-divider:after {
        content: "";
        position: absolute;
        top: 50%;
        width: 35%;
        height: 1px;
        background: #e9ecef;
    }

    .semester-divider:before {
        left: 0;
    }

    .semester-divider:after {
        right: 0;
    }*/

/* PDF Pane im Modal etwas höher */
@media (max-width: 575.98px) {
    #pdfPaneMobile.a4box {
        min-height: 70vh;
    }
}

/* Modal-Cover auf Mobile etwas begrenzen */
#pubModal img {
    max-width: 95%;
    max-height: 55vh;
}

/* Klickbare Publikations-Einträge (Mobile) */
.pub-item-mobile {
    cursor: pointer;
}

    .pub-item-mobile:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }


/* Nur für die Mobile-Liste: Kontextzeile (Buch/Zeitschrift)
#pubListMobile .pub-container-title {
    font-size: 0.8rem;
    color: rgb(108, 117, 125); 
    line-height: 1.2;
    margin-bottom: 2px;
} */
/* Mobile-Liste: Quelle leicht eingerückt ?? funktioniert noch nicht!! */
#pubListMobile .pub-item-mobile .pub-container-title {
    display: block;
    font-size: 0.8rem;
    color: rgb(108, 117, 125);
    line-height: 1.25;
    padding-left: 1rem !important; /* statt margin-left -> zuverlässiger */
    margin-top: 2px;
    border-left: 1px solid rgba(0,0,0,.08);
}


/* Mobile Pub-Liste: Titel links, Jahr rechts, Quelle darunter */
#pubListMobile .pub-mobile-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

#pubListMobile .pub-mobile-title {
    font-weight: 600; /* wirkt wie dein bisheriger strong */
    line-height: 1.25;
    flex: 1 1 auto;
}


#pubListMobile .pub-mobile-year {
    font-size: .75rem; /* etwas kleiner */
    color: rgb(134, 142, 150); /* noch einen Tick heller */
    white-space: nowrap;
    text-align: right;
    position: relative;
    top: -0.2em; /* minimal nach oben */
}

/* Untertitel / Quelle in Mobile-Publikationsliste */
#pubListMobile .pub-mobile-source {
    font-size: 0.9rem;
    color: rgb(108, 117, 125);
    line-height: 1.15; /* ← DAS ist die Stellschraube */
    margin-top: 2px;
}

.pub-mobile-date {
    margin-top: 2px;
}

/* Linke Spalte als Flex, damit wir Reihenfolge ändern können */
.pub-left-col {
    display: flex;
    flex-direction: column;
}

/* Default (Desktop >= 992px): Cover oben, Liste unten */
.pub-cover-card {
    order: 1;
}

.pub-list-card {
    order: 2;
}

/* Tablet / kein 2-Spalten-Layout (< 992px): Liste oben, Cover darunter */
@media (max-width: 991.98px) {
    .pub-list-card {
        order: 1;
    }

    .pub-cover-card {
        order: 2;
    }
}

/* Tablet + Desktop Liste (#pubList): Titel links, Jahr rechts */
#pubList .pub-list-header {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
}

#pubList .pub-list-title {
    font-weight: 600;
    line-height: 1.25;
    flex: 1 1 auto;
}

#pubList .pub-list-year {
    font-size: .85rem;
    color: rgb(108,117,125);
    white-space: nowrap;
    text-align: right;
    flex: 0 0 auto;
    /* optional: minimal „hochgesetzt“ */
    position: relative;
    top: -0.15em;
}



/* Desktop + Tablet: dezente Hover-Rückmeldung */
#pubList .list-group-item {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

    #pubList .list-group-item:hover {
        background-color: rgba(0, 0, 0, 0.025);
    }

    #pubList .list-group-item:active {
        background-color: rgba(0, 0, 0, 0.04);
    }

    /* nur für Gespräch zwischen Oswald und Michael */
    .info-medium {
        font-weight: 500; /* „mittel-fett“ */
        color: rgba(0,0,0,.85);  /*leicht dunkler, wirkt kräftiger */
    }

    .pub-meta-category {
        font-size: 0.7rem;
        color: rgb(108, 117, 125);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .cover-click:hover {
        opacity: 0.93;
    }

    /* Globales Cover-Modal: kompakter Header */
    #globalCoverModal .modal-header {
        padding: 0.25rem 0.5rem; /* deutlich kleiner */
        border-bottom: none; /* keine Trennlinie */
    }

    /* Schließen-Button kleiner und dezenter */
    #globalCoverModal .btn-close {
        transform: scale(0.8); /* kleineres X */
        opacity: 0.6;
    }

        #globalCoverModal .btn-close:hover {
            opacity: 0.85;
        }

        /* Modal-Content soll nie überlaufen */
        #globalCoverModal .modal-content {
            overflow: hidden;
        }

        /* Globales Cover-Modal: Bild sinnvoll begrenzen (container-basiert) */
        #globalCoverModalImg {
            max-width: 100%; /* <-- statt 90vw */
            max-height: 85vh;
            width: auto;
            height: auto;
            object-fit: contain;
            margin: 0 auto;
            display: block;
        }


        #globalCoverModal .modal-body {
            padding: 0.75rem;
        }



        /* Lehrveranstaltungen: Links im Kurs-Info wie im pub-info */
        .course a.pub-link-external {
            color: #000; /* schwarz */
            text-decoration-line: underline;
            text-decoration-style: dotted;
            text-decoration-thickness: 1px;
            text-underline-offset: 2px;
        }

    .course a.pub-link-external:hover {
        color: #0d3b8e; /* dunkles Blau */
        text-decoration-style: solid;
    }

/* Listenpunkte entfernen für deine Link-Liste */
ul.pub-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

    /* optional: Abstand zwischen Einträgen */
    ul.pub-list li {
        margin-bottom: 0.35rem;
    }


/* ============================
   Bibliographie: angenehme Lesebreite
============================ */
.biblio-view {
    max-width: 70ch; /* ch = Zeichenbreite, super für Lesetext */
}

/* Bibliographie: hängender Einzug */
.biblio-item {
    margin-bottom: 0.9rem;
    padding-left: 1.4rem; /* Einzug für Folgezeilen */
    text-indent: -1.4rem; /* erste Zeile wieder nach links ziehen */
    line-height: 1.45;
}

/* optional: etwas ruhigere Farbe */
.biblio-item {
    color: rgba(0,0,0,.85);
}


/* Info/Volltext-Tabs: Fokusrahmen entfernen
.btn-group .btn:focus,
.btn-group .btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
} */

/* ============================
   E-MAIL SPEZIFISCH
   ============================ */

.pub-info.email-info .info-head {
    display: flex;
    justify-content: flex-end;
}

.pub-info.email-info .info-head-right {
    text-align: right;
    max-width: 800px;
}

.pub-info.email-info .info-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.pub-info.email-info .info-date {
    font-size: 0.95rem;
    color: #666;
}

.pub-info.email-info .email-abstract-block {
    margin-top: 2rem;
}

.pub-info.email-info .email-abstract-label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}



/* ============================
   MOBILE – EMAIL INFO MODAL
   ============================ */

#pubModal .pub-info .info-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2px;
}

/* Autoren */
#pubModal .pub-info .info-authors {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    margin-bottom: 0.4rem;
}

/* Titel */
#pubModal .pub-info .info-title {
    text-align: right;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* Datum */
#pubModal .pub-info .info-date {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

/* Allgemein (Desktop + Mobile)
.pub-info .info-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
} */


.pub-info .info-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

/* Mobile spezielle Anpassung */
#pubModal .pub-info .email-abstract {
    font-size: 0.98rem;
    line-height: 1.6;
}

.blur-mail {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.thread-header {
    background: #f3f3f3;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
}

.list-group-item.thread-header {
    cursor: default !important;
}

.list-group-item.thread-header:hover {
    background: #f3f3f3 !important;
}

.thread-toggle {
    color: #555 !important;
}

#pubList .thread-header .thread-toggle {
    color: #555 !important;
}

#pubList .thread-header:hover .thread-toggle {
    color: #555 !important;
}

#pubList .thread-header {
    color: #555;
}

    #pubList .thread-header:hover {
        color: #555;
    }

.thread-header {
    background-color: #f3f3f3 !important;
    color: #555 !important;
}

.thread-toggle {
    display: inline-block;
    width: 1rem;
    margin-right: 6px;
    font-size: 0.85rem;
    color: #666;
}



.thread-title {
    font-weight: 500;
    color: #444;
}

.thread-header {
    padding-top: 6px;
    padding-bottom: 6px;
}

.thread-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.thread-toggle {
    flex: 0 0 14px;
    text-align: center;
    margin-top: 2px;
    color: #666;
}

.thread-title {
    flex: 1;
    font-weight: 500;
}

.pub-item-mobile {
    padding-left: 1.5rem;
}

.thread-header-mobile {
    background-color: #f3f3f3;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

    .thread-header-mobile .thread-toggle {
        margin-right: 6px;
    }

.alert {
    font-size: 0.9rem;
}

.info-topics {
    margin-top: 6px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.topic-tag {
    display: inline-block;
    font-size: 0.72rem;
    color: #6c757d;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 6px;
    margin-top: 3px;
}



.topic-active {
    background: #dee2e6;
    color: #000;
}


.thread-description {
    color: #555;
}

.thread-meta {
    font-size: 0.9rem;
}



.thread-mail {
    max-width: 800px;
    cursor: pointer;
    border-left: 4px solid #e0e3e6;
    padding-left: 14px;
    transition: all 0.15s ease;
}

    .thread-mail.is-active {
        border-left: 4px solid #9aa1a8;
        padding-left: 18px;
        background: #fafafa;
    }

.topic-button {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 6px;
    background: #e9edf2;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
}

    .topic-button:hover {
        background: #d9dee4;
    }




.archive-nav-button {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border: 1px solid #c8ccd1;
    border-radius: 0.32rem;
    background: #fff;
    color: #444 !important;
    font-size: 0.8rem;
    text-decoration: none !important;
    line-height: 1.4;
}

    .archive-nav-button:hover {
        background: #f4f5f6;
        color: #222 !important;
        text-decoration: none !important;
    }

.thread-timeline ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.thread-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.timeline-date {
    flex: 0 0 78px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.35;
}

.thread-timeline-link {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    line-height: 1.35;
}

.thread-timeline-link {
    display: inline;
}

    .thread-timeline-link:hover {
        color: #000;
        background: transparent;
    }

    .thread-timeline-link.is-active {
        background: #e9ecef;
        color: #333;
        text-decoration: none;
    }

.filter-panel {
    background: #fafafa;
    border-top: 1px solid #e5e7ea;
    padding: 10px 12px;
}

.filter-header {
    background: #f8f9fa;
}

    .filter-header .thread-title {
        color: #555;
    }

.archive-filter-group {
    margin-bottom: 10px;
}

    .archive-filter-group:last-child {
        margin-bottom: 0;
    }

.archive-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.filter-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-topic,
.filter-topic-mobile {
    display: inline-block;
    font-size: 0.74rem;
    color: #666;
    background: #f1f3f5;
    border: 1px solid #dde1e5;
    border-radius: 5px;
    padding: 1px 7px;
    cursor: pointer;
    line-height: 1.25;
}

    .filter-topic:hover,
    .filter-topic-mobile:hover {
        background: #e9ecef;
        color: #333;
    }

    .filter-topic.active,
    .filter-topic-mobile.active {
        background: #dde3e8;
        border-color: #c6ccd2;
        color: #222;
    }

.filter-range-row,
.filter-title-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-year-input,
.filter-title-input {
    width: 100%;
    font-size: 0.8rem;
    border: 1px solid #d8dde2;
    border-radius: 4px;
    padding: 3px 7px;
    color: #444;
    background: #fff;
}

.filter-year-input {
    max-width: 70px;
    max-height: 20px;
}

.filter-title-input {
    max-width: 230px;
    max-height: 20px;
}

.filter-sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-sort-option {
    font-size: 0.78rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.archive-filter-actions {
    margin-top: 4px;
}

.filter-mail-match .pub-list-title::before {
    content: "✓ ";
    color: #7a7f85;
    font-weight: 600;
}

.filter-mail-match .pub-mobile-title::before {
    content: "✓ ";
    color: #7a7f85;
    font-weight: 600;
}

.filter-panel-mobile {
    background: #fafafa;
    border-top: 1px solid #e5e7ea;
    padding: 10px 12px;
}

    .filter-panel .archive-nav-button,
    .filter-panel-mobile .archive-nav-button {
        font-size: 0.78rem;
        padding: 3px 8px !important;
        line-height: 1.1;
    }

.filter-header-mobile {
    background: #f8f9fa;
}

    .filter-header-mobile .thread-title {
        color: #555;
    }

.citation-link {
    color: #333;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

    .citation-link:hover {
        color: #000;
        text-decoration-line: underline;
        text-decoration-style: dotted;
    }

.email-diskussionen-page input[type="radio"],
.email-diskussionen-page input[type="checkbox"] {
    accent-color: #555;
}

/* TexteChronologisch: IncludeEmails-Checkbox */
#includeEmails {
    accent-color: #555;
}

    #includeEmails.form-check-input:checked {
        background-color: #555;
        border-color: #555;
    }

    #includeEmails.form-check-input:focus {
        border-color: #777;
        box-shadow: 0 0 0 0.2rem rgba(85, 85, 85, 0.15);
    }

.archive-list-header,
.archive-pane-header {
    padding-top: 6px;
    padding-bottom: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
}


    .archive-pane-header .tab-group .btn {
        padding: 3px 9px;
    }

.email-keywords {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.45;
}

.email-keywords-label {
    font-weight: 600;
    color: #666;
}