/* =============================================
   DGaO-Proceedings — "Corporate Spectral"
   Sitewide v4 Design System
   DGaO-Rot (#DB092C, vom Jahrestagungsflyer) · Outfit + Source Sans 3
   ============================================= */

/* ============================
   DESIGN TOKENS
   ============================ */

:root {
    /* Surfaces */
    --white:          #ffffff;
    --paper:          #fafaf8;
    --warm:           #f5f5f2;
    --border:         #e8e7e3;
    --border-light:   #f0efeb;

    /* Text hierarchy */
    --text:           #1a1d2e;
    --text-mid:       #3d4155;
    --text-muted:     #6b7280;
    --text-light:     #9ca3af;

    /* Accent — DGaO-Rot (offizieller Ton vom Jahrestagungsflyer).
       --accent-rgb hält die Komponenten separat, damit Schatten/Glows
       überall via rgba(var(--accent-rgb), X) referenzieren können —
       so muss bei einem zukünftigen Brand-Rebrand NUR --accent +
       --accent-rgb getauscht werden, keine inline-rgba-Stellen mehr. */
    --accent:         #DB092C;
    --accent-rgb:     219, 9, 44;
    --accent-light:   #F02D4B;
    --accent-pale:    #FCE9EC;
    --accent-dark:    #A30620;
    --accent-glow:    rgba(var(--accent-rgb), 0.12);
    --accent-muted:   #E89AA5;
    --accent-subtle:  #FCE9EC;

    /* Typography */
    --font-display:   'Outfit', 'Source Sans 3', system-ui, sans-serif;
    --font-body:      'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-serif:     'Libre Baskerville', Georgia, serif;
    --font-mono:      'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Easing */
    --ease:           cubic-bezier(0.22, 1, 0.36, 1);
    --spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth:         cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows — subtle, restrained */
    --shadow-sm:      0 1px 3px rgba(26, 29, 46, 0.04), 0 2px 6px rgba(26, 29, 46, 0.03);
    --shadow-md:      0 2px 6px rgba(26, 29, 46, 0.05), 0 6px 18px rgba(26, 29, 46, 0.05);
    --shadow-lg:      0 4px 8px rgba(26, 29, 46, 0.04), 0 12px 32px rgba(26, 29, 46, 0.07);

    /* Radius */
    --radius:         6px;
    --radius-sm:      4px;
    --radius-lg:      10px;

    /* Type scale */
    --text-xs:        0.72rem;
    --text-sm:        0.84rem;
    --text-base:      1rem;
    --text-md:        1.08rem;
    --text-lg:        1.25rem;
    --text-xl:        1.4rem;
    --text-2xl:       1.65rem;
    --text-3xl:       2.1rem;
    --text-4xl:       2.75rem;

    /* Legacy aliases (for any templates referencing old tokens) */
    --bg:             var(--white);
    --bg-card:        var(--white);
    --bg-subtle:      var(--paper);
    --font-sans:      var(--font-display);

    /* v4 aliases — used by homepage template */
    --v4-white:        var(--white);
    --v4-paper:        var(--paper);
    --v4-warm:         var(--warm);
    --v4-border:       var(--border);
    --v4-border-light: var(--border-light);
    --v4-text:         var(--text);
    --v4-text-mid:     var(--text-mid);
    --v4-text-muted:   var(--text-muted);
    --v4-text-light:   var(--text-light);
    --v4-accent:       var(--accent);
    --v4-accent-light: var(--accent-light);
    --v4-accent-pale:  var(--accent-pale);
    --v4-accent-dark:  var(--accent-dark);
    --v4-accent-glow:  var(--accent-glow);
    --v4-accent-muted: var(--accent-muted);
    --v4-font:         var(--font-display);
    --v4-body:         var(--font-body);
    --v4-serif:        var(--font-serif);
    --v4-ease:         var(--ease);
    --v4-spring:       var(--spring);
    --v4-smooth:       var(--smooth);

    /* Bootstrap overrides */
    --bs-body-bg:               var(--white);
    --bs-body-color:            var(--text);
    --bs-body-font-family:      var(--font-body);
    --bs-primary:               var(--accent);
    --bs-primary-rgb:           var(--accent-rgb);
    --bs-secondary:             var(--text-muted);
    --bs-secondary-rgb:         107, 114, 128;
    --bs-border-color:          var(--border);
    --bs-border-radius:         6px;
    --bs-border-radius-sm:      4px;
    --bs-border-radius-lg:      10px;
    --bs-border-radius-pill:    50rem;
    --bs-focus-ring-color:      rgba(var(--accent-rgb), 0.18);
    --bs-link-color:            var(--accent);
    --bs-link-color-rgb:        var(--accent-rgb);
    --bs-link-hover-color:      var(--accent-light);
    --bs-link-hover-color-rgb:  240, 45, 75;
    --bs-card-bg:               var(--white);
    --bs-card-border-color:     var(--border-light);
}


/* ============================
   BASE
   ============================ */

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
}


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

/* Page-Content-Wrapper: exakt dasselbe Schema wie .site-header__inner /
   .site-footer__inner, damit Brand, Active-Underline, H1 und Listen-
   Ränder bei jeder Viewport-Breite sauber übereinander abschließen.
   Bewusst KEIN Bootstrap .container — dessen responsive max-widths
   (720/960/1140) brachen die Alignment mit dem konstant-1280-Header. */
.site-content__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* ============================
   SITE HEADER — two-row, editorial
   Row 1: brand + utility (small, ruhig)
   Row 2: primary nav (groß, klar, mit Hover-Underline)
   ============================ */

.skip-link {
    position: absolute;
    top: 0; left: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    z-index: 100;
}
.skip-link:not(:focus):not(:focus-within) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* Default header = weiß/editorial mit weinrotem Akzent (Uni-Stuttgart-/
   DGaO-Style). Nur auf der Home-Seite wird der Header dunkel und fließt
   nahtlos in den Hero über (siehe body[data-page="home"]-Overrides unten). */
.site-header {
    position: relative;
    z-index: 5;
    background: var(--white);
    transition: background-color 0.3s var(--ease);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header__top {
    border-bottom: 1px solid var(--border-light);
}

.site-header__top .site-header__inner {
    min-height: 64px;
}

/* Brand wordmark — weinrot/editorial default */
.site-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    text-decoration: none;
    font-family: var(--font-display);
    line-height: 1;
    flex-wrap: wrap;
}

.site-brand:hover { text-decoration: none; }

.site-brand__mark {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.025em;
}

.site-brand__sep {
    color: var(--accent-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.site-brand__tail {
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.015em;
}

.site-brand__issn {
    display: inline-block;
    margin-left: 0.7rem;
    padding-left: 0.7rem;
    border-left: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    align-self: center;
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .site-brand__issn { display: none; }
    .site-brand__mark, .site-brand__tail { font-size: 1.25rem; }
    .site-header__top .site-header__inner { min-height: 56px; }
}

/* Utility (right side row 1) */
.site-header__util {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.86rem;
}

.site-util-link {
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.2rem;
    transition: color 0.18s var(--ease);
}

.site-util-link .bi { font-size: 0.95em; opacity: 0.8; }

.site-util-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.site-nav2 {
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
}

.site-nav2__inner {
    min-height: 56px;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
}

.site-nav2__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
    flex-wrap: wrap;
}

.site-nav2__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 1.05rem 0.7rem;
    margin-bottom: -1px;
    transition: color 0.18s var(--ease);
}

/* Underline als pseudo-element: läuft exakt von Text-Anfang bis
   Text-Ende (left/right matchen das Padding), NICHT über die volle
   Padding-Box wie das alte border-bottom. So passt der Strich bei
   kurzen wie langen Labels identisch zum Text. */
.site-nav2__link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0;
    height: 3px;
    background: transparent;
    transition: background-color 0.18s var(--ease);
    pointer-events: none;
}

/* Erster Link sitzt bündig mit dem Brand links — kein Left-Padding,
   Underline beginnt entsprechend bei 0. */
.site-nav2__list > li:first-child .site-nav2__link {
    padding-left: 0;
}
.site-nav2__list > li:first-child .site-nav2__link::after {
    left: 0;
}

.site-nav2__link .bi {
    font-size: 0.95em;
    opacity: 0.7;
}

.site-nav2__link:hover {
    color: var(--accent);
    text-decoration: none;
}
.site-nav2__link:hover::after {
    background: var(--accent-muted);
}

.site-nav2__link:hover .bi { opacity: 1; }

.site-nav2__link.is-active {
    color: var(--accent);
    font-weight: 600;
}
.site-nav2__link.is-active::after {
    background: var(--accent);
}

/* Mobile toggle — borderless, größerer Touch-Target, mittig sitzendes Icon.
   Strich-Farbe wird je nach Header-Variante übersteuert (siehe unten). */
.site-nav2__toggle {
    display: none;
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 0.65rem 0.55rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: background-color 0.18s var(--ease);
}
.site-nav2__toggle:hover { background: rgba(0,0,0,0.05); }
.site-nav2__toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Statisches Drei-Strich-Icon, KEIN Morph zum X. Akademische Sites
   verzichten typischerweise auf Mikro-Animationen — das Icon
   funktioniert auch ohne Verwandlung, der is-open-Zustand wird über
   das sichtbare Menü selbst kommuniziert. */
.site-nav2__toggle-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    position: relative;
}
.site-nav2__toggle-icon::before,
.site-nav2__toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.site-nav2__toggle-icon::before { top: -7px; }
.site-nav2__toggle-icon::after  { top: 7px; }

@media (max-width: 767.98px) {
    /* Header oben so kompakt wie noch tap-tauglich: 44 px ist Apples
       HIG-Minimum für Touch-Targets, alles drunter wird ungenau zu
       treffen. ISSN-Row leicht über Touch-Min damit das Logo Luft hat,
       Nav-Row exakt 44 px = Hamburger sitzt bündig drin. */
    .site-header__top .site-header__inner { min-height: 46px; }
    .site-nav2 { position: relative; }   /* Anker für absolutes Menü */
    .site-nav2__inner { min-height: 44px; }
    /* Hamburger rechts (margin-left: auto) für Rechtshänder-Daumen-
       Reichweite. */
    .site-nav2__toggle {
        display: inline-flex;
        margin: 0 0 0 auto;
        min-height: 38px;
        min-width: 38px;
        padding: 0.4rem 0.4rem;
    }
    /* Menü als absoluter Overlay unter der Navbar — NICHT im Flow.
       Bewusst KEINE max-height/opacity-Transition mehr: dabei waren
       die Items während der Animation kurz in ihrer base-flex-Layout
       sichtbar (horizontale Anordnung von der Desktop-Regel her, bevor
       flex-direction:column "festgesetzt" war im Render). Display
       none/flex ist instant, hat keinen Übergangs-Frame zwischen
       horizontal und vertikal → kein Flicker. */
    .site-nav2__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
        flex-direction: column;
        flex-basis: auto;
        flex-wrap: nowrap;
        z-index: 100;
        display: none;
    }
    .site-nav2__list.is-open {
        display: flex;
    }
    .site-nav2__link {
        padding: 0.85rem 1.5rem;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 0;
        width: 100%;
    }
    .site-nav2__list > li:first-child .site-nav2__link {
        padding-left: 1.5rem;   /* Override Desktop-Regel padding-left:0 */
    }
    .site-nav2__link.is-active { border-bottom-color: var(--accent); }
    /* Pseudo-Underline ist Desktop-only — auf Mobile ist die border-bottom
       des Links selbst die Row-Trennlinie. */
    .site-nav2__link::after { display: none; }
}


/* ============================
   HOME OVERRIDES — dunkler Header fließt nahtlos in den Hero über.
   Kein Bauteil bekommt Bootstrap-Blau, alle Töne sind warm-neutral
   (#050811 = exakt der Hero-Hintergrund). Auf Unterseiten greift dieser
   Block nicht und der weiße Default bleibt aktiv.
   ============================ */

body[data-page="home"] .site-header {
    background: #050811;
}
body[data-page="home"] .site-header__top {
    border-bottom-color: rgba(255,255,255,0.08);
}
body[data-page="home"] .site-brand__mark {
    color: #ffffff;
}
body[data-page="home"] .site-brand__sep {
    color: rgba(255,255,255,0.45);
}
body[data-page="home"] .site-brand__tail {
    color: rgba(255,255,255,0.85);
}
body[data-page="home"] .site-brand__issn {
    color: rgba(255,255,255,0.45);
    border-left-color: rgba(255,255,255,0.18);
}
body[data-page="home"] .site-util-link {
    color: rgba(255,255,255,0.72);
}
body[data-page="home"] .site-util-link:hover {
    color: #ffffff;
}
body[data-page="home"] .site-nav2 {
    background: #050811;
    border-bottom: 0;          /* keine harte Linie zwischen Header und Hero */
}
body[data-page="home"] .site-nav2__link {
    color: rgba(255,255,255,0.78);
}
body[data-page="home"] .site-nav2__link:hover {
    color: #ffffff;
}
body[data-page="home"] .site-nav2__link:hover::after {
    background: rgba(255,255,255,0.4);
}
body[data-page="home"] .site-nav2__link.is-active {
    color: #ffffff;
}
body[data-page="home"] .site-nav2__link.is-active::after {
    background: #ffffff;
}
body[data-page="home"] .site-nav2__toggle {
    color: #ffffff;
}
body[data-page="home"] .site-nav2__toggle:hover {
    background: rgba(255,255,255,0.08);
}
body[data-page="home"] .site-nav2__toggle:focus-visible {
    outline-color: rgba(255,255,255,0.7);
}

@media (max-width: 767.98px) {
    /* Overlay-Menue auf der Home muss den dunklen Header-Ton übernehmen,
       sonst hätte das Mobile-Menue weissen Bg auf schwarzem Header. */
    body[data-page="home"] .site-nav2__list {
        background: #050811;
        border-bottom-color: rgba(255,255,255,0.12);
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    body[data-page="home"] .site-nav2__link {
        border-bottom-color: rgba(255,255,255,0.08);
    }
    body[data-page="home"] .site-nav2__link.is-active {
        border-bottom-color: #ffffff;
    }
}


/* ============================
   FOOTER — schmal, kompakt, unauffaellig
   Einzeiler mit Copyright links und Rechtslinks + dgao.de rechts.
   Duenne Top-Border als visueller Abschluss, sonst keine Akzente.
   Brand-Rot kommt nur beim Link-Hover hervor.
   ============================ */
.site-footer {
    background: var(--white);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-light);
    padding: 1.25rem 0;
    position: relative;
    z-index: 2;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}

.site-footer__copy {
    margin: 0;
    color: var(--text-light);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.4rem;
}

.site-footer__links a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.18s var(--ease);
}

.site-footer__links a:hover {
    color: var(--accent);
}

@media (max-width: 575.98px) {
    .site-footer { padding: 1rem 0; }
    /* column-reverse: Links zuerst (handlungs-orientierte Nav-Items),
       Copyright als kleingedrucktes drunter — modern editorial Mobile-
       Pattern. DOM-Reihenfolge bleibt semantisch korrekt (Copy zuerst). */
    .site-footer__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* ============================
   HERO BANNER (sub-pages)
   ============================ */

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    position: relative;
    letter-spacing: -0.02em;
}


/* ============================
   PAPER CARDS
   ============================ */

.paper-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.25s var(--ease),
                border-color 0.25s var(--ease),
                transform 0.25s var(--ease);
}

.paper-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-muted);
    transform: translateY(-1px);
}

.paper-card .card-eyebrow {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.paper-card .card-title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    letter-spacing: -0.005em;
}

.paper-card .card-authors {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.45;
}

.paper-card .card-footer-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-light);
    font-size: var(--text-xs);
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================
   TYPE BADGES
   ============================ */

/* Type-Badges in einer einheitlich gedaempften "academic paper label"-
   Palette: alle haben aehnliche Helligkeit (~92% L) und niedrige
   Saettigung (~10-15%), damit keine Farbe gegen das DGaO-Rot
   konkurriert. Statt knallgelb / knallviolett: aged paper, dusty plum,
   sage, slate — fuehlt sich nach Verlagspalette an. */
.badge-hauptvortrag  { background: #FBF4E5; color: #8B6B1A; font-weight: 600; }
.badge-sondervortrag { background: #F3EBF3; color: #6D3F73; font-weight: 600; }
.badge-poster        { background: #EEF2E9; color: #4D6B3F; font-weight: 600; }
.badge-vortrag       { background: #ECEFF4; color: #3E5670; font-weight: 600; }

.badge-pdf {
    background: var(--accent-pale);
    color: var(--accent);
    font-weight: 600;
}

/* ============================
   ARCHIVE LIST
   ============================ */

.v4-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ab md zweispaltig im Multi-Column-Flow (NICHT Grid Row-by-Row):
   für chronologische Listen ist Spalten-Flow intuitiver — linke
   Spalte komplett runter (neueste Jahrgänge), dann rechte Spalte
   weiter (ältere). So scannt man wie in einem Index/Telefonbuch
   ohne Augen-Zickzack zwischen Spalten. break-inside verhindert,
   dass ein Item zwischen den Spalten zerrissen wird. */
@media (min-width: 768px) {
    .v4-archive-list {
        columns: 2;
        column-gap: 1.5rem;
    }
    .v4-archive-list > li {
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
}

.v4-archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text);
    transition: all 0.22s var(--ease);
}

.v4-archive-item:first-child {
    border-top: 1px solid var(--border-light);
}

.v4-archive-item:hover {
    background: var(--accent-pale);
    border-left-color: var(--accent);
    text-decoration: none;
    color: var(--text);
}

.v4-archive-year {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    min-width: 48px;
    flex-shrink: 0;
}

.v4-archive-loc {
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--text-muted);
    flex: 1;
    margin-left: 0.85rem;
}

.v4-archive-loc strong {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
}

.v4-archive-nr {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.v4-archive-badge {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-pale);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: background 0.2s, color 0.2s;
}

.v4-archive-item:hover .v4-archive-badge {
    background: var(--accent);
    color: var(--white);
}

.v4-archive-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 1.15rem;
    transition: color 0.2s;
}

.v4-archive-more:hover {
    color: var(--accent-light);
    text-decoration: none;
}


/* ============================
   AUTHOR INDEX
   ============================ */

.letter-header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
    padding: 0.3rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0.6rem;
}


/* ============================
   SEARCH
   ============================ */

.search-input {
    border-color: var(--border);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: var(--text-base);
    padding: 0.65rem 1rem;
    transition: border-color 0.25s var(--ease),
                box-shadow 0.25s var(--ease);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Suchen-Button im Haupt-Suchfeld auf gleiche Höhe wie .search-input
   bringen — Bootstrap-Default-Padding 0.375rem ist sichtbar kürzer
   als die 0.65rem des Inputs. Nur der grosse Such-Button bekommt das
   neue Padding; .btn-accent.btn-sm im Advanced-Filter bleibt klein. */
.suche-form .btn-accent:not(.btn-sm) {
    padding: 0.65rem 1.25rem;
}

/* ============================
   ARTICLE DETAIL
   ============================ */

.article-detail {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.article-detail h1 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    max-width: 54ch;
}

.article-detail .article-meta {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.article-detail .abstract-block {
    padding-left: 0;
    color: var(--text-mid);
    font-family: var(--font-body);
    line-height: 1.75;
    max-width: 68ch;
}
.article-detail .abstract-block::before {
    content: "Abstract";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.article-detail .abstract-block p {
    white-space: pre-line;
}

/* ============================
   BIBTEX
   ============================ */

.bibtex-block {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-mid);
    line-height: 1.6;
}


/* ============================
   BUTTONS
   ============================ */

/* Solid dark accent — Wein-Rot bleibt das Brand-Element, aber jetzt mit
   confidence: vollflächig, leicht erhöhter Kontrast, sanfter Spektral-Hover. */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(26,29,46,0.08);
    transition: background 0.2s var(--ease),
                box-shadow 0.2s var(--ease),
                transform 0.15s var(--ease);
}

.btn-accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25),
                0 0 0 1px rgba(var(--accent-rgb), 0.15);
    transform: translateY(-1px);
}

.btn-accent:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

/* Primary = Brand-Akzent (DGaO-Rot) — funktioniert auf weißen Unterseiten
   sauber als dezente CTA, ohne mit dem Hero-Schwarz zu konkurrieren. */
.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-light);
    --bs-btn-hover-border-color: var(--accent-light);
    --bs-btn-active-bg: var(--accent-light);
    --bs-btn-active-border-color: var(--accent-light);
    --bs-btn-focus-shadow-rgb: var(--accent-rgb);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.25);
    transform: translateY(-1px);
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.2s var(--ease);
}

.btn-outline-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ============================
   LINKS
   ============================ */

a.accent-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-muted);
    text-underline-offset: 0.18em;
    transition: color 0.2s var(--ease),
                text-decoration-color 0.2s var(--ease);
}

a.accent-link:hover {
    color: var(--accent-light);
    text-decoration-color: var(--accent-light);
}

/* --- Paper: Autoren + Affiliationen (Journal-Stil, refined minimal) --- */
.paper-authors {
    line-height: 1.85;
}
.paper-author {
    white-space: nowrap; /* Name + Hochzahl + Mail bleiben zusammen, brechen nicht um */
}
.paper-author__sep {
    color: var(--text-muted);
}
/* Hochzahl: <sup> übernimmt die Hochstellung (Bootstrap top:-.5em) — hier nur
   Größe/Farbe, KEIN zusätzliches vertical-align (sonst schwebt sie zu hoch). */
.paper-author__aff {
    font-size: 0.7em;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 1px;
}
/* Einheitliches Mail-Symbol — korrespondierender Autor + Kontaktzeile gleich. */
.paper-author__corr {
    margin-left: 4px;
    font-size: 0.86em;
    color: var(--text-muted);
    text-decoration: none;
}
.paper-author__corr:hover {
    color: var(--accent);
}
.paper-contact i {
    color: var(--text-muted);
    font-size: 0.92em;
}
/* Affiliations: enge, ausgerichtete Nummern-Liste (Flex statt hängender Einzug). */
.paper-affils {
    padding-left: 0;
    margin-bottom: 1rem;
}
.paper-affils li {
    display: flex;
    gap: 0.5em;
    line-height: 1.55;
}
.paper-affils__num {
    flex: 0 0 1em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}


/* ============================
   BREADCRUMB
   ============================ */

.breadcrumb {
    font-family: var(--font-display);
    font-size: var(--text-sm);
}

.breadcrumb-item a {
    color: var(--accent);
    transition: color 0.15s;
}

.breadcrumb-item a:hover {
    color: var(--accent-light);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}


/* ============================
   STAT CARDS (Statistik page)
   ============================ */

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-card .card-header {
    font-family: var(--font-display);
    font-weight: 600;
    background: var(--paper);
    border-bottom: 1px solid var(--border-light);
}

.stat-card .table {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.stat-card .table th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-card .table-hover tbody tr:hover {
    background: var(--warm);
}


/* ============================
   KEYFRAMES
   ============================ */




/* ============================
   V4 ANIMATION UTILITIES
   ============================ */

/* Scroll reveal — disabled for academic journal professionalism.
   Content is immediately visible; no fade-in-on-scroll. */
.v4-reveal {
    opacity: 1;
    transform: none;
}

.v4-rd1 { transition-delay: 0.04s; }
.v4-rd2 { transition-delay: 0.08s; }
.v4-rd3 { transition-delay: 0.12s; }
.v4-rd4 { transition-delay: 0.16s; }
.v4-rd5 { transition-delay: 0.20s; }


/* ============================
   RESPONSIVE — TABLET
   ============================ */

@media (max-width: 767.98px) {
    .hero-title {
        font-size: var(--text-2xl);
    }

    .article-detail {
        padding: 1.75rem;
    }
}


/* ============================
   RESPONSIVE — MOBILE
   ============================ */

@media (max-width: 575.98px) {
    .hero-title {
        font-size: var(--text-xl);
    }

    .article-detail {
        padding: 1.25rem;
    }

    .paper-card {
        padding: 1rem 1.15rem;
    }

    .v4-archive-item {
        padding: 0.7rem 0.75rem;
    }

    .v4-archive-loc {
        font-size: 0.8rem;
    }
}


/* ============================
   TYPOGRAPHY — schärfere Display-Hierarchie passend zur Hero
   ============================ */

h1, .h1, h2, .h2, h3, .h3 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.015em;
}

h2, .h2 {
    font-weight: 700;
}

h3, .h3 {
    font-weight: 600;
}


/* ============================
   ARCHIV-DETAIL — Sessions als <details>
   ============================ */

/* Sessions: Hairline-Liste analog zu .v4-archive-list — flache Rows mit
   Bottom-Border statt geboxter Karten, Hover mit accent-pale + 3px
   Stripe (Hover-only, kompatibel zum Editorial-Refactor), Count-Pill
   rechts in derselben Optik wie .v4-archive-badge. */
#paper-list {
    border-top: 1px solid var(--border-light);
}

.archiv-session {
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    transition: background 0.22s var(--ease);
}

.archiv-session__summary {
    cursor: pointer;
    padding: 0.8rem 1rem;
    background: transparent;
    border-left: 3px solid transparent;
    border-radius: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    transition: background 0.22s var(--ease), border-left-color 0.22s var(--ease);
}

.archiv-session__summary:hover {
    background: var(--accent-pale);
    border-left-color: var(--accent);
}

/* Open-State: gesamte Session sitzt einheitlich auf paper-bg —
   kein Farbsprung mehr zwischen Header (vorher leicht accent-tinted)
   und Papers-Grid (paper). 3px Accent-Left + Count-Pill bleiben als
   State-Indikatoren. */
.archiv-session[open] {
    background: var(--paper);
}

.archiv-session[open] > .archiv-session__summary {
    background: transparent;
}

.archiv-session[open] > .archiv-session__summary:hover {
    background: var(--accent-pale);
}

.archiv-session__summary::-webkit-details-marker {
    display: none;
}

.archiv-session__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    letter-spacing: -0.005em;
    line-height: 1.3;
    min-width: 0;
    flex: 1;
}

/* Count-Pill — exakt analog zu .v4-archive-badge */
.archiv-session__count {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-pale);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    transition: background 0.2s, color 0.2s;
}

.archiv-session__summary:hover .archiv-session__count {
    background: var(--accent);
    color: var(--white);
}

/* Paper-Grid: erbt paper-bg von [open]-Container, keine eigene
   Top-Hairline mehr (vermeidet harten Cut zum Header).
   3 Spalten ab xl — bei 1140px-Container wären 2 Spalten sonst
   "breitgezogen" und Cards wirken zu sparse. */
.archiv-session__papers {
    padding: 0.85rem 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

@media (min-width: 1200px) {
    .archiv-session__papers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .archiv-session__papers {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.7rem;
    }
}

/* mb-3 von <a> entfernen — Grid-Gap regelt die Abstände */
.archiv-session__papers .archiv-item > a.d-block {
    margin-bottom: 0 !important;
}

/* CSS-Grid-Items haben default min-width: auto — das erlaubt den Inhalt
   (insbesondere .card-authors mit text-truncate / white-space: nowrap)
   die Grid-Cell breiter zu sprengen als die verfügbare Spalte. Auf
   Mobile führte das zu horizontalem Overflow / Scroll. min-width: 0
   zwingt die Cell auf die Spaltenbreite und text-truncate funktioniert
   wie erwartet (ellipsis statt Overflow). */
.archiv-session__papers > .archiv-item,
.archiv-session__papers .paper-card,
.archiv-session__papers .paper-card .card-authors {
    min-width: 0;
}

/* Kompaktere Paper-Karten im Session-Kontext: weniger Padding,
   gleichmäßige Höhen (height:100% + flex), straffere Typo. */
.archiv-session__papers .paper-card {
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.22s var(--ease),
                box-shadow 0.22s var(--ease);
}

/* Hover-Vokabular an die Session-Header-Hover angeglichen: gleicher
   accent-pale Bg + 3px Accent-Stripe links (via inset-shadow, damit
   kein Layout-Jump). Kein Drop-Shadow, kein Lift — flach wie die
   Sessions. */
.archiv-session__papers .paper-card:hover {
    background: var(--accent-pale);
    border-color: var(--border);
    box-shadow: inset 3px 0 0 var(--accent);
    transform: none;
}

.archiv-session__papers .paper-card .card-eyebrow {
    margin-bottom: 0.3rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
}

.archiv-session__papers .paper-card .card-title {
    font-size: 0.96rem;
    line-height: 1.32;
    margin-bottom: 0.3rem;
}

.archiv-session__papers .paper-card .card-authors {
    font-size: 0.8rem;
    line-height: 1.4;
}

.archiv-session__papers .paper-card .card-footer-bar {
    margin-top: auto;
    padding-top: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Im dichten Grid ist der farbige Typ-Badge im Footer redundant zur
   Eyebrow ("EU.1 · Vortrag") — Badge ausblenden, PDF & Zeit bleiben. */
.archiv-session__papers .paper-card .card-footer-bar > .badge-hauptvortrag,
.archiv-session__papers .paper-card .card-footer-bar > .badge-sondervortrag,
.archiv-session__papers .paper-card .card-footer-bar > .badge-poster,
.archiv-session__papers .paper-card .card-footer-bar > .badge-vortrag {
    display: none;
}

/* Wenn nur der (versteckte) Typ-Badge im Footer wäre, wäre der Footer
   leer. Solange kein PDF/keine Zeit da ist, blendet das PHP-Template
   den Footer bereits aus — keine zusätzliche Regel nötig. */

#archiv-empty {
    margin-top: 1rem;
    font-style: italic;
}

/* --- Archiv-Filter: Combobox (W3C ARIA-APG-Pattern) --- */

.archiv-filter__wrap {
    position: relative;
}

.archiv-filter__input {
    padding-right: 2.5rem;
}

.archiv-filter__clear {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--bs-secondary, #6c757d);
    line-height: 1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.archiv-filter__clear:hover {
    color: var(--bs-danger, #dc3545);
}

.archiv-filter__clear:focus-visible {
    outline: 2px solid var(--accent, #b42e42);
    outline-offset: 2px;
    border-radius: 999px;
}

.archiv-filter__clear[hidden] {
    display: none;
}

.archiv-filter__listbox {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    max-height: 18rem;
    overflow-y: auto;
}

.archiv-filter__listbox[hidden] {
    display: none;
}

.archiv-filter__option {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
}

.archiv-filter__option:hover,
.archiv-filter__option[aria-selected="true"] {
    background: rgba(180, 46, 66, 0.08);
    color: var(--accent, #b42e42);
}

.archiv-filter__status {
    font-variant-numeric: tabular-nums;
}

/* --- /suche Live-Combobox (AJAX-Suggestions) --- */

.suche-combobox {
    /* position:relative ist im inline-Stil schon; backup */
    position: relative;
}

.suche-combobox__clear {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--bs-secondary, #6c757d);
    line-height: 1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    z-index: 2;
}

.suche-combobox__clear:hover {
    color: var(--bs-danger, #dc3545);
}

.suche-combobox__clear:focus-visible {
    outline: 2px solid var(--accent, #b42e42);
    outline-offset: 2px;
    border-radius: 999px;
}

.suche-combobox__clear[hidden] {
    display: none;
}

.suche-combobox__listbox {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    max-height: 24rem;
    overflow-y: auto;
    /* Enter-Animation (gleicher Mechanismus wie der Hero): JS toggelt .is-open
       im naechsten Frame nach hidden=false -> opacity/transform-Transition. */
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
    transform-origin: top center;
    transition: opacity 0.14s ease, transform 0.16s ease;
}

.suche-combobox__listbox.is-open {
    opacity: 1;
    transform: none;
}

.suche-combobox__listbox[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .suche-combobox__listbox {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.suche-combobox__group-header {
    padding: 0.4rem 0.85rem 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary, #6c757d);
    font-weight: 600;
    background: rgba(15, 23, 42, 0.02);
}

.suche-combobox__group-header:not(:first-child) {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: 0.25rem;
}

.suche-combobox__option {
    display: block;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.suche-combobox__option:hover,
.suche-combobox__option[aria-selected="true"] {
    background: rgba(180, 46, 66, 0.08);
}

.suche-combobox__option-main {
    display: block;
    font-size: 0.95rem;
    color: var(--text, #212529);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suche-combobox__option-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--bs-secondary, #6c757d);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Icon-Prefix per CSS pseudo-element je nach Typ */
.suche-combobox__option--author .suche-combobox__option-main::before {
    content: '\f4e1'; /* bi-person (bootstrap-icons 1.11.3) */
    font-family: 'bootstrap-icons';
    color: var(--accent, #b42e42);
    margin-right: 0.5rem;
    font-size: 0.85em;
}

.suche-combobox__option--paper .suche-combobox__option-main::before {
    content: '\f38b'; /* bi-file-earmark-text */
    font-family: 'bootstrap-icons';
    color: var(--accent, #b42e42);
    margin-right: 0.5rem;
    font-size: 0.85em;
}

.suche-combobox__option--tagung .suche-combobox__option-main::before {
    content: '\f1e8'; /* bi-calendar-event (bootstrap-icons 1.11.3) */
    font-family: 'bootstrap-icons';
    color: var(--accent, #b42e42);
    margin-right: 0.5rem;
    font-size: 0.85em;
}

.suche-combobox__option--institution .suche-combobox__option-main::before {
    content: '\f62e'; /* bi-bank */
    font-family: 'bootstrap-icons';
    color: var(--accent, #b42e42);
    margin-right: 0.5rem;
    font-size: 0.85em;
}


/* --- /einreichen: schlankes, akademisches Layout (kein Icon-Slop) --- */

.einreichen-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.einreichen-status h2::before {
    content: "Status";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.einreichen-status--closed h2::before {
    color: var(--text-muted);
}

.einreichen-status__main {
    flex: 1 1 auto;
    min-width: 0;
}

.einreichen-status__main h2 {
    font-weight: 600;
}

.einreichen-status__deadline {
    flex: 0 0 auto;
    text-align: right;
    padding-left: 1rem;
    border-left: 1px solid rgba(15, 23, 42, 0.1);
}

/* Steps werden als nummerierte Cards mit subtilem Connector dargestellt.
   Marker (Circle mit accent-Border) sitzt links absolut, body rückt rechts ein. */
.einreichen-steps {
    list-style: none;
    counter-reset: einreichen-step;
    padding: 0;
    margin: 1.75rem 0 0 0;
}

.einreichen-step {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.einreichen-step + .einreichen-step {
    margin-top: 1.5rem;
}

/* Connector zwischen den Steps — dünne vertikale Linie, mittig auf Marker. */
.einreichen-step + .einreichen-step::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: calc(1.5rem + 14px);
    width: 1px;
    height: 1.5rem;
    background: rgba(var(--accent-rgb, 219, 9, 44), 0.25);
}

.einreichen-step__marker {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--accent, #b42e42);
    color: var(--accent, #b42e42);
    background: #fff;
    font-family: var(--font-display, inherit);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.einreichen-step__body {
    min-width: 0;
}

.einreichen-step__title {
    font-family: var(--font-display, inherit);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.4rem 0;
    color: var(--text, #212529);
}

.einreichen-step__desc {
    color: var(--text-muted, #6b7280);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.einreichen-picker {
    max-width: 640px;
    margin: 0 0 1.25rem 0;
}

.einreichen-step__action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.einreichen-step__action-note {
    color: var(--text-muted, #6b7280);
}

/* Aktions-Box für Schritt 2: dezent eingerahmt, Eyebrow-Label statt
   border-left-Stripe — visuell konsistent mit der Status-Box oben. */
.einreichen-mailbox {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
    padding: 1rem 1.15rem;
    border-radius: 4px;
    max-width: 520px;
}
.einreichen-mailbox::before {
    content: "Einreichen an";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.einreichen-mailbox__addr {
    display: inline-block;
    font-family: var(--font-mono, "SF Mono", Menlo, monospace);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.einreichen-mailbox__note {
    margin: 0;
    color: var(--text-muted, #6b7280);
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Mobile: weniger Padding, Marker etwas kleiner. */
@media (max-width: 575.98px) {
    .einreichen-step {
        padding: 1.25rem 1rem 1.25rem 3.5rem;
    }
    .einreichen-step__marker {
        top: 1.25rem;
        left: 1rem;
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }
    .einreichen-step + .einreichen-step::before {
        left: calc(1rem + 12px);
    }
}

/* Mobile: 44px Mindesthoehe pro Listbox-Item (Apple HIG). */
@media (max-width: 575.98px) {
    .suche-combobox__option,
    .archiv-filter__option {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Syntax-Hint unterhalb der Hauptsuchzeile. */
.suche-syntax-hint {
    line-height: 1.6;
}
.suche-syntax-hint code {
    background: rgba(15, 23, 42, 0.05);
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    font-size: 0.85em;
    color: inherit;
}

/* Empty-State-Block fuer 0 Treffer auf /suche. */
.suche-empty {
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.02);
}
.suche-empty code {
    background: rgba(15, 23, 42, 0.06);
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
}

/* Highlight in Suchergebnis-Snippets. */
#suche-results mark {
    background-color: rgba(255, 215, 0, 0.45);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}


/* ============================
   SUCHE — Erweiterte Suche + Autor-Cards
   ============================ */

.suche-advanced {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    background: rgba(15, 23, 42, 0.02);
}

.suche-advanced__summary {
    cursor: pointer;
    padding: 0.15rem 0;
    list-style: none;
    user-select: none;
}

.suche-advanced__summary::-webkit-details-marker {
    display: none;
}

.suche-advanced[open] .suche-advanced__summary {
    margin-bottom: 0.5rem;
}

.suche-typ-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.85rem;
}

.suche-author-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.suche-author-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background-color 0.15s ease,
                border-color 0.15s ease,
                transform 0.15s ease;
}

.suche-author-card:hover {
    background: rgba(180, 46, 66, 0.04);
    border-color: var(--accent-muted);
    transform: translateY(-1px);
}

.suche-author-card__name {
    font-weight: 600;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.suche-author-card__count {
    font-size: 0.78rem;
    color: var(--text-muted, #6c757d);
    white-space: nowrap;
}


/* ============================
   REDUCED MOTION (Accessibility)
   ============================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
