/* Verfasser- und Werkseiten (ADR 0025). Dieselbe Welt wie demo.html ("Das
   Fenster"): Tinte auf Papier, ein einziger Akzent, lokale Schriften, nichts
   von einem fremden Server. Die Werte sind die Tokens aus demo.html; wer sie
   dort aendert, aendert sie hier mit. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  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"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  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: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/noto-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/noto-naskh-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --tinte: #1b1610; --tinte-weich: #3d342b; --leise: #6d6155; --rot: #8d3320;
  --nacht: #121114; --papier: #efe9df; --blatt: #fbf8f3;
  --linie: rgba(60,44,28,.15); --linie-zart: rgba(60,44,28,.08);
  --radius: 16px; --rand: clamp(1rem, 3.4vw, 2.4rem); --spalte: 1060px; --mass: 72ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte);
  font-family: "Source Sans 3", "Noto Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.62; }
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Source Sans 3", "Noto Sans", sans-serif; font-size: 18px; line-height: 1.9; }
[lang="ar"] { font-family: "Noto Sans Arabic", sans-serif; }
h1, h2, h3, h4, .marke, .zahl, .etikett, .status, button { font-family: "Figtree", "Source Sans 3", "Noto Sans", sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .marke,
html[lang="ar"] .etikett, html[lang="ar"] .status, html[lang="ar"] button { font-family: "Noto Sans Arabic", "Figtree", sans-serif; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; margin: .2em 0 .3em; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
h3 { font-size: 1.02rem; margin: 1.2rem 0 .4rem; color: var(--tinte-weich); }
h4 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
a { color: var(--rot); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
code { font-size: .86em; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.spalte { max-width: var(--spalte); margin: 0 auto; padding: 0 var(--rand); }
.leiste { background: var(--nacht); color: #f3ede4; }
.leiste .spalte { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; justify-content: space-between; padding-block: .8rem; }
.leiste a { color: #f3ede4; text-decoration: none; }
.leiste a:hover { text-decoration: underline; }
.leiste .marke { font-weight: 700; }
.leiste nav { display: flex; gap: 1.2rem; }
.blatt { background: var(--blatt); border-radius: var(--radius); margin-block: clamp(1rem, 3vw, 2rem); padding-block: clamp(1.2rem, 3vw, 2.2rem); box-shadow: 0 1px 0 var(--linie-zart); }
.blatt p, .blatt li { max-width: var(--mass); }
.unter { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif; font-size: 1.35rem; color: var(--tinte-weich); margin: 0 0 1rem; }
.werkseite h1[lang="ar"], .verfasser h1:lang(ar) { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif; font-weight: 600; }
.leise { color: var(--leise); }
.warnung { color: var(--rot); font-weight: 600; }
.angaben { color: var(--tinte-weich); font-size: .93rem; }
.fakten { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .4rem 0 1rem; }
.fakten dt { color: var(--leise); }
.fakten dd { margin: 0; }
.formen { display: flex; flex-wrap: wrap; gap: .4rem; }
.formen li { background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: .1rem .7rem; }
.gleichnamig { margin-top: .8rem; }

.suche { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.2rem 0; padding: .9rem; background: #fff; border: 1px solid var(--linie); border-radius: 12px; }
.suche label { flex-basis: 100%; font-weight: 600; }
.suche input[type="search"] { flex: 1 1 14rem; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--linie); border-radius: 9px; font: inherit; font-family: "Noto Sans Arabic", sans-serif; }
.suche button { padding: .55rem 1.1rem; border: 0; border-radius: 9px; background: var(--rot); color: #fff; font-weight: 600; cursor: pointer; }

.werke li.werk { padding: .7rem 0; border-bottom: 1px solid var(--linie-zart); }
.werke li.werk > a { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Figtree", serif; font-size: 1.12rem; font-weight: 600; }
.werke li.werk > a:lang(en) { font-family: "Figtree", "Noto Sans", sans-serif; }
.kopfzahl { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: .8rem 1rem; }
.vorab li, .verteilung li { padding: .15rem 0; }
.verteilung { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 1.2rem; }
.verteilung li { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px dotted var(--linie); }
.zahl { font-variant-numeric: tabular-nums; }
.zeugen li.zeuge { padding: .55rem 0; border-bottom: 1px solid var(--linie-zart); font-size: .96rem; }
.status { font-weight: 600; }
li.zeuge[data-status="probable"] .status, li.zeuge[data-status="uncertain"] .status { color: var(--leise); }
.etikett { font-size: .84rem; text-transform: lowercase; color: var(--rot); }
.nennung, .gruende { font-size: .86rem; color: var(--leise); }
ol.kapitel { list-style: decimal; padding-inline-start: 2rem; }
ol.kapitel li.kapitel { padding: .1rem 0; }
.jahrhunderte { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem 1rem; margin-top: 1rem; }
.jahrhunderte li { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: .5rem .8rem; }
table.liste { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
table.liste th, table.liste td { text-align: start; padding: .4rem .5rem; border-bottom: 1px solid var(--linie-zart); }
table.liste td:nth-child(n+2), table.liste th:nth-child(n+2) { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  table.liste th:nth-child(4), table.liste td:nth-child(4), table.liste th:nth-child(6), table.liste td:nth-child(6) { display: none; }
  .fakten { grid-template-columns: 1fr; }
}
.fuss { color: var(--leise); font-size: .88rem; padding-block: 1rem 2.5rem; }
.fuss p { max-width: var(--mass); margin: .3rem 0; }
