:root {
  --bg: #f8f5ef;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-light: #666;
  --blue: #2c5f8a;
  --blue-dark: #1a3a5c;
  --blue-light: #e8f0f7;
  --gold: #c47b2a;
  --gold-dark: #8a5218;
  --gold-light: #fdf3e3;
  --border: #e0d8cc;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: var(--blue-dark);
  color: white;
  padding: 1.25rem 1rem 1rem;
  text-align: center;
}
.site-header .eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin-bottom: 0.3rem;
}
.site-header .site-title {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}
.site-header .site-motto {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.35rem;
  font-style: italic;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.4rem; }

/* ── Main ── */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ── Index page ── */
.index-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.index-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.index-hero .sub {
  color: var(--text-light);
  margin-top: 0.6rem;
  font-size: 1rem;
}
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--gold));
  margin: 1.5rem auto;
  border-radius: 2px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (max-width: 560px) { .section-grid { grid-template-columns: 1fr; } }

.section-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  border-top: 5px solid var(--border);
  color: inherit;
}
.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.section-card.blue { border-top-color: var(--blue); }
.section-card.gold { border-top-color: var(--gold); }
.section-card .sc-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-card.blue .sc-label { color: var(--blue); }
.section-card.gold .sc-label { color: var(--gold-dark); }
.section-card h2 { font-size: 1.3rem; line-height: 1.25; }
.section-card.blue h2 { color: var(--blue-dark); }
.section-card.gold h2 { color: var(--gold-dark); }
.section-card .sc-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}
.section-card .sc-arrow {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section-card.blue .sc-arrow { color: var(--blue); }
.section-card.gold .sc-arrow { color: var(--gold-dark); }

/* ── Section overview page ── */
.section-hero {
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.section-hero.blue { background: var(--blue-light); border: 1px solid #c5d8ea; }
.section-hero.gold { background: var(--gold-light); border: 1px solid #e8d0a8; }
.section-hero .sh-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.section-hero.blue .sh-label { color: var(--blue); }
.section-hero.gold .sh-label { color: var(--gold-dark); }
.section-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.section-hero.blue h1 { color: var(--blue-dark); }
.section-hero.gold h1 { color: var(--gold-dark); }
.section-hero p { color: var(--text-light); margin-top: 0.5rem; font-size: 0.9rem; }

.passage-list { display: flex; flex-direction: column; gap: 0.75rem; }

.passage-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--border);
  transition: transform 0.12s, box-shadow 0.12s;
}
.passage-card:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.11); }
.passage-card.blue { border-left-color: var(--blue); }
.passage-card.gold { border-left-color: var(--gold); }
.passage-card .pc-ref { font-weight: 700; font-size: 0.95rem; min-width: 190px; flex-shrink: 0; }
.passage-card.blue .pc-ref { color: var(--blue-dark); }
.passage-card.gold .pc-ref { color: var(--gold-dark); }
.passage-card .pc-preview { font-size: 0.85rem; color: var(--text-light); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.passage-card .pc-arrow { margin-left: auto; color: var(--border); font-size: 1rem; flex-shrink: 0; }
.passage-card .pc-note { font-size: 0.72rem; color: var(--text-light); font-style: italic; }

@media (max-width: 500px) {
  .passage-card { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .passage-card .pc-ref { min-width: auto; }
  .passage-card .pc-arrow, .passage-card .pc-preview { display: none; }
}

/* ── Bible text page ── */
.passage-page-header { margin-bottom: 2rem; }
.theme-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.theme-badge.blue { background: var(--blue-light); color: var(--blue-dark); }
.theme-badge.gold { background: var(--gold-light); color: var(--gold-dark); }
.passage-page-header h1 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); line-height: 1.2; }
.passage-page-header .book-label { color: var(--text-light); font-size: 0.875rem; margin-top: 0.25rem; }

.bible-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.translation-note {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.translation-note::before { content: ''; display: block; width: 28px; height: 2px; background: var(--border); }

.verse { display: flex; gap: 0.85rem; margin-bottom: 0.9rem; align-items: baseline; }
.vn { font-size: 0.68rem; font-weight: 700; color: var(--text-light); min-width: 1.6rem; text-align: right; flex-shrink: 0; padding-top: 0.2rem; }
.vt { font-size: 1.05rem; line-height: 1.8; }

.verse.hl .vn { color: var(--blue); }
.verse.hl .vt { font-weight: 500; }
.verse.hl-gold .vn { color: var(--gold-dark); }
.verse.hl-gold .vt { font-weight: 500; }

.omit-note { font-size: 0.8rem; color: var(--text-light); font-style: italic; padding: 0.5rem 0; padding-left: 2.45rem; }

.key-quote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--gold-light);
  border-radius: 0 8px 8px 0;
}
.key-quote .kq-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dark); font-weight: 700; margin-bottom: 0.25rem; }
.key-quote .kq-text { font-size: 1.05rem; font-style: italic; }

/* ── Buttons ── */
.page-nav { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-dark); }

/* ── Footer ── */
.site-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ── Print ── */
@media print {
  .site-header, .breadcrumb, .page-nav, .site-footer, .ba-leader { display: none; }
  .bible-card, .ba-box { box-shadow: none; border: 1px solid #ccc; }
  body { background: white; }
  .vt { font-size: 11pt; }
  .ba-section { page-break-inside: avoid; }
}

/* ════════════════════════════════════
   BIBELARBEIT
════════════════════════════════════ */
:root {
  --green: #2d7a3a;
  --green-light: #eaf5ec;
  --amber: #a05c00;
  --amber-light: #fef6e4;
  --purple: #6a3d9a;
  --purple-light: #f3eefa;
  --teal: #1e7a78;
  --teal-light: #e4f6f5;
  --red-light: #fdecea;
  --red: #b0271e;
}

/* Hero der Bibelarbeit */
.ba-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #2a4a7a 100%);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.ba-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.ba-hero .ba-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
.ba-hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2; }
.ba-hero .ba-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ba-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Inhaltsverzeichnis */
.ba-toc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.ba-toc h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 0.75rem; }
.ba-toc ol { padding-left: 1.25rem; }
.ba-toc li { margin-bottom: 0.35rem; }
.ba-toc a { color: var(--blue); text-decoration: none; font-size: 0.9rem; }
.ba-toc a:hover { text-decoration: underline; }

/* Abschnitt */
.ba-section {
  margin-bottom: 3rem;
  scroll-margin-top: 1rem;
}
.ba-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.ba-section-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  flex-shrink: 0;
}
.ba-section-title { font-size: 1.25rem; font-weight: 700; flex: 1; }
.ba-time {
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

/* Inhaltsboxen */
.ba-box {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--border);
}
.ba-box-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ba-box p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.ba-box p:last-child { margin-bottom: 0; }
.ba-box ul, .ba-box ol { padding-left: 1.25rem; font-size: 0.95rem; }
.ba-box li { margin-bottom: 0.3rem; }

.ba-method { background: var(--green-light); border-left-color: var(--green); }
.ba-method .ba-box-title { color: var(--green); }

.ba-history { background: var(--amber-light); border-left-color: var(--amber); }
.ba-history .ba-box-title { color: var(--amber); }

.ba-fact { background: #fff8e1; border-left-color: #f59f00; border-left-width: 4px; }
.ba-fact .ba-box-title { color: #a06000; }

.ba-transfer { background: var(--purple-light); border-left-color: var(--purple); }
.ba-transfer .ba-box-title { color: var(--purple); }

.ba-question { background: var(--blue-light); border-left-color: var(--blue); }
.ba-question .ba-box-title { color: var(--blue-dark); }

.ba-key { background: #f0f7ff; border-left-color: #4a90c4; }
.ba-key .ba-box-title { color: #1a5a8a; }

.ba-leader { background: var(--teal-light); border-left-color: var(--teal); }
.ba-leader .ba-box-title { color: var(--teal); }

.ba-task { background: #f0faf0; border-left-color: var(--green); border: 1px solid #c5e8c8; border-left-width: 4px; }
.ba-task .ba-box-title { color: var(--green); }

.ba-warn { background: var(--red-light); border-left-color: var(--red); }
.ba-warn .ba-box-title { color: var(--red); }

/* Vier Säulen */
.ba-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 480px) { .ba-pillars { grid-template-columns: 1fr; } }
.ba-pillar {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-top: 3px solid var(--blue);
}
.ba-pillar .pillar-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.ba-pillar .pillar-de { font-weight: 700; font-size: 1rem; color: var(--blue-dark); }
.ba-pillar .pillar-gr { font-size: 0.75rem; color: var(--text-light); font-style: italic; margin-bottom: 0.5rem; }
.ba-pillar .pillar-text { font-size: 0.85rem; color: var(--text-light); }

/* Vergleichstabelle */
.ba-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ba-compare th {
  background: var(--blue-dark);
  color: white;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}
.ba-compare td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.ba-compare tr:last-child td { border-bottom: none; }
.ba-compare tr:nth-child(even) td { background: var(--bg); }

/* Skala */
.ba-scale-item { margin-bottom: 1rem; }
.ba-scale-item label { font-size: 0.9rem; display: block; margin-bottom: 0.35rem; }
.ba-scale-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
}
.ba-scale-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* Zitat */
.ba-quote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: 1rem 0;
  background: var(--gold-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.ba-quote cite { display: block; font-size: 0.78rem; font-style: normal; color: var(--text-light); margin-top: 0.4rem; }

/* Bibeltext in Bibelarbeit */
.ba-text-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin: 1rem 0;
  border-top: 3px solid var(--blue);
}
.ba-text-card .ba-text-ref {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.ba-text-card .verse { margin-bottom: 0.75rem; }

/* Schritt-für-Schritt */
.ba-steps { counter-reset: ba-step; list-style: none; padding: 0; }
.ba-steps li {
  counter-increment: ba-step;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}
.ba-steps li::before {
  content: counter(ba-step);
  background: var(--blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Fragen-Liste */
.ba-questions { list-style: none; padding: 0; }
.ba-questions li {
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-left: 2px solid var(--blue);
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  background: var(--blue-light);
  border-radius: 0 6px 6px 0;
}

/* Fußnoten-Zahlen */
sup.fn {
  font-size: 0.65rem;
  background: var(--border);
  padding: 0 0.25rem;
  border-radius: 3px;
  margin-left: 1px;
}

/* Grid für Fakten */
.ba-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.ba-fact-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.ba-fact-card .fc-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.ba-fact-card .fc-text { font-size: 0.85rem; color: var(--text); }
.ba-fact-card .fc-sub { font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; }

/* Trennlinie zwischen Abschnitten */
.ba-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 2rem 0;
}
