/* ====== Basis / Reset ====== */
:root {
  /* Grundfarben */
  --bg: #f9fafb;
  --fg: #1f2937;
  --muted: #6b7280;
  --accent: #374151;
  --card: #ffffff;
  --border: #e5e7eb;
  --link: #0ea5e9;

  /* Typo & Raum */
  --radius: 16px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --container: 1100px;
  --lh: 1.65;
  --step--1: 0.9rem;
  --step-0: 1rem;
  --step-1: clamp(1.15rem, 1.2vw + 0.6rem, 1.35rem);
  --step-2: clamp(1.6rem, 2.3vw + 0.7rem, 2.2rem);
}

/* Themen (optional je Bereich) */
body.theme-faith {
  --accent: #334155; /* kühler, ruhig */
  --link: #2563eb;
}
body.theme-art {
  --accent: #6b21a8; /* künstlerisch */
  --link: #a855f7;
}
body.theme-default {
  /* nutzt die Root-Werte */
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: var(--lh);
  font-size: var(--step-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(16px, 2.5vw, 28px);
}
.section {
  margin-block: clamp(16px, 3vw, 28px);
}

.header {
  padding-block: clamp(20px, 4vw, 40px);
  text-align: center;
}
.header .subtitle {
  color: var(--muted);
  max-width: 60ch;
  margin: 6px auto 0;
}

/* ====== Typografie ====== */
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.5em 0;
}
h1 {
  font-size: var(--step-2);
  letter-spacing: 0.2px;
}
h2 {
  font-size: var(--step-1);
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0.8em 0;
  max-width: 75ch;
}
.lead {
  color: var(--muted);
  font-size: 1.06rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover {
  opacity: 0.9;
}

/* Listen */
ul,
ol {
  padding-left: 1.1rem;
}
li {
  margin: 0.4em 0;
}

/* Zitate */
blockquote {
  margin: 0.9em 0;
  padding: 0.7em 1em;
  border-left: 4px solid var(--accent);
  background: #f3f4f6;
  border-radius: 12px;
}
blockquote small {
  display: block;
  color: var(--muted);
}

/* Karten / Boxen */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 22px);
  box-shadow: var(--shadow);
}
.card + .card {
  margin-top: 14px;
}
.card-muted {
  background: #f8fafc;
}

.alert {
  border: 1px solid;
  border-radius: 12px;
  padding: 12px 14px;
}
.alert.info {
  background: #ecfeff;
  border-color: #a5f3fc;
}
.alert.note {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.fineprint {
  color: var(--muted);
  font-size: var(--step--1);
}

/* Buttons / Links als Button */
.btn {
  display: inline-block;
  padding: 0.6em 1em;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn.primary {
  background: var(--link);
  color: #fff;
  border-color: transparent;
}
.btn:hover {
  transform: translateY(-1px);
}

/* ====== Galerie (Acrylbilder) ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(10px, 2vw, 16px);
}
.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Ein-Bild-Seite */
.media {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.media img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .media {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* ====== Tabellen (falls gebraucht) ====== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
th,
td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}
th {
  background: #f3f4f6;
}

/* ====== Footer ====== */
footer {
  margin: 32px 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ====== Utilities ====== */
.center {
  text-align: center;
}
.stack-sm > * + * {
  margin-top: 0.5rem;
}
.stack > * + * {
  margin-top: 1rem;
}
.stack-lg > * + * {
  margin-top: 1.4rem;
}
.max-60 {
  max-width: 60ch;
}
.hidden {
  display: none !important;
}

/* ====== Druck ====== */
@media print {
  :root {
    --bg: #fff;
  }
  body {
    background: #fff;
  }
  .container {
    padding-inline: 0;
  }
  .card {
    box-shadow: none;
  }
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

/* ====== Kleines Nice-to-have: reduzierte Bewegung ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
