/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: only light;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@font-face {
  font-family: 'KFGQPC Naskh';
  src: url('../fonts/kfgqpc-taha-naskh.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Lateinschrift: Domitian (freier Palatino-Nachbau, SIL OFL, Lizenz in
   assets/fonts/domitian-ofl.txt), seit 24.10.2026 statt der Windows-Schrift
   Palatino Linotype. Der Name 'Palatino' bleibt als interner Familienname, damit
   alle font-family-Angaben (auch in juz.css) unverändert gelten. Nur der
   Normalschnitt: Fett und Kursiv errechnet der Browser daraus (wie bisher); die
   echten Fett- und Kursivschnitte wurden verworfen (Nutzer 24.10.2026). Zwei
   Dateien; die zweite lädt der Browser nur bei Zeichen aus ihrem Bereich.
   Erzeugt mit scripts/webschriften-erzeugen.py (Bereiche dort gleichlautend). */

@font-face {
  font-family: 'Palatino';
  src: url('../fonts/domitian-regular-latin.woff2') format('woff2');
  /* feste Höhenmaße wie unter Windows (usWin): sonst nimmt Android/macOS die hhea-Werte und die Schrift sitzt
     um etwa 0,1em höher, z. B. in den blauen Schildern (Nutzer 10.11.2026) */
  ascent-override: 92.7%;
  descent-override: 28.3%;
  line-gap-override: 0%;
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0100-0101, U+0106-0107, U+010C-010D, U+0110-0111, U+012A-012B, U+0131, U+0152-0153, U+015E-0161, U+016A-016B, U+017D-017E, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

@font-face {
  font-family: 'Palatino';
  src: url('../fonts/domitian-regular-latin-ext.woff2') format('woff2');
  /* feste Höhenmaße wie unter Windows (usWin): sonst nimmt Android/macOS die hhea-Werte und die Schrift sitzt
     um etwa 0,1em höher, z. B. in den blauen Schildern (Nutzer 10.11.2026) */
  ascent-override: 92.7%;
  descent-override: 28.3%;
  line-gap-override: 0%;
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+0102-0105, U+0108-010B, U+010E-010F, U+0112-0129, U+012C-0130, U+0132-0151, U+0154-015D, U+0162-0169, U+016C-017C, U+017F-024F, U+02B0-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0300-036F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2100-2121, U+2123-214F, U+FB00, U+FB03-FB06;
}

body {
  font-family: 'KFGQPC Naskh', 'Palatino', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.75;
  color: #333;
  /* warmes Weiß wie Buchpapier, angenehmer zum Lesen (Nutzer 04.11.2026; vorher neutrales Hellgrau #f4f4f4), darauf
     eine dezente Papierstruktur: feines Korn mit Fasern (256-px-Kachel) und weiche Wolken (gestreckt), per multiply
     auf den Grundton gelegt; erzeugt mit scripts/papier-textur.py (zusammen 23 KB; Korn seit 05.11.2026 etwas
     kräftiger, Varianten in offline/papier-varianten/). Im Nachtmodus ohne Struktur.
     lisan-qadim.com (Nutzer 24.11.2026, Entwurf D): weniger beige (vorher #f7f3ea) und gleichmäßiger, die Wolken
     auf 35 % abgeschwächt (_werkzeuge/papier/wolken_abschwaechen.py), damit es nicht wie ibnu-musafir.com aussieht. */
  background-color: #f8f5ef;
  background-image: url('../images/papier-korn.webp'), url('../images/papier-wolken.webp');
  background-size: 256px 256px, 900px 900px;
  background-blend-mode: multiply, multiply;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Keep sticky navigation pinned to the viewport instead of the body. */
  overflow-x: clip;
}

body[data-lang="ar"] {
  font-family: 'KFGQPC Naskh', 'Palatino', Arial, sans-serif;
}

.page-shell,
.page-content,
.content-box,
.page-content li {
  min-width: 0;
}

.page-content {
  overflow-wrap: break-word;
  word-break: normal;
}

.page-content a,
.site-footer a,
.email-link {
  overflow-wrap: anywhere;
  word-break: break-word;
  unicode-bidi: isolate;
}

.page-content a[href^="http"],
.email-link {
  direction: ltr;
}

.mobile-break {
  display: none;
}

/* Kopfbild (Nutzer 20.11.2026): Sand (Sand 01 von ibnu-musafir.com), nachts dasselbe Bild im Mondlicht;
   darüber der Schriftzug als eigene Ebene (Gold, mit Schatten); beim ersten Aufruf einer Sitzung die Laser-Animation (kopf-animation.js). Die Bilder sind 4:1;
   gezeigt flacher, 6:1 (mittig zugeschnitten), am Handy 4:1. Erzeugt mit _werkzeuge/kopfbild/kopfbild_uebernehmen.py. */
.hero {
  /* am Tag gebaut wie das Nachtbild, hell und mit etwas Sandfarbe (Nutzer 24.11.2026, kopfbild_uebernehmen.py) */
  background-image: url('../images/kopf-tag.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 6 / 1;
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 0;
  pointer-events: none;
}
body.dark .hero::after {
  opacity: 1;
}
/* Nachtbild erst laden, wenn der Nachtmodus gebraucht wird (Klasse setzt script.js bzw. bei Nachtmodus
   schon das Inline-Skript über body.dark): der Sand im Mondlicht (Nutzer 20.11.2026). */
body.dark .hero::after,
body.night-header .hero::after {
  background-image: url('../images/kopf-nacht.webp');
}
/* Schriftzug (Gold) in der Mitte, mit deutlichem Schatten (Nutzer 20.11.2026) */
.hero-schriftzug {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 70%;
  width: auto;
  max-width: 76%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
/* Schatten beim Umschalten Tag/Nacht weich überblenden, wie Nachtbild und Domain (2 s) */
img.schriftzug-gold {
  transition: filter 2s ease;
}
img.schriftzug-gold,
.kopf-sand .hero-animation {
  /* deutlich stärker als zuerst (Nutzer 24.11.2026): enger dunkler Kern, dazu ein tiefer, weiter Schatten */
  /* Gold etwas heller (Nutzer 24.11.2026); brightness vor den Schatten, damit diese dunkel bleiben */
  /* dichter an der Schrift, nicht so weit auslaufend (Nutzer 02.12.2026; vorher bis 0 24px 34px) */
  /* dazu zuerst ein leichter Saum rundum (Nutzer 02.12.2026, wie Entwurf M1 des Vorschaubilds: oben verschmolz die Schrift mit dem Sand);
     kleiner als dort, weil der Schriftzug hier nur etwa 300–500 px breit ist (Vorschaubild 1040 px) */
  filter: brightness(1.18) saturate(1.05) drop-shadow(0 0 0.5px rgba(20, 8, 0, 0.4)) drop-shadow(0 0 1px rgba(20, 8, 0, 0.2))
    drop-shadow(0 1.5px 1px rgba(20, 8, 0, 0.95)) drop-shadow(0 3px 2.5px rgba(20, 8, 0, 0.9))
    drop-shadow(0 6px 5px rgba(20, 8, 0, 0.75)) drop-shadow(0 10px 10px rgba(20, 8, 0, 0.4));
}
body.dark img.schriftzug-gold,
.kopf-sand body.dark .hero-animation {
  filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.2))
    drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.95)) drop-shadow(0 5px 5px rgba(0, 0, 0, 0.8))
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5));
}
/* Glanz des Goldes (Nutzer 24.11.2026): über dem Rand des Schriftzugs läuft immer wieder langsam ein Lichtband
   von rechts nach links (in Schreibrichtung), sehr langsam (Nutzer 25.11.2026). schriftzug-glanz.webp ist helles Gold, am Rand der Buchstaben deckend
   (kopfbild_uebernehmen.py); die Maske lässt davon nur das wandernde Band durch. Die Maske (400 % breit) läuft nur
   über die Strecke, auf der das Band den Schriftzug berührt (Position 25 % → 75 %): 8 s gleichmäßig, dann 5 s Pause
   (Nutzer 25.11.2026; vorher 0 → 100 % in 22 s, davon nur etwa 8 s sichtbar, also etwa 16 s Leere). */
img.schriftzug-glanz {
  mix-blend-mode: plus-lighter;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(110deg, transparent 44%, rgba(0, 0, 0, 0.3) 47.5%, #000 50%, rgba(0, 0, 0, 0.3) 52.5%, transparent 56%);
  mask-image: linear-gradient(110deg, transparent 44%, rgba(0, 0, 0, 0.3) 47.5%, #000 50%, rgba(0, 0, 0, 0.3) 52.5%, transparent 56%);
  -webkit-mask-size: 400% 100%;
  mask-size: 400% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 25% 0;
  mask-position: 25% 0;
  /* 10 s Pause zwischen zwei Glanzphasen (Nutzer 02.12.2026): 8 s Lauf + 10 s Pause = 18 s; vorher 13 s */
  animation: schriftzug-glanz 18s linear infinite;
  /* Seitenwechsel im Einblenden des Sandes: der Glanz läuft an derselben Stelle weiter (Versatz vom Inline-Skript) */
  animation-delay: var(--sand-versatz, 0s);
}
/* Erster Glanz gleich nach dem Schreiben (Nutzer 26.11.2026): während der Einführung steht er still und beginnt
   mit dem Einblenden des Sandes von vorn (vorher lief er schon ab Seitenaufruf verborgen mit, sodass beim
   Sichtbarwerden nur noch das Ende beim Mīm aufblitzte) */
.kopf-intro:not(.kopf-sand) img.schriftzug-glanz {
  animation: none;
}
.kopf-intro.kopf-sand img.schriftzug-glanz {
  visibility: visible;
}
@keyframes schriftzug-glanz {
  0% { -webkit-mask-position: 25% 0; mask-position: 25% 0; }
  44.444%, 100% { -webkit-mask-position: 75% 0; mask-position: 75% 0; }
}
body.dark img.schriftzug-glanz {
  opacity: 0.6;
}
.kopf-tinte .schriftzug-glanz {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  img.schriftzug-glanz {
    display: none;
  }
}
/* Einführung beim ersten Seitenaufruf einer Sitzung (kopf-animation.js): Kopf schwarz, der Schriftzug wird
   mit dem Laser aufgetragen; danach blendet der Sand langsam ein (html.kopf-sand) */
.kopf-gold.kopf-intro .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  pointer-events: none;
  transition: opacity 4s ease;
}
.kopf-gold.kopf-intro.kopf-sand .hero::before {
  opacity: 0;
}
.kopf-intro img.hero-schriftzug {
  visibility: hidden;
}
/* nur wenn das Skript ausfällt (keine Zeichenfläche, Sicherung nach 24 s); solange die Zeichenfläche da ist, bleibt
   das ruhende Bild verborgen, sonst lägen zwei Schatten übereinander und der Schatten spränge beim Entfernen
   der Fläche (Nutzer 20.11.2026) */
.kopf-intro.kopf-sand .hero:not(:has(.hero-animation)) img.hero-schriftzug {
  visibility: visible;
}
.kopf-gold.kopf-intro .header-domain {
  opacity: 0;
  transition: opacity 4s ease;
}
.kopf-gold.kopf-intro.kopf-sand .header-domain {
  opacity: 1;
}
.kopf-intro .hero-animation {
  transition: filter 4s ease;
}
/* Seitenwechsel, während der Sand nach der Einführung einblendet (Nutzer 21.11.2026): das Inline-Skript setzt
   html.kopf-sand-weiter und --sand-versatz (negativ, schon vergangene Zeit); das ruhende Bild steht gleich da und das
   Einblenden läuft an derselben Stelle weiter (Schwarz aus, Adresse und Schatten ein). */
.kopf-sand-weiter .hero::before {
  animation: kopf-schwarz-aus 4s ease var(--sand-versatz, 0s) both;
}
.kopf-sand-weiter .header-domain {
  animation: kopf-ein 4s ease var(--sand-versatz, 0s) both;
}
.kopf-sand-weiter img.schriftzug-gold {
  animation: kopf-schatten-ein 4s ease var(--sand-versatz, 0s) both;
}
@keyframes kopf-schwarz-aus {
  from { opacity: 1; }
}
@keyframes kopf-ein {
  from { opacity: 0; }
}
@keyframes kopf-schatten-ein {
  from { filter: none; }
}
/* Zeichenflächen genau im Seitenverhältnis der ruhenden Bilder (1200 x 480); ihre gerundeten Pixelmaße wichen
   sonst um einen halben Pixel ab, und beim Wechsel zum Bild sprang die Schrift */
canvas.hero-schriftzug {
  aspect-ratio: 5 / 2;
}
/* Zweite Fassung „Tinte“ (Nutzer 20.11.2026): je Besuch und bei echtem Neuladen wählt das Inline-Skript im
   <head> zufällig html.kopf-gold oder html.kopf-tinte. Tinte: helles Papier mit Eckranken, der Schriftzug in
   Pinseltinte, beim ersten Aufruf vom Pinsel geschrieben (tinte-animation.js). Nachts zeigen beide Fassungen den
   Sand im Mondlicht; die Tinte schimmert dann leicht golden. Nur das Bild der gewählten Fassung wird geladen
   (beide <img> mit loading="lazy", das andere ist ausgeblendet). */
.schriftzug-tinte,
.kopf-tinte .schriftzug-gold {
  display: none;
}
.kopf-tinte .schriftzug-tinte {
  display: block;
}
.kopf-tinte .hero {
  background-image: url('../images/kopf-papier.webp');
  background-position: center top;
}
/* Tinte: am Tag spielen Blattschatten über das Papier (assets/js/blaetterlicht.js) */
.kopf-tinte .schriftzug-tinte,
.kopf-tinte .tinte-animation {
  transition: filter 2s ease;
}
/* nachts ein enger goldener Schein (weniger weich als zuerst, Nutzer 21.11.2026), dazu ein dunkler Schatten */
body.dark .schriftzug-tinte,
body.dark .tinte-animation {
  filter: drop-shadow(0 0 0.8px rgba(255, 224, 155, 0.95)) drop-shadow(0 0 2.5px rgba(235, 185, 95, 0.55))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}
.header-domain {
  position: absolute;
  left: clamp(8px, 3.5vw, 45px);
  bottom: clamp(4px, 1.6vw, 18px);
  color: #3a2208;
  font-family: 'Palatino';
  font-size: clamp(0.75rem, 5.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.02em;
  /* Domain dunkelbraun wie die Menüleiste, mit feinem Schatten statt Schein (Nutzer 20.11.2026) */
  /* deutlicher (Nutzer 26.11.2026; der Sand ist seit 25.11. brauner): dunkleres Braun (#3a2208 statt #5a3a18),
     eine helle Kante unten wie eingeprägt und ein weicher heller Hof gegen das Korn des Sandes */
  text-shadow: 0 1px 0 rgba(255, 244, 222, 0.55), 0 0 10px rgba(255, 244, 222, 0.45), 1px 2px 3px rgba(40, 20, 0, 0.35);
  transition: opacity 0.4s ease, color 2s ease, text-shadow 2s ease;
  z-index: 3;
}
/* Adresse als eigene Ebene (Absicherung gegen Zeichenfehler in Chrome, wie auf ibnu-musafir.com) */
.header-domain {
  will-change: opacity;
}
.header-domain:hover {
  opacity: 0.80;
}

/* Navigation: „Braun wie ein Bucheinband“ (Nutzer 20.11.2026): warmes Braun mit feinem doppeltem Goldrand
   oben und unten, cremefarbene Schrift; der aktive Punkt als goldene Fläche, Symbole in runden Knöpfen. */
.main-nav {
  background-color: #5f3d1b;
  background-image: linear-gradient(#6a4520, #573716);
  box-shadow: inset 0 1px 0 #c9a25e, inset 0 -1px 0 #c9a25e,
    inset 0 3px 0 #573716, inset 0 4px 0 rgba(201, 162, 94, 0.45),
    inset 0 -3px 0 #573716, inset 0 -4px 0 rgba(201, 162, 94, 0.45);
  padding: 0 18px;
  gap: 4px;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f6ead2;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.25s;
}

.nav-menu-toggle:hover {
  background-color: rgba(246, 234, 210, 0.12);
}

.nav-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.nav-menu-container {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #f6ead2;
  text-decoration: none;
  margin: 6px 2px;
  padding: 4px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'KFGQPC Naskh', 'Palatino', Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: background-color 0.4s, color 0.4s;
}

.nav-link:hover {
  background-color: rgba(246, 234, 210, 0.12);
}

.nav-link.active {
  background-color: #c9a25e;
  color: #3b2410;
  text-shadow: none;
}

/* Neuigkeiten: am Ende des Menüs */
.nav-menu-container a.nav-link[href="/jadid.html"] {
  order: 99;
}

body.dark .nav-link.active {
  background-color: #b48d4c;
  color: #2c1b0c;
}

.spacer {
  flex: 1;
}

/* Main content */
.page-shell {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content {
  display: none;
  animation: fadeIn 1s ease-in;
}

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

/* Farben „Kirschrot“ (Nutzer 24.11.2026, Entwurf 3; vorher Petrol #9b1b30 wie ibnu-musafir.com): Überschriften
   #8e1f2f, Links #9b1b30 wie die Stichwörter; nachts #e07a88 */
.page-content h1,
.page-content h2 {
  color: #c9a25e;  /* helles Braun wie die Fläche des aktiven Menüpunkts (Nutzer 27.11.2026; zuvor #3b2410, davor Kirschrot #8e1f2f) */
}
.page-content h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.page-content p {
  margin-bottom: 22px;
  font-size: 1.8rem;
}

/* Zeilenabstand im Lesebereich der lateinschriftlichen und kyrillischen Seiten etwas enger (Nutzer 14.11.2026, 1,65;
   vorher 1,75 vom body); Arabisch behält seinen Abstand wegen der Vokalzeichen */
body:not([data-lang="ar"]) .page-content {
  line-height: 1.65;
}

.page-content ul {
  list-style: none;
  padding-right: 20px;
}

.page-content li {
  margin-bottom: 12px;
  padding: 14px;
  background-color: #fffdf8;
  border: 1px solid rgba(201, 162, 94, 0.6);
  border-radius: 3px;
}

.page-content address {
  font-style: normal;
  margin-top: 20px;
}

.page-content a {
  color: #1a4a8a;  /* Links blau wie üblich, etwas dunkler (Nutzer 27.11.2026; vorher Kirschrot #9b1b30) */
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

body[data-lang] .page-content .publication-date-note {
  margin: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #5c727a;
}

/* Arabic publication overview: its date note only. */
body[data-lang="ar"] #writings .publication-date-note {
  font-size: 1.51rem;
  line-height: 1.6;
}

/* Trennstriche (Daten, Links, nach der Seitenzahl) als feine gezeichnete Linie, in allen Zeilen gleich hoch und
   senkrecht mittig, statt des Zeichens „|“, das je Schriftgröße verschieden lang war (Nutzer 07.11.2026) */
.page-content {
  --strich-hoehe: 0.85rem;
  --strich-farbe: #c4b08a;
}
body[data-lang="ar"] .page-content {
  --strich-hoehe: 1.05rem;
}
body.dark .page-content {
  --strich-farbe: #6f5a36;
}

.support-list {
  list-style: disc !important;
  padding-left: 28px;
  margin-bottom: 0;
}
body[data-lang="ar"] .support-list {
  padding-left: 0;
  padding-right: 28px;
}
.support-list + .support-list {
  margin-top: 20px;
}
.support-list li {
  background: none;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin-bottom: 10px;
  border-radius: 0;
  font-size: 1.3rem;
  line-height: 1.65;
}

.support-thanks {
  text-align: center;
  color: #c9a25e;  /* wie die Überschriften (Nutzer 27.11.2026; vorher #7b1300) */
  font-weight: 700;
  margin-top: 28px;
  font-size: 1.3rem;
}
body.dark .support-thanks {
  color: #d9b46a;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 1199px) {
      .nav-link {
    font-size: 1.35rem;
    padding: 4px 18px;
  }

  .page-shell {
    padding: 30px 16px;
  }
}

@media (max-width: 1199px) {
  .main-nav {
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    min-height: 44px;
  }

  .nav-link {
    width: auto;
    text-align: center;
    padding: 4px 14px;
  }

      .page-shell {
    padding: 22px 12px;
  }

  .page-content h2 {
    font-size: 2.4rem;
  }

  .page-content p,
  .page-content li {
    font-size: 1.55rem;
  }

  .page-content ul {
    padding-right: 0;
    padding-left: 0;
  }

  .site-footer {
    padding: 14px 12px;
    font-size: 0.6rem;
  }
}

@media (max-width: 860px) {  /* Hamburger bis 860 px (27.11.2026: sieben Menüpunkte, «سَاهِمْ مَعَنَا» länger; vorher 760) */
  .main-nav {
    flex-direction: row;
    justify-content: flex-start;
    gap: 3px;
    padding: 0 6px;
    flex-wrap: nowrap;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .spacer {
    display: none;
  }

  .nav-menu-toggle,
.contact-toggle,
.search-toggle,
.darkmode-toggle {
    flex: 0 0 auto;
  }

  .nav-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    padding: 8px;
  }

  .nav-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #573716;
    flex-direction: column;
    width: 100%;
    padding: 6px 12px;
    border-bottom: 1px solid #c9a25e;
    box-shadow: 0 6px 12px rgba(40, 20, 0, 0.25);
    z-index: 99;
  }

  body.dark .nav-menu-container {
    background-color: #2c1b0c;
    border-bottom-color: #8f7442;
  }

  .nav-menu-container.open {
    display: flex;
  }

  .nav-menu-container .nav-link {
    width: 100%;
    margin: 2px 0;
    text-align: center;
    padding: 6px 8px;
    white-space: normal;
  }

  body[data-lang="ar"] .nav-menu-container {
    text-align: right;
  }

  .contact-toggle,
.darkmode-toggle {
    padding-left: 7px;
    padding-right: 7px;
  }

  .search-toggle {
    padding-left: 5px;
    padding-right: 5px;
  }

}

@media (max-width: 480px) {
  .mobile-break {
    display: inline;
  }

  .hero {
    aspect-ratio: 4 / 1;
  }

  .hero-schriftzug {
    height: 62%;
    max-width: 84%;
    top: 44%;
  }

  .page-content address {
    font-size: 1.4rem;
  }

  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-content li {
    padding: 12px;
  }

      .nav-link {
    font-size: 1.15rem;
    padding: 4px 12px;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 6px 20px;
  min-height: 2rem;
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  line-height: 1.25;
  /* Lederband wie die Menüleiste (Nutzer 24.11.2026, Entwurf 1; vorher weiß wie ibnu-musafir.com): doppelter
     Goldrand oben, cremefarbene Schrift; Kopf und Fuß rahmen die Seite wie ein Bucheinband */
  color: #e9d9b5;
  background-color: #573716;
  background-image: linear-gradient(#6a4520, #573716);
  border-top: 0;
  box-shadow: inset 0 1px 0 #c9a25e, inset 0 3px 0 #6a4520, inset 0 4px 0 rgba(201, 162, 94, 0.55);
  padding-top: 10px;
  padding-bottom: 8px;
}

/* Arabisch hat (anders als DE/EN, Zeile ~1324) noch keine eigene Groesse fuer
   .page-content li - fiel dadurch auf den unskalierten Basiswert zurueck und
   wirkte neben .page-content p (1.8rem) sichtbar kleiner. */
body[data-lang="ar"] .page-content li {
  font-size: 1.8rem;
}

details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #c87000;
  display: inline-block;
  padding: 4px 0;
}

summary:hover {
  opacity: 0.75;
}

details ol {
  margin-top: 8px;
  padding: 4px 2px;
  list-style: none;
  overflow: hidden;
  transition: max-height 1.2s ease;
}

details ol li::before {
  content: attr(data-num);
  font-weight: 700;
  min-width: 2.2em;
}

#unterrichte > ul > li {
  box-shadow: 0 0 14px rgba(0,0,0,0.38);
}

/* Einzeltitel im Inhaltsverzeichnis der Unterrichte ohne Schatten (Nutzer 25.10.2026); die Box bleibt
   durch eine feine graue Kante sichtbar, weil sie sonst weiß auf der weißen Karte verschwände. */
#unterrichte details ol li {
  box-shadow: none;
  border: 1px solid #d6d6d6;
}

body.dark #unterrichte details ol li {
  border-color: #3a3226;
}

#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 34px;
  background-color: #fff;
  color: #666;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0px 3px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, box-shadow 0.25s;
  z-index: 500;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Dark mode transitions */
body {
  transition: background-color 2s ease, color 2s ease;
}
.content-box,
.page-content li,
details ol li,
#scroll-top {
  transition: background-color 2s ease, color 2s ease, box-shadow 2s ease;
}
.site-footer {
  transition: background-color 2s ease, color 2s ease, border-color 2s ease;
}
.page-content h2,
.page-content a,
summary {
  transition: color 2s ease;
}
/* Hover von summary (opacity) sanft ein- und ausblenden statt schlagartig */
summary {
  transition: color 2s ease, opacity 0.4s ease;
}
.main-nav {
  transition: background-color 2s ease;
}

/* Header icon buttons */
.contact-toggle,
.darkmode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  position: relative;
  background: none;
  border: none;
  color: #f6ead2;
  padding: 0 8px;
  cursor: pointer;
  text-decoration: none;
}
.contact-toggle::before,
.darkmode-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(201, 162, 94, 0.7);
  background-color: transparent;
  border-radius: 50%;
  transition: background-color 0.25s;
  pointer-events: none;
}
.contact-toggle:hover::before,
.contact-toggle.active::before,
.darkmode-toggle:hover::before {
  background-color: rgba(246, 234, 210, 0.14);
}
.icon-sun { display: none; }
body.dark .icon-moon { display: none; }
body.dark .icon-sun { display: block; }

/* Kästen als Karteikarten (Nutzer 24.11.2026, Entwurf 2; vorher weiß mit grauem Schatten wie ibnu-musafir.com):
   cremefarben, dünner Goldrand, ohne Schatten; ebenso die Listenpunkte und die Treffer der Suche */
.content-box {
  background: #fffdf8;
  border: 1px solid rgba(201, 162, 94, 0.6);
  border-radius: 3px;
  padding: 24px 28px;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Dark mode */
body.dark {
  color-scheme: dark;
  color: #d8d2c8;
  /* warmes Dunkelbraun wie Leder bei Nacht (Nutzer 24.11.2026; vorher neutrales Grau #181818 wie ibnu-musafir.com) */
  background-color: #1a1611;
  background-image: none;
}
body.dark .content-box {
  background: #221e18;
  border-color: rgba(143, 116, 66, 0.55);
}
body.dark .main-nav {
  background-color: #33210f;
  background-image: linear-gradient(#3a2512, #2c1b0c);
  box-shadow: inset 0 1px 0 #8f7442, inset 0 -1px 0 #8f7442,
    inset 0 3px 0 #2c1b0c, inset 0 4px 0 rgba(143, 116, 66, 0.45),
    inset 0 -3px 0 #2c1b0c, inset 0 -4px 0 rgba(143, 116, 66, 0.45);
}
body.dark .nav-menu-toggle,
body.dark .nav-link,
body.dark .contact-toggle,
body.dark .darkmode-toggle,
body.dark .search-toggle {
  color: #e8dcc4;
}

body.dark .page-content h1,
body.dark .page-content h2 {
  color: #d9b46a;  /* nachts Gold wie der aktive Menüpunkt (vorher #e07a88) */
}

body.dark .page-content li {
  background-color: #221e18;
  border-color: rgba(143, 116, 66, 0.55);
}

body.dark body.dark body.dark .page-content a {
  color: #8fb8e8;
}

/* Dezente Angaben (Erscheinen, Hinweise) im Nachtmodus etwas heller, damit sie lesbar bleiben. */
body.dark .page-content .publication-date-note {
  color: #8ea2aa;
}

body.dark .site-footer {
  background-color: #2c1b0c;
  background-image: linear-gradient(#3a2512, #2c1b0c);
  box-shadow: inset 0 1px 0 #8f7442, inset 0 3px 0 #3a2512, inset 0 4px 0 rgba(143, 116, 66, 0.45);
  color: #b9a684;
}
.site-footer a {
  color: #f6ead2;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
body.dark .site-footer a {
  color: #e8dcc4;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  min-width: 0;
}
.site-footer > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Fuß: „© 2004–2026 Name“ statt Domain und Jahr (Nutzer 12.11.2026): Die Jahre beziehen sich auf die Inhalte
   des Verfassers, nicht auf die Domain (die besteht erst seit 2026, siehe Kasten auf den Startseiten) */
.site-footer .footer-year,
.site-footer .footer-name {
  white-space: nowrap;
}
body[data-lang="ar"] .site-footer {
  font-family: 'KFGQPC Naskh', 'Palatino', Arial, sans-serif;
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .content-box {
    padding: 20px 18px;
  }

  .site-footer {
    justify-content: center;
    padding: 8px 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 6px 14px;
  }
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 8px;
  padding: 0;
  border: 1px solid rgba(201, 162, 94, 0.7);
  border-radius: 50%;
  color: #f6ead2;
  transition: background 0.2s;
}
.search-toggle:hover {
  background: rgba(246, 234, 210, 0.14);
}

.search-result-title { font-weight: 600; font-size: 0.92rem; }

.full-search-form {
  display: flex;
  gap: 0;
  margin: 18px 0 12px;
}
/* Suchfeld „Leder wie die Leiste“ (Nutzer 24.11.2026, Entwurf 4; vorher rot wie ibnu-musafir.com): Feld hell mit
   feinem Goldrand, der Knopf hängt daran, in Leder mit doppeltem Goldrand wie die Menüleiste, Wort und Lupe (SVG im HTML) */
.full-search-input {
  min-width: 0;
  flex: 1;
  border: 1px solid #c9a25e;
  border-inline-end: 0;
  border-radius: 0 6px 6px 0;
  padding: 10px 16px;
  background: #fffdf8;
  color: #3a2c1c;
  font: inherit;
}
.full-search-input:focus {
  outline: none;
  border-color: #8a5a1c;
  box-shadow: inset 0 0 0 1px rgba(138, 90, 28, 0.25);
}
.full-search-input::placeholder { color: #a8957a; }
/* getippte Beispiele: eigene Anzeige über dem Feld, das Wort rötlich (Nutzer 02.12.2026; script.js, beispieleZeigen) */
.full-search-input.mit-beispiel::placeholder { color: transparent; }
.such-beispiel { position: absolute; box-sizing: border-box; display: flex; align-items: center; overflow: hidden;
  white-space: pre; pointer-events: none; color: #a8957a; direction: rtl; }
.such-beispiel[hidden] { display: none; }
.such-beispiel-wort { color: #b0413e; }
body.dark .such-beispiel-wort { color: #e07a88; }
.full-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 14px; height: 14px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a1c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.full-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px 0 0 6px;
  padding: 6px 22px 10px;
  background: linear-gradient(#6a4520, #573716);
  box-shadow: inset 0 0 0 1px #c9a25e, inset 0 0 0 3px #573716, inset 0 0 0 4px rgba(201, 162, 94, 0.5);
  color: #f6ead2;
  font: inherit;
  font-size: 1.3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: filter 0.2s;
}
.full-search-submit:hover { filter: brightness(1.15); }
.full-search-submit svg { width: 19px; height: 19px; margin-top: 4px; flex-shrink: 0; }
.full-search-suggestions {
  margin: -4px 0 12px;
  border: 1px solid #c9a25e;
  border-radius: 6px;
  overflow: hidden;
  background: #fffdf8;
}

.full-search-help {
  margin: 0 0 14px;
  padding: 10px 12px;
  /* Kante auf der Textanfangsseite: links in DE/EN/BS, rechts im Arabischen */
  border-inline-start: 3px solid #c9a25e;
  border-radius: 0;
  border-start-end-radius: 5px;
  border-end-end-radius: 5px;
  background: rgba(201, 162, 94, 0.1);
  color: #7a6548;
  font-size: 0.82rem;
}
.full-search-help summary {
  color: #6a4520;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
/* Kleines Dreieck nach unten zeigt, dass die Anleitung aufklappbar ist; geöffnet zeigt es nach oben (Nutzer 25.10.2026).
   Mit JavaScript (.help-js) dreht es sich schon beim Start des Zuklappens (.help-open, gesetzt in script.js). */
.full-search-help summary::after {
  content: "";
  display: inline-block;
  margin-inline-start: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: 0.15em;
  transition: transform 0.6s ease;
}
.full-search-help[open]:not(.help-js) summary::after,
.full-search-help.help-open summary::after { transform: rotate(180deg); }
/* Abstand zur Überschrift als Innenabstand des Inhalts, damit er beim Auf- und Zuklappen mitläuft */
.full-search-help-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  padding-top: 8px;
  overflow: hidden;
}
.full-search-help-content span {
  position: relative;
  padding-inline-start: 10px;
}
.full-search-help-content span::before {
  content: '•';
  position: absolute;
  inset-inline-start: 0;
  color: #c9a25e;
}
.full-search-help code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(201, 162, 94, 0.15);
  color: inherit;
  font: inherit;
}
.full-search-status {
  margin: 0 0 10px;
  color: #666;
  scroll-margin-top: 66px;
}

.full-search-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.full-search-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e1e1e1;
  border-radius: 7px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.full-search-result:hover {
  border-color: #7b1300;
  color: #7b1300;
}
body.dark .full-search-result {
  border-color: #3a3226;
  background: #1e1a14;
  color: #d2ccc3;
}
body.dark .full-search-input,
body.dark .full-search-suggestions {
  border-color: #8f7442;
  background: #1e1b16;
  color: #e8d3a6;
}
body.dark .full-search-submit {
  background: linear-gradient(#3a2512, #2c1b0c);
  box-shadow: inset 0 0 0 1px #8f7442, inset 0 0 0 3px #2c1b0c, inset 0 0 0 4px rgba(143, 116, 66, 0.45);
  color: #e8dcc4;
}
body.dark .full-search-status { color: #a9a29a; }

body.dark .full-search-help { border-color: #8f7442; background: rgba(143, 116, 66, 0.12); color: #b9a684; }
body.dark .full-search-help summary { color: #d9b46a; }
body.dark .full-search-help-content span::before { color: #d9b46a; }

body.dark .full-search-result:hover { border-color: #b97968; color: #e0a99a; }

@media (max-width: 480px) {
  .full-search-form { flex-direction: column; }
  .full-search-input { border-inline-end: 1px solid #c9a25e; border-radius: 6px; }
  .full-search-submit { border-radius: 6px; margin-top: 8px; }
}
.section-category {
  font-size: 0.97rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b1300;
  margin: 28px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
}
body.dark .section-category {
  color: #b97968;
  border-bottom-color: #3a3226;
}

mark.search-highlight {
  background: #ffe566;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  transition: background 2s ease;
}

body.dark mark.search-highlight { background: #7a5c00; }

/* Suchfeld auf den Startseiten */
.home-search { margin: 14px 0 6px; }
.home-search-help { margin: 0 0 18px; }
/* Geschlossen etwas flacher. Mit JavaScript hängt das an .help-open (wird schon beim Start des Auf- bzw.
   Zuklappens gesetzt) und läuft im selben Takt wie die Höhe mit, sonst sprang die Box um 8 px (25.10.2026). */
.home-search-help { transition: padding 0.9s cubic-bezier(0.33, 0, 0.2, 1); }
.home-search-help:not([open]):not(.help-js),
.home-search-help.help-js:not(.help-open) { padding-top: 6px; padding-bottom: 6px; }

body.dark details ol li {
  background: #221e18;
}
body.dark summary {
  color: #c28a4b;
}
body.dark .header-domain {
  color: #e8d3a6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}
body.dark #scroll-top {
  background-color: #221e18;
  color: #958e85;
}

/* Arabischer Text (z. B. in Fußnoten) behält seine Schriftart auch auf de/en-Seiten, wo body auf Palatino steht */
[lang="ar"] {
  font-family: 'KFGQPC Naskh', 'Palatino', Arial, sans-serif;
}

/* Beschreibungsseiten arabischer Werke: Sprungziele (Fußnoten, Kapitel, Abschnitte) nicht unter der Menüleiste */
.page-content :is(h2, h3, li, div)[id] {
  scroll-margin-top: 66px;
}

/* Lateinschriftliche Seiten (DE, EN, BS und künftige Sprachen) stehen überall linksbündig, auch die
   Volltexte (Nutzer 16.10.2026: Blocksatz getestet und verworfen – Browser verteilen nur zeilenweise,
   Bosnisch wird nicht getrennt, es blieben viele kleine Lücken). Arabisch behält seinen Blocksatz. */

/* Silbentrennung zurückhaltend: mindestens 3 Buchstaben vor und nach der Trennstelle,
   Wörter unter 7 Buchstaben werden nicht getrennt; ausgewogener Zeilenfall in Absätzen. */
body:not([data-lang="ar"]) .page-content {
  hyphenate-limit-chars: 7 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
}

/* Mehrzeilige Überschriften enger, wie schon in den Zusammenfassungen (1,25); sonst erbten sie den Zeilenabstand des
   Fließtexts (1,75) und wirkten am Handy wie getrennte Zeilen (Nutzer 10.11.2026). Arabisch bleibt (Taha Naskh braucht
   Raum für die Zeichen über und unter der Zeile); Überschriften mit eigener Zeilenhöhe behalten sie (:where). */
body:not([data-lang="ar"]) .page-content :where(h1, h2, h3) {
  line-height: 1.25;
  padding-block: 0.25em;  /* der weggefallene Raum ober- und unterhalb ((1,75 − 1,25) / 2): Abstand zu Text und Karten bleibt gleich */
}
/* Zwischenüberschriften gehören zum Text darunter: unten deutlich weniger Abstand als zwischen zwei Absätzen
   (Nutzer 10.11.2026; vorher etwa 41 px darunter gegenüber 38 px zwischen Absätzen am Handy). Nur einfache
   Überschriften ohne eigene Klasse, direkt im Seiteninhalt. */
body:not([data-lang="ar"]) section.page-content > :is(h2, h3):not([class]) {
  padding-bottom: 0;
  margin-bottom: 0.4em;
}
/* Seitenüberschriften am Handy etwas kleiner (32 statt 40 px, Nutzer 10.11.2026): lange Kapitelüberschriften
   brauchten bis zu acht Zeilen mit oft nur einem Wort; getrennt wird weiterhin nicht */
@media (max-width: 600px) {
  body:not([data-lang="ar"]) .page-content h1 {
    font-size: 32px;
  }
}

/* Rückmeldeformular auf den Kontaktseiten (Nutzer 11.11.2026): Formular ohne Pflicht-E-Mail, verschickt über
   /rueckmeldung.php, Verhalten in assets/js/rueckmeldung.js (ohne JavaScript ausgeblendet). Ruhig gehalten:
   feine Kanten, helle Felder auf dem Papier, Übergänge weich. */
.rueckmeldung-bereich {
  max-width: 760px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(196, 176, 138, 0.7);
  scroll-margin-top: 76px; /* Sprung über den Fußlink „Rückmeldung“: nicht unter der Menüleiste */
}
.page-content .rueckmeldung-bereich h3 {
  font-size: 1.6rem;
  color: #c9a25e;
  margin-bottom: 10px;
}
body[data-lang="ar"] .page-content .rueckmeldung-bereich h3 { font-size: 2rem; }
/* Unterstützungsseiten (Nutzer 11.11.2026): ein eigener Abschnitt nach „Weitere Möglichkeiten“, mit der h2 der
   Seite, ohne Trennlinie */
.rueckmeldung-bereich.im-text {
  margin: 36px 0 36px;
  padding-top: 0;
  border-top: 0;
}
.rueckmeldung { transition: opacity 0.4s ease; }
.rueckmeldung.ist-gesendet { opacity: 0; }
.page-content .rueckmeldung p.rueckmeldung-einleitung { margin-bottom: 18px; }
.rueckmeldung-feld {
  display: block;
  margin-bottom: 16px;
}
.rueckmeldung-beschriftung {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
  color: #444;
}
.rueckmeldung-freiwillig { color: #8a8278; }
.rueckmeldung-zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.rueckmeldung textarea,
.rueckmeldung input[type="text"],
.rueckmeldung input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #cdc3b1;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.rueckmeldung textarea {
  min-height: 9em;
  resize: vertical;
}
.rueckmeldung :is(textarea, input[type="text"], input[type="email"]):hover { border-color: #b4a68c; }
.rueckmeldung :is(textarea, input[type="text"], input[type="email"]):focus {
  border-color: #9b1b30;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 99, 132, 0.12);
}
.rueckmeldung ::placeholder { color: #aaa197; }
/* Honigtopf gegen Spam-Programme: für Menschen unsichtbar (nicht seitlich verschoben: im Arabischen würde die
   Seite sonst um 9999 px breiter) */
.rueckmeldung-honig {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.rueckmeldung-absenden {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.rueckmeldung-knopf {
  border: 0;
  border-radius: 4px;
  padding: 9px 26px;
  background: #182f45;  /* Tintenblau, etwas dunkler als der Entwurf #1f3a52 (Nutzer 27.11.2026; vorher Kirschrot #8e1f2f) */
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
.rueckmeldung-knopf:hover { background: #22405c; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.rueckmeldung-knopf:focus-visible { outline: 2px solid #c4b08a; outline-offset: 2px; }
.rueckmeldung-knopf:disabled { opacity: 0.6; cursor: default; }
.rueckmeldung-hinweis {
  flex: 1 1 260px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #8a8278;
}
.page-content .rueckmeldung .rueckmeldung-fehler,
.page-content .rueckmeldung-danke {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.page-content .rueckmeldung .rueckmeldung-fehler.ist-sichtbar,
.page-content .rueckmeldung-danke.ist-sichtbar { opacity: 1; }
.page-content .rueckmeldung .rueckmeldung-fehler {
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: #AB0E24;
}
.page-content .rueckmeldung-danke {
  padding: 16px 20px;
  background: rgba(155, 27, 48, 0.06);
  border-inline-start: 3px solid #9b1b30;
  outline: none;
}
.page-content .rueckmeldung-danke p { margin-bottom: 0; }
.page-content .rueckmeldung-danke p + p { margin-top: 8px; }
/* Arabisch: Taha Naskh braucht etwas mehr Größe */
body[data-lang="ar"] .rueckmeldung-beschriftung,
body[data-lang="ar"] .page-content .rueckmeldung .rueckmeldung-fehler { font-size: 1.3rem; }
body[data-lang="ar"] .rueckmeldung :is(textarea, input[type="text"]),
body[data-lang="ar"] .rueckmeldung-knopf { font-size: 1.3rem; }
body[data-lang="ar"] .rueckmeldung-hinweis { font-size: 1.15rem; }
body[data-lang="ar"] .rueckmeldung input[type="email"] { font-family: 'Palatino', Arial, sans-serif; text-align: left; }
body[data-lang="ar"] .rueckmeldung-knopf { padding: 6px 30px 10px; }
/* Nachtmodus */
body.dark .rueckmeldung-bereich { border-top-color: rgba(111, 90, 54, 0.8); }
body.dark .page-content .rueckmeldung-bereich h3 { color: #d9b46a; }
body.dark .rueckmeldung-beschriftung { color: #c9c2b7; }
body.dark .rueckmeldung-freiwillig,
body.dark .rueckmeldung-hinweis { color: #8f887f; }
body.dark .rueckmeldung :is(textarea, input[type="text"], input[type="email"]) {
  color: #d8d2c8;
  background: #1e1a14;
  border-color: #4a463f;
}
body.dark .rueckmeldung :is(textarea, input[type="text"], input[type="email"]):hover { border-color: #6a6358; }
body.dark .rueckmeldung :is(textarea, input[type="text"], input[type="email"]):focus {
  border-color: #e07a88;
  background: #221e18;
  box-shadow: 0 0 0 3px rgba(224, 122, 136, 0.15);
}
body.dark .rueckmeldung ::placeholder { color: #6f6a63; }
body.dark .rueckmeldung-knopf { background: #2c5072; color: #f0ebe3; }
body.dark .rueckmeldung-knopf:hover { background: #38608a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
body.dark .page-content .rueckmeldung .rueckmeldung-fehler { color: #e0615c; }
body.dark .page-content .rueckmeldung-danke {
  background: rgba(224, 122, 136, 0.08);
  border-inline-start-color: #e07a88;
}
@media (max-width: 600px) {
  .rueckmeldung-zeile { grid-template-columns: 1fr; }
  .rueckmeldung-bereich { margin-top: 32px; padding-top: 20px; }
  .rueckmeldung-knopf { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rueckmeldung,
  .rueckmeldung :is(textarea, input),
  .rueckmeldung-knopf,
  .page-content .rueckmeldung .rueckmeldung-fehler,
  .page-content .rueckmeldung-danke { transition: none; }
}

@media (max-width: 360px) {
  .contact-toggle,
.darkmode-toggle {
    padding-left: 5px;
    padding-right: 5px;
  }
  .search-toggle {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* ===== lisan-qadim.com (seit 20.11.2026) ===== */
/* nur für Vorleseprogramme und Suchmaschinen sichtbar */
.nur-vorlesen {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Startseite: nur das Suchfeld, mittig mit Luft darüber und darunter */
.startseite-suche {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 8vh, 90px) 0 clamp(40px, 14vh, 160px);
}
/* Hinweis zu Verfassern mit Abweichung in der ʿAqīdah, grau unter der Suche (Nutzer 02.12.2026; gleicher Text in tarif.html) */
body .page-content p.startseite-hinweis { margin: 28px 0 0; color: #8a8278; font-size: 1.1rem; line-height: 1.9; text-align: justify; }
body.dark .page-content p.startseite-hinweis { color: #8f877c; }
.startseite-suche .home-search .full-search-input {
  font-size: 1.25rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
/* al-Maʿājim (Nutzer 20.11.2026): schlichte Liste statt Karten; Bereiche (h3) groß, braun, mit goldenem Strich;
   darunter je Bereich „الكتب القديمة“ und „كتب المعاصرين“ (h4) */
.maajim-qism {
  margin: 34px 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid #c9a25e;
  color: #5a3a18;
  font-size: 2.2rem;
  font-weight: 700;
}
body.dark .maajim-qism { color: #e8d3a6; border-bottom-color: #8f7442; }
.maajim-zeit {
  margin: 18px 1.2em 4px 0;
  color: #8a5a1c;
  font-size: 1.65rem;
  font-weight: 700;
}
body.dark .maajim-zeit { color: #d9b46a; }
/* Werke eine Stufe tiefer als die Zeitgruppe, Zusätze (Begleitwerke, Hinweise) noch eine Stufe tiefer */
.maajim-liste {
  list-style: none;
  margin: 0 2.4em 10px 0;
  padding: 0;
}
.page-content .maajim-liste .muajam {
  margin: 0;
  padding: 8px 0;
  font-size: 1.4rem;
  line-height: 1.7;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid rgba(90, 58, 24, 0.12);
}
body.dark .page-content .maajim-liste .muajam { background: none; box-shadow: none; border-bottom-color: rgba(232, 211, 166, 0.1); }
.page-content .maajim-liste .muajam:last-child { border-bottom: 0; }
.muajam-titel { font-weight: 700; }
.muajam-verfasser { color: #5a4630; }
body.dark .muajam-verfasser { color: #b8aa96; }
/* Jahre kirschrot, samt Klammer */
.muajam-tod { color: #9b1b30; white-space: nowrap; }
body.dark .muajam-tod { color: #e07a88; }
.muajam-unter {
  list-style: none;
  margin: 2px 1.6em 0 0;
  padding: 0;
}
.page-content .maajim-liste .muajam-unter li {
  margin: 0;
  padding: 1px 0;
  font-size: 0.85em;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.dark .page-content .maajim-liste .muajam-unter li { background: none; box-shadow: none; }
.page-content .muajam-unter .muajam-titel { font-weight: 600; }
.page-content .maajim-liste .muajam-unter li.muajam-hinweis { color: #807a73; }
@media (max-width: 480px) {
  .maajim-zeit { margin-right: 0.6em; }
  .maajim-liste { margin-right: 1.2em; }
  .muajam-unter { margin-right: 1em; }
}

/* Fuß: Vermerk zur technischen Umsetzung in derselben Zeile, in der Mitte (Nutzer 20.11.2026) */
.site-footer .footer-copy,
.site-footer .footer-links {
  flex: 1 1 0;
}
.site-footer .footer-tanfidh {
  flex: 0 0 auto;
  text-align: center;
  font-size: 0.9em;
  opacity: 0.85;
}
/* das M von Mateen links vom Namen (Nutzer 02.12.2026; Kopie von mateen-webtech material/bilder/mateen-logo/mateen-zeichen.svg) */
.site-footer .footer-tanfidh img.mateen-zeichen {
  display: inline-block;
  width: auto;
  height: 1.3em;
  margin-right: 0.45em;
  vertical-align: -0.3em;
}
@media (max-width: 480px) {
  .site-footer .footer-copy,
  .site-footer .footer-links,
  .site-footer .footer-tanfidh {
    flex-basis: 100%;
  }
}

/* ---------- Bücher und Fragen (21.11.2026) ----------
   Farben der Auszeichnung: Stichwort kirschrot (wie die Jahre in al-Maʿājim), Ableitungen heller,
   gerügte Form rostbraun mit Punktlinie, richtige Form grün, Verse petrol, Ḥadīth braun, Namen zurückhaltend. */
.w-k { color: #9b1b30; font-weight: 700; }
.w-d { color: #b8546a; }
.w-x { color: #a3501a; text-decoration: underline dotted rgba(163, 80, 26, 0.6); text-underline-offset: 0.35em; }
.w-r { color: #2d6a3e; font-weight: 700; }
.w-q { color: #1f6a63; }
.w-ref { color: #807a73; font-size: 0.78em; }
.w-h { color: #7a5520; }
.w-n { color: #4a5f7a; }
body.dark .w-k { color: #e07a88; }
body.dark .w-d { color: #d99aa6; }
body.dark .w-x { color: #e0955e; text-decoration-color: rgba(224, 149, 94, 0.6); }
body.dark .w-r { color: #8fcf9c; }
body.dark .w-q { color: #79c2b8; }
body.dark .w-h { color: #d9b46a; }
body.dark .w-n { color: #9fb4d0; }
.bayt { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2.2em; margin: 0.5em 0; }
.shatr { display: inline-block; }
.safha {
  display: inline-block; margin: 0 0.3em; padding: 0 0.35em; border: 1px solid #c9a25e; border-radius: 3px;
  color: #8a5a1c; font-size: 0.62em; line-height: 1.5; vertical-align: 0.35em; user-select: none;
}
body.dark .safha { color: #d9b46a; border-color: #8f7442; }

.kasten-text p { font-size: 1.45rem; line-height: 2.05; margin: 0 0 0.6em; text-align: justify; }

.frage-titel { color: #5a3a18; font-size: 2.2rem; line-height: 1.6; }
body.dark .frage-titel { color: #e8d3a6; }
.antwort { margin: 10px 0 18px; padding: 14px 18px; border-right: 4px solid #c9a25e; background: rgba(201, 162, 94, 0.1); border-radius: 4px; }
.antwort p { margin: 0; font-size: 1.5rem; line-height: 1.9; }
.stufe { display: inline-block; margin-bottom: 6px; padding: 0 12px; border-radius: 12px; background: #6a4520; color: #f6ead2; font-size: 1.1rem; font-weight: 700; }
.stufe.klein { margin: 0 0.4em; font-size: 0.85rem; }
.nebenformen { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #807a73; font-size: 1.1rem; }
.frage-seite h2 { color: #8a5a1c; font-size: 1.7rem; margin: 28px 0 10px; }
body.dark .frage-seite h2 { color: #d9b46a; }
.zusammenfassung p, .khulasa { font-size: 1.45rem; line-height: 1.95; }
.kasten { margin: 0 0 16px; padding: 14px 18px; border: 1px solid rgba(201, 162, 94, 0.55); border-radius: 6px; background: #fffdf8; }
body.dark .kasten { background: #232019; border-color: rgba(143, 116, 66, 0.6); }
.kasten-kopf { font-size: 1.3rem; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(201, 162, 94, 0.35); }
.haltung { float: left; padding: 0 10px; border-radius: 10px; font-size: 1rem; border: 1px solid currentColor; }
.haltung.mana { color: #a3501a; }
.haltung.jawaz { color: #2d6a3e; }
.haltung.tafsil { color: #4a5f7a; }
.kasten-fuss { margin-top: 6px; color: #807a73; font-size: 1.05rem; }
.kasten-hinweis { color: #807a73; font-size: 1rem; margin: 0; }
.page-content .verwandt li, .page-content .fragen-liste li { background: none; box-shadow: none; border: 0; padding: 4px 0; margin: 0; font-size: 1.35rem; }
body.dark .page-content .verwandt li, body.dark .page-content .fragen-liste li { background: none; box-shadow: none; }
.fragen-liste { list-style: none; padding: 0; margin: 0 1.2em 0 0; }
/* Masāʾil als Links in Kupferbraun statt im Blau der übrigen Links (Nutzer 02.12.2026, Entwurf B):
   Liste «المسائل», Seiten der Bücher, Fihris, «مسائل أخرى», Titel der Suchtreffer */
.page-content .fragen-liste a, .page-content .verwandt a, .page-content .fihris-alfaz a { color: #9c4a1f; }
body.dark .page-content .fragen-liste a, body.dark .page-content .verwandt a, body.dark .page-content .fihris-alfaz a { color: #e8a873; }
@media (max-width: 480px) {
  .kasten-text p { text-align: right; font-size: 1.3rem; }
  .bayt { gap: 0; flex-direction: column; align-items: center; }
  .haltung { float: none; display: inline-block; }
}

/* Koranverse im Rasm des Muṣḥaf (21.11.2026): Ḥafṣ in der Schrift des King-Fahd-Komplexes (0.18); zitiert der
   Verfasser eine andere Lesart, Text und Schrift der Riwāya (Taškīl-Regel 3a), Hinweis klein dahinter */
@font-face { font-family: 'hafs18'; src: url('../fonts/hafs18.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'doori9'; src: url('../fonts/doori9.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'shouba8'; src: url('../fonts/shouba8.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'warsh10'; src: url('../fonts/warsh10.woff2') format('woff2'); font-display: swap; }
.w-q { font-family: 'hafs18', 'KFGQPC Naskh', serif; font-size: 1.08em; }
.w-q.r-doori { font-family: 'doori9', 'hafs18', serif; }
.w-q.r-shouba { font-family: 'shouba8', 'hafs18', serif; }
.w-q.r-warsh { font-family: 'warsh10', 'hafs18', serif; }
.w-q.r-imlai { font-family: 'KFGQPC Naskh', serif; font-size: 1em; }
.w-q .safha { font-family: 'KFGQPC Naskh', serif; }
.qiraa-anm { display: block; margin: 2px 0 6px; color: #807a73; font-size: 0.72em; line-height: 1.7; }

/* Knopf «نسخ الرابط» auf den Fragenseiten */
.link-kopieren {
  display: block; margin: 0 0 4px; padding: 2px 14px; border: 1px solid #c9a25e; border-radius: 14px; background: none;
  color: #8a5a1c; font-family: inherit; font-size: 1.05rem; cursor: pointer;
}
.link-kopieren:hover { background: rgba(201, 162, 94, 0.14); }
.link-kopieren.kopiert { color: #2d6a3e; border-color: #2d6a3e; }
body.dark .link-kopieren { color: #d9b46a; border-color: #8f7442; }

/* Suche über die Stichwörter (21.11.2026): Vorschläge beim Tippen, Überschrift „من الجذر نفسه“ */
.full-search-suggestions[hidden] { display: none; }
.search-suggestion {
  display: block; padding: 8px 14px; color: inherit; text-decoration: none; font-size: 1.15rem;
  border-bottom: 1px solid rgba(90, 58, 24, 0.12);
}
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover, .search-suggestion:focus { background: rgba(201, 162, 94, 0.14); }
.search-root-heading { margin: 10px 0 -8px; color: #8a5a1c; font-size: 1.3rem; }
body.dark .search-root-heading { color: #d9b46a; }
body.dark .search-suggestion { border-bottom-color: rgba(232, 211, 166, 0.1); }

/* Treffer der Suche (Nutzer, 21.11.2026): die Frage groß und kirschrot-braun, Rahmen braun und kräftiger,
   Antworttext in Textfarbe (nicht in Linkblau) */
.page-content a.full-search-result {
  border: 1px solid rgba(201, 162, 94, 0.75);
  border-radius: 3px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
  background: #fffdf8;
}
.page-content a.full-search-result:hover { border-color: #8a5a1c; box-shadow: 0 2px 8px rgba(90, 58, 24, 0.12); text-decoration: none; }
.full-search-result .search-result-title { color: #9c4a1f; font-size: 1.55rem; font-weight: 700; line-height: 1.6; }
.full-search-result .search-result-title .stufe { font-size: 0.6em; vertical-align: 0.25em; }
.full-search-result .full-search-snippet { font-size: 1.2rem; line-height: 1.8; }
body.dark .page-content a.full-search-result { border-color: rgba(143, 116, 66, 0.55); background: #221e18; color: #d8d2c8; }
body.dark .page-content a.full-search-result:hover { border-color: #e07a88; }
body.dark .full-search-result .search-result-title { color: #e8a873; }
.full-search-status { scroll-margin-top: 70px; }

/* Fragenseite ohne eigenes Urteil (Nutzer, 21.11.2026): kurzer Text, darunter das Meinungsbild aus den Kästen */
.frage-seite .kurz p { font-size: 1.5rem; line-height: 1.95; margin: 6px 0 14px; }
.meinungsbild { margin: 0 0 18px; padding: 10px 16px; border-right: 4px solid #c9a25e; background: rgba(201, 162, 94, 0.1); }
.frage-seite .meinungsbild h2 { margin: 0 0 4px; font-size: 1.3rem; }
.meinung-bezug { color: #5a4630; font-weight: 400; }
.meinungsbild ul { list-style: none; margin: 0; padding: 0; }
.page-content .meinungsbild li { background: none; box-shadow: none; border: 0; margin: 0; padding: 2px 0; font-size: 1.3rem; line-height: 1.8; }
.meinung-art { font-weight: 700; }
.meinung-art.mana { color: #a3501a; }
.meinung-art.jawaz { color: #2d6a3e; }
.meinung-art.tafsil { color: #4a5f7a; }
.meinung-kurz { margin-right: 0.6em; color: #807a73; font-size: 0.6em; font-weight: 400; white-space: nowrap; }
body.dark .meinungsbild { background: rgba(143, 116, 66, 0.15); }
body.dark .page-content .meinungsbild li { background: none; box-shadow: none; }
body.dark .meinung-bezug { color: #b8aa96; }
body.dark .meinung-art.mana { color: #e0955e; }
body.dark .meinung-art.jawaz { color: #8fcf9c; }
body.dark .meinung-art.tafsil { color: #9fb4d0; }

/* Fragenliste: nach Themen und Fihris al-alfāẓ */
/* Themen und Fihris je eine Seite (Nutzer 27.11.2026): Hinweis auf die andere Seite; im Fihris bleibt die
   Buchstabenleiste beim Scrollen unter der Menüleiste stehen */
.seiten-verweis { margin: -4px 0 14px; color: #6f675d; font-size: 1.1rem; }
body.dark .seiten-verweis { color: #b3a894; }
.fihris-seite .fihris-nav { position: sticky; top: var(--leiste, 56px); z-index: 5; margin: 0 0 6px; padding: 6px 4px;
  background: #fffdf8; border-bottom: 1px solid #e3d3b1; }
body.dark .fihris-seite .fihris-nav { background: #1a1611; border-color: #4a3d28; }
.fihris-seite .fihris-buchstabe { scroll-margin-top: calc(var(--leiste, 56px) + var(--buchstaben, 60px) + 8px); }
/* am Handy eine Zeile zum Wischen statt vier Zeilen, die den halben Bildschirm decken */
@media (max-width: 760px) {
  .fihris-seite .fihris-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fihris-seite .fihris-nav::-webkit-scrollbar { display: none; }
}
/* Themenliste: zwei Spalten enger beisammen, feiner Strich dazwischen, Links in Tintenblau (Nutzer 27.11.2026) */
.themen-nav { list-style: none; padding: 0; margin: 6px 1.2em 10px 0; display: grid; grid-auto-flow: column;
  grid-template-columns: max-content max-content; grid-template-rows: repeat(var(--zeilen, 4), auto); }
/* der Strich genau in der Mitte zwischen den Spalten: gleicher Abstand links und rechts davon */
.page-content .themen-nav li.spalte1 { padding-left: 1.6em; border-left: 1px solid rgba(201, 162, 94, 0.55); }
.page-content .themen-nav li.spalte2 { padding-right: 1.6em; }
@media (max-width: 600px) {
  .themen-nav { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
  .page-content .themen-nav li.spalte1 { padding-left: 0; border-left: 0; }
  .page-content .themen-nav li.spalte2 { padding-right: 0; }
}
.page-content .themen-nav a { color: #1a4a8a; }
body.dark .page-content .themen-nav a { color: #8fb8e8; }
body.dark .page-content .themen-nav li.spalte1 { border-left-color: rgba(143, 116, 66, 0.55); }
/* border-radius 0: sonst zeigen die runden Ecken der Karteikarten-li Lücken im Strich (Nutzer 02.12.2026: durchgehende Linie) */
.page-content .themen-nav li { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 2px 0; margin: 0; font-size: 1.25rem; }
.themen-nav .anzahl { color: #807a73; font-size: 0.85em; }
.fihris-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 1.35rem; }
.fihris-buchstabe { margin: 16px 0 4px; color: #9b1b30; font-size: 1.5rem; scroll-margin-top: 70px; }
.fihris-alfaz { list-style: none; padding: 0; margin: 0 1.2em 0 0; }
.page-content .fihris-alfaz li { background: none; box-shadow: none; border: 0; padding: 3px 0; margin: 0; font-size: 1.2rem; line-height: 1.8; }
.fihris-wort { font-weight: 700; margin-left: 0.5em; }
.masail .maajim-qism { scroll-margin-top: 70px; }
body.dark .page-content .themen-nav li, body.dark .page-content .fihris-alfaz li { background: none; box-shadow: none; }
body.dark .fihris-buchstabe { color: #e07a88; }

/* Kästen zugeklappt, Wiederholungen zusammengefasst (Muster, 21.11.2026) */
.kaesten-schalter { margin: 0 0 10px; text-align: left; }
.alle-kaesten, .kasten-zu { font: inherit; font-size: 1.05rem; padding: 2px 14px; border: 1px solid #c9a25e; border-radius: 14px; background: none; color: #6a4520; cursor: pointer; }
.kasten-gruppe { margin: 22px 0 10px; font-size: 1.35rem; padding-right: 10px; border-right: 4px solid #c9a25e; scroll-margin-top: 70px; }
.kasten-gruppe.mana { color: #a3501a; border-color: #a3501a; }
.kasten-gruppe.jawaz { color: #2d6a3e; border-color: #2d6a3e; }
.kasten-gruppe.tafsil { color: #4a5f7a; border-color: #4a5f7a; }
.kasten-klappe { padding: 0; scroll-margin-top: 80px; }
.kasten-klappe > summary { display: block; list-style: none; cursor: pointer; padding: 12px 18px; }
.kasten-klappe > summary::-webkit-details-marker { display: none; }
.kasten-klappe > summary .kasten-kopf { display: block; }
.kasten-vorschau { display: block; overflow: hidden; box-sizing: border-box; }
.kasten-klappe.ist-offen .kasten-vorschau { display: none; }
.kasten-kern { display: block; margin-top: 6px; font-size: 1.4rem; line-height: 2; }
.kasten-auf { display: inline-block; margin-top: 4px; font-size: 1rem; color: #8a5a1c; }
.kasten-auf::before { content: "▾ "; }
.kasten-zu::before { content: "▴ "; }
.kasten-inhalt { overflow: hidden; }
.kasten-innen { padding: 0 18px 12px; display: flow-root; }
.kasten-innen > .kasten-kopf { display: block; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(201, 162, 94, 0.35); }
.kasten-zu { margin-top: 8px; }
.kasten-verweis { margin: -8px 0 16px 0; margin-right: 28px; background: rgba(201, 162, 94, 0.06); }
.kasten-verweis > summary { padding: 0; }
.kasten-verweis .kasten-vorschau { padding: 6px 14px; }
.kasten-verweis .kasten-innen { padding-top: 12px; }
.kasten-wie-zeile { font-size: 1.15rem; color: #6f675e; margin-left: 0.6em; }
.kasten-verweis .kasten-auf { margin-top: 0; }
body.dark .alle-kaesten, body.dark .kasten-zu { color: #e8d3a6; }
body.dark .kasten-auf { color: #d9b77a; }
body.dark .kasten-wie-zeile { color: #a89f93; }
body.dark .kasten-gruppe.mana { color: #e0955e; border-color: #e0955e; }
body.dark .kasten-gruppe.jawaz { color: #8fcf9c; border-color: #8fcf9c; }
body.dark .kasten-gruppe.tafsil { color: #9fb4d0; border-color: #9fb4d0; }
.weitere-fragen { margin-top: 26px; padding-top: 6px; border-top: 1px solid rgba(201, 162, 94, 0.5); }
.weitere-fragen h3 { font-size: 1.2rem; margin: 12px 0 4px; color: #6a4520; }
body.dark .weitere-fragen h3 { color: #d9b77a; }

/* Fragenseite in der neuen Darstellung (Klasse frage-neu, Muster «سائر», Nutzer 25.11.2026): weniger Farben.
   Die Frage im Kasten hervorgehoben, das Meinungsbild grau mit schwarzen Namen; im Text nur noch die besprochenen
   Wörter rot (nicht fett, ohne Unterstreichung), sonst schwarz; «منعه/يمنع» rot, «أجازه/يجيز» grün;
   die Überschriften der Gruppen als ganze Zeile markiert; die weiteren Fragen als Karteikarten. */
.frage-neu .kurz { margin: 6px 0 16px; padding: 12px 18px; background: #fffdf8; border: 1px solid rgba(201, 162, 94, 0.6); border-right: 4px solid #c9a25e; border-radius: 6px; }
.frage-neu.frage-seite .kurz p { margin: 0; }
body.dark .frage-neu .kurz { background: #221e18; border-color: rgba(143, 116, 66, 0.55); border-right-color: #c9a25e; }
.frage-neu .meinungsbild { background: rgba(60, 50, 40, 0.05); border-right-color: #b3aca2; border-radius: 4px; }
body.dark .frage-neu .meinungsbild { background: rgba(255, 250, 240, 0.05); border-right-color: #6f675e; }
.frage-neu.frage-seite .meinungsbild h2 { color: #4a443d; }
body.dark .frage-neu.frage-seite .meinungsbild h2 { color: #c8c0b4; }
.frage-neu .meinung-bezug { color: inherit; }
.frage-neu.page-content .meinungsbild a { color: inherit; text-decoration: none; }
.frage-neu.page-content .meinungsbild a:hover { text-decoration: underline; }
.frage-neu .meinung-art.mana, .frage-neu .haltung.mana { color: #9b1b30; }
body.dark .frage-neu .meinung-art.mana, body.dark .frage-neu .haltung.mana { color: #e07a88; }
body.dark .frage-neu .haltung.jawaz { color: #8fcf9c; }
body.dark .frage-neu .haltung.tafsil { color: #9fb4d0; }
.frage-neu .w-k, .frage-neu .w-d, .frage-neu .w-x, .frage-neu .w-r { color: #9b1b30; font-weight: inherit; text-decoration: none; }
body.dark .frage-neu .w-k, body.dark .frage-neu .w-d, body.dark .frage-neu .w-x, body.dark .frage-neu .w-r { color: #e07a88; }
.frage-neu .kasten-klappe > summary { color: inherit; font-weight: 400; }
body.dark .frage-neu .kasten-klappe > summary { color: inherit; }
.frage-neu .kasten-kopf { font-weight: 700; }
.frage-neu .kasten-kopf .muajam-titel { color: #5a4630; }  /* wie der Verfasser (Nutzer, 25.11.2026) */
body.dark .frage-neu .kasten-kopf .muajam-titel { color: #b8aa96; }
.frage-neu .kasten-gruppe { padding: 6px 14px; border-right-width: 5px; border-radius: 4px; background: rgba(201, 162, 94, 0.12); }
.frage-neu .kasten-gruppe.mana { color: #9b1b30; border-color: #9b1b30; background: rgba(155, 27, 48, 0.07); }
.frage-neu .kasten-gruppe.jawaz { background: rgba(45, 106, 62, 0.08); }
.frage-neu .kasten-gruppe.tafsil { background: rgba(74, 95, 122, 0.08); }
body.dark .frage-neu .kasten-gruppe.mana { color: #e07a88; border-color: #e07a88; background: rgba(224, 122, 136, 0.1); }
body.dark .frage-neu .kasten-gruppe.jawaz { background: rgba(143, 207, 156, 0.1); }
body.dark .frage-neu .kasten-gruppe.tafsil { background: rgba(159, 180, 208, 0.1); }
.frage-neu .verwandt { list-style: none; margin: 0; padding: 0; }
.frage-neu.page-content .weitere-fragen .verwandt li { margin: 0 0 8px; padding: 8px 14px; background: #fffdf8; border: 1px solid rgba(201, 162, 94, 0.6); border-radius: 6px; }
body.dark .frage-neu.page-content .weitere-fragen .verwandt li { background: #221e18; border-color: rgba(143, 116, 66, 0.55); }
/* Zwischenüberschriften (نصوص أهل اللغة، مسائل أخرى) als Etikett, das nach links ausläuft (Nutzer, 25.11.2026) */
.frage-neu .abschnitt > h2, .frage-neu .weitere-fragen > h2 { font-size: 2rem; margin: 30px 0 12px; padding: 4px 16px; border-right: 3px solid #968870; color: #5f4b30; border-radius: 4px; background: linear-gradient(to left, rgba(150, 136, 112, 0.34), rgba(150, 136, 112, 0.11) 60%, rgba(150, 136, 112, 0) 100%); }
body.dark .frage-neu .abschnitt > h2, body.dark .frage-neu .weitere-fragen > h2 { background: linear-gradient(to left, rgba(190, 180, 160, 0.16), rgba(190, 180, 160, 0.05) 60%, rgba(190, 180, 160, 0) 100%); border-right-color: #8a7f6c; color: #cdbf9f; }
/* Abschnitt unter der Überschrift: der Goldstrich des Etiketts läuft in gleicher Breite rechts
   am Abschnitt hinab und blendet nach etwa 320 px aus (Nutzer, 25.11.2026) */
.frage-neu .abschnitt, .frage-neu .weitere-fragen { position: relative; margin-top: 30px; padding: 0 16px 6px 0; border-top: 0; }
.frage-neu .abschnitt::before, .frage-neu .weitere-fragen::before { content: ""; position: absolute; top: 0; right: 0; width: 3px; height: min(100%, 320px); border-top-right-radius: 3px; background: linear-gradient(to bottom, #968870, #968870 25%, rgba(150, 136, 112, 0)); }
body.dark .frage-neu .abschnitt::before, body.dark .frage-neu .weitere-fragen::before { background: linear-gradient(to bottom, #8a7f6c, #8a7f6c 25%, rgba(138, 127, 108, 0)); }
.frage-neu .abschnitt > h2, .frage-neu .weitere-fragen > h2 { margin: 0 -16px 14px 0; border-radius: 0 4px 0 0; }
/* Pfeil rechts vor dem Eintrag statt der Zeile «النّصّ كاملًا»; offen zeigt er nach oben (Nutzer, 25.11.2026) */
.kasten-pfeil { display: inline-block; width: 1em; margin-left: 0.35em; color: #8a5a1c; font-weight: 400; text-align: center; transition: transform 0.3s ease; }
.kasten-pfeil::before { content: "▾"; }
.kasten-klappe.ist-offen > summary .kasten-pfeil { transform: rotate(180deg); }
.kasten-verweis .kasten-vorschau .kasten-pfeil { font-size: 1.15rem; }
body.dark .kasten-pfeil { color: #d9b77a; }

/* Quellen (masadir.html, Nutzer 25.11.2026): oben die Bücher der Masāʾil als Karteikarten mit dem Feld «المسائل»
   (führt auf eine eigene Seite je Werk), darunter die übrigen Werke als schlichte Liste */
.quellen-kutub, .quellen-maraji { list-style: none; margin: 0 0 18px; padding: 0; }
.page-content .quellen-kutub li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; padding: 8px 14px; font-size: 1.3rem; }
.quellen-kutub .muajam-titel, .quellen-maraji .muajam-titel, .quelle-verfasser .muajam-titel { color: #5a4630; }
body.dark .quellen-kutub .muajam-titel, body.dark .quellen-maraji .muajam-titel { color: #b8aa96; }
.page-content a.quelle-masail { margin-right: auto; padding: 0 12px; border: 1px solid #c9a25e; border-radius: 14px; font-size: 1.05rem; white-space: nowrap; text-decoration: none; }
.page-content a.quelle-masail:hover { background: rgba(201, 162, 94, 0.15); }
.quelle-zahl { color: #807a73; }
.page-content .quellen-maraji li, body.dark .page-content .quellen-maraji li { background: none; box-shadow: none; border: 0; margin: 0; padding: 2px 0; font-size: 1.15rem; }
.quellen-maraji .muajam-titel { font-weight: 600; }
/* «مراجع أخرى» nach Fächern (Nutzer, 25.11.2026) */
.maraji-fann { margin: 26px 0 6px; color: #8a5a1c; font-size: 2rem; font-weight: 700; }
body.dark .maraji-fann { color: #d9b46a; }
.quelle-verfasser { font-size: 1.4rem; margin-top: -4px; }
/* Taʿlīqāt (Šurūḥ, Ḥawāšī …) eingerückt unter ihrem Grundwerk, mit Verzweigung (Nutzer, 25.11.2026) */
.page-content .quellen-kutub li.taaliq, .page-content .quellen-maraji li.taaliq { position: relative; overflow: visible; }
.page-content .quellen-kutub li.taaliq { margin-right: 34px; }
.page-content .quellen-maraji li.taaliq { margin-right: 26px; }
li.taaliq::before, li.taaliq:not(.taaliq-letzt)::after { content: ''; position: absolute; pointer-events: none; border-color: #b39a6c; border-style: solid; border-width: 0; }
.quellen-kutub li.taaliq::before { right: -22px; width: 16px; top: -9px; height: calc(50% + 9px); border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 8px; }
.quellen-kutub li.taaliq:not(.taaliq-letzt)::after { right: -22px; top: -9px; bottom: -9px; border-right-width: 1.5px; }
.quellen-maraji li.taaliq::before { right: -18px; width: 12px; top: -2px; height: calc(50% + 2px); border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 6px; }
.quellen-maraji li.taaliq:not(.taaliq-letzt)::after { right: -18px; top: -2px; bottom: -2px; border-right-width: 1.5px; }
body.dark li.taaliq::before, body.dark li.taaliq::after { border-color: #7d6a4c; }
.zurueck { margin: 0; font-size: 1.05rem; }
.zurueck a::before { content: "→ "; }
/* Zugeklappter Kasten ohne Kernsatz: nur der Kopf, ohne Trennlinie darunter */
.kasten-klappe > summary .kasten-kopf:has(+ .kasten-vorschau:empty) { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* Impressum: Logo von Mateen Webtech mit Vermerk (Nutzer 27.11.2026); am Tag die Fassung mit dunkler Wortmarke
   (logo-mateen-kupfer-v3-dunkel.svg), nachts das Kopflogo der Mateen-Website (logo-kopf.webp), beide aus dem Repo
   mateen-webtech kopiert */
.mateen-vermerk {
  margin: 0.4em 0 1.6em;  /* gleich unter der Zeile «إنشاء الموقع والتنفيذ التقنيّ» */
  text-align: center;
}
.mateen-logo {
  display: inline-block;
  line-height: 0;
}
.mateen-logo img {
  width: min(320px, 80vw);
  height: auto;
}
.mateen-logo-dunkel,
body.dark .mateen-logo-hell {
  display: none;
}
body.dark .mateen-logo-dunkel {
  display: inline;
}
.mateen-vermerk p {
  margin-top: 0.8em;
}
/* «تعريف بالمشروع»: statt des Logos die Chip-Animation von mateen-webtech.com, nur die Schleife ohne Laser
   (Nutzer 02.12.2026; Kopie von public/startseite/media/d-raster-loop.mp4, Mitte 1120 × 400 ausgeschnitten);
   der dunkle Grund ist ins Video eingebrannt, darum als Bildschirm-Karte mit runden Ecken und Goldrand */
/* Am Tag die helle Fassung mit durchsichtigem Grund (data-farbe blau/kupfer, _werkzeuge/mateen/chip_hell.py),
   nachts die dunkle als Bildschirm-Karte (Klasse .dunkel, gesetzt von script.js) */
.mateen-logo video.mateen-chip {
  display: block;
  width: min(560px, 92vw);
  height: auto;
  aspect-ratio: 1120 / 400;
  opacity: .999;  /* wie im Mateen-Repo bei jedem Video, das aus dem Bild scrollt (sonst weißes Blitzen in Brave) */
}
.mateen-logo video.mateen-chip.dunkel {
  border-radius: 10px;
  border: 2px solid #8a6a36;  /* am Tag kräftiger brauner Rahmen (Nutzer 02.12.2026: erst 3 px, dann etwas dünner; vorher 1px Gold, halb durchsichtig) */
  background: #0c0b1f;
  box-shadow: 0 0 0 1px #c9a25e, 0 4px 14px rgba(40, 25, 8, 0.3);
}
body.dark .mateen-logo video.mateen-chip.dunkel { border-width: 1px; border-color: rgba(143, 116, 66, 0.7); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
/* Hinweis unter dem Knopf (Nutzer 27.11.2026): sagt, wozu der Knopf gut ist (lesbarer Link statt %D8%… aus der Adresszeile) */
.page-content .link-kopieren-hinweis { margin: 2px 0 12px; color: #9a9184; font-size: 1rem; line-height: 1.5; }  /* kleiner, in [ ] (Nutzer 27.11.2026) */
body.dark .link-kopieren-hinweis { color: #9a907f; }

/* Schatten für die hellbraunen Überschriften (Nutzer 27.11.2026): enger dunkelbrauner Kern für die Lesbarkeit
   auf dem hellen Papier, dazu ein weicher Schein; nachts dunkel */
.page-content h1,
.page-content h2,
.page-content .rueckmeldung-bereich h3,
.support-thanks {
  text-shadow: 0 1px 1px rgba(59, 36, 16, 0.55), 0 2px 6px rgba(59, 36, 16, 0.22);
}
body.dark .page-content h1,
body.dark .page-content h2,
body.dark .page-content .rueckmeldung-bereich h3,
body.dark .support-thanks {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.45);
}
/* «المستجدّات»: Buchtitel hervorgehoben, wie die Werktitel in den Kästen (Nutzer 27.11.2026) */
.page-content a.akhbar-titel { color: #5a4630; font-weight: 700; text-decoration: none; }
.page-content a.akhbar-titel:hover { text-decoration: underline; }
body.dark .page-content a.akhbar-titel { color: #d9b46a; }
/* Adresse unter dem Logo von Mateen (Nutzer 27.11.2026) */
.page-content .mateen-vermerk p.mateen-adresse { margin-top: 0.4em; font-size: 1.2rem; }
/* Sprungziel Kasten (Nutzer 27.11.2026): knapp unter der Menüleiste, kurz golden hervorgehoben */
.frage-seite article.kasten { scroll-margin-top: 70px; }
.kasten-ziel { animation: kasten-ziel 2.4s ease-out; }
@keyframes kasten-ziel {
  0%, 35% { box-shadow: 0 0 0 3px rgba(201, 162, 94, 0.85), 0 0 18px rgba(201, 162, 94, 0.55); }
  100% { box-shadow: 0 0 0 3px rgba(201, 162, 94, 0), 0 0 18px rgba(201, 162, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .kasten-ziel { animation: none; } }

/* Seitentitel als h1 statt h2 (SEO, Nutzer 27.11.2026): sieht aus wie die frühere h2 */
.page-content h1.seitentitel { font-size: 3rem; margin: 0.83em 0 24px; transition: color 2s ease; }
@media (max-width: 1199px) { .page-content h1.seitentitel { font-size: 2.4rem; } }
