/* amuslim — Landing Page und Rechtstexte.
 *
 * Eine Datei für alle Sprachen. Die Seiten liegen unter / (Englisch), /de/
 * (Deutsch) und /ar/ (Arabisch, von rechts nach links) und binden sie als
 * /styles.css ein, wie bei jadwal (apps/jadwal/website/README.md). Seiten
 * werden deshalb nur mit logischen Angaben gesetzt (inline-start statt left);
 * test/website/website_test.dart lässt keine physische Seite durch.
 *
 * Farben aus dem Design-System des Neuaufbaus
 * (apps/amuslim/specs/neuaufbau/design-system.md §2.1): Gold ist Fläche mit
 * Tinte darauf, nie Schrift auf Weiß; Schrift auf der Markenfläche ist hell
 * (Owner 01.10.2026: „text bitte in normale color nicht in primarycolor“).
 * Die Wortmarke ist weiß und gold und steht deshalb nur auf der Markenfläche:
 * Kopf, Schluss und Fuß sind dunkel wie die Anmeldung der App (Owner 01.10.2026
 * zur Wahl zwischen dunklem und hellem Kopf: „1 passt so“).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Arabisch: Noto Naskh Arabic (OFL 1.1, Lizenz in fonts/OFL-NotoNaskhArabic.txt),
 * auf den Grundblock Arabisch zugeschnitten. Dieselbe Schrift wie in haki und in
 * der App (rules/rtl-scripts.md, design-system.md §3). Der unicode-range lässt
 * lateinische Zeichen in arabischem Text bei Inter (aMuslim, Adressen, Zahlen)
 * und hält die Datei von den englischen und deutschen Seiten fern.
 * size-adjust: Naskh zeichnet bei gleicher Größe kleiner als Inter (Zahnhöhe
 * 0,34 em gegen eine x-Höhe von 0,55 em, gemessen mit fontTools am 01.10.2026);
 * 112 % gleicht beide im selben Satz an, am Bild verglichen mit 100 und 118 %. */
@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-naskh-arabic-regular.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+204F;
  size-adjust: 112%;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-naskh-arabic-bold.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F, U+204F;
  size-adjust: 112%;
}

:root {
  --gold: #ffcd07;
  --gold-tinte: #7a5c00;
  --gold-blass: #fff0b3;
  --marke: #16140d;
  --marke-schrift: #ffffff;
  --marke-neben: rgba(255, 255, 255, 0.74);
  --marke-linie: rgba(255, 255, 255, 0.14);
  --tinte: #121614;
  --grau: #5b6460;
  --linie: #e6e7e5;
  --grund: #ffffff;
  --grund-seite: #f3f4f2;
  --radius: 16px;
  --radius-gross: 28px;
  --spalte: 1120px;
  --schrift: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--schrift);
  background: var(--grund);
  color: var(--tinte);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-tinte);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */

.kopf {
  background: var(--marke);
  color: var(--marke-schrift);
}

.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.kopfzeile .wortmarke {
  height: 34px;
  width: auto;
}

.kopfzeile nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.kopfzeile nav a {
  color: var(--marke-neben);
}

.kopfzeile nav a:hover {
  color: var(--marke-schrift);
  text-decoration: none;
}

.kopfzeile nav .sprachen {
  display: flex;
  gap: 8px;
}

.kopfzeile nav .sprache {
  border: 1px solid var(--marke-linie);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--marke-schrift);
}

/* ── Held ─────────────────────────────────────────────────────────────── */

.held {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: 56px 72px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--tinte);
  font-size: 14px;
  font-weight: 600;
}

.held h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.held p.unter {
  max-width: 34ch;
  font-size: 19px;
  color: var(--marke-neben);
}

.laeden {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.laeden img {
  height: 48px;
  width: auto;
}

.laeden-hinweis {
  margin-top: 12px;
  font-size: 14px;
  color: var(--marke-neben);
}

/* Telefon: Bild mit Rand, Rundung und Schatten. Die Bilder sind 390 × 844 dp. */
.telefon {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 44px;
  border: 10px solid #0b0b09;
  background: #0b0b09;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.telefon img {
  border-radius: 34px;
}

/* ── Abschnitte ───────────────────────────────────────────────────────── */

.abschnitt {
  padding: 96px 0;
}

.abschnitt.grau {
  background: var(--grund-seite);
}

.zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.zeile.bild-links .text {
  order: 2;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-tinte);
}

.abschnitt h2 {
  margin: 12px 0 20px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.punkte {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 17px;
  color: var(--grau);
}

.punkte li {
  position: relative;
  padding-inline-start: 30px;
}

.punkte li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121614' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ── Raster „Außerdem drin“ ───────────────────────────────────────────── */

.raster-kopf {
  text-align: center;
  margin-bottom: 40px;
}

.raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.karte {
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 24px;
}

.karte .symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-blass);
  margin-bottom: 16px;
}

.karte .symbol svg {
  width: 22px;
  height: 22px;
  stroke: var(--tinte);
}

.karte h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 6px;
}

.karte p {
  font-size: 15px;
  color: var(--grau);
}

/* ── Schluss und Fuß ──────────────────────────────────────────────────── */

.schluss {
  background: var(--marke);
  color: var(--marke-schrift);
  text-align: center;
  padding: 96px 0;
}

.schluss h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.schluss p {
  margin-top: 12px;
  color: var(--marke-neben);
  font-size: 18px;
}

.schluss .laeden {
  justify-content: center;
}

.fuss {
  background: var(--marke);
  color: var(--marke-neben);
  border-top: 1px solid var(--marke-linie);
  padding: 56px 0 40px;
  font-size: 15px;
}

.fuss-raster {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.fuss .wortmarke {
  height: 44px;
  width: auto;
}

.fuss h4 {
  color: var(--marke-schrift);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fuss ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.fuss a {
  color: var(--marke-neben);
}

.fuss a:hover {
  color: var(--marke-schrift);
}

.fuss .klein {
  margin-top: 40px;
  font-size: 13px;
}

/* ── Rechtstexte und 404 ──────────────────────────────────────────────── */
/* Gebaut von scripts/website/rechtstexte-bauen.py: derselbe Kopf und Fuß wie
 * die Startseite, dazwischen eine Textspalte. */

.rechtskopf {
  padding-block: 56px 8px;
}

.rechtskopf h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.rechtskopf .stand,
.rechtskopf .fassung {
  margin-top: 10px;
  font-size: 15px;
  color: var(--grau);
}

/* Englisch und Arabisch sind Übersetzungen; der Hinweis verweist auf das
 * deutsche Original. */
.rechtskopf .fassung {
  margin-top: 4px;
}

.rechtskopf .fassung a {
  text-decoration: underline;
}

.rechtstext {
  max-width: 740px;
  padding: 8px 0 96px;
  font-size: 17px;
}

.rechtstext h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.rechtstext p,
.rechtstext ul {
  margin: 0 0 14px;
}

.rechtstext ul {
  padding-inline-start: 22px;
}

.rechtstext li {
  margin-bottom: 6px;
}

.rechtstext a {
  text-decoration: underline;
}

.rechtstext .weg {
  margin: 4px 0 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--grund-seite);
  font-weight: 600;
}

.tabelle {
  margin: 8px 0 20px;
}

.tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tabelle th,
.tabelle td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--linie);
  text-align: start;
  vertical-align: top;
}

.tabelle th {
  background: var(--grund-seite);
  font-weight: 650;
}

.fehlerseite {
  padding-block: 96px;
  text-align: center;
}

.fehlerseite h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.fehlerseite p {
  margin-top: 12px;
  color: var(--grau);
}

/* ── Schmal ───────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .held,
  .zeile {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .zeile.bild-links .text {
    order: 0;
  }

  .held {
    padding-block: 32px 56px;
  }

  .kopfzeile nav a:not(.sprache) {
    display: none;
  }

  .abschnitt,
  .schluss {
    padding: 64px 0;
  }

  .raster {
    grid-template-columns: 1fr;
  }

  .fuss-raster {
    grid-template-columns: 1fr;
  }

  /* Tabellen der Rechtstexte: jede Zeile als Block, die Spaltenüberschrift
   * aus data-label vor jeder Zelle (scripts/website/rechtstexte-bauen.py). */
  .tabelle table,
  .tabelle tbody,
  .tabelle tr,
  .tabelle td {
    display: block;
    width: 100%;
  }

  .tabelle thead {
    display: none;
  }

  .tabelle tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--linie);
  }

  .tabelle td {
    padding: 3px 0;
    border: 0;
  }

  .tabelle td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 650;
    color: var(--grau);
  }
}

/* ── Arabisch ─────────────────────────────────────────────────────────── */
/* Die Seiten unter /ar/ tragen <html lang="ar" dir="rtl">. Die Richtung
 * spiegelt sich über die logischen Angaben oben (inline-start statt left).
 * Sperrsatz reißt verbundene Buchstaben auseinander, deshalb steht er für
 * Arabisch überall auf normal; Naskh braucht mehr Zeilenhöhe als Inter. */

:root:lang(ar) {
  --schrift: "Noto Naskh Arabic", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
}

html:lang(ar) * {
  letter-spacing: normal;
}

:lang(ar) h1,
:lang(ar) h2 {
  line-height: 1.4;
}
