/* ============================================
   badeniprotestans.de — Stylesheet
   Statische Informationswebsite über Protestantismus
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Design-Token: Farbpalette --- */
:root {
  /* Primärfarben — zurückhaltend, sakral inspiriert */
  --primary-50: #f5f7fa;
  --primary-100: #e4e9f0;
  --primary-200: #c8d3e3;
  --primary-300: #9aafc9;
  --primary-400: #6b85a8;
  --primary-500: #4a6486;
  --primary-600: #38506e;
  --primary-700: #2e4259;
  --primary-800: #263545;
  --primary-900: #1e2b38;

  /* Sekundärfarbe — warmes Sandstein */
  --secondary-50: #fbf8f3;
  --secondary-100: #f5ecdb;
  --secondary-200: #ead7b8;
  --secondary-300: #dcbd8e;
  --secondary-400: #cda065;
  --secondary-500: #c08a4a;
  --secondary-600: #a5723d;
  --secondary-700: #845832;
  --secondary-800: #6d4830;
  --secondary-900: #5a3d2c;

  /* Akzent — tiefes Gold */
  --accent-500: #c9a44c;
  --accent-600: #b08e3a;
  --accent-700: #96772e;

  /* Erfolg / Warnung / Fehler */
  --success-500: #4a8a5e;
  --success-600: #3a7149;
  --warning-500: #d4942a;
  --warning-600: #b87a1e;
  --error-500: #c44a4a;
  --error-600: #a33838;

  /* Neutraltöne */
  --neutral-50: #fafafa;
  --neutral-100: #f4f4f5;
  --neutral-200: #e4e4e7;
  --neutral-300: #d4d4d8;
  --neutral-400: #a1a1aa;
  --neutral-500: #71717a;
  --neutral-600: #52525b;
  --neutral-700: #3f3f46;
  --neutral-800: #27272a;
  --neutral-900: #18181b;

  /* Layout */
  --max-width: 1100px;
  --content-width: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --spacing: 8px;

  /* Typografie */
  --font-heading: "Georgia", "Times New Roman", "Noto Serif", serif;
  --font-body: "Georgia", "Times New Roman", "Noto Serif", serif;
  --font-ui: "Helvetica Neue", "Arial", "Noto Sans", sans-serif;
}

/* --- Basis --- */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-600);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-800);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.2rem; }

/* --- Layout-Helfer --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--neutral-100);
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--primary-800);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--secondary-200);
}

.site-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink:: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--neutral-200);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--accent-500);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--primary-900);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 1.5rem;
  max-width: 800px;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  color: var(--neutral-200);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-500);
  color: var(--primary-900);
}

.btn-primary:hover {
  background: var(--accent-600);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,164,76,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  text-decoration: none;
}

/* --- Artikeltypografie --- */
.article-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--neutral-700);
}

.article-body h2 {
  border-bottom: 2px solid var(--primary-100);
  padding-bottom: 0.4rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin-bottom: 1.3rem;
}

.article-body strong {
  color: var(--primary-800);
}

.article-body a {
  color: var(--accent-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--secondary-300);
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--accent-600);
  text-decoration-color: var(--accent-500);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--primary-700);
  font-style: italic;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-500);
}

/* --- Karten-Raster --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary-700);
}

.card p {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.5;
  flex: 1;
}

.card .btn-text {
  margin-top: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-700);
  text-decoration: none;
}

.card .btn-text:hover {
  color: var(--accent-600);
}

/* --- Info-Boxen --- */
.info-box {
  background: var(--secondary-50);
  border: 1px solid var(--secondary-200);
  border-left: 4px solid var(--secondary-400);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}

.info-box h3 {
  margin-top: 0;
  color: var(--secondary-700);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.callout {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.callout h3 {
  margin-top: 0;
  color: var(--primary-700);
}

/* --- Figure / Bild mit Unterschrift --- */
figure {
  margin: 2rem 0;
}

figure img {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

figcaption {
  font-size: 0.85rem;
  color: var(--neutral-500);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Tabellen --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--neutral-200);
}

th {
  background: var(--primary-50);
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--primary-700);
}

tr:hover {
  background: var(--neutral-50);
}

/* --- Spendensektion --- */
.donation-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.donation-feature img {
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.donation-feature h3 {
  margin-top: 0;
}

@media (max-width: 700px) {
  .donation-feature {
    grid-template-columns: 1fr;
  }
}

/* --- Kirchen-Detailseite --- */
.church-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--primary-900);
  display: flex;
  align-items: flex-end;
}

.church-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.church-hero .church-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
  width: 100%;
}

.church-hero h1 {
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.church-hero .subtitle {
  font-size: 1.1rem;
  color: var(--neutral-200);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.fact-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: center;
}

.fact-card .fact-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-500);
  margin-bottom: 0.3rem;
}

.fact-card .fact-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-700);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--neutral-500);
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--primary-500);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--neutral-400);
}

/* --- Kirchen-Liste --- */
.church-list-table {
  margin-top: 2rem;
}

.church-list-table a {
  font-weight: 600;
}

/* --- Weitere Kirchen Navigation --- */
.church-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
}

.church-nav a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary-900);
  color: var(--neutral-300);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer a {
  color: var(--neutral-300);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--accent-500);
  text-decoration: none;
}

.site-footer p {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--neutral-500);
}

/* --- Inhaltsverzeichnis --- */
.toc {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
}

.toc h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--primary-600);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ol {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.toc a {
  color: var(--primary-600);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav ul {
    gap: 1rem;
    justify-content: center;
  }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .site-footer .container {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* --- Druck --- */
@media print {
  .site-header, .main-nav, .site-footer, .btn, .hero img {
    display: none;
  }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
