/* ==========================================================================
   links.bibletunes.com — Linkseite (Ersatz für linktr.ee/bibletunes)
   Eigenständig: lädt weder landing.css noch site.css. Tokens wie dort (--bt-*),
   das Farbpaar der Sprache setzt die Seite selbst (--lk-deep / --lk-bright).
   Mobil zuerst; ab 600 px steht dieselbe Spalte als Karte in der Mitte.
   ========================================================================== */

@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2-variations"), url("/assets/fonts/Geist-Variable.woff2") format("woff2");
}
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("/assets/design-system/fonts/Vazirmatn-Regular.ttf") format("truetype"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500 600; font-display: swap; src: url("/assets/design-system/fonts/Vazirmatn-Medium.ttf") format("truetype"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700 900; font-display: swap; src: url("/assets/design-system/fonts/Vazirmatn-Bold.ttf") format("truetype"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 400; font-display: swap; src: url("/assets/design-system/fonts/NotoSansArabic-Regular.ttf") format("truetype"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 500 600; font-display: swap; src: url("/assets/design-system/fonts/NotoSansArabic-Medium.ttf") format("truetype"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 700 900; font-display: swap; src: url("/assets/design-system/fonts/NotoSansArabic-Bold.ttf") format("truetype"); }

:root {
  --bt-grey-50:  #F7F6F8;
  --bt-grey-100: #EDEBEF;
  --bt-grey-200: #DAD6DD;
  --bt-grey-400: #A29CA8;
  --bt-grey-600: #5E5862;
  --bt-grey-800: #2A262E;
  --lk-deep: #602184;
  --lk-bright: #0099A9;
  --lk-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --lk-pad: 16px;
  --lk-sheet-radius: 28px;
  --lk-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --lk-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
html[lang="fa"] { --lk-font: "Vazirmatn", "Geist", system-ui, sans-serif; }
html[lang="ar"] { --lk-font: "Noto Sans Arabic", "Geist", system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font: 400 16px/1.4 var(--lk-font);
  color: #000;
  background: var(--lk-deep);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2.5px solid var(--lk-bright); outline-offset: 2px; border-radius: 6px; }

/* Verlauf wie der Hero der Website: hell oben, tief unten, mit Korn */
.lk-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(180deg, var(--lk-bright) 0%, var(--lk-deep) 62%);
}
.lk-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--lk-grain); background-size: 220px 220px;
  mix-blend-mode: overlay; opacity: 0.85;
}

.lk-wrap { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* ---------- Kopf ---------- */
.lk-hero {
  position: relative; color: #fff;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(26px + var(--lk-sheet-radius));
}
.lk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Der Name als Text (klein geschrieben); das Zeichen b+ steht unten rechts im Kopf */
.lk-name { padding: 8px 0; font: 700 18px/1 "Geist", system-ui, sans-serif; letter-spacing: -0.01em; }

.lk-lang {
  display: inline-flex; align-items: center; padding: 3px; border-radius: 9999px;
  background: color-mix(in srgb, #fff 20%, transparent);
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
}
.lk-lang a {
  min-width: 38px; text-align: center; color: #fff;
  font: 700 12px/1 "Geist", var(--lk-font); letter-spacing: 0.04em;
  border-radius: 9999px; padding: 12px 10px;
}
.lk-lang a[lang="fa"], .lk-lang a[lang="ar"] { font-size: 14px; letter-spacing: 0; padding-block: 10px; }
.lk-lang a.act { background: #fff; color: var(--lk-deep); }

.lk-h1 {
  margin-top: 26px; max-width: 8.2em; padding-inline-end: 8px;
  font-size: clamp(34px, 10.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  text-wrap: balance;
}
.lk-hero__sub {
  margin-top: 12px; max-width: calc(100% - 92px);
  font-size: 16px; line-height: 1.4; color: color-mix(in srgb, #fff 90%, transparent);
  text-wrap: pretty;
}
/* b+ unten rechts (Brand Guide), in rechts-nach-links-Sprachen gespiegelt */
.lk-hero__logo {
  position: absolute; inset-inline-end: 22px; bottom: calc(22px + var(--lk-sheet-radius));
  height: 58px; width: auto; pointer-events: none;
}
html[lang="fa"] .lk-h1, html[lang="ar"] .lk-h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(27px, 8vw, 34px); font-weight: 700; max-width: calc(100% - 92px); }

/* ---------- Blatt ---------- */
.lk-sheet {
  position: relative; flex: 1;
  margin-top: calc(-1 * var(--lk-sheet-radius));
  padding: 22px var(--lk-pad) calc(22px + env(safe-area-inset-bottom));
  background: #fff; border-radius: var(--lk-sheet-radius) var(--lk-sheet-radius) 0 0;
}
.lk-sec + .lk-sec { margin-top: 26px; }
.lk-label {
  margin: 0 6px 10px;
  font: 700 12px/1.2 var(--lk-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bt-grey-600);
}
html[dir="rtl"] .lk-label { letter-spacing: 0; font-size: 14px; text-transform: none; }

.lk-chev { flex: none; width: 18px; height: 18px; color: var(--bt-grey-400); }
html[dir="rtl"] .lk-chev { transform: scaleX(-1); }

/* Aktuell: Karten mit Bild */
.lk-feat {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; padding-inline-end: 12px; border-radius: 22px;
  background: var(--bt-grey-50); border: 1px solid var(--bt-grey-100);
  transition: background 140ms var(--lk-ease), transform 140ms var(--lk-ease);
}
.lk-feat + .lk-feat { margin-top: 8px; }
.lk-feat__pic {
  flex: none; width: 78px; height: 78px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: var(--bt-grey-100); color: var(--lk-deep);
}
.lk-feat__pic img { width: 100%; height: 100%; object-fit: cover; }
.lk-feat__pic svg { width: 30px; height: 30px; }
.lk-feat__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lk-feat__meta { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--lk-deep); }
.lk-feat__title { font-size: 16.5px; font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; text-wrap: pretty; }

/* Hören: Kacheln in einer Reihe */
.lk-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.lk-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px;
  min-height: 88px; padding: 16px 4px 10px; border-radius: 20px;
  background: #fff; border: 1.5px solid var(--bt-grey-200);
  font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center;
  transition: background 140ms var(--lk-ease), border-color 140ms var(--lk-ease), transform 140ms var(--lk-ease);
}
.lk-tile svg { width: 28px; height: 28px; color: var(--lk-deep); }
.lk-tiles + .lk-list { margin-top: 8px; }

/* Zeilen */
.lk-list { border: 1.5px solid var(--bt-grey-200); border-radius: 22px; overflow: hidden; background: #fff; }
.lk-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 66px; padding: 10px 12px;
  transition: background 140ms var(--lk-ease);
}
.lk-row + .lk-row { border-top: 1px solid var(--bt-grey-100); }
.lk-row__pic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: var(--bt-grey-50); color: var(--lk-deep);
}
.lk-row__pic img { width: 100%; height: 100%; object-fit: cover; }
.lk-row__pic svg { width: 22px; height: 22px; }
/* Listen mit Projekt-Logos: breites Feld, Logos eingepasst statt beschnitten */
.lk-list--logos .lk-row__pic { width: 84px; height: 52px; }
.lk-list--logos .lk-row__pic.has-img img { width: 52px; object-fit: contain; }
/* feste Rasterspur, sonst rechnet der Browser 100 % Höhe als „auto" und das Logo läuft über */
.lk-row__pic.is-logo { padding: 7px 8px; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.lk-row__pic.is-logo img { object-fit: contain; }
.lk-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-row__title { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
.lk-row__sub { font-size: 13.5px; line-height: 1.3; color: var(--bt-grey-600); }

/* Dabeibleiben: runde Symbole */
.lk-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lk-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bt-grey-50); border: 1px solid var(--bt-grey-100); color: #000;
  transition: background 140ms var(--lk-ease), transform 140ms var(--lk-ease);
}
.lk-icon svg { width: 21px; height: 21px; }

/* Spenden */
.lk-give {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 22px 20px 20px; border-radius: 24px;
  background: var(--lk-deep); color: #fff;
}
.lk-give__title { font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.lk-give__sub { margin-top: 6px; font-size: 15px; line-height: 1.4; color: color-mix(in srgb, #fff 86%, transparent); }
.lk-give__amounts { display: flex; gap: 8px; margin-top: 16px; }
.lk-amt {
  flex: 1; display: block; text-align: center;
  padding: 13px 8px; border-radius: 9999px;
  background: #fff; color: var(--lk-deep);
  font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: filter 140ms var(--lk-ease), transform 140ms var(--lk-ease);
}
.lk-amt--wide { margin-top: 16px; }
.lk-give__other {
  display: block; margin-top: 8px; text-align: center;
  padding: 12px 8px; border-radius: 9999px;
  border: 1px solid color-mix(in srgb, #fff 38%, transparent);
  background: color-mix(in srgb, #fff 10%, transparent);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: background 140ms var(--lk-ease);
}
.lk-give__note { margin-top: 12px; text-align: center; font-size: 13px; line-height: 1.35; color: color-mix(in srgb, #fff 74%, transparent); }

/* Weitere Sprachen */
.lk-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-langs a {
  padding: 11px 18px; border-radius: 9999px;
  border: 1.5px solid var(--bt-grey-200);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: background 140ms var(--lk-ease), border-color 140ms var(--lk-ease);
}
.lk-langs a[lang="de"], .lk-langs a[lang="fr"] { font-family: "Geist", system-ui, sans-serif; }
.lk-langs a[lang="fa"] { font-family: "Vazirmatn", system-ui, sans-serif; }
.lk-langs a[lang="ar"] { font-family: "Noto Sans Arabic", system-ui, sans-serif; }

/* Fuß: Rechtliches links, b+ unten rechts */
.lk-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 30px; padding: 0 6px 4px; }
.lk-foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 1.4; color: var(--bt-grey-600); }
.lk-foot__links a { padding: 6px 0; }
.lk-foot__logo { flex: none; height: 34px; width: auto; }

/* Rückmeldung: Maus → Hover, Finger → kurzes Nachgeben */
@media (hover: hover) {
  .lk-feat:hover, .lk-row:hover, .lk-icon:hover { background: var(--bt-grey-100); }
  .lk-tile:hover, .lk-langs a:hover { border-color: var(--lk-deep); background: var(--bt-grey-50); }
  .lk-amt:hover { filter: brightness(0.95); }
  .lk-give__other:hover { background: color-mix(in srgb, #fff 18%, transparent); }
  .lk-foot__links a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
}
.lk-feat:active, .lk-tile:active, .lk-icon:active, .lk-amt:active { transform: scale(0.98); }
.lk-row:active { background: var(--bt-grey-100); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Schmale Geräte (≤ 350 px): etwas enger */
@media (max-width: 350px) {
  :root { --lk-pad: 12px; }
  .lk-tile { font-size: 11.5px; }
  .lk-feat__pic { width: 64px; height: 64px; }
}

/* Ab Tablet: dieselbe Spalte als Karte in der Mitte */
@media (min-width: 600px) {
  .lk-wrap { min-height: 0; padding: 28px 0 48px; }
  .lk-hero { padding-inline: 28px; }
  .lk-hero__logo { inset-inline-end: 30px; }
  .lk-sheet { flex: none; padding: 28px 24px 26px; border-radius: var(--lk-sheet-radius); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.45); }
}
