/* Farben und Formen wie in der App (Theme.kt): Tannengrün, Sand, Leinen, Taubenblau, Stein */
:root {
  --primary: #24352f;
  --on-primary: #fff;
  --primary-container: #dce6df;
  --on-primary-container: #13201b;
  --secondary: #8c7754;
  --background: #f3efe7;
  --surface: #faf8f4;
  --surface-high: #eae6dd;
  --surface-low: #f6f3ed;
  --on-surface: #1d211f;
  --on-surface-variant: #5e6461;
  --outline-variant: #d9d4c9;
  --sand: #b9a27e;
  --tag-bg: 13%;
  --sheet-radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #a9c9b8;
    --on-primary: #12241d;
    --primary-container: #2e443b;
    --on-primary-container: #d5e8dc;
    --secondary: #d8c29c;
    --background: #121614;
    --surface: #181c1a;
    --surface-high: #2a302d;
    --surface-low: #1c211f;
    --on-surface: #e3e3de;
    --on-surface-variant: #bfc6c1;
    --outline-variant: #3b413e;
    --tag-bg: 25%;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
svg { fill: currentColor; }
.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopfzeile: über dem Bergbild durchsichtig, beim Scrollen wie die Leiste der App ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 10;
  color: #fff;
  transition: background .25s, color .25s, box-shadow .25s;
}
.topbar.solid {
  background: color-mix(in srgb, var(--background) 94%, transparent);
  backdrop-filter: blur(10px);
  color: var(--on-surface);
  box-shadow: 0 1px 0 var(--outline-variant);
}
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Lora", Georgia, serif; font-size: 21px; }
.logo { width: 16px; height: 24px; }
.topbar:not(.solid) .brand { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.mainnav { display: none; gap: 24px; font-size: 15px; }
.mainnav a { text-decoration: none; opacity: .85; }
.mainnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  background: #fff; color: #24352f;
}
.topbar.solid .pill { background: var(--primary); color: var(--on-primary); }
.pill svg { width: 18px; height: 18px; }

/* ---------- Hero wie der Startbildschirm: Bergbild, Kreuz, Name, weiße Pille ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  color: #fff; text-align: center;
  padding: 120px 20px calc(64px + var(--sheet-radius));
}
.hero .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-cross { position: absolute; top: 15%; left: 50%; width: 30px; height: 50px; transform: translateX(-50%); z-index: -1; }
.hero h1 {
  font-family: "Lora", Georgia, serif; font-weight: 500;
  font-size: clamp(48px, 9vw, 84px); line-height: 1; margin: 0;
}
.hero .claim { font-family: "Lora", Georgia, serif; font-size: clamp(18px, 2.4vw, 22px); margin: 10px 0 28px; }
.hero h1, .hero .claim, .hero .facts { text-shadow: 0 2px 14px rgba(0,0,0,.5); }

/* Wie die Suchpille der App, hier zum Herunterladen */
.search-pill {
  display: flex; align-items: center; gap: 14px;
  width: min(100%, 460px); min-height: 58px;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  background: #fff; color: #24352f;
  text-decoration: none; font-size: 17px; font-weight: 600; text-align: left;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.search-pill > span:not(.pill-go) { flex: 1; }
.pill-icon { width: 24px; height: 24px; flex: none; }
.pill-go { width: 46px; height: 46px; border-radius: 50%; background: #24352f; color: #fff; display: grid; place-items: center; flex: none; }
.pill-go svg { width: 20px; height: 20px; }
.search-pill:hover .pill-go { background: #1a2723; }
.facts { font-size: 14px; margin: 16px 0 0; opacity: .92; }

/* ---------- Inhaltsblatt: liegt mit runden Ecken über dem Bergbild ---------- */
.sheet {
  position: relative;
  margin-top: calc(-1 * var(--sheet-radius));
  background: var(--surface);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  padding-top: 28px;
}
.sheet section { padding: 28px 0; }

/* Abschnittstitel wie SectionHeader (titleLarge) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 22px; font-weight: 500; margin: 0 0 14px; }
.hint { color: var(--on-surface-variant); font-size: 14px; }
/* Große Titel wie headlineSmall in Lora */
.big-title { font-family: "Lora", Georgia, serif; font-weight: 500; font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 8px; }
.lead { color: var(--on-surface-variant); margin: 0 0 20px; max-width: 38em; }

/* Vers des Tages in Tangerine, wie auf dem Startbildschirm */
.votd blockquote {
  margin: 0; max-width: 760px;
  font-family: "Tangerine", "Lora", cursive;
  font-size: clamp(38px, 5.4vw, 54px); line-height: 1.15;
}
.votd .ref { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: var(--on-surface-variant); }

/* Bibelversionen wie VersionTile: Cover mit Schatten, darunter Name */
.tiles { display: flex; gap: 22px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tile { flex: 0 0 132px; scroll-snap-align: start; }
.tile > b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 10px; }
.tile small { display: block; color: var(--on-surface-variant); font-size: 12.5px; }
.cover {
  position: relative; width: 100%; aspect-ratio: .72;
  border-radius: 6px; border: .5px solid rgba(0,0,0,.12);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  color: var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; text-align: center;
  font-family: "Lora", Georgia, serif;
}
.cover::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.18); }
.cover .rule { width: 22px; height: 1px; background: var(--accent); margin-bottom: 10px; }
.cover b { font-weight: 400; font-size: 15px; line-height: 18px; letter-spacing: .08em; white-space: pre-line; }
.cover .year { font-size: 13px; opacity: .85; margin-top: 2px; }
.cover .emboss { width: 19px; height: 29px; margin-top: 12px; overflow: visible; }
.cover .emboss path { fill: none; stroke-width: 2.97; }

/* Sammlungen wie TagChip: Pille in der Farbe der Sammlung */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px 11px 16px; border-radius: 999px; font-size: 16px;
  background: color-mix(in srgb, var(--c) var(--tag-bg), transparent);
}
.chip svg { width: 20px; height: 20px; color: var(--c); flex: none; }
@media (prefers-color-scheme: dark) {
  .chip svg, .w-icon svg { color: color-mix(in srgb, var(--c) 65%, white); }
}

/* Funktionen wie die Einstellungen: Gruppentitel in Grün, Zeilen mit Symbol */
.groups { display: grid; grid-template-columns: 1fr; gap: 8px 40px; margin-top: 12px; }
.group { border-top: 1px solid color-mix(in srgb, var(--outline-variant) 70%, transparent); padding-top: 4px; }
.group-title { font-size: 14px; font-weight: 600; color: var(--primary); margin: 14px 0 4px; }
.row { display: flex; gap: 18px; align-items: flex-start; padding: 12px 0; }
.row > svg { width: 24px; height: 24px; flex: none; color: var(--on-surface-variant); margin-top: 2px; }
.row b { display: block; font-weight: 500; font-size: 16px; }
.row span { display: block; color: var(--on-surface-variant); font-size: 14.5px; line-height: 1.45; }

/* ---------- Widgets ---------- */
.widgets { display: grid; grid-template-columns: 1fr; gap: 16px; }
.widget { border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.widget.collection { border: 1px solid var(--outline-variant); }
.votd-w {
  min-height: 190px; padding: 20px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, #2e3d3b, #6f6b5c 60%, #8e7a5c); color: #fff;
}
.w-label { font-size: 13px; opacity: .78; font-weight: 600; }
.w-verse { font-family: "Tangerine", "Lora", cursive; font-size: 36px; line-height: 1.15; margin: 8px 0; }
.votd-w .w-ref { color: #e6d2ae; font-size: 13px; font-weight: 600; }
.widget.collection {
  min-height: 190px; padding: 18px 20px; background: var(--surface-low);
  display: flex; flex-direction: column; overflow: hidden;
}
.w-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.w-head b { display: block; font-size: 14px; }
.w-head small { color: var(--on-surface-variant); font-size: 12px; }
.w-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); flex: none; }
.w-icon svg { width: 20px; height: 20px; color: var(--c); }
.widget.collection .w-ref { color: var(--c); font-size: 12px; font-weight: 600; }
.w-text { font-family: "Lora", Georgia, serif; font-size: 15px; line-height: 1.4; margin: 2px 0 0; }

/* ---------- Verse als Bild ---------- */
.shares { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.shares figure { flex: 0 0 200px; margin: 0; scroll-snap-align: start; }
.shares img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.shares figcaption { font-size: 14px; color: var(--on-surface-variant); margin-top: 8px; text-align: center; }

/* ---------- Über Libellum, wie die Über-Seite der App ---------- */
.about { display: grid; gap: 28px; }
.about-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 200px; border-radius: 22px; color: #fff;
  display: flex; align-items: flex-end;
}
.about-card .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.about-card-text { padding: 22px; }
.about-card-text p { margin: 4px 0 0; opacity: .92; font-size: 14.5px; }
.about-card .about-name { display: flex; align-items: center; gap: 12px; font-family: "Lora", Georgia, serif; font-size: 30px; margin: 0; opacity: 1; }
.about-card .logo { width: 18px; height: 27px; }
.about-text p { margin: 0 0 14px; max-width: 40em; }
.about-text .big-title + p { margin-top: 8px; }
.about-text .big-title:not(:first-child) { margin-top: 30px; }
/* Funktionen in der rechten Spalte neben dem stehenden Bild: eine Spalte */
.about .groups { grid-template-columns: 1fr; margin-top: 4px; }
.honey {
  margin: 4px 0 18px; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--primary);
  font-family: "Tangerine", "Lora", cursive; font-size: 38px; line-height: 1.2;
}
.honey cite { display: block; font-family: system-ui, sans-serif; font-style: normal; font-size: 13px; color: var(--on-surface-variant); margin-top: 6px; }

/* Spenden-Karte wie DonateCard (primaryContainer) */
.sheet .donate {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 12px 0; padding: 22px;
  border-radius: 16px;
  background: var(--primary-container); color: var(--on-primary-container);
}
.donate-icon { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.donate h2 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.donate p { margin: 0; font-size: 15px; }

/* Abschluss */
.sheet .closing { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 0 56px; }
.closing h2 { font-family: "Lora", Georgia, serif; font-weight: 500; font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 20px; }
.closing .search-pill { box-shadow: 0 6px 18px rgba(0,0,0,.14); border: 1px solid var(--outline-variant); }
.closing .facts { color: var(--on-surface-variant); }

/* ---------- Fußzeile wie unten im Seitenmenü ---------- */
footer { background: var(--background); border-top: 1px solid var(--outline-variant); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--on-surface-variant); }
.foot .brand { font-size: 19px; color: var(--on-surface); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot .meaning { flex-basis: 100%; margin: 0; }
.foot .copy { margin: 0; font-size: 12.5px; }

/* ---------- Breitere Bildschirme ---------- */
@media (min-width: 720px) {
  .widgets { grid-template-columns: 3fr 2fr; }
  .about { grid-template-columns: 340px 1fr; align-items: start; }
  .about-card { min-height: 420px; position: sticky; top: 88px; }
}
@media (min-width: 860px) {
  .mainnav { display: flex; }
  .tile { flex-basis: 140px; }
}

/* ---------- Barrierefreiheit ---------- */
a:focus-visible, .tiles:focus-visible, .shares:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 8px; }
.pill:focus-visible, .search-pill:focus-visible { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar { transition: none; }
}
