/* jadwal — Landing Page.
 *
 * Eine Datei für beide Sprachen. Die Seiten liegen unter / (Englisch) und
 * /de/ (Deutsch) und binden sie beide als /styles.css ein — Dateinamen sind
 * in jeder Sprache dieselben, nur das Präfix wechselt (website/README.md).
 *
 * Farben aus lib/shared/theme/app_colors.dart, damit Seite und App dieselbe
 * Marke tragen: primary #E53935, primaryDark #C62828, textPrimary #212121.
 */

:root {
  --rot: #e53935;
  --rot-tief: #c62828;
  --rot-dunkel: #b71c1c;
  --rot-blass: #ffebee;
  --tinte: #1a1c20;
  --grau: #5b6068;
  --grau-hell: #8a9099;
  --linie: #e8e5e3;
  --grund: #ffffff;
  --grund-warm: #faf7f5;
  --gruen: #2e7d32;
  --blau: #1565c0;
  --radius: 16px;
  --radius-gross: 26px;
  --spalte: 1120px;
  --schrift: -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.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--rot-tief);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Kopfzeile ──────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--linie);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tinte);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.logo-arabisch {
  font-size: 1.05rem;
  color: var(--rot);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}

.nav-links > a {
  color: var(--grau);
  font-weight: 500;
}

.nav-links > a:hover {
  color: var(--tinte);
  text-decoration: none;
}

.sprachwahl {
  position: relative;
}

.sprachwahl > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grau);
  user-select: none;
}

.sprachwahl > summary::-webkit-details-marker {
  display: none;
}

.sprachwahl[open] > summary {
  border-color: var(--rot);
  color: var(--rot-tief);
}

.sprachwahl ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.sprachwahl li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--tinte);
  font-size: 0.92rem;
}

.sprachwahl li a:hover {
  background: var(--grund-warm);
  text-decoration: none;
}

/* ── Knöpfe ────────────────────────────────────────────────────────── */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.knopf:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.knopf-voll {
  background: var(--rot);
  color: #fff;
  box-shadow: 0 8px 22px rgba(229, 57, 53, 0.28);
}

.knopf-voll:hover {
  background: var(--rot-tief);
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.34);
}

.knopf-rand {
  border-color: var(--linie);
  color: var(--tinte);
  background: #fff;
}

.knopf-rand:hover {
  border-color: var(--rot);
  color: var(--rot-tief);
}

/* Store-Abzeichen. Google gibt die Grafik vor, deshalb kein eigener Rahmen
   und keine eigene Farbe: nur Groesse und der Anfasser beim Zeigen. */
.knopf-store {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: transform 0.15s ease;
}

.knopf-store:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.knopf-store img {
  height: 48px;
  width: auto;
}

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

.hero {
  padding: 84px 0 60px;
  background: radial-gradient(
      1100px 460px at 78% -8%,
      rgba(229, 57, 53, 0.1),
      transparent 62%
    ),
    var(--grund-warm);
  border-bottom: 1px solid var(--linie);
}

.hero-raster {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.merker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rot-blass);
  color: var(--rot-dunkel);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.merker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rot);
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 800;
}

h1 .betont {
  color: var(--rot);
  display: block;
}

.hero .fuehrung {
  font-size: 1.16rem;
  color: var(--grau);
  margin-top: 22px;
  max-width: 33em;
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.fussnote {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--grau-hell);
}

/* ── Telefonrahmen ──────────────────────────────────────────────────── */

.telefon {
  position: relative;
  width: 292px;
  margin: 0 auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #2c2f36, #14161a);
  box-shadow: 0 30px 70px rgba(20, 22, 26, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.12) inset;
}

.telefon img {
  border-radius: 32px;
  width: 100%;
}

.telefon-klein {
  width: 250px;
}

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

section {
  padding: 86px 0;
}

.warm {
  background: var(--grund-warm);
}

.premium-marke {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--rot-blass);
  color: var(--rot-dunkel);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
}

.funktion h3 .premium-marke {
  margin-left: 6px;
}

.marke {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.026em;
  font-weight: 800;
}

.abschnitt-kopf {
  max-width: 42rem;
  margin: 0 auto 52px;
  text-align: center;
}

.abschnitt-kopf p {
  color: var(--grau);
  font-size: 1.08rem;
  margin-top: 16px;
}

/* ── Die Achse: Gebetsschiene ───────────────────────────────────────── */

.achse-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.achse-text p {
  color: var(--grau);
  font-size: 1.07rem;
  margin-top: 18px;
}

.achse-text .stark {
  color: var(--tinte);
  font-weight: 600;
}

.schiene {
  position: relative;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  padding: 26px 26px 26px 24px;
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.08);
}

.schiene-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 8px;
}

.schiene-kopf strong {
  font-size: 1.02rem;
}

.schiene-kopf span {
  font-size: 0.84rem;
  color: var(--grau-hell);
}

.gebet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0 7px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rot);
}

.gebet::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(229, 57, 53, 0.35),
    rgba(229, 57, 53, 0)
  );
}

.gebet time {
  color: var(--grau-hell);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.eintrag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  margin: 7px 0;
  background: #fff;
  font-size: 0.95rem;
}

.eintrag .kaestchen {
  width: 18px;
  height: 18px;
  border: 2px solid var(--grau-hell);
  border-radius: 5px;
  flex: none;
}

.eintrag.erledigt {
  color: var(--grau-hell);
}

.eintrag.erledigt .kaestchen {
  background: var(--gruen);
  border-color: var(--gruen);
  position: relative;
}

.eintrag.erledigt .kaestchen::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.eintrag .zeit {
  margin-left: auto;
  font-size: 0.83rem;
  color: var(--grau-hell);
  font-variant-numeric: tabular-nums;
}

.eintrag.jetzt {
  border-color: rgba(229, 57, 53, 0.5);
  background: #fff8f7;
}

.jetzt-linie {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rot);
  letter-spacing: 0.05em;
}

.jetzt-linie::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--rot);
  opacity: 0.35;
}

/* ── Schaufenster (Bild + Text im Wechsel) ──────────────────────────── */

.schaufenster + .schaufenster {
  border-top: 1px solid var(--linie);
}

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

.schaufenster.bild-links .schaufenster-bild {
  order: -1;
}

.schaufenster-text h2 {
  margin-bottom: 18px;
}

.schaufenster-text > p {
  color: var(--grau);
  font-size: 1.06rem;
}

.haken {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 13px;
}

.haken li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1rem;
}

.haken li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--rot-blass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

/* Der Satz, den die App selbst zeigt — als Zitat aus der Oberflaeche. */
.zitat-ui {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--linie);
  border-left: 4px solid var(--rot);
  border-radius: 12px;
  background: #fff;
  font-size: 0.97rem;
}

.zitat-ui code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.93em;
  background: var(--grund-warm);
  padding: 2px 6px;
  border-radius: 6px;
}

.zitat-ui .quelle {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--grau-hell);
}

/* ── Quellenwahl der Gebetszeiten ───────────────────────────────────── */

.quelle-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.quelle-karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.08);
}

.schalter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--grund-warm);
  border-radius: 12px;
  margin-bottom: 20px;
}

.schalter span {
  text-align: center;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--grau);
}

.schalter .aktiv {
  background: #fff;
  color: var(--rot-tief);
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.1);
}

.zeitenliste {
  display: grid;
  gap: 2px;
}

.zeitenliste div {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--linie);
  font-size: 0.98rem;
}

.zeitenliste div:last-child {
  border-bottom: 0;
}

.zeitenliste .iqama {
  color: var(--blau);
  font-size: 0.85rem;
  margin-left: 10px;
}

.zeitenliste time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ── Funktionsraster ────────────────────────────────────────────────── */

.funktionen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}

.funktion {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.funktion h3 {
  font-size: 1.06rem;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}

.funktion p {
  color: var(--grau);
  font-size: 0.96rem;
}

.funktion .sinnbild {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--rot-blass);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

/* ── Schlussaufruf ──────────────────────────────────────────────────── */

.schluss {
  background: linear-gradient(150deg, var(--rot) 0%, var(--rot-dunkel) 100%);
  color: #fff;
  text-align: center;
}

.schluss h2,
.schluss p {
  color: #fff;
}

.schluss p {
  margin: 16px auto 0;
  max-width: 34em;
  opacity: 0.92;
  font-size: 1.08rem;
}

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

.schluss .knopf-voll {
  background: #fff;
  color: var(--rot-dunkel);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.schluss .knopf-voll:hover {
  background: #fff;
  color: var(--rot-dunkel);
}

.schluss .knopf-rand {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.schluss .knopf-rand:hover {
  border-color: #fff;
  color: #fff;
}

.schluss .fussnote {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Fusszeile ──────────────────────────────────────────────────────── */

footer {
  background: #16181d;
  color: #b9bec6;
  padding: 56px 0 30px;
  font-size: 0.95rem;
}

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

footer .logo {
  color: #fff;
}

footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

footer a {
  color: #b9bec6;
}

footer a:hover {
  color: #fff;
}

.fuss-satz {
  margin-top: 14px;
  max-width: 26em;
}

.fuss-unten {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #2a2d34;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #868c95;
}

/* ── Schmale Fenster ────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero-raster,
  .achse-raster,
  .schaufenster-raster,
  .quelle-raster {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .schaufenster.bild-links .schaufenster-bild {
    order: 0;
  }

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

  .nav-links > a {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .knopf {
    transition: none;
  }
}

/* ── Rechtstexte ────────────────────────────────────────────────────── */
/*
 * Datenschutz, Impressum und Löschanfrage tragen bis zum 05.09.2026 je ein
 * eigenes <style>-Blatt mit `max-width: 700px` und sonst nichts. Sie sahen
 * aus wie ein anderes Angebot — und genau dort landet, wer vor der
 * Installation wissen will, wem er seine Daten gibt. Ab hier nutzen sie
 * dieselbe Kopfzeile, dieselbe Fusszeile und dieselben Farben wie die
 * Startseite; eigen ist nur die Textspalte.
 */

.rechtskopf {
  background: var(--grund-warm);
  border-bottom: 1px solid var(--linie);
  padding: 54px 0 40px;
}

.rechtskopf h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rechtskopf .stand {
  margin-top: 12px;
  color: var(--grau);
  font-size: 0.95rem;
}

.rechtstext {
  max-width: 740px;
  margin: 0 auto;
  padding: 46px 0 72px;
}

.rechtstext > * + * {
  margin-top: 18px;
}

.rechtstext h2 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-top: 48px;
}

.rechtstext h3 {
  font-size: 1.05rem;
  color: var(--rot-tief);
  margin-top: 32px;
}

.rechtstext p,
.rechtstext li {
  color: var(--grau);
}

.rechtstext strong {
  color: var(--tinte);
}

.rechtstext ul {
  list-style: none;
  display: grid;
  gap: 11px;
  padding-left: 2px;
}

.rechtstext li {
  padding-left: 20px;
  position: relative;
}

.rechtstext li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rot);
}

.rechtstext a {
  color: var(--rot-tief);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rechtstext a:hover {
  color: var(--rot);
}

/* Breite Tabellen scrollen in sich, nie die Seite. */
.tabellenrahmen {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.rechtstext table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.94rem;
}

.rechtstext th,
.rechtstext td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--linie);
  color: var(--grau);
}

.rechtstext thead th {
  background: var(--grund-warm);
  color: var(--tinte);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  white-space: nowrap;
}

.rechtstext tbody tr:last-child td {
  border-bottom: 0;
}

.rechtstext code {
  background: var(--grund-warm);
  border: 1px solid var(--linie);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}

/* Der Kasten für die eine Sache, die der Leser hier wirklich tun will. */
.tatkasten {
  margin-top: 26px;
  background: var(--grund-warm);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.tatkasten p {
  margin-top: 0;
}

.tatkasten .adresse {
  margin-top: 12px;
  font-size: 1.12rem;
  font-weight: 650;
}

.tatkasten .adresse a {
  color: var(--rot-tief);
}

@media (max-width: 940px) {
  .rechtskopf {
    padding: 38px 0 30px;
  }

  .rechtstext {
    padding: 34px 0 56px;
  }
}
