/* Pfarre Parsch – One-Page, Entwurf B „Dachlinie“ */

/* Farben: hell ist die Vorgabe; dunkel nach Geräteeinstellung oder eigener Wahl (data-theme).
   Die dunklen Werte stehen deshalb zweimal – beide Blöcke gleich halten. */
:root {
  color-scheme: light;
  --ground: #eef2f8;
  --band: #d9e2ef;
  --card: #ffffff;
  --ink: #12294a;
  --muted: #4d6180;
  --line: #c9d5e6;
  --field-line: #8fa3c0;
  --soft: #eaf1fa;
  --soft-hover: #dbe8f7;
  --primary: #14304f;
  --primary-hover: #1f4874;
  --on-primary: #ffffff;
  --link: #00659a;
  --red: #a7283b;
  --red-hover: #8c1f30;
  --on-red: #ffffff;
  --red-soft: #fbecef;
  --mark: #bd0f33;
  --shadow: 0 1px 2px rgba(15, 35, 65, .06), 0 8px 24px -12px rgba(15, 35, 65, .18);
  --shadow-up: 0 2px 4px rgba(15, 35, 65, .08), 0 18px 36px -16px rgba(15, 35, 65, .3);
  --roof-top: #0d2138;
  --roof-bottom: #173a61;
  --foot: #0d2138;
  --sky: #5cc3ee;
  --gold: #f2c75c;
  --notch: 5.5rem;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0c1627;
  --band: #060d19;
  --card: #142239;
  --ink: #e9eff8;
  --muted: #9db0cb;
  --line: #243a5a;
    --field-line: #56749f;
  --soft: #1c3150;
  --soft-hover: #264169;
  --primary: #5cc3ee;
  --primary-hover: #86d3f4;
  --on-primary: #06202f;
  --link: #82ccf2;
  --red: #f07b8f;
  --red-hover: #f595a5;
  --on-red: #2a0710;
  --red-soft: #2c1a2a;
  --mark: #e8486a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-up: 0 2px 6px rgba(0, 0, 0, .45), 0 20px 40px -16px rgba(0, 0, 0, .8);
  --roof-top: #142c4c;
  --roof-bottom: #1d426e;
  --foot: #040a13;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0c1627;
    --band: #060d19;
    --card: #142239;
    --ink: #e9eff8;
    --muted: #9db0cb;
    --line: #243a5a;
    --field-line: #56749f;
    --soft: #1c3150;
    --soft-hover: #264169;
    --primary: #5cc3ee;
    --primary-hover: #86d3f4;
    --on-primary: #06202f;
    --link: #82ccf2;
    --red: #f07b8f;
    --red-hover: #f595a5;
    --on-red: #2a0710;
    --red-soft: #2c1a2a;
    --mark: #e8486a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-up: 0 2px 6px rgba(0, 0, 0, .45), 0 20px 40px -16px rgba(0, 0, 0, .8);
    --roof-top: #142c4c;
    --roof-bottom: #1d426e;
    --foot: #040a13;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* weich erst, wenn die Seite fertig ist (app.js): sonst bricht der Sprung zu #… beim Laden ab */
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 1.5rem; }
.wrap { width: min(1280px, 100% - clamp(32px, 6vw, 96px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 20; background: var(--card); padding: .5rem 1rem; border-radius: 8px; }
section.wrap { padding-block: clamp(2rem, 5vw, 4rem) 0; }
main { padding-bottom: clamp(2.5rem, 6vw, 5rem); }

/* Kelch und Kreuz, das Zeichen der Pfarre */
.kelch { fill: var(--mark); fill-rule: evenodd; }
h2 .kelch-mark { width: .62em; height: 1.03em; margin-right: .45em; vertical-align: -.18em; }

/* Symbole und Schaltflächen */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn, .filters button, .more button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 2.9rem; padding: .6rem 1.25rem;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:hover, .more button:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-up); }
.btn-soft { background: var(--soft); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--soft-hover); }
.btn-red { background: var(--red); color: var(--on-red); box-shadow: var(--shadow); }
.btn-red:hover { background: var(--red-hover); }
.btn-gold { background: var(--gold); color: #2b1d00; }
.btn-gold:hover { background: #ffd974; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-wa { background: #25d366; color: #052e17; }
.btn-wa:hover { background: #3fe27d; box-shadow: var(--shadow-up); }
.btn-big { min-height: 3.4rem; padding: .8rem 1.6rem; font-size: 1.05rem; }

/* Kopf mit Dachlinie */
.roof {
  position: relative;
  z-index: 1;
  background: radial-gradient(120% 100% at 80% 0%, var(--roof-bottom), var(--roof-top) 70%);
  color: #fff;
  padding-bottom: calc(var(--notch) + 1.5rem);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28% calc(100% - var(--notch)), 0 100%);
}
.roof-low { --notch: 3rem; }
.roof > .watermark { position: absolute; right: 4%; top: 18%; height: 78%; width: auto; opacity: .1; pointer-events: none; }
.roof > .watermark .kelch { fill: #fff; }
/* auf Unterseiten ist der Kopf flach: das Zeichen läge hinter den Knöpfen */
.roof-low > .watermark { display: none; }
/* steht Schmuck rechts, rückt das Zeichen in die Mitte daneben */
@media (min-width: 1000px) { .season .roof:not(.roof-low) > .watermark { right: 29%; } }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; }
.brand img { display: block; width: 148px; }
.tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
nav a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; font-size: .95rem; font-weight: 600; transition: background-color .18s; }
nav a:hover { background: rgba(255, 255, 255, .16); }
.theme-toggle { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font: inherit; }
.theme-toggle:hover { background: rgba(255, 255, 255, .18); }
/* gezeigt wird, wohin man schalten kann */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding-top: clamp(2rem, 5vw, 4rem); }
.hero-text { flex: 1 1 22rem; }
.greeting { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 span { display: block; margin-top: .5rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 400; letter-spacing: 0; color: #b9cbe0; }
/* nächster Gottesdienst: eigene Karte mit Kalenderblatt */
.next { display: flex; align-items: center; gap: 1.15rem; max-width: 36rem; margin-top: 1.75rem; padding: 1rem 1.25rem 1rem 1rem; border-radius: 22px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); }
.leaf { display: grid; justify-items: center; flex: none; width: 5rem; overflow: hidden; border-radius: 14px; background: #fff; color: #12294a; line-height: 1.15; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); }
.leaf span { justify-self: stretch; padding: .2rem 0; background: #a7283b; color: #fff; text-align: center; font-size: .9rem; font-weight: 700; }
.leaf strong { padding-top: .25rem; font-size: 2.1rem; letter-spacing: -.03em; }
.leaf small { padding-bottom: .45rem; font-size: .85rem; color: #4d6180; }
.next h2 { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .01em; line-height: 1.4; color: var(--gold); }
.next h2 em { margin-left: .35rem; padding: .05rem .55rem; border-radius: 999px; background: var(--gold); color: #2b1d00; font-style: normal; font-size: .75rem; font-weight: 700; }
.next-title { margin-top: .2rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.3; }
.next-when { margin-top: .2rem; color: #cfdcee; font-size: .98rem; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
/* Kirchenfoto, oben wie ein Dach geschnitten, mit schmaler Goldkante */
.church-box { position: relative; flex: 1 1 24rem; max-width: 36rem; margin-inline: auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }
.church, .church img { clip-path: polygon(0 19%, 40% 0, 100% 13%, 100% 100%, 0 100%); border-radius: 0 0 22px 22px; }
.church { margin: 0; padding: 3px; background: linear-gradient(160deg, var(--gold), rgba(242, 199, 92, .25) 60%, var(--gold)); }
.church img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 0 19px 19px; }
.church { position: relative; }
/* das zweite Foto liegt deckungsgleich darüber und blendet langsam ein und aus:
   je rund 6 Sekunden sichtbar, 1,5 Sekunden Übergang; beim Überfahren mit der Maus bleibt es stehen */
.church img.second { position: absolute; top: 3px; left: 3px; width: calc(100% - 6px); height: calc(100% - 6px); opacity: 0; animation: crossfade 15s ease-in-out infinite; }
.church:hover img.second { animation-play-state: paused; }
@keyframes crossfade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.church-star { position: absolute; top: -2.5rem; right: -1rem; width: 11rem; pointer-events: none; }
.church-star svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Weihnachtlicher Schmuck (von season.php gesteuert) */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: #fff; }
.sky circle { opacity: .5; animation: twinkle 4s ease-in-out infinite; }
.sky .tw1 { animation-delay: 1.3s; fill: var(--gold); }
.sky .tw2 { animation-delay: 2.6s; }
@keyframes twinkle { 50% { opacity: .95; } }
.halo { fill: var(--gold); opacity: .22; }
.gold { fill: var(--gold); }
.gold.soft { opacity: .55; }
.tail { fill: var(--gold); opacity: .18; }
.season .foot { border-top: 3px solid var(--gold); }

/* Terminbereich: dunklerer Grund, reicht bis hinter die Dachlinie */
.band {
  position: relative;
  overflow: clip;
  background: var(--band);
  margin-top: calc(-1 * var(--notch));
  padding-top: var(--notch);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  scroll-margin-top: calc(-1 * var(--notch));
}
.band > .watermark { position: absolute; right: -3rem; top: calc(var(--notch) + 1rem); width: min(30vw, 420px); height: auto; opacity: .07; pointer-events: none; }
.band > section { position: relative; }

/* Filter und Zeitleiste */
/* bleibt beim Scrollen stehen, damit man jederzeit umschalten kann */
.filters { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .7rem; margin-bottom: .8rem; }
/* klebt sie, deckt sie die ganze Breite ab */
.filters.stuck { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.filters button { flex: none; }
.filter-list { display: contents; }
.filters .filter-toggle { display: none; }
.filters button { background: var(--card); color: var(--ink); border-color: var(--line); }
.filters button:hover { border-color: var(--primary); }
.filters button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.days, .days ul, .people, .social, .legal { list-style: none; margin: 0; padding: 0; }
/* Monat: nur Schrift und gelber Strich; bleibt beim Scrollen oben stehen */
.month { position: sticky; top: var(--filters-h, 0px); z-index: 2; margin: 2rem 0 .25rem; }
.month:first-child { margin-top: 0; }
.month h3 { display: flex; align-items: baseline; gap: .6rem; padding: .75rem 0 .5rem; border-bottom: 3px solid #e8b32e; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.25; letter-spacing: -.015em; }
.month h3 span { font-size: .6em; font-weight: 500; color: var(--muted); }
/* erst wenn er oben klebt, bekommt er die Farbe des Bereichs, damit nichts durchscheint */
.month.stuck { background: var(--band); }
.day { display: grid; gap: .75rem; padding-block: 1.25rem; }
.day + .day { border-top: 1px solid var(--line); }
.day h4 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.day-feast h4 time { color: var(--red); }
.holiday { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.holiday-legal { color: var(--red); font-weight: 600; }
.days ul { display: grid; gap: .75rem; align-content: start; }
.event { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border-radius: 18px; padding: 1rem 1.15rem; box-shadow: var(--shadow); --accent: var(--sky); }
.event.g-gottesdienste { --accent: #c43d55; }
.event.g-kinder { --accent: #2f9a60; }
.event.g-senioren { --accent: #8a67cf; }
.event.g-vortraege { --accent: #c9962b; }
.event.g-pfarrleben { --accent: #1b86c4; }
.time { flex: none; min-width: 4.6rem; padding: .35rem .5rem; border-radius: 12px; background: var(--soft); background: color-mix(in srgb, var(--accent) 16%, var(--card)); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.time:not(:has(time)) { font-weight: 600; font-size: .8rem; }
.title { line-height: 1.45; }
.meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; margin-top: .3rem; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.tag::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.more { text-align: center; margin-top: 1.5rem; }
.more button { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); padding-inline: 2rem; }
.notice, .empty { background: var(--card); border-radius: 18px; padding: 1.15rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
@media (min-width: 760px) {
  .day { grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; }
  .day h4 { padding-top: 1.2rem; }
}
@media (min-width: 1100px) {
  .day { grid-template-columns: 16rem minmax(0, 1fr); }
  .days ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* WhatsApp-Band */
.whatsapp { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; background: radial-gradient(120% 140% at 0% 0%, #1d4a73, #10294a 65%); color: #fff; border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-up); }
.whatsapp-text { flex: 1 1 18rem; }
.whatsapp h2 { margin-bottom: .35rem; }

/* Kontakt: Kacheln */
#kontakt { scroll-margin-top: 1rem; }
.bento { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--card); border-radius: 28px; padding: clamp(1.35rem, 2.5vw, 2rem); box-shadow: var(--shadow); scroll-margin-top: 1rem; }
.card h3 { display: flex; align-items: center; gap: .8rem; font-size: 1.25rem; line-height: 1.3; margin-bottom: 1.25rem; }
.badge { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none; border-radius: 16px; background: var(--soft); color: var(--link); font-size: 1.15rem; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-wa { width: 4rem; height: 4rem; border-radius: 22px; background: #25d366; color: #052e17; font-size: 1.8rem; }
address { font-style: normal; margin-bottom: 1.25rem; }
.stack { display: grid; gap: .6rem; }
.stack .btn { justify-content: flex-start; }
.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 16px; }
.hours > div + div { margin-top: .25rem; }
.hours .today { background: var(--soft); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .55rem; border-radius: 999px; background: var(--primary); color: var(--on-primary); vertical-align: middle; }
.people li { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; line-height: 1.4; }
.avatar { display: block; width: 5rem; height: 5rem; flex: none; overflow: hidden; border-radius: 50%; background: var(--soft); box-shadow: 0 0 0 3px var(--soft); }
/* leicht vergrößert: die alten Fotos haben einen hellen Rand */
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.07); }
.card-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: linear-gradient(135deg, var(--red-soft), var(--card) 60%); border: 1px solid var(--line); }
.card-help > div:first-child { flex: 1 1 26rem; }
.card-help h3 { margin-bottom: .75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-team, .card-help { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-team { grid-column: auto; }
}

/* Fuß */
.foot { background: var(--foot); color: #b9cbe0; padding-block: 2.5rem 5.5rem; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.foot-id { display: flex; align-items: center; gap: 1.25rem; }
.foot-id img { width: 96px; flex: none; }
.foot-links { display: grid; gap: 1rem; justify-items: start; }
.social, .legal { display: flex; flex-wrap: wrap; gap: .6rem; }
.legal { gap: 1.25rem; }
.foot a:not(.btn) { color: #fff; }
@media (min-width: 800px) { .foot-links { justify-items: end; } }

/* Unterseiten und Formulare */
.page { padding-block: 2.5rem 1rem; }
.page:not(.page-wide) { width: min(52rem, 100% - 32px); }
.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.025em; margin-bottom: 1.25rem; line-height: 1.15; }
.page h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 2rem 0 .6rem; }
.page p, .page ul { margin-bottom: .9rem; }
.panel { background: var(--card); border-radius: 28px; padding: clamp(1.35rem, 3vw, 2.25rem); margin-bottom: 1rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input:not([type="checkbox"]) { width: 100%; min-height: 3.1rem; font: inherit; padding: .65rem 1rem; border: 1px solid var(--field-line); border-radius: 14px; background: var(--ground); color: var(--ink); }
.field input[aria-invalid="true"] { border: 2px solid var(--red); }
.hint { font-size: .88rem; font-weight: 400; color: var(--muted); margin-top: .3rem; }
.check { display: flex; gap: .8rem; align-items: flex-start; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; flex: none; accent-color: var(--primary); }
.check label { font-weight: 400; margin: 0; }
.trap { position: absolute; left: -9999px; }
.error, .success { border-radius: 16px; padding: 1rem 1.15rem; margin-bottom: 1rem; border: 1px solid transparent; }
.error { background: var(--red-soft); border-color: var(--red); }
.success { background: var(--card); background: color-mix(in srgb, #2f9a60 14%, var(--card)); border-color: #2f9a60; }
/* Dankeseite: eine Spalte, alles mittig */
.page.page-done { width: min(34rem, 100% - 32px); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.done h1, .done p, .done figure { margin: 0; }
.done h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.done-mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #25d366; color: #052e17; font-size: 2rem; }
.done-mark .icon { stroke-width: 2.6; }
/* der Code ist schwarz auf durchsichtig: immer eine weiße Fläche darunter, auch im Dunkeln */
.qr { padding: 1rem 1rem .75rem; border-radius: 20px; background: #fff; color: #12294a; }
.qr img { display: block; width: 200px; height: 200px; }
.qr figcaption { margin-top: .6rem; font-size: .85rem; line-height: 1.3; }
.done-back { font-size: .95rem; }
.page .actions { margin-bottom: 1rem; }
.scroll { overflow-x: auto; background: var(--card); border-radius: 18px; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; overflow-wrap: normal; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* Nach oben */
.to-top { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 9; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: #14304f; color: #fff; font: inherit; font-size: 1.25rem; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .6); cursor: pointer; animation: rise .25s ease-out; transition: transform .18s, background-color .18s; }
.to-top:hover { background: #1f4874; transform: translateY(-3px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Seitenleiste von rechts */
html:has(dialog.drawer[open]) { overflow: hidden; }
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(34rem, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: none; background: var(--card); color: var(--ink); box-shadow: -24px 0 48px -24px rgba(0, 0, 0, .5); overscroll-behavior: contain; }
dialog.drawer[open] { animation: slide-in .28s cubic-bezier(.2, .8, .3, 1); }
dialog.drawer::backdrop { background: rgba(6, 13, 25, .6); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-panel { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1.1rem, 4vw, 2rem); border-bottom: 3px solid #e8b32e; }
.drawer-head h2 { margin: 0; font-size: 1.6rem; }
.drawer-close { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; cursor: pointer; }
.drawer-close:hover { background: var(--soft-hover); }
.drawer-body.page { width: auto; flex: 1; overflow-y: auto; padding: 1rem clamp(1.1rem, 4vw, 2rem) 2.5rem; }
.drawer-body.page h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.drawer-body.page > h2:first-child { margin-top: 0; }

/* Menüknopf: nur am Handy (und nur mit JavaScript) */
.mobile-menu { display: none; }
.burger { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: #14304f; color: #fff; font: inherit; font-size: 1.15rem; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55); cursor: pointer; }
.burger .icon-close, .burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
#mobile-nav { position: absolute; top: 3.5rem; right: 0; display: grid; gap: .25rem; width: min(15rem, 80vw); padding: .5rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-up); flex-wrap: nowrap; }
#mobile-nav a { display: flex; align-items: center; gap: .75rem; justify-content: flex-start; padding: .8rem 1rem; border-radius: 12px; color: var(--ink); font-size: 1.05rem; }
#mobile-nav a:hover { background: var(--soft); }

/* Sobald das Foto unter dem Text steht: Rechteck über die volle Breite bis zum unteren Rand des
   Kopfes – die Dachlinie des Kopfes schneidet dann direkt ins Bild, ohne Streifen dazwischen */
@media (max-width: 820px) {
  .roof:has(.church-box) { padding-bottom: 0; overflow: clip; }
  .church-box { flex: 0 0 100vw; max-width: none; margin: .5rem calc(50% - 50vw) 0; filter: none; }
  .church { padding: 0; background: none; clip-path: none; border-radius: 0; }
  .church img { clip-path: none; border-radius: 0; }
  .church img.second { top: 0; left: 0; width: 100%; height: 100%; }
}

/* Handy */
@media (max-width: 700px) {
  :root { --notch: 2.75rem; }
  .roof-low { --notch: 1.75rem; }
  /* am Handy stünde das Zeichen hinter Text und Knöpfen; Logo und Terminbereich zeigen es */
  .roof > .watermark { display: none; }
  .brand img { width: 96px; }
  .bar { flex-wrap: wrap; }
  .tools { display: contents; }
  .theme-toggle { order: 2; width: 2.9rem; height: 2.9rem; margin-left: auto; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .bar nav a { flex: 1; justify-content: center; padding: .5rem .35rem; font-size: .88rem; }
  .js .mobile-menu { display: block; position: fixed; top: calc(.9rem + env(safe-area-inset-top, 0px)); right: 1rem; z-index: 10; }
  .js .bar { align-items: flex-start; flex-wrap: nowrap; }
  .js .bar nav { display: none; }
  .js .bar { padding-top: .9rem; }
  .js .mobile-menu ~ .roof .theme-toggle { margin-right: 3.5rem; }
  /* Filter: ein Knopf, die Auswahl klappt darunter auf */
  .filters { display: block; padding-block: .9rem; }
  .filters .filter-toggle { display: flex; width: 100%; justify-content: flex-start; min-height: 2.9rem; }
  .filter-toggle strong { margin-left: -.25rem; }
  .filter-toggle .icon-chevron { margin-left: auto; transition: transform .18s; }
  .filters.open .icon-chevron { transform: rotate(180deg); }
  .filter-list { display: none; }
  .filters.open .filter-list { display: grid; gap: .3rem; position: absolute; top: calc(100% - .5rem); left: 0; right: 0; padding: .5rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-up); max-height: 70vh; overflow-y: auto; }
  .filters .filter-list button { width: 100%; justify-content: flex-start; border-color: transparent; box-shadow: none; }
  /* klebt die Leiste: volle Breite, rechts Platz für den Menüknopf */
  .filters.stuck { clip-path: none; box-shadow: none; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
  .filters.stuck.open .filter-list { left: calc(50vw - 50%); right: calc(50vw - 50%); }
  .js .filters.stuck .filter-toggle { width: calc(100% - 3.5rem); }
  .band > .watermark { width: 55vw; }
  .church-star { width: 7rem; top: -1.5rem; right: 0; }
  /* nach einem Sprung bleibt oben Platz für den Menüknopf */
  #whatsapp, #kontakt { scroll-margin-top: 3.5rem; }
  .qr { display: none; }
  .event { gap: .75rem; padding: .85rem; }
  .time { min-width: 4rem; }
  .btn-big, .card-help .actions .btn, .whatsapp .btn { width: 100%; }
  .card, .panel, .whatsapp { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky circle, dialog.drawer[open], .to-top, .church img.second { animation: none; }
  .btn, .more button { transition: none; }
}
