@import url('/mdr-content/fonts.css');
/*
 * root.css — Ta-Na-Si Media & Document Repository (v20260526-7)
 * Fixed two-row nav: title row 1, buttons row 2 right-aligned — never overlapping
 *
 * Changes vs v20260526-6:
 *   - .nav-link + .drop-btn: replaced fixed sizes with clamp() for fluid scaling
 *     mobile (.74rem) → tablet (~.79rem) → desktop (.82rem) → 1080p (.86rem)
 *   - padding switched to em units — scales automatically with font-size
 *   - removed hard @media overrides for nav buttons (clamp covers all breakpoints)
 */

/* ── TOKENS ── */
:root {
    --bg:       #eef4ee;
    --navy:     #1a2a3a;
    --tomato:   #ff6347;
    --tomato-d: #e5533d;
    --royal:    #4169e1;
    --royal-d:  #2c4a9e;
    --green:    #2ecc71;
    --card:     #fff;
    --muted:    #777;
    --accent:   #3498db;
    --radius:   12px;
    --border:   #dde;
    /* Container width: ~80% at 1080p +30%, fluid on smaller screens */
    --max-w:    min(1560px, 92vw);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: #333;
    min-height: 100vh;
}
a { color: inherit; }

/* ── NAV — Fixed two-row layout ───────────────────────────────────────────
 *
 * Row 1: Logo (fixed) | Brand title (full remaining width)
 * Row 2: empty (logo width) | Buttons right-aligned
 *
 * Title and buttons NEVER share the same row → title is always fully visible.
 * Buttons wrap onto multiple lines if needed, always right-aligned.
 * On small screens (< 600px): buttons become left-aligned to avoid overflow.
 */
/* HINWEIS (2026-05-31): Das frühere generische "nav { … }"-Layout (blaues Grid)
   wurde entfernt. Der neue gemeinsame Header nutzt "nav.site-header" (siehe
   HEADER-Block am Dateiende). Die generische Regel hätte sonst auch die
   Breadcrumb (<nav class="breadcrumb">) eingefärbt. Klassen wie .nav-logo,
   .nav-brand, .nav-link, .dropdown, .drop-* bleiben erhalten — der neue Header
   verwendet sie weiterhin. */

.nav-logo {
    grid-area: logo;
    width: 84px; height: 84px;
    border-radius: 50%; object-fit: contain;
    align-self: center;
}
.nav-brand {
    grid-area: brand;
    color: #fff; line-height: 1.25;
    min-width: 0;
    align-self: center;
    font-family: 'Oswald', sans-serif;
}
.nav-brand a {
    color: #fff; text-decoration: none;
    /* +10% at 1080p vs old 2rem: clamp min 1.5rem → fluid → max 2.2rem */
    font-size: clamp(1.5rem, 1.6vw + .6rem, 2.2rem);
    display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-brand a:hover { color: #ccd; }
/* Zeile 1, zwei Gewichte: "Ta-Na-Si" SemiBold 600, Rest Medium 500 */
.nav-brand .brand-name { font-weight: 600; font-size: 1.12em; }
.nav-brand .brand-rest { font-weight: 500; font-size: 0.88em; }
/* Zeile 2 als gemeinsame Leiste: Subline + Seitenname nebeneinander */
.nav-brand .brand-line2 {
    display: block;
    margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* "INDEPENDENT MEDIA ARCHIVE" Oswald Regular 400, rot */
.nav-brand .brand-archive {
    font-family: 'Oswald', sans-serif;
    font-weight: 400; color: #DC1E35;
    font-size: clamp(.94rem, .9vw + .35rem, 1.2rem);
    letter-spacing: .4px;
}
.nav-brand small {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(.94rem, .9vw + .35rem, 1.2rem);
    font-weight: 400; color: #DC1E35; letter-spacing: .4px;
}
.nav-buttons {
    grid-area: buttons;
    display: flex; align-items: center;
    gap: 7px; flex-wrap: wrap;
    justify-content: flex-end; /* buttons always right-aligned */
}

/* ── NAV LINKS (flat, non-dropdown) ── */
/*
 * Fluid scaling with clamp() — no hard breakpoint jumps:
 *   Mobile  (~360px): ≈ .74rem  (min)
 *   Tablet  (~768px): ≈ .79rem  (mid)
 *   Desktop (~1280px):≈ .82rem  (comfortable default)
 *   1080p   (1920px): ≈ .86rem  (max, +5% vs desktop base)
 *
 * Formula: clamp(min, preferred, max)
 *   font:    clamp(.74rem, .68rem + 0.31vw, .86rem)
 *   padding: uses em so it scales with font automatically
 *
 * Same clamp applied to .drop-btn — both button types identical.
 */
.nav-link {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.12); color: #fff;
    padding: .56em 1em; border-radius: 24px;
    font-size: clamp(.74rem, .68rem + 0.31vw, .86rem);
    font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: background .2s; line-height: 1;
    border: 1px solid rgba(255,255,255,.2);
}
.nav-link:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ── SMALL SCREENS < 600px ── */
@media (max-width: 599px) {
    .nav-logo { width: 56px; height: 56px; }
    .nav-brand a { font-size: 1.2rem; }
    .nav-brand small { font-size: .9rem; }
    .nav-buttons { justify-content: flex-start; } /* left on very small */
    .drop-menu { left: 0; right: auto; }
    /* nav-link & drop-btn: clamp() already handles mobile — no override needed */
}

/* ── DROPDOWNS ── */
.dropdown { position: relative; }
.drop-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--tomato); color: #fff; border: none;
    padding: .56em 1em; border-radius: 24px;
    font-size: clamp(.74rem, .68rem + 0.31vw, .86rem);
    font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background .2s; line-height: 1;
}
.drop-btn:hover         { background: var(--tomato-d); }
.drop-btn.categories    { background: var(--royal); }
.drop-btn.categories:hover { background: var(--royal-d); }

.drop-menu {
    display: none;
    position: absolute; right: 0; top: 100%; margin-top: 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    min-width: 240px; max-height: 70vh; overflow-y: auto; z-index: 400;
}
/* Invisible bridge: keeps hover active while mouse moves to menu */
.drop-menu::before {
    content: ""; position: absolute;
    top: -12px; left: 0; width: 100%; height: 12px;
    background: transparent;
}
.drop-menu a {
    display: block; padding: 9px 18px;
    font-size: .84rem; color: #333; text-decoration: none;
    border-bottom: 1px solid #f4f4f4; transition: background .12s;
}
.drop-menu a:last-child { border-bottom: none; }
.drop-menu a:hover { background: #f0f4ff; color: var(--royal); }

.drop-section-label {
    display: block; padding: 8px 18px 4px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .9px; color: var(--muted);
    background: #f8f9fa;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.drop-section-label:first-child { border-top: none; }

.dropdown:hover .drop-menu,
.dropdown:focus-within .drop-menu { display: block; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 32px 20px 0; }

/* ── SEARCH BAR ── */
.search-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.about-link {
    white-space: nowrap;
    color: var(--accent);
    font-size: .9rem;
    text-decoration: none;
    flex-shrink: 0;
}
.about-link:hover { text-decoration: underline; }
.search-form {
    display: flex; gap: 0; flex: 1;
    border-radius: 30px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    min-width: 200px;
}
.search-form input[type=text] {
    flex: 1; border: none; outline: none;
    padding: 12px 20px; font-size: .95rem;
    background: #fff; color: #333;
}
.search-form button {
    background: var(--royal); color: #fff; border: none;
    padding: 12px 22px; cursor: pointer;
    font-weight: 700; font-size: .9rem; transition: background .2s;
}
.search-form button:hover { background: var(--royal-d); }
.btn-clear {
    background: #e9ecef; color: #495057; border: none;
    padding: 12px 16px; cursor: pointer; font-size: .85rem;
    text-decoration: none; display: inline-flex; align-items: center;
    transition: background .2s;
}
.btn-clear:hover { background: #d0d3d8; }

/* ── ENTRY META ROW (date + platform icons) ── */
.entry-meta {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; margin-bottom: 2px;
}
.entry-platform-icon {
    display: inline-flex; align-items: center;
    opacity: .72; transition: opacity .15s;
    flex-shrink: 0;
}
.entry-platform-icon:hover { opacity: 1; }
.entry-platform-icon img {
    display: block;
    width: clamp(16px, 2vw, 23px);
    height: clamp(16px, 2vw, 23px);
}

/* ── TRANSLATION BAR ── */
.tbar {
    padding: 9px 14px; margin-top: 8px;
    font-size: clamp(.84rem, .9vw + .45rem, .9rem);
    font-weight: 600;
    border-radius: 6px; line-height: 2.2;
}
.tbar a { color: #0066cc; text-decoration: none; margin: 0 3px; }
.tbar a:hover { text-decoration: underline; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 16px; border-radius: 6px;
    background: var(--card); border: 1px solid var(--border);
    color: var(--navy); text-decoration: none; font-size: .85rem;
}
.page-btn.active { background: var(--royal); color: #fff; border-color: var(--royal); }
.page-btn:hover:not(.active) { background: #e8eeff; }

/* ── SHARED BUTTONS ── */
.btn-back {
    display: inline-block; margin-bottom: 18px;
    background: var(--navy); color: #fff;
    padding: 9px 20px; border-radius: 20px;
    text-decoration: none; font-size: .88rem;
}
.btn-back:hover { background: #2c4a6a; }
.btn-fixed-top {
    position: fixed; bottom: 22px; right: 22px;
    background: var(--royal); color: #fff; text-decoration: none;
    padding: 11px 18px; border-radius: 40px;
    font-size: .82rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 500;
}
.result-count { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }

/* ── FOOTER ── */
footer {
    margin-top: 60px; padding: 36px 20px;
    background: #e9ecef; text-align: center;
    border-top: 1px solid #ddd; color: var(--muted);
    font-size: 1.07rem;
}
footer p { margin-bottom: 10px; }
footer p:last-child { margin-bottom: 0; font-size: .95rem; }
footer a { color: var(--accent); text-decoration: none; margin: 0 10px; }
footer a:hover { text-decoration: underline; }

/* ── SEARCH + LAYOUT MOBILE ── */
@media (max-width: 768px) {
    .search-area { flex-direction: column; align-items: stretch; }
    .about-link { text-align: center; }
}

/* ── PAGE HERO (shared across all content pages) ── */
.page-hero {
    background: var(--card); border-radius: var(--radius);
    padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 36px) clamp(18px, 2.5vw, 28px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    margin-bottom: 36px;
}
.page-hero h1 {
    font-size: clamp(1.5rem, 1.8vw + .4rem, 2.1rem);
    color: var(--navy); margin-bottom: 10px; line-height: 1.25;
}
.page-hero p {
    font-size: clamp(.9rem, .9vw + .3rem, 1rem);
    color: #3a3a3a; line-height: 1.8; margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENTRY PAGE STYLES  (summaries_html/ and readings_html/ static pages)
   Formerly entry.css — integrated here so generated HTML only needs root.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ARTICLE TYPOGRAPHY ── */
article {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.82;
    color: #2c2c2c;
    overflow-wrap: break-word;
    word-break: break-word;
}
article p { margin-bottom: 1.1em; font-size: 1rem; line-height: 1.82; }
article strong { color: #1a2a3a; }
article em     { font-style: italic; color: #444; }
article a      { color: #1a56db; text-decoration: underline; text-underline-offset: 3px; }
article a:hover { color: #e5533d; }

/* ── ARTICLE HEADINGS ── */
article h1, article h2, article h3,
article h4, article h5, article h6 {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1a2a3a; line-height: 1.3;
    margin-top: 1.8em; margin-bottom: .6em; font-weight: 700;
}
article h1 { font-size: clamp(1.4rem, 3vw, 2rem);       border-bottom: 2px solid var(--tomato); padding-bottom: .3em; }
article h2 { font-size: clamp(1.2rem, 2.5vw, 1.65rem);  border-bottom: 1px solid #eee; padding-bottom: .25em; }
article h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
article h4 { font-size: clamp(.95rem, 1.8vw, 1.15rem);  color: #444; }
article h5, article h6 { font-size: 1rem; color: #666; }

/* ── LISTS ── */
article ul, article ol { margin: .7em 0 1.1em 1.6em; line-height: 1.78; }
article li { margin-bottom: .3em; }
article ul li::marker { color: var(--tomato); }
article ol li::marker { color: var(--royal); font-weight: 700; }

/* ── BLOCKQUOTE ── */
article blockquote {
    border-left: 4px solid var(--tomato); background: #fff8f6;
    margin: 1.2em 0; padding: 12px 20px;
    border-radius: 0 8px 8px 0; color: #555; font-style: italic;
}
article blockquote p { margin-bottom: 0; }

/* ── CODE ── */
article code {
    background: #f3f4f6; padding: 2px 6px; border-radius: 4px;
    font-family: "Courier New", Courier, monospace; font-size: .88em; color: #c0392b;
}
article pre {
    background: #1a2a3a; color: #e0e6f0; padding: 16px 20px;
    border-radius: 8px; overflow-x: auto; font-size: .85rem;
    line-height: 1.6; margin: 1.2em 0; -webkit-overflow-scrolling: touch;
}
article pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ── TABLES ── */
article table {
    width: 100%; border-collapse: collapse; font-size: .9rem;
    margin: 1.2em 0; font-family: "Segoe UI", Arial, sans-serif;
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
}
article thead { background: #1a2a3a; color: #fff; }
article thead th { padding: 11px 16px; text-align: left; font-weight: 700; white-space: nowrap; }
article tbody tr:nth-child(odd)  { background: #f8f9fa; }
article tbody tr:nth-child(even) { background: #fff; }
article tbody td { padding: 9px 16px; border-bottom: 1px solid #e9ecef; color: #333; vertical-align: top; white-space: normal; }
article tbody tr:last-child td { border-bottom: none; }

/* ── IMAGES ── */
article img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 1em auto; }

/* ── TABLE OF CONTENTS ── */
.toc {
    background: #f8f9fa; padding: clamp(14px,3vw,22px) clamp(16px,3vw,26px);
    border-left: 5px solid var(--tomato); border-radius: 0 8px 8px 0;
    margin-bottom: 2rem; font-family: "Segoe UI", Arial, sans-serif;
}
.toc strong { display: block; margin-bottom: 10px; font-size: .95rem; color: #1a2a3a; text-transform: uppercase; letter-spacing: .5px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul li { padding: 3px 0; border-bottom: 1px dotted var(--border); }
.toc ul li:last-child { border-bottom: none; }
.toc a { color: #1a56db; text-decoration: none; font-size: .9rem; line-height: 1.7; }
.toc a:hover { color: var(--tomato); text-decoration: underline; }

/* ── SOCIAL BUTTONS ── */
/* clamp: mobile .85rem → fluid → 1080p ~1.02rem (+20%)
   padding in em so it scales with font automatically */
.social-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.social-btn {
    display: inline-block;
    padding: .53em 1em; border-radius: 20px;
    font-size: clamp(0.85rem, 0.78rem + 0.18vw, 0.94rem);
    font-weight: 700; text-decoration: none; color: #fff;
    font-family: "Segoe UI", Arial, sans-serif; transition: opacity .2s, transform .15s;
}
.social-btn:hover { opacity: .85; transform: translateY(-1px); }
.social-btn.st { background: #ff6719; }
.social-btn.yt { background: #cc0000; }
.social-btn.rt { background: #0057b8; }
.btn-print {
    display: inline-block;
    padding: .53em 1em; border-radius: 20px;
    font-size: clamp(0.85rem, 0.78rem + 0.18vw, 0.94rem);
    font-weight: 700; background: #444; color: #fff;
    cursor: pointer; border: none; font-family: "Segoe UI", Arial, sans-serif;
    transition: background .2s;
}
.btn-print:hover { background: #222; }

/* ── ENTRY DESCRIPTION BOX ── */
.entry-description {
    background: #f8f9fa; border-left: 4px solid var(--royal);
    padding: 14px 20px; border-radius: 0 8px 8px 0; margin: 18px 0;
    font-size: .95rem; color: #444; line-height: 1.75;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ── HR ── */
hr { border: 0; height: 2px; background: #e0e0e0; margin: 22px 0; }

/* ── ENTRY PAGE MOBILE ── */
@media (max-width: 767px) {
    .social-buttons { gap: 8px; }
    .social-btn, .btn-print { width: 100%; text-align: center; }
    .toc { padding: 12px 14px; }
    article h1 { font-size: 1.3rem; }
    article h2 { font-size: 1.15rem; }
    article h3 { font-size: 1.05rem; }
    article h4 { font-size: .98rem; }
    article table { font-size: .82rem; }
    article thead th, article tbody td { padding: 7px 10px; }
    article pre { font-size: .8rem; padding: 12px 14px; }
}

/* ── ENTRY PAGE MID DESKTOP ── */
@media (min-width: 768px) and (max-width: 1279px) {
    article h1 { font-size: 1.75rem; }
    article h2 { font-size: 1.45rem; }
    article h3 { font-size: 1.2rem; }
}

/* ── ENTRY PAGE FULL-HD ── */
@media (min-width: 1280px) {
    article p  { line-height: 1.88; }
    article h1 { font-size: 2rem; }
    article h2 { font-size: 1.65rem; }
    article h3 { font-size: 1.35rem; }
    article h4 { font-size: 1.15rem; }
    .toc  { padding: 22px 28px; }
    .toc a { font-size: .95rem; }
    article table { display: table; overflow-x: visible; white-space: normal; }
    article thead th, article tbody td { padding: 11px 18px; }
}

/* ── PRINT ── */
@media print {
    .social-buttons, .btn-print { display: none !important; }
    article a::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}


/* ============================================================================
   TaNaSi-MDR — SPRACHWAHL (Zone 1)  —  Styles fuer mdr-content/partials/lang-switch.php
   Ans Ende von root.css anfuegen.
   Reines CSS, kein JavaScript. Modal via :target.
   ============================================================================ */

/* Ausloeser im Header */
.lang-trigger {
    display: inline-block;
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
    white-space: nowrap;
}
.lang-trigger:hover { text-decoration: underline; }

/* Overlay: standardmaessig versteckt. Wird nur sichtbar, wenn die URL
   auf #lang-box zeigt (Besucher hat den Ausloeser geklickt). */
.lang-overlay {
    display: none;
    position: fixed;
    inset: 0;                       /* top/right/bottom/left: 0 */
    z-index: 1000;
}
.lang-overlay:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Abgedunkelter, klickbarer Hintergrund (schliesst beim Klick) */
.lang-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: block;
}

/* Die zentrale Box */
.lang-modal {
    position: relative;
    z-index: 1;
    width: min(680px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    padding: 24px 26px 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Schliessen-Kreuz oben rechts */
.lang-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.6rem;
    line-height: 1;
    color: #666;
    text-decoration: none;
}
.lang-close:hover { color: #000; }

.lang-modal-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

/* Google-Hinweis */
.lang-note {
    background: #f4f7fb;
    border-left: 4px solid #0066cc;
    padding: 10px 14px;
    margin: 0 0 18px;
    font-size: 0.86rem;
    color: #333;
}

/* Regionen */
.lang-group { margin-bottom: 16px; }
.lang-group-title {
    margin: 0 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* Sprachliste: mehrspaltiges Raster, passt sich der Breite an */
.lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px 16px;
}
.lang-list li { margin: 0; }
.lang-list a {
    color: #0066cc;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}
.lang-list a:hover { text-decoration: underline; }

/* Alle Sprachen einheitlich linksbuendig (auch Arabisch/Hebraeisch).
   Hinweis: Die Schriftrichtung der Zeichen selbst bleibt korrekt; nur die
   Ausrichtung im Raster ist links. */

/* Aktionen unten */
.lang-actions {
    margin-top: 18px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 14px;
}
.lang-cancel {
    display: inline-block;
    padding: 8px 18px;
    background: #eef0f2;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}
.lang-cancel:hover { background: #e0e3e6; }

/* ============================================================================
 *  TaNaSi-MDR — SUCHE (Zone 2)  —  Styles fuer mdr-content/partials/search-bar.php
 *  Ans Ende von root.css anfuegen. Nutzt die vorhandenen Variablen
 *  (--royal, --royal-d, --border). Durchgehende Pille: Pulldown + Feld + Go.
 *  ============================================================================ */

.hsearch {
    width: 100%;
    max-width: 460px;
    min-width: 0;
}

/* Durchgehende Pille: drei Elemente nahtlos in einer abgerundeten Leiste */
.hsearch-pill {
    display: flex;
    align-items: stretch;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    min-width: 0;
}

/* Kategorie-Pulldown (links) */
.hsearch-select {
    border: none;
    outline: none;
    background: #f3f5f9;
    color: #333;
    font-size: .9rem;
    padding: 0 14px;
    cursor: pointer;
    max-width: 170px;
    border-right: 1px solid var(--border);
    /* eigener Dropdown-Pfeil, damit es in beiden Browsern gleich aussieht */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23666'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

/* Suchfeld (Mitte) */
.hsearch-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: .92rem;
    background: #fff;
    color: #333;
}

/* Go-Button (rechts) */
.hsearch-go {
    border: none;
    cursor: pointer;
    background: var(--royal);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 0 24px;
    transition: background .2s;
}
.hsearch-go:hover { background: var(--royal-d); }

/* Schmale Bildschirme: Pulldown etwas kompakter, Pille flacher */
@media (max-width: 600px) {
    .hsearch-select { max-width: 120px; font-size: .82rem; padding-left: 10px; }
    .hsearch-go     { padding: 0 16px; font-size: .82rem; }
    .hsearch-input  { padding: 8px 12px; font-size: .86rem; }
}

/* ============================================================================
 *   TaNaSi-MDR — NAVIGATION (Zone 3): Aktiv-Markierung
 *   Ans Ende von root.css anfuegen. Alle uebrigen Nav-Stile (.nav-link,
 *   .dropdown, .drop-btn, .drop-menu) existieren bereits.
 *   ============================================================================ */

/* Aktuelle Seite hervorheben: gefuellte Pille in --royal statt halbtransparent */
.nav-link.active {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
    cursor: default;
}
.nav-link.active:hover {
    background: var(--royal);   /* kein Hover-Wechsel auf der aktiven Seite */
}
/* ============================================================================
 *   TaNaSi-MDR — BREADCRUMB (Zone 4)  —  Styles fuer mdr-content/partials/breadcrumb.php
 *   Ans Ende von root.css anfuegen. Waagerechte Pfadzeile unter der Navigation.
 *   Nutzt vorhandene Variablen (--accent, --muted, --border).
 *   ============================================================================ */

.breadcrumb {
    font-size: .85rem;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
}

/* Trenner "›" vor jedem Glied ausser dem ersten */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 8px;
    color: var(--muted);
    opacity: .7;
}

.breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumb-item a:hover { text-decoration: underline; }

/* Aktuelle Seite (letztes Glied): nicht verlinkt, dezent hervorgehoben */
.breadcrumb-item span[aria-current="page"] {
    color: #333;
    font-weight: 600;
}

@media (max-width: 599px) {
    .breadcrumb { padding: 8px 14px; font-size: .8rem; }
}
/* ============================================================================
 *   TaNaSi-MDR — GEMEINSAMER HEADER (Layout der Zonen 1–4)
 *   Ans Ende von root.css anfuegen. Ordnet Logo, Marke, Sprachleiste, Suche und
 *   Navigation im dunklen nav-Block an. Nutzt das vorhandene nav-Farbschema.
 *   ============================================================================ */

/* Erweitertes Grid: Logo links, rechts Marke + Sprachleiste (oben),
 *   darunter Suche, darunter Navigation — ueber die volle Breite. */
nav.site-header {
    background: linear-gradient(90deg, #1a2a3a 0%, #1e3a5a 40%, #1a3a3a 100%);
    position: relative;
    padding: 16px 28px 14px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    grid-template-areas:
        "logo brand  lang"
        "logo brand  search"
        "nav  nav    nav";
    column-gap: 18px;
    row-gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    align-items: center;
    max-width: 100%;
}
nav.site-header > * { position: relative; z-index: 1; min-width: 0; }

nav.site-header .nav-logo   { grid-area: logo; }
nav.site-header .nav-brand  { grid-area: brand; align-self: center; }

/* Zone 1 — Sprachleiste oben rechts */
nav.site-header .header-lang {
    grid-area: lang;
    justify-self: end;
    align-self: center;
}
nav.site-header .header-lang .lang-trigger { color: #cdd6e2; }
nav.site-header .header-lang .lang-trigger:hover { color: #fff; }

/* Zone 2 — Suche, rechts unter der Sprachleiste */
nav.site-header .header-search {
    grid-area: search;
    justify-self: end;
    align-self: center;
    width: auto;
}

/* Zone 3 — Navigation, eigene Zeile, rechtsbuendig */
nav.site-header .nav-buttons {
    grid-area: nav;
    display: flex; align-items: center;
    gap: 7px; flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 10;   /* ueber den anderen Header-Kindern, damit .drop-menu vorn liegt */
}



/* ============================================================================
   TaNaSi-MDR — HEADER-KORREKTUREN (2026-05-31)
   Behebt: Breadcrumb-Hintergrund/Breite, Such-Zeile, Overlay-Ueberdeckung.
   Ans Ende von root.css. Ueberschreibt frueheres bewusst.
   ============================================================================ */

/* (A) Breadcrumb ist ein <nav>, darf aber NICHT das dunkle Header-Layout erben.
   Vollstaendig zuruecksetzen: helle Leiste, kein Grid, volle Zeile. */
nav.breadcrumb {
    background: var(--bg);
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
    grid-template-rows: none;
    padding: 10px 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
}
nav.breadcrumb .breadcrumb-list {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* (Header-Grid ist oben in EINER nav.site-header-Definition konsolidiert.
   Der responsive 900px-Block steht am Dateiende.) */

/* (C) Sprach-Overlay liegt jetzt am Body-Ende; sehr hoher z-index zur Sicherheit,
   damit es zuverlaessig ueber Navigation/Dropdowns liegt. */
.lang-overlay { z-index: 9999; }
.lang-modal   { z-index: 10000; }

/* ============================================================================
   TaNaSi-MDR — HEADER RESPONSIVE (muss GANZ am Ende stehen, damit es alle
   vorherigen nav.site-header-Desktop-Definitionen ueberschreibt).
   Ab 900px: alles gestapelt, Suche volle Breite, links. Behebt den Ueberlauf
   und den fehlenden Umbruch.
   ============================================================================ */
@media (max-width: 900px) {
    nav.site-header {
        grid-template-columns: 56px 1fr;
        grid-template-areas:
            "logo  brand"
            "lang  lang"
            "search search"
            "nav   nav";
        padding: 12px 14px;
        row-gap: 10px;
        align-items: center;
    }
    nav.site-header .nav-logo      { width: 56px; height: 56px; }
    nav.site-header .header-lang   { justify-self: start; align-self: center; }
    nav.site-header .header-search { justify-self: stretch; align-self: center; width: 100%; }
    nav.site-header .header-search .hsearch { width: 100%; max-width: none; }
    nav.site-header .nav-buttons   { justify-content: flex-start; }
}
