/* Farben = App-Design „Abendlampe“ (code/gebetszeit-ios/src/theme.ts, Index A). Flach, keine Verläufe. */
@font-face { font-family: Bricolage; src: url(fonts/BricolageGrotesque.ttf); font-weight: 200 800; }
@font-face { font-family: Figtree; src: url(fonts/Figtree.ttf); font-weight: 300 900; }
@font-face { font-family: Amiri; src: url(fonts/amiriquran.ttf); }

:root {
  --bg: #0F1411; --surf: #161D19; --surf2: #1C2420; --line: rgba(236,231,219,.08);
  --text: #ECE7DB; --sub: #A3A99C; --faint: #6E7569;
  --acc: #E7A64A; --accSoft: rgba(231,166,74,.12); --onAcc: #1C1407;
}
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { color: var(--text); font-family: Figtree, sans-serif; -webkit-font-smoothing: antialiased; }

/* Feste Leinwand (1920×1080 bzw. 1080×1920), tv.js skaliert/dreht sie auf den Bildschirm */
#stage { position: absolute; left: 50%; top: 50%; box-sizing: border-box; padding: 56px 64px;
  display: grid; gap: 28px 56px; transform-origin: center; visibility: hidden; }
#stage.land { width: 1920px; height: 1080px; grid-template-columns: 860px 1fr;
  grid-template-rows: auto auto 1fr auto; grid-template-areas: "head head" "list hero" "list card" "strip strip"; }
#stage.port { width: 1080px; height: 1920px; padding: 64px 56px; gap: 36px;
  grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr auto;
  grid-template-areas: "head" "hero" "list" "card" "strip"; }

.sub { color: var(--sub); font-size: 26px; }
.r { text-align: right; }
.acc { color: var(--acc); font-size: 26px; }
.title, .title2, .big, .count, .clock { font-family: Bricolage, sans-serif; letter-spacing: -.01em; }
.title { font-size: 44px; font-weight: 700; line-height: 1.1; }
.title2 { font-size: 34px; font-weight: 600; }
.tnum, .count, .clock, .row span + span { font-variant-numeric: tabular-nums; }

/* Kopf */
.head { grid-area: head; display: grid; align-items: center; grid-template-columns: 1fr auto auto; gap: 56px; }
.brand { display: flex; align-items: center; gap: 24px; }
#logo { height: 72px; }
.date { text-align: right; }
.clock { font-size: 128px; font-weight: 600; line-height: .9; }
.port .head { grid-template-columns: auto 1fr; grid-template-areas: "brand brand" "clock date"; gap: 32px 40px; }
.port .brand { grid-area: brand; justify-content: center; text-align: center; }
.port .clock { grid-area: clock; font-size: 170px; }
.port .date { grid-area: date; }

/* Nächstes Gebet */
.hero { grid-area: hero; }
.heroRow { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.big { font-size: 112px; font-weight: 700; line-height: 1; }
.count { font-size: 92px; font-weight: 600; color: var(--acc); line-height: 1; }
.iftar { display: flex; justify-content: space-between; align-items: center; margin-top: 24px;
  background: var(--accSoft); border-radius: 22px; padding: 20px 28px; }
.iftar[hidden] { display: none; }
.iftar .count { font-size: 72px; }

/* Liste der Vakitler */
.list { grid-area: list; align-self: center; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 28px;
  height: 84px; border-bottom: 1px solid var(--line); font-size: 50px; font-family: Bricolage, sans-serif; }
.row small { display: block; font: 22px Figtree, sans-serif; color: var(--sub); margin-top: 2px; }
.row.past { color: var(--faint); }
.row.past small { color: var(--faint); }
.row.next { background: var(--accSoft); color: var(--acc); border-radius: 22px; border-color: transparent; }
.row.next small { color: var(--acc); }
.port .row { height: 80px; font-size: 50px; }
.port .iftar { padding: 14px 28px; margin-top: 20px; }
.port .iftar .count { font-size: 64px; }
.port .strip { max-height: 64px; overflow: hidden; }  /* nur eine Zeile Chips, der Rest fällt weg */
.port .chip { font-size: 26px; padding: 14px 26px; }

/* Karte: Ayet / Dua des Tages – tv.js verkleinert --k, bis der Text passt */
.card { grid-area: card; background: var(--surf); border-radius: 36px; padding: 48px 56px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: safe center; --k: 1; min-height: 0; }
#cardIn { transition: opacity .8s; }
#cardIn.fade { opacity: 0; }
.lbl { color: var(--acc); font-size: 26px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lbl span { color: var(--sub); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.ar { font-family: Amiri, serif; direction: rtl; text-align: right; color: var(--acc);
  font-size: calc(64px * var(--k)); line-height: 1.6; margin: 20px 0 12px; }
.tr { font-size: calc(40px * var(--k)); line-height: 1.35; }
.de { font-size: calc(32px * var(--k)); line-height: 1.35; color: var(--sub); margin-top: 18px; }
.src { font-size: 22px; color: var(--faint); margin-top: 20px; }

/* Leiste unten */
.strip { grid-area: strip; display: flex; gap: 20px; flex-wrap: wrap; }
.chip { background: var(--surf2); border-radius: 999px; padding: 16px 30px; font-size: 30px; }
.chip b { color: var(--acc); font-family: Bricolage, sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
.port .strip { justify-content: center; }
