/* mario-wisbar.de – Richtung „Irrlicht“ */
@font-face { font-family: 'Instrument Serif'; src: url('/static/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/static/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/static/fonts/lora-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --night: #11161F; --ink: #1B2430; --card: #161D28; --line: #2A3544; --line-soft: #232D3B;
  --gold: #F2B544; --gold-hi: #FFD27A; --ember: #E07A3F; --fog: #C9D3DD; --text: #E6E9EE; --muted: #A9B4C2; --paper: #F3EEE3;
  --ok: #7FD1A6; --warn: #F4A27A;
  --serif: 'Instrument Serif', Georgia, serif; --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r: 14px; --pad: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.proto { background: #2A2112; color: var(--gold-hi); font-size: 13px; text-align: center; padding: 4px 12px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 15px; word-break: break-all; }

/* Kopf */
.top { display: flex; align-items: center; gap: 24px; padding: 22px var(--pad); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); font-family: var(--serif); font-size: 28px; line-height: 1; }
.brand:hover { color: var(--paper); }
.glow { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px 5px rgba(242, 181, 68, .45); flex: none; }
.main { display: flex; gap: 22px; font-size: 15px; margin-left: auto; flex-wrap: wrap; }
.main a, .menu nav a { color: var(--fog); text-decoration: none; }
.main a:hover, .menu nav a:hover { color: var(--gold-hi); }
.main a[aria-current], .menu nav a[aria-current] { color: var(--gold); }
.actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 6px; font-size: 14px; color: var(--muted); margin-left: 6px; }
.lang a { color: var(--muted); text-decoration: none; padding: 6px 4px; }
.lang a[aria-current] { color: var(--text); font-weight: 600; }
.menu { display: none; width: 100%; }
.menu summary { cursor: pointer; color: var(--fog); padding: 8px 0; list-style: none; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: '☰  '; }
.menu nav { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 4px; }
.menu nav a { padding: 10px 0; border-top: 1px solid var(--line-soft); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--gold); color: var(--night); font: 600 15px/1.2 var(--sans); text-decoration: none; border: 1px solid var(--gold); cursor: pointer; }
.btn:hover { background: var(--gold-hi); color: var(--night); }
.btn.ghost { background: transparent; color: var(--text); border-color: #3A4656; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.danger { background: var(--warn); border-color: var(--warn); }
.btn[aria-current] { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--gold); }
.link { text-decoration: none; font-weight: 500; }
.linkbtn { background: none; border: 0; color: var(--gold); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.inline { display: inline; }

/* Startseite */
.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1280px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; padding: 48px var(--pad) 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; padding: 72px var(--pad) 56px; max-width: 1280px; margin: 0 auto; align-items: start; }
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 500; font-family: var(--sans); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 92px); line-height: .98; color: var(--paper); margin: 0 0 26px; }
.display em { color: var(--gold); }
.display.small { font-size: clamp(40px, 6vw, 68px); }
.lead { font-size: 19px; color: var(--fog); max-width: 640px; margin: 0 0 18px; }
.next { background: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.next .event { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.next .event .btn { display: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 72px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--gold); }
.card.lit { border-color: #4A3F22; }
.card-t { font-family: var(--serif); font-size: 30px; color: var(--paper); line-height: 1.1; }
.card.lit .card-t { color: var(--gold); }
.card-d { font-size: 15px; color: var(--muted); }

/* Inhaltsseiten */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 22px 0 0; font-size: 15px; }
.toc span { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.toc a { text-decoration: none; }
.prose { max-width: 760px; margin-left: 0; padding-bottom: 72px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--paper); margin: 56px 0 14px; scroll-margin-top: 24px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 32px 0 8px; color: var(--paper); }
.prose p, .prose li { color: var(--fog); }
.prose ul { padding-left: 22px; }
.note, aside.note { background: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 18px; color: var(--fog); margin: 20px 0; }
aside.note p { margin: 6px 0; }

/* Termine */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.filters a { text-decoration: none; color: var(--fog); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.filters a[aria-current] { border-color: var(--gold); color: var(--gold); }
.events { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; padding-bottom: 72px; }
.event { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px 24px; }
.when { display: flex; flex-direction: column; }
.day { font-family: var(--serif); font-size: 24px; color: var(--paper); line-height: 1.15; }
.time { color: var(--muted); font-size: 15px; }
.type { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event h3 { margin: 2px 0 8px; font-size: 20px; font-weight: 600; }
.event h3 a { color: var(--text); text-decoration: none; }
.event h3 a:hover { color: var(--gold-hi); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; }
.seats { color: var(--gold); }
.badge { display: inline-block; border: 1px solid var(--line); color: var(--fog); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.badge.warn { border-color: var(--warn); color: var(--warn); }

.detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; margin: 0 0 18px; }
.facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--paper); font-size: 18px; }
.detail .meta { margin-bottom: 18px; }
.detail .prose { padding-bottom: 0; }

/* Formulare */
.book { background: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.book h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--paper); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--fog); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--night); border: 1px solid #3A4656; border-radius: 10px; padding: 11px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(242, 181, 68, .25); }
.has-err input, .has-err textarea { border-color: var(--warn); }
.err { color: var(--warn); font-size: 14px; margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--warn); }
.code-row { display: flex; gap: 8px; }
.code-row input { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.code-row .btn { flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fog); }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.check.has-err label { color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; color: var(--fog); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.warn { border-color: var(--warn); color: var(--text); }
.notice.warn ul { margin: 6px 0 0; padding-left: 20px; }
.notice p { margin: 0; }

/* Kontakt: Vernetzen */
.social { margin-top: 28px; color: var(--fog); }
.social a { font-weight: 600; }

/* Fuß */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--pad); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--gold-hi); }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }

/* Verwaltung */
.adm-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px var(--pad); border-bottom: 1px solid var(--line-soft); }
.adm-top .brand { font-size: 24px; }
.adm-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; margin-right: auto; align-items: center; }
.adm-nav a { color: var(--fog); text-decoration: none; }
.adm-nav a:hover { color: var(--gold-hi); }
.adm-main { padding: 28px var(--pad) 80px; max-width: 1280px; margin: 0 auto; }
.adm-main h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--paper); margin: 0 0 6px; }
.adm-main h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--paper); margin: 40px 0 12px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.adm-head .kicker { margin-bottom: 6px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tbl { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.dim td { opacity: .55; }
.actions-cell { white-space: nowrap; }
input.copy { font-family: var(--mono); font-size: 13px; min-height: 36px; padding: 6px 8px; min-width: 260px; }
input.copy.wide { max-width: 760px; }
.adm-form { display: flex; flex-direction: column; gap: 14px; margin: 12px 0; }
.adm-form.row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.adm-form.row .field { flex: 1 1 220px; }
.adm-form.row .field.small { flex: 0 1 110px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.grid2.tight { gap: 12px; }
.box { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 18px; margin: 12px 0; }
.box summary { cursor: pointer; }
pre { white-space: pre-wrap; font-family: var(--mono); font-size: 14px; color: var(--fog); background: var(--night); padding: 12px; border-radius: 8px; }

/* Druckliste */
body.printable { background: #fff; color: #111; }
.print-page { max-width: 1000px; margin: 0 auto; }
.print-page h1 { color: #111; font-size: 34px; }
.print-page p { color: #222; }
table.plist { font-size: 14px; color: #111; border: 1px solid #999; }
table.plist th { background: #eee; color: #333; }
table.plist th, table.plist td { border-bottom: 1px solid #bbb; }
table.plist .box-cell { font-size: 20px; text-align: center; width: 48px; }
body.printable .btn.ghost { color: #111; border-color: #999; }
@media print {
  .no-print { display: none !important; }
  body.printable .adm-main { padding: 0; }
  table.plist tr { break-inside: avoid; }
}

/* Schmal */
@media (max-width: 1100px) {
  .main { display: none; }
  .menu { display: block; }
  .actions { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero, .detail { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 10px; }
  .event .btn { justify-self: start; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .actions .btn { display: none; }
  .hero { padding-top: 44px; }
  .brand { font-size: 24px; }
  .code-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Bilder */
.fig { margin: 28px 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--ink); }
.fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose > .fig.tall { max-width: 420px; }
.gallery { display: grid; gap: 14px; margin: 28px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery .fig { margin: 0; }
.gallery .fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.tall .fig img { aspect-ratio: 3 / 4; }
.gallery.tall { max-width: 640px; }
.band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.band-item { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-soft); text-decoration: none; }
.band-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.band-item:hover img { transform: scale(1.03); }
.band-item span { position: absolute; left: 12px; bottom: 12px; background: rgba(17, 22, 31, .85); color: var(--paper); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
@media (max-width: 860px) {
  .gallery.n3, .gallery.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: 1fr; }
}

/* Termine mit Bild, Angaben für Angemeldete, Medien */
.event.has-pic { grid-template-columns: 160px 200px minmax(0, 1fr) auto; }
.thumb { display: block; border-radius: 10px; overflow: hidden; }
.thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.next .event.has-pic { grid-template-columns: 1fr; }
.next .thumb { display: none; }
.ev-pic { margin: 0 0 22px; }
.ev-pic img { aspect-ratio: 16 / 9; object-fit: cover; }
.private { background: var(--ink); border: 1px solid var(--gold); border-radius: 14px; padding: 20px 22px; margin: 24px 0; }
.private h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--paper); margin: 0 0 8px; }
.private p { color: var(--fog); }
fieldset.box { border: 1px solid var(--line-soft); }
fieldset.box legend { padding: 0 6px; color: var(--gold); font-weight: 500; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.media-card { margin: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.media-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card figcaption { padding: 10px 12px; font-size: 14px; }
@media (max-width: 1100px) { .event.has-pic { grid-template-columns: 140px minmax(0, 1fr); gap: 10px 20px; } .event.has-pic .thumb { grid-row: span 3; align-self: start; } .event.has-pic .btn { justify-self: start; } }
@media (max-width: 520px) { .event.has-pic { grid-template-columns: 1fr; } .event.has-pic .thumb { grid-row: auto; } }

/* Kopfleiste am PC beim Scrollen oben halten */
@media (min-width: 1101px) {
  .top { position: sticky; top: 0; z-index: 20; background: rgba(17, 22, 31, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .prose h2, .prose [id] { scroll-margin-top: 112px; }
}

/* Empfehlungen / Zitate (Vorlage: Zeilen mit ">> " in den Inhaltsdateien) */
.quote { position: relative; margin: 36px 0; padding: 40px 36px 28px 92px; background: var(--ink); border: 1px solid #4A3F22; border-radius: 18px; max-width: 760px; }
.quote::before { content: '\201E'; position: absolute; left: 26px; top: -14px; font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--gold); text-shadow: 0 0 24px rgba(242, 181, 68, .35); }
html[lang="en"] .quote::before { content: '\201C'; top: 6px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.5; color: var(--paper); margin: 0 0 12px; }
.quote blockquote p.orig { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 4px 0 12px; }
.quote figcaption { color: var(--gold); font-size: 14px; letter-spacing: .04em; }
.quote figcaption::before { content: '— '; }
@media (max-width: 520px) { .quote { padding: 56px 22px 22px; } .quote::before { left: 18px; top: -18px; font-size: 96px; } html[lang="en"] .quote::before { top: 0; } }

/* Bilder vergrößern */
a.zoom { display: block; cursor: zoom-in; border-radius: 12px; }
a.zoom:hover img { border-color: var(--gold); }
dialog.lightbox { max-width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
dialog.lightbox::backdrop { background: rgba(8, 10, 14, .9); }
dialog.lightbox img { display: block; max-width: min(96vw, 1600px); max-height: 84vh; width: auto; height: auto; border-radius: 10px; margin: 0 auto; }
dialog.lightbox .lb-cap { text-align: center; color: var(--fog); margin: 10px 0 0; min-height: 1.4em; }
dialog.lightbox button { position: absolute; background: rgba(17, 22, 31, .85); color: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: 48px; height: 48px; font-size: 24px; line-height: 1; cursor: pointer; }
dialog.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
dialog.lightbox .lb-close { top: -18px; right: -18px; }
dialog.lightbox .lb-prev { left: -24px; top: 42%; }
dialog.lightbox .lb-next { right: -24px; top: 42%; }
@media (max-width: 860px) { dialog.lightbox .lb-close { top: 8px; right: 8px; } dialog.lightbox .lb-prev { left: 8px; } dialog.lightbox .lb-next { right: 8px; } }

/* Nebeneinander (Bild + Zitat) */
.pair { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; margin: 8px 0 24px; }
.pair .fig, .pair .quote { margin: 0; }
.pair .fig img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .pair .fig { max-width: 320px; } }
.prose h3[id] { scroll-margin-top: 112px; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; }

/* Inhaltsseiten: breite Spalte für Bilder/Videos, lesbare Zeilenlänge für Text, Seitenmenü am Rand */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; align-items: start; padding-bottom: 72px; }
.page-body.has-toc { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "main side"; }
.page-body .prose { grid-area: main; max-width: 900px; padding-bottom: 0; }
.page-body .toc-side { grid-area: side; position: sticky; top: 112px; }
.page-body.has-toc .prose { grid-area: main; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > aside.note { max-width: 70ch; }
.toc-side .toc { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 4px 0 4px 18px; border-left: 1px solid var(--line); }
.toc-side .toc span { margin-bottom: 4px; }
.page-head { padding-bottom: 20px; }
.fig.video video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-soft); background: #000; }
@media (min-width: 1500px) { body { font-size: 18px; } .page-body .prose { max-width: 960px; } }
@media (max-width: 1100px) {
  .page-body.has-toc { display: block; }
  .page-body .toc-side { position: static; margin: 0 0 8px; }
  .toc-side .toc { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; border-left: 0; padding: 0; }
  .toc-side .toc span { width: 100%; margin: 0; }
}
@media (max-width: 860px) {
  .prose h2 { font-size: 32px; margin-top: 44px; }
  .prose h3 { font-size: 26px; }
  .page-head { padding-top: 36px; }
  .quote { padding: 32px 22px 22px 70px; }
  .quote::before { left: 16px; font-size: 96px; }
  .gallery, .gallery.n3, .gallery.n4 { gap: 10px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .prose > .fig.tall { max-width: 100%; }
  .gallery.tall { max-width: 100%; }
  .lead { font-size: 17px; }
}

/* ---------- Freigaben: Bereiche im Aufbau und Vorschau ---------- */
.pvbar { background: #13293D; color: var(--paper); font-size: 13px; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--line-soft); }
.pvbar strong { color: var(--gold-hi); font-weight: 600; }
.pvbar a { color: var(--gold-hi); }
.main .soon, .menu nav .soon { color: var(--muted); opacity: .55; cursor: default; }
.main .soon .soon-tag { display: none; }
.menu nav .soon { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.main a.pv, .menu nav a.pv { text-decoration: underline dashed; text-underline-offset: 6px; text-decoration-color: var(--line); }
.card.soon { opacity: .5; cursor: default; }
.card.soon:hover { border-color: var(--line-soft); }
.card.soon .badge, .card.pv .badge { align-self: flex-start; margin-top: auto; }
.card.pv { border-style: dashed; }
.band-item.soon { cursor: default; }
.band-item.soon img { filter: grayscale(1) brightness(.55); }
.band-item.soon:hover img { transform: none; }
.soon-link { color: var(--muted); }
.notice.pvnote { border-style: dashed; margin-top: 16px; }
.building .btn-row, .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.building { padding-top: 48px; padding-bottom: 72px; }
fieldset.checks { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 18px; display: grid; gap: 10px; margin: 0 0 16px; }
fieldset.checks legend { padding: 0 6px; color: var(--fog); }
.actions-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Baukasten: Blöcke (nur angemeldet bzw. mit Vorschau-Link sichtbar) ---------- */
.blk { position: relative; }
.blk-wrap { display: flex; }
.blk-wrap > :not(.blk-tg) { flex: 1; min-width: 0; }
.blk-tg { position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0;
  background: rgba(17, 22, 31, .92); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 12px;
  font-size: 12px; line-height: 1.4; color: var(--fog); font-family: inherit; font-style: normal; letter-spacing: 0; text-transform: none; }
.blk-tg.static { padding: 3px 12px; color: var(--warn); }
.blk-tg button { background: transparent; color: var(--gold-hi); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font: inherit; font-weight: 600; cursor: pointer; }
.blk-tg button:hover { border-color: var(--gold); }
.blk-tg button:disabled { opacity: .5; cursor: wait; }
.blk.is-off { outline: 1px dashed var(--warn); outline-offset: 6px; border-radius: 12px; }
.blk.is-off > :not(.blk-tg) { opacity: .32; }
.blk.is-off > .blk-tg button { background: var(--gold); color: #15110A; border-color: var(--gold); }
.blk-sec > .blk-tg { top: 22px; }
.blk-unterabschnitt > .blk-tg { top: 2px; }
.blk:not(.is-off):hover { outline: 1px dashed var(--line); outline-offset: 6px; border-radius: 12px; }
.prose .blk-sec > p, .prose .blk-sec > ul, .prose .blk-sec > ol, .prose .blk-sec > h2, .prose .blk-sec > h3, .prose .blk-sec > aside.note { max-width: 70ch; }
.prose .blk-sec > .fig.tall { max-width: 420px; }
.hero.single { grid-template-columns: minmax(0, 1fr); }
.hero > .blk-wrap { display: block; }
.next.blk > .blk-tg, .quote.blk > .blk-tg { top: 10px; right: 10px; }
@media (max-width: 860px) { .blk-sec > .blk-tg { position: relative; top: auto; right: auto; margin: 32px 0 -36px auto; width: max-content; } .prose .blk-sec > .fig.tall { max-width: 100%; } }
@media print { .blk-tg, .pvbar { display: none; } .blk.is-off { display: none; } }
.band.blk > .blk-tg { top: -38px; right: var(--pad); }
.areas.blk > .blk-tg { top: -4px; right: var(--pad); }

/* ---------- Baukasten: Werkzeugleiste, Dialog und Formulare (Bearbeiten, Anlegen, Löschen) ---------- */
.blk-tg { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 16px); border-radius: 16px; }
.blk-tg form { display: inline-flex; gap: 4px; margin: 0; }
.blk-tg a { color: var(--gold-hi); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.blk-tg a:hover, .blk-tg a:focus-visible { border-color: var(--gold); color: var(--gold-hi); }
.blk-tg a.ic, .blk-tg form.x button { padding: 2px 8px; min-width: 28px; text-align: center; }
.blk-tg a.del { color: var(--warn); }
.blk-tg a.del:hover { border-color: var(--warn); color: var(--warn); }
.blk-tg .x { display: none; }
.blk:hover > .blk-tg .x, .blk-tg:hover .x, .blk-tg:focus-within .x { display: inline-flex; }
.blk-txt { max-width: 70ch; }
.blk-tg.quiet { top: -30px; right: 0; visibility: hidden; opacity: 0; transition: opacity .12s; }
.blk-tg.quiet::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.blk-txt:hover > .blk-tg.quiet, .blk-tg.quiet:focus-within, .blk-txt.is-off > .blk-tg.quiet { visibility: visible; opacity: 1; }
.page-head.blk > .blk-tg { top: 20px; right: var(--pad); }
.blk-flash { animation: blkflash 1.8s ease-out; border-radius: 12px; }
@keyframes blkflash { from { box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(242, 181, 68, .25); } to { box-shadow: 0 0 0 3px transparent, 0 0 0 9px transparent; } }
.blk-add { margin: 8px 0 24px; }
.home-free { padding-bottom: 56px; }
.home-free .prose { padding-bottom: 0; }
.pvbar form.inline button { color: var(--gold-hi); font-size: inherit; }
@media (hover: none) {
  .blk-tg .x { display: inline-flex; }
  .blk-tg.quiet { visibility: visible; opacity: 1; position: static; width: max-content; margin: 0 0 4px auto; }
}
@media print { .blk-add, .ed-toast { display: none; } }

dialog.ed { width: min(1080px, 96vw); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--ink); color: var(--text); overflow: hidden; }
dialog.ed::backdrop { background: rgba(8, 10, 14, .8); }
.ed-body { padding: 26px 28px 28px; overflow-y: auto; max-height: 92vh; }
.ed-x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; background: var(--night); color: var(--paper); border: 1px solid var(--line); font-size: 22px; line-height: 1; cursor: pointer; }
.ed-x:hover { border-color: var(--gold); color: var(--gold); }
.ed-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ed-form h2 { margin: 0 48px 0 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--paper); }
.ed-form > p { margin: 0; }
.ed-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: start; }
.ed-lang { color: var(--muted); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-left: 8px; }
.ed-form textarea { font-size: 15px; line-height: 1.5; }
.ed-form input.tiny { width: 90px; }
.ed-form [disabled] { opacity: .45; }
.ed-pick, .ed-row { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; margin: 0; min-width: 0; }
.ed-pick legend, .ed-row legend { padding: 0 6px; color: var(--fog); font-size: 14px; font-weight: 500; }
.ed-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; max-height: 292px; overflow-y: auto; padding: 4px; margin-bottom: 8px; }
.ed-img { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fog); cursor: pointer; min-width: 0; }
.ed-img input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.ed-img img { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; display: block; }
.ed-img:hover img { border-color: var(--line); }
.ed-img input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 181, 68, .3); }
.ed-img input:focus-visible + img { outline: 2px solid var(--gold); outline-offset: 2px; }
.ed-img input:checked ~ span { color: var(--gold-hi); }
.ed-img span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ed-tpl { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--fog); font-size: 14px; line-height: 1.4; }
.ed-tpl strong { color: var(--paper); font-size: 17px; font-weight: 600; }
.ed-tpl:hover, .ed-tpl:focus-visible { border-color: var(--gold); color: var(--fog); }
.ed-row { display: flex; flex-direction: column; gap: 12px; }
.ed-rowhead { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
.ed-rowhead .check { padding-bottom: 12px; }
.ed-page { max-width: 1080px; background: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 28px; }
.ed-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(560px, 92vw); background: var(--night); color: var(--paper); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 18px; font-size: 15px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
@media (max-width: 760px) {
  .ed-cols { grid-template-columns: 1fr; }
  .ed-body, .ed-page { padding: 20px 16px; }
  .ed-rowhead { grid-template-columns: 1fr; }
}

/* ---------- Feinschliff 0.9.1: eigenständigere Gestaltung ----------
   Weniger Baukasten-Optik: keine Pillen-Knöpfe, keine Versalien-Etiketten, keine Kachelraster.
   Statt Leuchtpunkt ein reiner Schriftzug; Licht nur dort, wo es inhaltlich passt (Laternenlicht). */
:root { --r: 4px; --label: 'Instrument Serif', Georgia, serif; }

/* Leichte Körnung, damit die Nachtfläche nicht wie eine leere Vorlage wirkt */
body { background-color: var(--night); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); }
body.printable { background-image: none; }

/* Schriftzug statt Punkt */
.glow { display: none; }
.brand { font-size: 30px; letter-spacing: -.01em; gap: 0; transition: text-shadow .25s; }
.brand:hover { text-shadow: 0 0 18px rgba(242, 181, 68, .45); }

/* Etiketten: kursive Serife statt gesperrter Großbuchstaben */
.kicker, .toc span, .type, .facts dt { font-family: var(--label); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.kicker { font-size: 21px; color: var(--gold); margin-bottom: 14px; }
.kicker::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; opacity: .7; }
.toc span { font-size: 18px; color: var(--muted); }
.type { font-size: 17px; color: var(--muted); }
.facts dt { font-size: 17px; }

/* Knöpfe: schlicht, kantig */
.btn { border-radius: 3px; min-height: 42px; padding: 9px 18px; }
.btn.small { border-radius: 3px; }
.badge, .tag, .filters a { border-radius: 3px; }
.top .actions .btn.ghost { border-color: transparent; padding-left: 10px; padding-right: 10px; }
.top .actions .btn.ghost:hover, .top .actions .btn.ghost[aria-current] { border-color: transparent; color: var(--gold-hi); box-shadow: none; text-decoration: underline; text-underline-offset: 6px; }
.lang span { opacity: .5; }

/* Startseite: Überschrift mit „Laternenlicht“ als Licht statt als Farbwechsel */
.display em { color: #FFE2A6; text-shadow: 0 0 22px rgba(242, 181, 68, .55), 0 0 60px rgba(224, 122, 63, .25); }
.hero { padding-top: 84px; }

/* Nächste Termine: Spalte mit Linie statt Karte */
.next { background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 4px 0 4px 32px; gap: 6px; }
.next .event { border-bottom: 1px solid var(--line-soft); padding: 18px 0 20px; }
.next .event:last-of-type { border-bottom: 0; }
.next .event h3 { font-size: 19px; }

/* Bilderleiste: Collage statt drei gleicher Kacheln */
.band { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 230px)); gap: 14px; }
.band > :first-child { grid-row: span 2; }
.band > .blk, .band > .blk > .band-item { height: 100%; }
.band-item { border: 0; border-radius: 2px; height: 100%; }
.band-item img { height: 100%; aspect-ratio: auto; }
.band-item::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10, 13, 19, .85)); pointer-events: none; }
.band-item span { z-index: 1; left: 18px; bottom: 14px; background: none; padding: 0; border-radius: 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1; }
.band-item:hover span { color: var(--gold-hi); }

/* Bereiche: Verzeichnis statt Kachelraster */
.areas .kicker { margin-bottom: 8px; }
.cards { display: block; border-top: 1px solid var(--line); margin-bottom: 80px; }
.cards > .blk { display: block; }
.card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 40px; gap: 4px 40px; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 26px 0; }
.card:hover { border-color: var(--line-soft); }
.card-t { font-size: 38px; transition: color .15s; }
.card-d { font-size: 16px; max-width: 58ch; }
a.card::after { content: '→'; grid-row: 1; grid-column: 3; justify-self: end; color: var(--muted); font-size: 20px; transition: transform .2s, color .2s; }
a.card:hover::after { transform: translateX(6px); color: var(--gold); }
a.card:hover .card-t { color: var(--gold-hi); }
.card.lit { border-color: var(--line-soft); }
.card .badge { grid-column: 2; justify-self: start; margin-top: 8px; }
.card.soon .badge, .card.pv .badge { margin-top: 8px; align-self: auto; }
.card.pv { border-style: none none dashed; }
.card.soon:hover { border-color: var(--line-soft); }

/* Inhaltsseiten */
.prose h2 { border-top: 1px solid var(--line-soft); padding-top: 34px; margin-top: 52px; }
.page-body .prose > h2:first-child, .page-body .prose > .blk-sec:first-child > h2 { border-top: 0; padding-top: 0; margin-top: 24px; }
.toc-side .toc { border-left-color: var(--line-soft); }
.note, aside.note, .notice, .private, .book, .quote, .fig img, .fig.video video, .gallery .fig img, .thumb, a.zoom, .box, .tbl, .ed-page, dialog.ed { border-radius: var(--r); }
.quote { border-color: var(--line); }
.event { border-radius: var(--r); }
input, select, textarea { border-radius: 3px; }

@media (max-width: 860px) {
  .band { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px; }
  .band > :first-child { grid-column: span 2; grid-row: auto; }
  .card { grid-template-columns: minmax(0, 1fr) 28px; padding: 22px 0; }
  .card-d { grid-column: 1; }
  .card .badge { grid-column: 1; }
  a.card::after { grid-row: 1; grid-column: 2; }
  .card-t { font-size: 32px; }
  .next { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; }
}
@media (max-width: 520px) {
  .band { grid-template-columns: 1fr; grid-template-rows: none; }
  .band > :first-child { grid-column: auto; }
  .band-item { height: auto; }
  .band-item img { height: auto; aspect-ratio: 4 / 3; }
  .brand { font-size: 26px; }
  .kicker { font-size: 19px; }
}

/* Bilderleiste 0.9.2: die kleinen Bilder sind erst grau und bekommen beim Darüberfahren Farbe.
   Auf Touchgeräten (kein Darüberfahren) gleich farbig; „bald“ steht ohnehin in der Bildunterschrift. */
@media (hover: hover) {
  .band > :nth-child(n+2) img { filter: grayscale(1) brightness(.75); transition: filter .7s ease, transform .3s; }
  .band > :nth-child(n+2):hover img, .band > :nth-child(n+2):focus-within img { filter: none; }
  .band-item.soon:hover img { transform: scale(1.03); }
}
@media (hover: none) { .band-item.soon img { filter: none; } }

/* ---------- 0.9.3: Porträt, einzeilige Kopfleiste, Terminserien, kompakte Terminliste ---------- */

/* Startseite: Porträt neben der Vorstellung */
.hero-intro { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 34px; }
.hero-intro .lead { margin-top: -4px; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.portrait::before { content: ''; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid rgba(242, 181, 68, .5); pointer-events: none; }
.portrait img, .portrait .ph { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.portrait .ph { display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 37%, #3A4656 0 16.5%, transparent 17%), radial-gradient(ellipse 47% 33% at 50% 102%, #3A4656 0 99%, transparent 100%), linear-gradient(#202B3A, #161D28); }
.portrait .ph span { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--fog); padding-bottom: 12px; }
@media (max-width: 1100px) { .hero-intro { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; } }
@media (max-width: 520px) {
  .hero-intro { display: block; margin-top: 24px; }
  .hero-intro::after { content: ''; display: block; clear: both; }
  .portrait { float: left; width: 92px; margin: 5px 22px 12px 0; }
  .portrait::before { inset: 7px -7px -7px 7px; }
  .portrait .ph span { font-size: 12px; padding-bottom: 7px; }
}

/* Bereichsliste: kein dauerhaft goldener Titel mehr */
.card.lit .card-t { color: var(--paper); }
a.card.lit:hover .card-t { color: var(--gold-hi); }

/* Kopfleiste: auf Handy und Tablet eine Zeile, Menü klappt darunter auf */
@media (max-width: 1100px) {
  .top { position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; background: rgba(17, 22, 31, .97); }
  .menu { width: auto; order: 3; }
  .menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px 0 8px; white-space: nowrap; }
  .menu[open] summary { color: var(--gold-hi); }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; gap: 0; background: var(--night); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); padding: 2px var(--pad) 14px; box-shadow: 0 22px 34px rgba(0, 0, 0, .5); }
  .menu nav a, .menu nav .soon { padding: 13px 0; border-top: 0; border-bottom: 1px solid var(--line-soft); }
  .menu nav > :last-child { border-bottom: 0; }
  .menu-lang { display: none; }
  .prose h2, .prose [id], .book { scroll-margin-top: 84px; }
}
@media (min-width: 1101px) { .menu-lang { display: none; } }
@media (max-width: 520px) {
  .actions .btn { display: inline-flex; min-height: 40px; padding: 8px 14px; }
  .actions .btn.ghost, .actions .lang { display: none; }
  .menu nav a.menu-lang { display: block; color: var(--muted); }
}

/* Tippflächen */
.lang a { padding: 10px 6px; }
.foot { align-items: center; }
.foot a { display: inline-block; padding: 10px 0; }
@media (max-width: 1100px) { .toc-side .toc a { padding: 8px 0; } .toc-side .toc { gap: 0 20px; } }

/* Terminserien: mehrere Daten in einem Eintrag */
.dates { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.dates a { display: flex; flex-direction: column; min-width: 96px; min-height: 44px; justify-content: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--paper); font-size: 15px; line-height: 1.25; transition: border-color .15s; }
.dates a small { color: var(--gold); font-size: 12.5px; }
.dates a:hover { border-color: var(--gold); color: var(--paper); }
.dates a[aria-current] { border-color: var(--gold); background: rgba(242, 181, 68, .09); }
.dates .off a small { color: var(--muted); }
.dates-nav { margin: 0 0 20px; }
.dates-nav .dates-label { font-family: var(--label); font-style: italic; font-size: 17px; color: var(--muted); }
.dates-nav .dates { margin-top: 6px; }
.event.is-series { align-items: start; }
.event.is-series .btn { align-self: center; }

/* Termindetail: Kalender und Sprung zum Formular */
.ev-tools { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 22px; }
.ev-tools .jump { display: none; }
.link.cal::before { content: '+ '; }
@media (max-width: 860px) { .ev-tools .jump { display: inline-flex; } }

/* Terminliste am Handy: kleines Bild links statt großem Bild oben */
@media (max-width: 520px) {
  .event.has-pic { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; padding: 14px; align-items: start; }
  .event.has-pic .thumb { grid-row: span 2; }
  .event.has-pic .thumb img { aspect-ratio: 1 / 1; }
  .event.has-pic .btn { grid-column: 1 / -1; justify-self: stretch; margin-top: 10px; }
  .event .day { font-size: 21px; }
  .event h3 { font-size: 18px; }
  .next .event.has-pic { padding: 18px 0 20px; }
  .event.has-pic .dates a { flex: 1 1 84px; min-width: 0; }
}

/* Übergänge 0.9.4: sanftes Überblenden zwischen Seiten, weiches Scrollen zu Sprungmarken.
   Browser ohne View Transitions (z. B. Firefox) wechseln wie bisher. */
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
.top { view-transition-name: kopf; }
::view-transition-group(kopf) { animation-duration: 0s; }
::view-transition-old(root) { animation: wv-aus .16s ease-in both; }
::view-transition-new(root) { animation: wv-ein .34s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wv-aus { to { opacity: 0; } }
@keyframes wv-ein { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* 0.9.6: Datumswechsel in einer Terminserie – nur sanft überblenden, ohne Anheben */
html.wv-soft::view-transition-old(root) { animation: wv-aus .14s ease-in both; }
html.wv-soft::view-transition-new(root) { animation: wv-fade .22s ease-out both; }
@keyframes wv-fade { from { opacity: 0; } }
