/* bibelrat.de – Gestaltung
   Keine externen Schriften (DSGVO): nur Systemschriften. */
:root {
  --ink: #1A2421;
  --ink-soft: #4A5753;
  --evergreen: #1E3B34;
  --evergreen-deep: #152B26;
  --paper: #F7F8F5;
  --white: #FFFFFF;
  --sage: #E3EAE5;
  --line: #C9D4CD;
  --brass: #9C7A33;
  --brass-light: #D9C08A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--evergreen); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Kopfzeile */
.site-header { background: var(--evergreen-deep); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--brass-light); }
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-tld { color: var(--brass-light); font-weight: 400; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { color: #DCE5DF; text-decoration: none; padding: 8px 12px; border-radius: 4px; font-size: 0.97rem; }
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.main-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--brass-light); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--paper); padding: 6px 12px; border-radius: 4px; font: inherit; cursor: pointer; }

/* Startseite: geteilter Kopfbereich (Vers links, Suche rechts) */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 440px; border-bottom: 1px solid var(--line); }
.hero-verse { margin: 0; background: var(--evergreen); color: var(--paper); display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px 60px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.hero-verse p { font-family: var(--serif); font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.12; font-weight: 500; margin: 0; color: #F4F1E6; text-wrap: balance; }
.hero-verse .open { color: var(--brass-light); margin-left: -0.45em; }
.hero-verse footer { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--brass-light); }
.hero-verse footer small { font-style: normal; font-family: var(--sans); font-size: 0.8rem; color: #9FB0A8; margin-left: 8px; }
.hero-panel { background: var(--white); display: flex; flex-direction: column; justify-content: center;
  padding: 56px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 52px 52px; }
.hero-panel h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 8px; }
.hero-panel p { color: var(--ink-soft); max-width: 46ch; }
.hero-panel .search-form { border: 1px solid var(--line); box-shadow: none; margin: 10px 0 18px; }
.hero-panel .search-form:focus-within { outline-color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { color: var(--ink); border: 1px solid var(--line); background: var(--white); font-size: 0.93rem; padding: 5px 13px; border-radius: 999px; text-decoration: none; }
.chips a:hover { border-color: var(--evergreen); color: var(--evergreen); }
.search-form { display: flex; max-width: 720px; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,0.15); }
.search-form label { position: absolute; left: -9999px; }
.search-form input { flex: 1; border: 0; padding: 16px 18px; font: inherit; font-size: 1.05rem; color: var(--ink); min-width: 0; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.search-form button { border: 0; background: var(--brass); color: var(--white); font: inherit; font-weight: 600; padding: 0 24px; cursor: pointer; }
.search-form button:hover { background: #876828; }

/* Abschnitte */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.97rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: var(--measure); }

/* Artikelliste */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.org-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; align-self: start; }
.org-mark i { width: 12px; height: 12px; border-radius: 2px; flex: none; display: inline-block; }
a.org-mark:hover { color: var(--brass); }
.article-item h3 { margin: 0 0 4px; font-size: 1.32rem; }
.article-item h3 a { color: var(--ink); text-decoration: none; }
.article-item h3 a:hover { color: var(--evergreen); text-decoration: underline; }
.original-title { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.status { font-size: 0.82rem; padding: 2px 8px; border-radius: 3px; background: var(--sage); color: var(--evergreen); }
.status.geplant { background: #F1E8D3; color: #6E5520; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags a { font-size: 0.85rem; text-decoration: none; padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.tags a:hover { border-color: var(--evergreen); color: var(--evergreen); }

/* Themenbereiche auf der Startseite */
.topic-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topic-group { padding: 22px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.topic-group h3 { font-size: 1.2rem; margin-bottom: 10px; }
.topic-group ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.topic-group li { padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
.topic-group li a { text-decoration: none; color: var(--ink); }
.topic-group li a:hover { color: var(--evergreen); text-decoration: underline; }
.topic-group li.empty a { color: #7C8984; }
.count { color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Organisationen */
.org-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.org-strip a { display: flex; gap: 12px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.org-strip a:hover { background: var(--white); }
.org-strip b { font-family: var(--sans); min-width: 52px; }
.org-strip span { color: var(--ink-soft); font-size: 0.93rem; }

.org-profile { display: grid; grid-template-columns: 8px minmax(0, 1fr) 220px; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.org-profile .bar { border-radius: 2px; }
.org-profile h2 { font-size: 1.45rem; margin-bottom: 2px; }
.org-profile .ort { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 12px; }
.org-profile p { max-width: var(--measure); }
.org-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* Grundsatz */
.creed { background: var(--sage); border-left: 4px solid var(--evergreen); padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.creed blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.creed blockquote footer { font-style: italic; font-size: 1rem; color: var(--ink-soft); margin-top: 10px; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 0.95rem; padding: 10px 18px; border-radius: 5px; text-decoration: none; cursor: pointer; border: 1px solid var(--evergreen); background: var(--evergreen); color: var(--white); }
.btn:hover { background: var(--evergreen-deep); color: var(--white); }
.btn.ghost { background: transparent; color: var(--evergreen); }
.btn.ghost:hover { background: var(--white); color: var(--evergreen-deep); }

/* Artikelübersicht mit Filtern */
.page-title { padding: 44px 0 28px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-title p { margin: 0; }
.library { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 32px 0 72px; }
.filters { align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 6px; }
.filters h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 24px 0 8px; }
.filters h2:first-child { margin-top: 0; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list label { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: 0.95rem; }
.filter-list label .count { margin-left: auto; }
.filter-list input { accent-color: var(--evergreen); width: 16px; height: 16px; margin: 0; flex: none; }
.filter-list label.zero { color: #8A9691; }
.filters details { border-top: 1px solid var(--line); }
.filters details:last-of-type { border-bottom: 1px solid var(--line); }
.filters summary { cursor: pointer; padding: 9px 0; font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; color: var(--ink-soft); font-weight: 400; }
.filters details[open] summary::after { content: "–"; }
.filters details .filter-list { padding-bottom: 10px; }
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.toolbar .field { flex: 1; min-width: 220px; position: relative; }
.toolbar input[type="search"], .toolbar select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); width: 100%; }
.toolbar select { width: auto; }
.toolbar label.sr { position: absolute; left: -9999px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 34px; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.87rem; padding: 4px 10px; border-radius: 999px; background: var(--evergreen); color: var(--white); border: 0; cursor: pointer; }
.chip:hover { background: var(--evergreen-deep); }
.chip span { font-size: 1rem; line-height: 1; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--evergreen); text-decoration: underline; cursor: pointer; }
.result-count { color: var(--ink-soft); font-size: 0.93rem; margin: 6px 0 0; }
.notice { background: #F1E8D3; border-left: 3px solid var(--brass); padding: 12px 16px; font-size: 0.93rem; margin: 0 0 8px; }
.empty-state { padding: 40px 0; }
.mobile-filter-btn { display: none; }

/* Einzelartikel */
.article-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.article-head .wrap, .article-body .wrap { max-width: 780px; }
.breadcrumb { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 18px; }
.article-head h1 { margin-bottom: 8px; }
.article-body { padding: 36px 0 72px; }
.article-body .prose { font-family: var(--serif); font-size: 1.16rem; line-height: 1.7; }
.prose p { margin-bottom: 1.1em; }
.source-box { margin-top: 36px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 0.95rem; }
.source-box h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }

/* Themen-Seite */
.theme-index { columns: 3 300px; column-gap: 40px; padding: 40px 0 72px; }
.theme-index section { break-inside: avoid; margin-bottom: 36px; }
.theme-index h2 { font-size: 1.35rem; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.theme-index ul { list-style: none; margin: 0; padding: 0; }
.theme-index li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.theme-index li a { text-decoration: none; color: var(--ink); }
.theme-index li a:hover { color: var(--evergreen); text-decoration: underline; }
.theme-index li.empty a { color: #7C8984; }

/* Textseiten */
.text-page { padding: 44px 0 72px; }
.text-page .wrap { max-width: 780px; }
.text-page .prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.text-page h2 { margin-top: 1.6em; }
.placeholder { background: #F1E8D3; padding: 1px 6px; border-radius: 3px; font-family: var(--sans); font-size: 0.95rem; }

/* Fußzeile */
.site-footer { background: var(--evergreen-deep); color: #BFCCC5; padding: 44px 0 36px; font-size: 0.93rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer blockquote { margin: 0; font-family: var(--serif); font-size: 1.12rem; color: #E9E5D8; }
.site-footer blockquote footer { font-style: italic; color: var(--brass-light); margin-top: 6px; font-size: 0.95rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; color: var(--white); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #DCE5DF; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); text-decoration: underline; }
.site-footer .fineprint { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.86rem; color: #9FB0A8; }

/* Responsiv */
@media (max-width: 960px) {
  .topic-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library { grid-template-columns: 1fr; gap: 0; }
  .filters { position: static; max-height: none; display: none; padding: 0 0 24px; }
  .filters.open { display: block; }
  .mobile-filter-btn { display: inline-block; }
  .creed { grid-template-columns: 1fr; gap: 20px; }
  .org-profile { grid-template-columns: 6px minmax(0, 1fr); }
  .org-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-verse { padding: 52px 24px 44px; }
  .hero-verse .open { margin-left: 0; }
  .hero-panel { padding: 40px 24px 44px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--evergreen-deep); padding: 8px 16px 16px; z-index: 5; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header { position: relative; }
  .hero-verse, .hero-panel { padding-left: 18px; padding-right: 18px; }
  .topic-groups { grid-template-columns: 1fr; }
  .article-item { grid-template-columns: 1fr; gap: 6px; }
  .search-form button { padding: 0 16px; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
