/* maghrib.ch – Stylesheet
   Farben und Schriften zentral in :root anpassen. */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-600.woff2") format("woff2"); }

:root {
  --red: #c1272d;
  --red-dark: #861a21;
  --red-soft: #f8ebea;
  --green: #006233;
  --green-soft: #e4f0e8;
  --sand: #f7f1e5;
  --ink: #1c1b19;
  --muted: #625d54;
  --line: #e4ddd0;
  --input: #d3cabb;
  --bg: #faf9f6;
  --footer: #1e2a24;
  --footer-ink: #efe8da;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --site: 80rem;
  --gutter: 1.25rem;
}
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/*a { color: #c1272d; text-decoration: none; }*/
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.wrap { max-width: var(--site); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.link { color: var(--red); font-weight: 600; font-size: .95rem; }
.link:hover { text-decoration: underline; }
.zellij-line { height: 12px; background-color: var(--footer); background-image: repeating-linear-gradient(45deg, transparent 0 7px, rgba(239,232,218,.18) 7px 8px), repeating-linear-gradient(-45deg, transparent 0 7px, rgba(239,232,218,.18) 7px 8px); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-top: 4px solid var(--red); box-shadow: 0 1px 12px rgba(28,27,25,.08); }
.header-bar { display: flex; align-items: center; gap: .75rem; height: 4rem; }
@media (min-width: 1180px) { .header-bar { height: 5rem; } }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--red); color: var(--red); flex: none; }
.brand-name { display: block; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1; color: var(--red); font-weight: 600; }
.brand-claim { display: none; font-size: .75rem; color: var(--muted); margin-top: .2rem; }
@media (min-width: 640px) { .brand-claim { display: block; } }
.header-search { position: relative; margin-left: auto; width: 100%; max-width: 24rem; display: none; }
@media (min-width: 1180px) { .header-search { display: block; } }
.header-search input, .search-field input { width: 100%; height: 2.75rem; border: 1px solid var(--input); background: var(--bg); padding: 0 .75rem 0 2.5rem; font: inherit; font-size: .95rem; border-radius: 0; }
.header-search input:focus, .search-field input:focus { outline: none; border-color: var(--red); }
.header-search .icon, .search-field .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.icon-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.5rem; padding: 0 .6rem; border: 0; background: transparent; font-weight: 600; font-size: .95rem; }
.icon-btn:hover { background: var(--sand); }
.only-mobile { display: inline-flex; }
@media (min-width: 1180px) { .only-mobile { display: none !important; } }
.header-bar .only-mobile.search-toggle { margin-left: auto; }

.main-nav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 1180px) { .main-nav { display: block; } }
.main-nav > .wrap > ul { display: flex; }
.nav-item { position: static; }
.nav-top { display: flex; align-items: center; gap: .25rem; height: 3rem; padding: 0 .6rem; font-size: .88rem; font-weight: 600; border: 0; border-bottom: 3px solid transparent; background: none; white-space: nowrap; }
@media (min-width: 1320px) { .nav-top { padding: 0 .8rem; font-size: .93rem; } }
.nav-top:hover, .nav-item.open > .nav-top { color: var(--red); }
.nav-top[aria-current="true"] { color: var(--red); border-bottom-color: var(--red); }
.nav-top .chev { width: .7rem; height: .7rem; transition: transform .15s; }
.nav-item.open > .nav-top .chev { transform: rotate(180deg); }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(28,27,25,.12); }
.nav-item.open > .mega { display: block; }
.mega-inner { padding-top: 1.75rem; padding-bottom: 2rem; }
.mega-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.mega-head h2 { font-family: var(--font-serif); font-size: 1.6rem; margin-top: .2rem; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1.75rem 2rem; }
.mega-col h3 { font-size: 1rem; margin-bottom: .55rem; }
.mega-col h3 a:hover, .mega-col li a:hover { color: var(--red); }
.mega-col li a { display: block; padding: .2rem 0; font-size: .92rem; color: var(--muted); }
.mega-col li a[aria-current="page"] { color: var(--red); font-weight: 600; }
.mega-col .more { color: var(--red); font-weight: 600; }
.mega-col.wide { grid-column: span 2; }
.mega-col.wide ul { columns: 2; column-gap: 2rem; }

/* Mobile Panel */
.mobile-panel { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding: 1.25rem; display: none; }
.mobile-panel.open { display: block; }
.mobile-panel-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.mobile-panel-head strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--red); }
.mobile-panel .search-field { margin: 1.25rem 0; }
.mobile-panel .search-field input { height: 3rem; font-size: 1rem; }
.m-list > li { border-bottom: 1px solid var(--line); }
.m-row { display: flex; align-items: center; }
.m-row > a { flex: 1; padding: .95rem 0; font-weight: 600; }
.m-row > a[aria-current="page"] { color: var(--red); }
.m-toggle { width: 3rem; height: 3rem; border: 0; background: none; display: grid; place-items: center; }
.m-toggle svg { transition: transform .15s; }
.m-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-sub { display: none; padding: 0 0 .75rem .9rem; border-left: 2px solid var(--red-soft); margin-left: .1rem; }
.m-sub.open { display: block; }
.m-sub .m-row > a { font-weight: 400; padding: .6rem 0; }
.m-sub .m-sub .m-row > a { font-size: .95rem; color: var(--muted); padding: .4rem 0; }
body.no-scroll { overflow: hidden; }

/* ---------- Brotkrumen & Chips ---------- */
.breadcrumbs { padding-top: 1rem; padding-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.breadcrumbs li { display: flex; gap: .5rem; }
.breadcrumbs li + li::before { content: "›"; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink); }
.chips { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-top: .75rem; padding-bottom: .75rem; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--line); padding: .45rem .8rem; font-size: .9rem; }
.chip:hover { border-color: var(--red); }
.chip[aria-current="page"] { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 600; }

/* ---------- Allgemeine Bausteine ---------- */
.section { padding: 4rem 0; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green-soft); }
.section-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.2; margin-top: .25rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.3rem; } }
.grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.card { display: block; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.card .eyebrow { margin-top: 1rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.2; margin-top: .3rem; }
.card p { margin-top: .5rem; color: var(--muted); line-height: 1.55; }
.card:hover h3 { color: var(--red); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; background: var(--sand); color: var(--muted); border: 1px solid var(--line); }
.badge-green { background: var(--green-soft); color: var(--green); border-color: transparent; }

.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tiles-5 { grid-template-columns: repeat(5, 1fr); }
    .tiles-2 { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; min-height: 9rem; background: var(--bg); padding: 1.25rem; }
.tile:hover { background: var(--red-soft); }
.tile h3 { font-family: var(--font-serif); font-size: 1.25rem; }
.tile p { margin-top: .6rem; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.tile .arrow { margin-top: auto; padding-top: .9rem; color: var(--red); }

.placeholder-box { border: 1px dashed var(--input); background: var(--sand); padding: 2rem; text-align: center; }
.placeholder-box strong { display: block; font-family: var(--font-serif); font-size: 1.4rem; }
.placeholder-box p { margin-top: .5rem; color: var(--muted); }

/* ---------- Startseite ---------- */
.home-hero { display: grid; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .home-hero { grid-template-columns: 1fr 1fr; padding-top: 4rem; padding-bottom: 4rem; } }
.home-hero h1 { font-family: var(--font-serif); font-size: 2.9rem; line-height: 1.05; margin-top: 1rem; }
@media (min-width: 768px) { .home-hero h1 { font-size: 3.75rem; } }
.home-hero .lead { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.6; color: var(--muted); max-width: 36rem; }
.search-field { position: relative; display: block; }
.home-hero .search-field { margin-top: 2rem; max-width: 32rem; }
.home-hero .search-field input { height: 3.5rem; font-size: 1.05rem; padding-left: 3rem; }
.home-hero .search-field .icon { left: 1rem; color: var(--red); width: 1.25rem; height: 1.25rem; }
.hint { margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.hint a { color: var(--red); text-decoration: underline; }
figure { margin: 0; }
figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.img-32 { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.img-sq { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.place-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .place-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .place-grid { grid-template-columns: repeat(6, 1fr); } }
.place-grid h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-top: .7rem; }
.place-grid a:hover h3 { color: var(--red); }
.timeline { border-left: 1px solid var(--red); padding-left: 1.5rem; }
.timeline li { position: relative; border-bottom: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -1.78rem; top: 1.2rem; width: .5rem; height: .5rem; background: var(--red); }
.timeline a { display: block; padding: .75rem 0; }
.timeline a:hover { color: var(--red); }
.photo-strip { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }
.updates li { border-bottom: 1px solid var(--line); }
.updates a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .95rem; }
.updates a:hover { color: var(--red); }

/* ---------- Rubrik- / Unterkategorieseiten ---------- */
.page-hero { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 3rem; align-items: center; }
@media (min-width: 900px) { .page-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; } }
.page-hero h1 { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1.1; margin-top: .75rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3.4rem; } }
.page-hero .lead { margin-top: 1.25rem; font-size: 1.2rem; line-height: 1.65; color: var(--muted); max-width: 40rem; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }
.stats strong { color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.toolbar .search-field { flex: 1; max-width: 24rem; }
.view-toggle { display: flex; border: 1px solid var(--line); }
.view-toggle button { width: 2.6rem; height: 2.6rem; border: 0; background: none; display: grid; place-items: center; }
.view-toggle button[aria-pressed="true"] { background: var(--sand); color: var(--red); }
.item-list.as-list { grid-template-columns: 1fr !important; gap: 0; }
.item-list.as-list .card { display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 0 1.25rem; align-items: center; padding: 1rem 0; }
.item-list.as-list .card img { grid-row: span 3; aspect-ratio: 1; }
.item-list.as-list .card .eyebrow { margin-top: 0; }
.item-list.as-list .card h3 { font-size: 1.2rem; }
.item-list.as-list .card p { margin-top: .2rem; font-size: .95rem; }
.empty-filter { display: none; padding: 2rem 0; color: var(--muted); }

/* ---------- Artikelseite ---------- */
.article-head { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.article-head h1 { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1.1; margin-top: .75rem; }
@media (min-width: 768px) { .article-head h1 { font-size: 3.6rem; } }
.article-head .arabic { font-family: var(--font-serif); font-size: 1.5rem; color: var(--muted); margin-top: .25rem; }
.article-head .lead { margin-top: 1.25rem; max-width: 48rem; font-size: 1.25rem; line-height: 1.6; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.25rem; font-size: .88rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--sand); }
.article-hero figcaption { padding: 0 var(--gutter); }
@media (min-width: 1024px) { .article-hero { padding: 0 var(--gutter); max-width: var(--site); margin: 0 auto; } .article-hero figcaption { padding: 0; } }
.article-hero.flag-hero { background: var(--sand); padding-top: 2.5rem; padding-bottom: 2.5rem; }
.article-hero.flag-hero svg { display: block; width: min(34rem, 86%); height: auto; margin: 0 auto; box-shadow: 0 10px 30px rgba(28,27,25,.15); }
.article-hero.flag-hero figcaption { text-align: center; margin-top: 1rem; }
.article-layout { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 11rem minmax(0, 44rem) minmax(0, 17.5rem); justify-content: space-between; } }
.toc-side { display: none; }
@media (min-width: 1100px) { .toc-side { display: block; } }
.sticky { position: sticky; top: 9rem; }
.toc-side nav { border-left: 1px solid var(--line); padding-left: 1rem; }
.toc-side a { display: block; padding: .4rem 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.toc-side a:hover, .toc-side a.active { color: var(--red); }
.toc-mobile { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .8rem 0; margin: 1.75rem 0; }
@media (min-width: 1100px) { .toc-mobile { display: none; } }
.toc-mobile summary { cursor: pointer; font-weight: 600; }
.toc-mobile nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin-top: .75rem; font-size: .95rem; }
.toc-mobile a { color: var(--red); text-decoration: underline; }
.facts { border-top: 4px solid var(--green); background: var(--green-soft); padding: 1.25rem; }
.facts dl { margin: 1rem 0 0; display: grid; gap: .8rem; font-size: .95rem; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 600; }
.facts-mobile { margin: 1.75rem 0; }
@media (min-width: 1100px) { .facts-mobile { display: none; } }
.aside-side { display: none; }
@media (min-width: 1100px) { .aside-side { display: block; } .aside-side .sticky > * + * { margin-top: 2rem; } }
.aside-mobile { margin-top: 3rem; }
@media (min-width: 1100px) { .aside-mobile { display: none; } }
.rubrik-list h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-top: .25rem; }
.rubrik-list ul { margin-top: .75rem; }
.rubrik-list li { border-bottom: 1px solid var(--line); }
.rubrik-list li a { display: block; padding: .5rem 0; font-size: .95rem; }
.rubrik-list li a:hover { color: var(--red); }
.rubrik-list li a[aria-current="page"] { color: var(--red); font-weight: 600; }
.rubrik-list .link { display: inline-block; margin-top: .75rem; }

.article-copy { min-width: 0; }
.article-copy > .intro { font-size: 1.3rem; line-height: 1.6; color: var(--muted); }
.article-copy p { margin-top: 1rem; font-size: 1.1875rem; line-height: 1.7; }
.article-copy h2 { font-family: var(--font-serif); font-size: 1.85rem; line-height: 1.2; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 9rem; }
.article-copy h3 { font-size: 1.25rem; margin-top: 2rem; }
.article-copy p a, .article-copy li a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-copy ul.bullets { list-style: disc; padding-left: 1.25rem; margin-top: 1rem; }
/*.article-copy ul.bullets li { margin-top: .4rem; font-size: 1.05rem; }*/
.article-copy ul.bullets li {font-size: inherit; line-height: inherit; }
.article-copy figure { margin: 2.25rem 0; }
.article-copy blockquote { margin: 2.25rem 0; border-left: 4px solid var(--red); background: var(--sand); padding: 1.5rem; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 30rem; }
.data-table th, .data-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--sand); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: .5rem; background: var(--line); margin-top: .35rem; }
.bar span { display: block; height: 100%; background: var(--green); }
.stat-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: 1rem; }
.stat b { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; }
.stat span { font-size: .88rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.swatch { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); padding: .6rem .9rem .6rem .6rem; }
.swatch i { width: 2.5rem; height: 2.5rem; display: block; }
.source-note { margin-top: 2rem; font-size: .92rem !important; color: var(--muted); }
.sources { list-style: disc; padding-left: 1.25rem; margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.sources li { margin-top: .35rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1.25rem; }
.gallery-grid a { display: block; position: relative; }
.gallery-grid a:hover img { opacity: .9; }

.prevnext { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prevnext .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.prevnext a { display: flex; flex-direction: column; padding: 1.5rem 0; gap: .2rem; }
.prevnext a + a, .prevnext span + a { text-align: right; border-left: 1px solid var(--line); padding-left: 1rem; }
.prevnext small { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.prevnext strong { font-family: var(--font-serif); font-size: 1.15rem; }
.prevnext a:hover strong { color: var(--red); }

/* ---------- Galerie ---------- */
.az { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1.75rem; }
.az a, .az span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.az a:hover { border-color: var(--red); color: var(--red); }
.az span { color: var(--input); }
.gal-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.gal-tile { display: block; }
.gal-tile .imgbox { position: relative; }
.gal-tile .count { position: absolute; right: .5rem; bottom: .5rem; background: rgba(28,27,25,.78); color: #fff; font-size: .8rem; padding: .15rem .5rem; }
.gal-tile h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-top: .6rem; }
.gal-tile:hover h3 { color: var(--red); }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20,20,18,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 3.5rem 1rem 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }
.lightbox p { color: #eee; margin-top: .75rem; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 3rem; height: 3rem; font-size: 1.6rem; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* ---------- Suche / Inhaltsverzeichnis ---------- */
.results li { border-bottom: 1px solid var(--line); }
.results a { display: block; padding: 1.1rem 0; }
.results a:hover h3 { color: var(--red); }
.results h3 { font-family: var(--font-serif); font-size: 1.3rem; }
.results p { color: var(--muted); margin-top: .25rem; font-size: .95rem; }
.results mark { background: var(--red-soft); color: var(--red-dark); }
.sitemap { columns: 1; column-gap: 3rem; }
@media (min-width: 768px) { .sitemap { columns: 2; } }
@media (min-width: 1024px) { .sitemap { columns: 3; } }
.sitemap > li { break-inside: avoid; margin-bottom: 2rem; }
.sitemap > li > a { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }
.sitemap ul { margin-top: .4rem; }
.sitemap ul ul { padding-left: 1rem; border-left: 1px solid var(--line); margin: .2rem 0 .4rem; }
.sitemap li li a { display: block; padding: .15rem 0; color: var(--muted); }
.sitemap a:hover { color: var(--red) !important; }

/* ---------- Fusszeile ---------- */
.site-footer { margin-top: 5rem; background: var(--footer); color: var(--footer-ink); }
.footer-inner { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-serif); font-size: 1.8rem; }
.footer-grid p { margin-top: .75rem; font-size: .92rem; line-height: 1.6; opacity: .78; max-width: 20rem; }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.footer-grid li a { display: block; padding: .2rem 0; font-size: .92rem; opacity: .78; }
.footer-grid li a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(239,232,218,.2); font-size: .8rem; opacity: .65; }

@media print {
  .site-header, .site-footer, .toc-side, .aside-side, .aside-mobile, .prevnext, .chips { display: none !important; }
  .article-layout { display: block; }
}
.m-toggle svg { width: 1rem; height: 1rem; }
.m-sub .m-row > a[aria-current="page"] { color: var(--red); font-weight: 600; }


/* ---------- Listentrennzeichen und Einrückungen ---------- */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Einrückung für Unterlisten */
ul ul {
    padding-left: 0.5rem;
}

/* Stern vor jedem Listenpunkt */
li {
    position: relative;
    padding-left: 1.5rem;
}

li::before {
    content: "✭";
    color: #00843d;
    position: absolute;
    left: 0;
    top: 0;
}

.article-copy ul li {
    font-size: 1.1875rem;
    line-height: 1.7;
}

.ruler-table {width: 100%;border-collapse: collapse;}
.ruler-table th {text-align: left;padding: 0.5rem 0.75rem;}
.ruler-table td {padding: 0.5rem 0.75rem;vertical-align: top;}
.ruler-table th:nth-child(2),
.ruler-table td:nth-child(2) {width: 10rem;white-space: nowrap;}
.ruler-table th:nth-child(3),
.ruler-table td:nth-child(3) {width: 10rem;white-space: nowrap;}



.ruler-facts {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 20px;
    align-items: center;
}

.facts-content {
    min-width: 0;
}

.facts-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.facts-image img {
    width: 150;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
}

.table1 { border-collapse: collapse; }
.table1 td, .table1 th { border: 1px solid #666; padding: 4px; }

/* Design der Seitentabs */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.tab-btn {
    background: #0a8f35;
    color: white;
    border: 1px solid #0a8f35;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: bold;
}

.tab-content {
    display: none;
    border: 1px solid #0a8f35;
    padding: 20px;
    background: #f5f5f5;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    margin: 0;
}

.tab-content li {
    margin: 8px 0;
}

.tab-btn.active {
    background: #c1272d;
    color:white;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    top: 1px;
}