/* ==========================================================================
   Ev.-Luth. Erlöserkirche Erlangen – Stylesheet
   Farben aus dem bisherigen Auftritt: Violett #3F2682, Flieder #CABBDC
   ========================================================================== */

/* Schrift „Source Sans 3“ (SIL Open Font License, siehe assets/fonts/LICENSE-SourceSans3.txt) –
   lokal eingebunden, damit keine Verbindung zu Google Fonts entsteht. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
}

:root {
  --violet: #3f2682;
  --violet-dark: #2c1a5e;
  --violet-mid: #5c2686;
  --lilac: #cabbdc;
  --lilac-pale: #f4f0f9;
  --text: #1f1d24;
  --muted: #5d5868;
  --line: #e2dcea;
  --bg: #ffffff;
  --page: #faf9fc;
  --warn-bg: #fff4d6;
  --warn-line: #f0c75e;
  --ok: #1e7a46;
  --ok-bg: #e3f4ea;
  --danger: #b3261e;
  --danger-bg: #fde7e5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(40, 20, 80, .06), 0 4px 16px rgba(40, 20, 80, .06);
  --max: 1140px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
}

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

a { color: var(--violet); text-underline-offset: 2px; }
a:hover { color: var(--violet-mid); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--violet-dark); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top-Bar ---------- */
.topbar { background: var(--violet); color: #fff; font-size: 15px; }
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: currentColor; opacity: .85; }
@media (max-width: 640px) {
  .topbar .container { justify-content: center; font-size: 14px; }
  .topbar span:last-child { display: none; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: #fff; border-bottom: 4px solid var(--lilac); position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 120px;
}
.logo img { display: block; height: 104px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--violet); border-radius: 8px;
  padding: 8px 10px; color: var(--violet); cursor: pointer; font: inherit; font-size: 15px; font-weight: 600;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 6px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li + li { border-left: 1px solid var(--lilac); }
.main-nav a {
  display: block; padding: 8px 14px; font-size: 15px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; color: var(--text); border-radius: 6px;
}
.main-nav a:hover { color: var(--violet); background: var(--lilac-pale); }
.main-nav a[aria-current="page"] { color: var(--violet); box-shadow: inset 0 -3px 0 var(--violet); border-radius: 0; }

@media (max-width: 991px) {
  .logo img { height: 76px; }
  .site-header .container { min-height: 92px; }
  .nav-toggle { display: inline-block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--lilac); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav li + li { border-left: 0; border-top: 1px solid var(--line); }
  .main-nav a { padding: 12px 4px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--violet); padding-left: 12px; }
}

/* ---------- Seitenkopf (Hero) ---------- */
.page-hero { background: linear-gradient(135deg, var(--violet) 0%, var(--violet-mid) 100%); color: #fff; padding: 34px 0 30px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .4em 0 0; opacity: .9; max-width: 60ch; }

.home-hero { position: relative; background: var(--violet-dark); color: #fff; }
.home-hero img { display: block; width: 100%; height: clamp(260px, 42vw, 460px); object-fit: cover; opacity: .55; }
.home-hero .overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.home-hero .overlay .container { padding-bottom: 32px; }
.home-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.8rem); margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.home-hero p { margin: .3em 0 0; font-size: clamp(1rem, 2vw, 1.25rem); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.home-hero .caption { position: absolute; right: 16px; bottom: 6px; font-size: 12px; opacity: .8; }

/* ---------- Inhalt ---------- */
main { padding: 32px 0 56px; }
.layout { display: grid; gap: 28px; }
@media (min-width: 992px) { .layout.with-aside { grid-template-columns: minmax(0, 1fr) 300px; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; min-width: 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card + .card { margin-top: 24px; }
.card h2:first-child { margin-top: 0; }

.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }

.tiles a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--violet);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); height: 100%;
}
.tiles a:hover { border-color: var(--lilac); border-left-color: var(--violet-mid); background: var(--lilac-pale); }
.tiles strong { color: var(--violet); font-size: 1.1rem; }
.tiles span { font-size: .95rem; color: var(--muted); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title h2 { margin-bottom: .4em; }

.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 14px 18px; }
.notice-violet { background: var(--lilac-pale); border: 1px solid var(--lilac); border-radius: var(--radius); padding: 14px 18px; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

figure { margin: 0 0 1em; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }

.img-center { display: block; margin: 0 auto 1em; }
.img-frame { border: 4px solid #000; }
.float-left { float: left; margin: 4px 20px 12px 0; max-width: 40%; }
.float-right { float: right; margin: 4px 0 12px 20px; max-width: 40%; }
.clearfix::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) { .float-left, .float-right { float: none; display: block; margin: 0 auto 1em; max-width: 100%; } }

blockquote { margin: 1em 0; padding: 12px 20px; border-left: 4px solid var(--lilac); background: var(--lilac-pale); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
blockquote footer { font-style: normal; font-size: .95rem; margin-top: 8px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
  border-radius: 8px; border: 2px solid var(--violet); background: var(--violet); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--violet); }
.btn-outline:hover { background: var(--lilac-pale); color: var(--violet-dark); }
.btn-small { padding: 6px 12px; font-size: 14px; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8c1d17; border-color: #8c1d17; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.downloads { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.downloads a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.downloads a:hover { background: var(--lilac-pale); }
.downloads .tag { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: var(--danger); border-radius: 4px; padding: 2px 6px; }

/* Personen */
.person { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.person img { width: 120px; height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.person p { margin: 0 0 .25em; }
.person .role { font-weight: 700; color: var(--violet); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.simple th, table.simple td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.simple thead th { background: var(--lilac-pale); color: var(--violet-dark); }

/* evangelische-termine.de */
.et-frame { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: block; }
.et-teaser { min-height: 260px; }
.et-source { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Klick-zum-Laden (Datenschutz) */
.consent-embed { background: var(--lilac-pale); border: 1px dashed var(--lilac); border-radius: var(--radius); padding: 20px; text-align: center; }
.consent-embed p { margin: 0 0 12px; font-size: .95rem; }


.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-bestaetigt { background: var(--ok-bg); color: var(--ok); }

/* Formulare */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=time],
.field input[type=number], .field input[type=password], .field input[type=month], .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid #b9b2c6; border-radius: 8px; background: #fff; color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--lilac); border-color: var(--violet); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.checks input { width: 18px; height: 18px; accent-color: var(--violet); }
.req { color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--violet); }
.consent label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; }
.form-msg.ok { background: var(--ok-bg); border: 1px solid #9fd4b3; border-radius: var(--radius); padding: 14px 18px; }
.form-msg.err { background: var(--danger-bg); border: 1px solid #f1a9a3; border-radius: var(--radius); padding: 14px 18px; }

/* Aside */
.aside-box { background: #fff; border: 2px solid var(--violet); border-radius: var(--radius); overflow: hidden; }
.aside-box + .aside-box { margin-top: 20px; }
.aside-box h3 { margin: 0; background: var(--lilac); color: var(--violet-dark); font-size: 1rem; padding: 10px 14px; text-align: center; }
.aside-box .inner { padding: 14px; font-size: .95rem; }
.aside-box ul { margin: 0; padding-left: 18px; }

/* In-Page-Navigation */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--lilac); text-decoration: none; font-size: .9rem; font-weight: 600; }
.toc a:hover { background: var(--lilac-pale); }

/* ---------- Footer ---------- */
.site-footer { background: var(--violet-dark); color: #e9e3f3; font-size: .95rem; line-height: 1.55; margin-top: 8px; border-top: 6px solid var(--lilac); }
.footer-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1.3fr; } }
.site-footer h2 { margin: 0 0 12px; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.site-footer .footer-contact h2 { font-size: 1.2rem; letter-spacing: 0; text-transform: none; color: #fff; }
.footer-h2-gap { margin-top: 26px !important; }
.site-footer p { margin: 0 0 12px; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(202, 187, 220, .35); }
.site-footer a:hover { color: var(--lilac); border-bottom-color: var(--lilac); }
.site-footer ul a { border-bottom: 0; }
.site-footer ul a::before { content: "›"; color: var(--lilac); margin-right: 8px; }
.site-footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a[aria-current] { color: var(--lilac); font-weight: 700; }
.footer-note { font-size: .85rem; color: #c9bfdb; }
.footer-hours { display: inline-block; background: rgba(255, 255, 255, .08); border-radius: 6px; padding: 4px 10px; font-size: .88rem; }
.footer-bottom { background: rgba(0, 0, 0, .22); font-size: .85rem; color: #c9bfdb; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { color: #e9e3f3; border-bottom: 0; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 700px) { .footer-bottom .container { padding-right: 76px; } }
@media (max-width: 699px) { .footer-bottom .container { justify-content: center; text-align: center; } }
@media (max-width: 699px) { .footer-bottom { padding-bottom: 60px; } }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--violet); color: #fff; display: none; align-items: center; justify-content: center; text-decoration: none; box-shadow: var(--shadow); font-size: 22px; z-index: 40; }
.to-top.show { display: flex; }
.to-top:hover { color: #fff; background: var(--violet-dark); }

@media print {
  .topbar, .site-header, .site-footer, .to-top, .nav-toggle, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Termine (eigene Karten, Daten aus evangelische-termine.de) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.et-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.et-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.et-card.is-gd { border-left: 4px solid var(--violet); }
.et-card.is-hl { background: var(--lilac-pale); }
.et-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--lilac-pale); border-radius: 8px; padding: 6px 0; line-height: 1.1; color: var(--violet-dark); }
.et-card.is-gd .et-date { background: var(--violet); color: #fff; }
.et-date .wd { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.et-date .day { font-size: 24px; font-weight: 800; }
.et-date .mon { font-size: 12px; }
.et-body { min-width: 0; }
.et-title { font-size: 1.05rem; color: var(--text); }
.et-lit { display: inline-block; font-size: .8rem; color: var(--violet); background: var(--lilac-pale); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.et-meta, .et-sub, .et-desc { display: block; font-size: .92rem; color: var(--muted); }
.et-desc { color: var(--text); margin-top: 4px; white-space: pre-line; }
.et-list.kompakt { gap: 8px; }
.et-list.kompakt .et-card { padding: 8px 10px; grid-template-columns: 52px 1fr; gap: 12px; }
.et-list.kompakt .et-date .day { font-size: 20px; }
.et-month { margin: 28px 0 10px; font-size: 1.1rem; border-bottom: 2px solid var(--lilac); padding-bottom: 4px; }
.et-month:first-child { margin-top: 8px; }
.et-filter { display: grid; gap: 12px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--lilac); background: #fff; color: var(--violet); cursor: pointer; }
.chip:hover { background: var(--lilac-pale); }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.et-filter-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.et-filter-row input[type=search] { flex: 1 1 260px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid #b9b2c6; border-radius: 8px; }
.et-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.et-toggle input { width: 18px; height: 18px; accent-color: var(--violet); }

/* Leiste „Nächster Gottesdienst“ */
.next-service { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; background: var(--lilac); color: var(--violet-dark); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.next-service .nx-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--violet); color: #fff; border-radius: 4px; padding: 2px 8px; }
.next-service .nx-when { font-weight: 800; font-size: 1.1rem; }
.next-service .nx-where { color: var(--violet-dark); }
.next-service a { margin-left: auto; font-weight: 700; color: var(--violet-dark); }

/* ---------- Startseite ---------- */
.kicker { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-mid); }
.home-intro { display: grid; gap: 24px 40px; align-items: center; margin-bottom: 28px; padding: 28px; }
.home-intro figure { margin: 0; }
.home-intro img { display: block; width: 100%; border-width: 3px; border-radius: 4px; }
.home-intro h2 { margin-top: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.home-intro p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.home-intro .btn { font-size: 17px; padding: 12px 22px; }
@media (min-width: 860px) { .home-intro { grid-template-columns: 1.2fr 1fr; padding: 36px 40px; } }

.feature { display: grid; gap: 20px; align-items: start; margin-top: 24px; }
@media (min-width: 640px) { .feature { grid-template-columns: 220px 1fr; } }
.feature h2 { margin-top: 0; }
.feature-img { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { display: block; width: 100%; }
.feature-img .zoom { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(44, 26, 94, .8); color: #fff; font-size: .85rem; font-weight: 600; padding: 6px; text-align: center; }
@media (max-width: 639px) { .feature-img { max-width: 240px; margin: 0 auto; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 900px); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 10, 40, .85); }
.lightbox img { display: block; max-width: 100%; max-height: 92vh; width: auto; margin: 0 auto; border-radius: 6px; cursor: zoom-out; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--violet-dark); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- Gemeindeleben ---------- */
.section-heading { margin: 36px 0 14px; }
.feature-wide { display: grid; gap: 22px; align-items: start; }
@media (min-width: 760px) { .feature-wide { grid-template-columns: 260px 1fr; } }
.feature-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.group-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.group-grid > .card + .card { margin-top: 0; }
.group { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 100px; }
.group header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.group header img, .group-icon { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: var(--lilac-pale); }
.group-icon { display: flex; align-items: center; justify-content: center; font-size: 30px; }
.group h3 { margin: 0; font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: .95rem; }
.facts dt { font-weight: 700; color: var(--violet); }
.facts dd { margin: 0; }
.group p { margin: 0 0 10px; }
.group-dates { margin-top: auto; padding-top: 6px; }
details.more { margin: 8px 0 10px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--violet); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "▸"; transition: transform .15s; }
details.more[open] summary::before { transform: rotate(90deg); }
details.more[open] summary { margin-bottom: 8px; }
.nowrap { white-space: nowrap; }

/* ---------- Beiträge (Baukasten) ---------- */
.bt-artikel { margin-bottom: 24px; scroll-margin-top: 130px; }
.bt-artikel + .bt-artikel, .card + .bt-artikel { margin-top: 0; }
.bt-artikel > h2 { margin-top: 0; }
.bt-artikel > * + * { margin-top: 14px; }
.bt-text > :first-child { margin-top: 0; }
.bt-text > :last-child { margin-bottom: 0; }
.bt-text h3 { margin: 1.2em 0 .4em; }
.bt-text ul, .bt-text ol { padding-left: 1.3em; }
.bt-text li + li { margin-top: 4px; }
.bt-bild { margin: 0; }
.bt-bild img { display: block; border-radius: 8px; margin: 0 auto; }
.bt-bild.bt-voll img { width: 100%; }
.bt-bild.bt-mittel img { max-width: min(100%, 560px); }
.bt-bild.bt-klein img { max-width: min(100%, 260px); }
.bt-bild figcaption { text-align: center; }
.bt-zoom { display: block; position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; margin: 0 auto; border-radius: 8px; overflow: hidden; }
.bt-klein .bt-zoom { max-width: 260px; } .bt-mittel .bt-zoom { max-width: 560px; }
.bt-zoom img { max-width: 100% !important; }
.bt-zoom .zoom { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(44, 26, 94, .8); color: #fff; font-size: .85rem; font-weight: 600; padding: 6px; text-align: center; }
.bt-bildtext { display: grid; gap: 18px 24px; align-items: start; }
.bt-bildtext img { width: 100%; border-radius: 8px; }
@media (min-width: 640px) {
  .bt-bildtext { grid-template-columns: 220px 1fr; }
  .bt-bildtext.bt-rechts { grid-template-columns: 1fr 160px; }
  .bt-bildtext.bt-rechts img { order: 2; }
}
@media (max-width: 639px) { .bt-bildtext img { max-width: 260px; margin: 0 auto; display: block; } }
.bt-hinweis > :first-child { margin-top: 0; } .bt-hinweis > :last-child { margin-bottom: 0; }
.bt-button { display: inline-block; margin: 14px 10px 0 0 !important; }
.bt-button + .bt-button { margin-left: 0; }
.bt-download { margin-bottom: 0; }
.bt-vorschau-hinweis { background: var(--warn-bg); border: 1px dashed var(--warn-line); border-radius: 8px; padding: 6px 12px; font-size: .9rem; font-weight: 700; color: #8a5a00; }

/* Startseite: Teaser */
.bt-teaser { display: grid; gap: 18px 24px; align-items: start; margin-top: 24px; }
.bt-teaser h2 { margin: 0 0 8px; font-size: 1.35rem; }
.bt-teaser h2 a { color: var(--violet-dark); text-decoration: none; }
.bt-teaser h2 a:hover { text-decoration: underline; }
.bt-teaser p { margin: 0 0 12px; }
.bt-teaser-bild img { display: block; width: 100%; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.bt-teaser.gross.mit-bild { grid-template-columns: 1fr; }
@media (min-width: 640px) { .bt-teaser.gross.mit-bild { grid-template-columns: 220px 1fr; } .bt-teaser.gross h2 { font-size: 1.6rem; } }
.bt-teaser:not(.gross) { gap: 12px; }
.bt-teaser:not(.gross) .bt-teaser-bild img { aspect-ratio: 16 / 9; }
.bt-teaser:not(.gross) h2 { font-size: 1.2rem; }
.bt-teaser-grid { margin-top: 24px; }
.bt-teaser-grid .bt-teaser { margin-top: 0; }

/* Gemeindebrief-Archiv (ausklappbar) */
details.gb-archiv { margin: 14px 0 10px; }
details.gb-archiv[open] summary { margin-bottom: 10px; }
details.gb-archiv .downloads { margin-bottom: 0; }
