/* Al-Bazra Initiative: ein Stylesheet fuer ar (Wurzel, rtl), en und de.
   Nur logische Eigenschaften, damit LTR und RTL aus einer Datei laufen.
   Farben: Tinte auf Papier, Lapisblau als einziger Akzent, Ocker nur fuer Offenes. */

@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-arabic.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; src: url("../fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --papier: #f4f3ef;
  --flaeche: #fbfaf8;
  --tinte: #1e1b18;
  --tinte-weich: #3b3631;
  --leise: #5f5a53;
  --linie: #dad5cc;
  --lapis: #23508e;
  --lapis-tief: #1a3d6d;
  --lapis-grund: #e4eaf3;
  --ocker: #7a5c1a;
  --ocker-grund: #f2ead6;

  --naskh: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;
  --kufi: "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --sans: "Source Sans 3", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --mass: 42rem;
  --breite: 72rem;
  --rand: clamp(1.1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #15171a;
    --flaeche: #1b1e22;
    --tinte: #e8e4dc;
    --tinte-weich: #cfc9bf;
    --leise: #a8a298;
    --linie: #2f3339;
    --lapis: #93b4e6;
    --lapis-tief: #b5ccef;
    --lapis-grund: #1e2939;
    --ocker: #d9b86c;
    --ocker-grund: #2e2818;
  }
}
:root[data-theme="dark"] {
  --papier: #15171a; --flaeche: #1b1e22; --tinte: #e8e4dc; --tinte-weich: #cfc9bf; --leise: #a8a298;
  --linie: #2f3339; --lapis: #93b4e6; --lapis-tief: #b5ccef; --lapis-grund: #1e2939; --ocker: #d9b86c; --ocker-grund: #2e2818;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--kufi); font-size: 1.0625rem; line-height: 1.95; }
:lang(ar) { letter-spacing: 0 !important; text-transform: none !important; }

a { color: var(--lapis); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--lapis-tief); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; border-radius: 2px; }

.sprung { position: absolute; inset-inline-start: 1rem; inset-block-start: -3rem; background: var(--tinte); color: var(--papier); padding: 0.5rem 0.9rem; border-radius: 4px; z-index: 10; }
.sprung:focus { inset-block-start: 1rem; }

/* Entwurfsband: verschwindet mit dem Deploy-Build */
.entwurf-band { background: var(--ocker-grund); color: var(--ocker); font-size: 0.82rem; text-align: center; padding: 0.35rem var(--rand); }

/* Kopf */
.kopfleiste { border-block-end: 1px solid var(--linie); background: var(--flaeche); }
.kopfleiste-innen { max-width: var(--breite); margin-inline: auto; padding: 1rem var(--rand) 0; display: grid; gap: 0.6rem 2rem; grid-template-columns: auto 1fr auto; align-items: center; }
.marke { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; color: var(--tinte); }
.marke:hover { color: var(--tinte); }
.marke svg { flex: none; inline-size: 2rem; block-size: 2.4rem; color: var(--lapis); }
.marke-text { display: grid; line-height: 1.2; }
.marke-name { font-weight: 600; font-size: 1.1rem; }
.marke-zusatz { font-size: 0.78rem; color: var(--leise); }
html[lang="ar"] .marke-name { font-family: var(--naskh); font-size: 1.35rem; line-height: 1.5; }
html[lang="ar"] .marke-zusatz { font-size: 0.82rem; }
.sprache { justify-self: end; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: 1px solid var(--linie); padding: 0.25rem 0.75rem; border-radius: 999px; }
.sprache:hover { border-color: var(--lapis); }

.hauptnav { grid-column: 1 / -1; overflow-x: auto; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem 1.6rem; white-space: nowrap; }
.hauptnav a { display: block; padding: 0.55rem 0 0.7rem; color: var(--tinte-weich); text-decoration: none; font-size: 0.95rem; border-block-end: 2px solid transparent; }
.hauptnav a:hover { color: var(--tinte); border-block-end-color: var(--linie); }
.hauptnav a:focus-visible { outline-offset: -2px; padding-inline: 0.3rem; margin-inline: -0.3rem; }
.hauptnav a[aria-current="page"] { color: var(--tinte); border-block-end-color: var(--lapis); font-weight: 600; }

/* Seite */
main { display: block; }
.seite { max-width: var(--breite); margin-inline: auto; padding: 0 var(--rand) 4rem; }

.seitenkopf { padding-block: clamp(2.5rem, 7vw, 4.5rem) 2.2rem; border-block-end: 1px solid var(--linie); }
.eyebrow { margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--lapis); }
html[lang="ar"] .eyebrow { font-size: 0.92rem; }
h1, h2, h3 { color: var(--tinte); text-wrap: balance; }
h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.14; letter-spacing: -0.01em; max-width: 26ch; }
html[lang="ar"] h1 { font-family: var(--naskh); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.55; max-width: 24ch; }
.lead { margin: 1.1rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.6; color: var(--tinte-weich); max-width: 40rem; }
html[lang="ar"] .lead { line-height: 1.95; }

.block { padding-block: 2.4rem 0.6rem; }
.block + .block { border-block-start: 1px solid var(--linie); }
h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.25; max-width: var(--mass); }
html[lang="ar"] h2 { font-family: var(--naskh); font-weight: 700; font-size: clamp(1.45rem, 2.5vw, 1.85rem); line-height: 1.6; }
h3 { margin: 1.6rem 0 0.5rem; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
html[lang="ar"] h3 { font-family: var(--naskh); font-weight: 700; font-size: 1.22rem; line-height: 1.7; }
p, ul, ol, dl, blockquote { max-width: var(--mass); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.2rem; padding-inline-start: 1.3rem; }
li { margin-block: 0.3rem; }
li::marker { color: var(--leise); }
html[lang="ar"] .block p, html[lang="ar"] .block li { font-family: var(--naskh); font-size: 1.12rem; line-height: 2; }

[lang="ar"] { font-family: var(--naskh); }
html[lang="en"] [lang="ar"], html[lang="de"] [lang="ar"] { font-size: 1.1em; line-height: 1.5; }
[dir="ltr"][lang="en"] { font-family: var(--sans); }
html[lang="ar"] [lang="en"] { font-size: 0.95em; }
/* kurze lateinische Namen im arabischen Text nicht zerteilen (laengster Einsprengsel 32 Zeichen, passt bei 375 px) */
html[lang="ar"] span[dir="ltr"][lang="en"] { white-space: nowrap; }

/* Spalten */
.spalten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.2rem 0 1.6rem; max-width: none; }
.spalte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; padding: 1.15rem 1.25rem 0.4rem; display: flex; flex-direction: column; }
.spalte h3 { margin-block-start: 0; }
.spalte p { font-size: 0.98rem; }
html[lang="ar"] .spalte p { font-size: 1.05rem; }
.spalte p:last-child a:only-child { font-weight: 600; }

/* Leitplanken */
.leitplanken { list-style: none; padding: 0; counter-reset: leitplanke; display: grid; gap: 0.2rem; }
.leitplanken li { counter-increment: leitplanke; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.2rem; padding-block: 0.65rem; border-block-end: 1px solid var(--linie); margin: 0; }
.leitplanken li:last-child { border-block-end: 0; }
.leitplanken li::before { content: counter(leitplanke); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--lapis); font-variant-numeric: tabular-nums; line-height: 1.6; }

/* Eckdaten */
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.8rem 2rem; margin: 1.4rem 0; max-width: none; }
.eckdaten > div { border-block-start: 1px solid var(--linie); padding-block-start: 0.55rem; }
.eckdaten dt { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leise); }
html[lang="ar"] .eckdaten dt { font-size: 0.9rem; }
.eckdaten dd { margin: 0.15rem 0 0; font-variant-numeric: tabular-nums; }

/* Hinweise */
.hinweis, .offenlegung { max-width: var(--mass); border-radius: 6px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 0.97rem; }
.hinweis { background: var(--lapis-grund); }
.offenlegung { background: var(--ocker-grund); }
.hinweis > :last-child, .offenlegung > :last-child { margin-block-end: 0; }
html[lang="ar"] .hinweis p, html[lang="ar"] .offenlegung p { font-size: 1.05rem; }

/* Stand */
.stand { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; align-items: baseline; margin-block: 0.6rem; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; line-height: 1.5; padding: 0.05rem 0.6rem; border-radius: 999px; white-space: nowrap; }
html[lang="ar"] .status { font-family: var(--kufi); font-size: 0.86rem; }
.status::before { content: ""; inline-size: 0.45rem; block-size: 0.45rem; border-radius: 50%; background: currentColor; }
.status-laeuft { background: var(--lapis-grund); color: var(--lapis); }
.status-geplant { background: transparent; color: var(--leise); box-shadow: inset 0 0 0 1px var(--linie); }
.status-offen { background: var(--ocker-grund); color: var(--ocker); }

/* Tabellen */
.tabelle { overflow-x: auto; margin: 1.2rem 0 1.8rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); }
.tabelle table { border-collapse: collapse; inline-size: 100%; font-size: 0.93rem; line-height: 1.5; }
.tabelle th { text-align: start; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); padding: 0.7rem 0.9rem; border-block-end: 1px solid var(--linie); vertical-align: bottom; }
html[lang="ar"] .tabelle th { font-size: 0.9rem; }
.tabelle td { padding: 0.75rem 0.9rem; border-block-start: 1px solid var(--linie); vertical-align: top; min-inline-size: 10rem; }
.tabelle tbody tr:first-child td { border-block-start: 0; }
.tabelle td:first-child { font-weight: 600; }
html[lang="ar"] .tabelle td { font-family: var(--naskh); font-size: 1.02rem; line-height: 1.85; }

/* Weiterlinks */
.weiter { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.6rem 0 1rem; }
.weiter a { font-weight: 600; text-decoration: none; border-block-end: 1px solid currentColor; padding-block-end: 0.1rem; }
.weiter a::after { content: " \2192"; }
[dir="rtl"] .weiter a::after, html[lang="ar"] .weiter a::after { content: " \2190"; }

/* Charta-Artikel */
.artikel { list-style: none; padding: 0; counter-reset: artikel; max-width: var(--mass); }
.artikel > li { counter-increment: artikel; display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.4rem; padding-block: 1.1rem; border-block-start: 1px solid var(--linie); margin: 0; }
.artikel > li::before { content: counter(artikel); grid-row: span 9; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--lapis); line-height: 1.2; font-variant-numeric: tabular-nums; }
.artikel > li > h3 { margin-block-start: 0.1rem; }
.artikel > li > * { grid-column: 2; }

/* Unterseiten */
.unterseiten ul { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); max-width: none; }
.unterseiten a { display: block; padding: 0.9rem 1.1rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); text-decoration: none; font-weight: 600; color: var(--tinte); }
.unterseiten a:hover { border-color: var(--lapis); color: var(--lapis); }
.unterseiten li { margin: 0; }

/* Zitat */
.zitat { margin: 1.6rem 0; padding: 0.3rem 1.3rem; border-inline-start: 2px solid var(--lapis); font-size: 1.15rem; color: var(--tinte-weich); }
.zitat p { margin-block: 0.4rem; }
html[lang="ar"] .zitat, .zitat[lang="ar"] { font-family: var(--naskh); font-size: 1.35rem; line-height: 1.9; }

/* Platzhalter: sichtbar, damit niemand sie uebersieht */
.offen { background: var(--ocker-grund); color: var(--ocker); border-block-end: 1px dashed var(--ocker); padding: 0 0.3rem; border-radius: 3px; font-family: var(--sans); font-size: 0.9em; }
html[lang="ar"] .offen { font-family: var(--kufi); }
[data-beleg] { font-variant-numeric: tabular-nums; }

/* Fuss */
.fuss { border-block-start: 1px solid var(--linie); background: var(--flaeche); font-size: 0.9rem; }
.fuss-innen { max-width: var(--breite); margin-inline: auto; padding: 2.2rem var(--rand) 2.6rem; display: grid; gap: 1.6rem 3rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.fuss p { margin: 0 0 0.6rem; color: var(--leise); max-width: 34rem; }
.fuss .fuss-name { color: var(--tinte); font-weight: 600; }
html[lang="ar"] .fuss .fuss-name { font-family: var(--naskh); font-size: 1.15rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; columns: 2 10rem; column-gap: 2rem; }
.fuss li { margin: 0 0 0.35rem; break-inside: avoid; }
.fuss a { color: var(--tinte-weich); text-decoration: none; }
.fuss a:hover { color: var(--lapis); text-decoration: underline; }

/* Feinschliff: Auswahl, Karten als Ganzes klickbar, Stand als Liste, Schlusslinks */
::selection { background: var(--lapis-grund); color: var(--tinte); }
h1, h2, h3, .lead { text-rendering: optimizeLegibility; }

.seitenkopf .eyebrow::before { content: ""; display: block; inline-size: 2.2rem; block-size: 2px; background: var(--lapis); margin-block-end: 0.8rem; }

/* Karten ohne Waisen: zwei oder vier Karten paarweise, drei in einer Reihe */
.spalten { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.spalten:has(> .spalte:nth-child(3):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.spalte { position: relative; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.spalte h3 a { color: var(--tinte); text-decoration: none; }
.spalte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.spalte p a { position: relative; z-index: 1; }
.spalte:has(h3 a):hover { border-color: var(--lapis); box-shadow: 0 1px 0 var(--lapis); }
.spalte:has(h3 a):hover h3 a { color: var(--lapis); }
.spalte:has(h3 a:focus-visible) { outline: 2px solid var(--lapis); outline-offset: 3px; }
.spalte h3 a:focus-visible { outline: 0; }

.stand { display: block; position: relative; padding-block: 0.7rem; padding-inline-start: 8rem; margin-block: 0; border-block-end: 1px solid var(--linie); }
.stand:last-of-type { border-block-end: 0; }
.stand .status { position: absolute; inset-inline-start: 0; inset-block-start: 0.95rem; }
html[lang="ar"] .block p.stand { line-height: 1.9; }
html[lang="ar"] .stand .status { inset-block-start: 1.05rem; }

main > .weiter { max-width: none; margin-block: 2.6rem 0; padding-block-start: 1.6rem; border-block-start: 1px solid var(--linie); gap: 0.8rem 2rem; }
.weiter a { font-size: 1.02rem; }

.offen { white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Startseite: staerkerer Kopf */
body[data-seite="index"] .seitenkopf { padding-block: clamp(2.5rem, 6vw, 4.2rem) 2.4rem; }
body[data-seite="index"] h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 26ch; }
html[lang="ar"] body[data-seite="index"] h1 { font-size: clamp(1.95rem, 4.2vw, 3.2rem); line-height: 1.5; max-width: 30ch; }
body[data-seite="index"] .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 44rem; }

/* Ornamentik (Backlog Nr. 20): ein Achtstern-Gitter als Grundsystem, als Maske in der
   Akzentfarbe, damit es in hell und dunkel traegt. Keine Schrift, keine religioesen Zeichen. */
:root {
  --muster-gitter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M20 8 32 20 20 32 8 20Z'/%3E%3Cpath d='M11.5 11.5h17v17h-17Z'/%3E%3Cpath d='M20 0v8M40 20h-8M20 40v-8M0 20h8M0 0l11.5 11.5M40 0 28.5 11.5M40 40 28.5 28.5M0 40l11.5-11.5'/%3E%3C/svg%3E");
  --muster-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cg fill='black'%3E%3Cpath d='M20 3 27 10 20 17 13 10Z'/%3E%3Cpath d='M15 5h10v10H15Z'/%3E%3C/g%3E%3Cpath d='M0 10h11M29 10h11' stroke='black' stroke-width='1' fill='none'/%3E%3Ccircle cx='20' cy='10' r='2' fill='white'/%3E%3C/svg%3E");
  --muster-stern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 16'%3E%3Cg fill='black'%3E%3Cpath d='M8 1 15 8 8 15 1 8Z'/%3E%3Cpath d='M3 3h10v10H3Z'/%3E%3C/g%3E%3Cpath d='M17 8h27' stroke='black' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
}
.kopfleiste { position: relative; }
.kopfleiste::after { content: ""; display: block; block-size: 20px; background: var(--lapis); opacity: 0.45;
  -webkit-mask: var(--muster-band) center / 40px 20px repeat-x; mask: var(--muster-band) center / 40px 20px repeat-x; }
.fuss { position: relative; overflow: hidden; }
.fuss::before { content: ""; position: absolute; inset: 0; background: var(--lapis); opacity: 0.07; pointer-events: none;
  -webkit-mask: var(--muster-gitter) 0 0 / 40px 40px repeat; mask: var(--muster-gitter) 0 0 / 40px 40px repeat; }
.fuss-innen { position: relative; }
.seitenkopf .eyebrow::before { inline-size: 2.75rem; block-size: 16px; background: var(--lapis);
  -webkit-mask: var(--muster-stern) 0 50% / contain no-repeat; mask: var(--muster-stern) 0 50% / contain no-repeat; }
[dir="rtl"] .seitenkopf .eyebrow::before { transform: scaleX(-1); }
.unterseiten a { position: relative; padding-inline-start: 2.6rem; }
.unterseiten a::before { content: ""; position: absolute; inset-inline-start: 1rem; inset-block-start: 50%; inline-size: 14px; block-size: 14px; margin-block-start: -7px; background: var(--lapis);
  -webkit-mask: var(--muster-stern) 0 50% / auto 14px no-repeat; mask: var(--muster-stern) 0 50% / auto 14px no-repeat; }

/* Bilder: nur figure.bild, immer mit sichtbarer Kennzeichnung */
.bild { position: relative; margin: 0; max-width: none; }
.bild img { display: block; inline-size: 100%; block-size: auto; object-fit: cover; }
.bild figcaption { position: absolute; inset-inline-end: 0.6rem; inset-block-end: 0.6rem; padding: 0.15rem 0.55rem; border-radius: 999px;
  background: rgba(17, 17, 17, 0.78); color: #f5f3ee; font-family: var(--sans); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.01em; }
html[lang="ar"] .bild figcaption { font-family: var(--kufi); font-size: 0.78rem; }
main > figure.bild { margin-block: 2rem 0.5rem; border-radius: 6px; overflow: hidden; }
main > figure.bild img { aspect-ratio: 21 / 8; }
body[data-seite="index"] main > figure.bild img { aspect-ratio: 21 / 9; }
.spalte > figure.bild:first-child { margin: -1.15rem -1.25rem 1rem; border-radius: 6px 6px 0 0; overflow: hidden; }
.spalte > figure.bild img { aspect-ratio: 3 / 2; transition: transform 0.4s ease; }
.spalte:has(h3 a):hover > figure.bild img { transform: scale(1.03); }
.spalte > figure.bild figcaption { font-size: 0.66rem; inset-inline-end: 0.5rem; inset-block-end: 0.5rem; }
.spalte p:has(> .status:only-child) { margin-block-start: auto; padding-block-start: 0.4rem; }

/* Breite Bildschirme: Randspalte fuer Abschnittstitel, Text in der Lesespalte */
@media (min-width: 64rem) {
  .seite { --randspalte: 14rem; --spaltenabstand: clamp(2.5rem, 5vw, 5rem); }
  .seitenkopf, .block { display: grid; grid-template-columns: minmax(0, var(--randspalte)) minmax(0, 1fr); column-gap: var(--spaltenabstand); align-items: start; }
  main > :not(.seitenkopf, .block) { margin-inline-start: calc(var(--randspalte) + var(--spaltenabstand)); }
  main > figure.bild { margin-inline-start: 0; }
  .seitenkopf > *, .block > * { grid-column: 2; }
  .seitenkopf > .eyebrow { grid-column: 1; grid-row: 1 / span 3; margin-block-start: 0.9rem; }
  .block > h2 { grid-column: 1; grid-row: 1 / span 60; position: sticky; inset-block-start: 1.5rem; margin: 0; font-size: 1.4rem; }
  html[lang="ar"] .block > h2 { font-size: 1.5rem; }
}

@media (max-width: 720px) {
  .kopfleiste-innen { grid-template-columns: 1fr auto; }
  .hauptnav { overflow-x: visible; }
  .hauptnav ul { flex-wrap: wrap; white-space: normal; gap: 0 1.2rem; }
  .hauptnav a { padding-block: 0.35rem 0.45rem; line-height: 1.6; }
  .fuss-innen { grid-template-columns: 1fr; }
  .artikel > li { grid-template-columns: 2.2rem 1fr; }
  .leitplanken li { grid-template-columns: 2rem 1fr; }
  .tabelle td { min-inline-size: 8.5rem; }
  .stand { padding-inline-start: 0; }
  .stand .status { position: static; margin-inline-end: 0.5rem; vertical-align: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .kopfleiste, .fuss, .entwurf-band, .sprung { display: none; }
  .bild figcaption { position: static; background: none; color: #000; padding: 0; }
  body { background: #fff; color: #000; }
  .seite { padding: 0; }
}
