/* tanz:kreist – öffentliche Website */
:root {
  --red: #9b2a2e;
  --red-dark: #7c1f23;
  --red-soft: #f6e9e7;
  --ink: #2c2a29;
  --muted: #6e6762;
  --bg: #fbf8f4;
  --tint: #f3ece3;
  --card: #ffffff;
  --line: #e8dfd4;
  --wood: #b98b5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 24px rgba(60, 40, 20, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon--sm { width: 1.05em; height: 1.05em; vertical-align: -.18em; }

/* ---------- Kopfzeile ---------- */
.topbar { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand img { height: 52px; width: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.mainnav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: 1rem; }
.mainnav a:hover { background: var(--red-soft); color: var(--red-dark); }
.mainnav a[aria-current="page"] { background: var(--red); color: #fff; }
@media (max-width: 560px) {
  .topbar { position: static; }
  .topbar__inner { justify-content: center; }
  .brand img { height: 46px; }
  .mainnav { width: 100%; }
  .mainnav ul { justify-content: center; }
  .mainnav a { padding: 7px 10px; font-size: .95rem; }
}

.banner { height: clamp(90px, 16vw, 170px); overflow: hidden; background: var(--tint); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .72em 1.15em; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--red); line-height: 1.2; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red-soft); color: var(--red-dark); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--red-soft); border-color: var(--red-soft); color: var(--red-dark); }
.btn--sm { padding: .5em .9em; font-size: .95rem; }
.link-more { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Startseite: Hero ---------- */
.hero { position: relative; min-height: clamp(420px, 68vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: #3a2a22; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(30,15,10,.55) 100%); }
.hero__inner { position: relative; z-index: 1; padding-bottom: clamp(20px, 5vw, 48px); }
.hero__card { background: rgba(255, 255, 255, .94); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 32px); max-width: 520px; box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--red); margin: 0 0 .4em; }
.hero__title { font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 0 0 .15em; color: var(--ink); }
.hero__lead { color: var(--muted); font-size: 1.1rem; }
.hero__next { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); text-decoration: none; font-weight: 650; margin-bottom: 16px; }
.hero__next:hover { background: #f0dcd8; }
.hero__next small { display: block; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn--light { border-color: var(--line); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.section__head h2 { margin: 0; }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.aside__h { font-size: 1.1rem; margin: 0 0 12px; }
.aside > * + .aside__h { margin-top: 28px; }
.empty { color: var(--muted); background: var(--card); padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line); }

.page-head { padding-top: clamp(24px, 4vw, 44px); padding-bottom: 8px; }
.page-head h1 { margin-bottom: .3em; }
.intro-text { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.back { display: inline-flex; gap: .35em; align-items: center; text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.page-head + .split, .page-head + .narrow, .page-head + .about { padding-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Terminliste ---------- */
.events { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.event:hover { border-color: #d9c8b6; box-shadow: var(--shadow); }
.event__date { width: 62px; text-align: center; border-radius: 10px; background: var(--red-soft); color: var(--red-dark); padding: 6px 0 7px; text-decoration: none; line-height: 1.1; }
.event__wd, .event__mon { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event__day { display: block; font-size: 1.6rem; font-weight: 750; margin: 1px 0; }
.event__title { font-size: 1.08rem; margin: 0 0 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a:hover { color: var(--red); text-decoration: underline; }
.event__meta { margin: 0; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.event__meta span { display: inline-flex; align-items: center; gap: 5px; }
.event__ics { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.event__ics:hover { background: var(--red-soft); color: var(--red); }
.event--next { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.event--next .event__date { background: var(--red); color: #fff; }
.event--cancelled { opacity: .75; }
.event--cancelled .event__title a, .event--cancelled .event__meta { text-decoration: line-through; }
.events--compact .event { padding: 10px 12px; grid-template-columns: auto 1fr; }
.events--compact .event__date { width: 54px; }
.events--compact .event__day { font-size: 1.3rem; }
@media (max-width: 480px) {
  .event { gap: 10px; padding: 10px; }
  .event__date { width: 54px; }
  .event__ics { width: 38px; height: 38px; }
}
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; }
.badge--cancel { background: #5b5450; }

.month { font-size: 1.2rem; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.month:first-child { margin-top: 4px; }
.month__count { font-size: .85rem; font-weight: 500; color: var(--muted); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 4px 0 18px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.tabs a:hover { background: var(--red-soft); }
.tabs a[aria-current="page"] { background: var(--red); color: #fff; }

/* ---------- Kalender ---------- */
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__title { margin: 0; font-size: 1.25rem; }
.cal__nav { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--bg); }
.cal__nav:hover { background: var(--red-soft); color: var(--red); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__wd { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal__cell { min-height: 84px; border-radius: 8px; background: var(--bg); padding: 4px 5px; font-size: .85rem; }
.cal__cell--empty { background: transparent; }
.cal__cell--has { background: var(--red-soft); }
.cal__cell--today .cal__num { background: var(--ink); color: #fff; border-radius: 50%; }
.cal__num { display: inline-grid; place-items: center; width: 24px; height: 24px; font-weight: 600; font-size: .85rem; }
.cal__ev { display: block; margin-top: 3px; padding: 3px 5px; border-radius: 6px; background: var(--red); color: #fff; text-decoration: none; font-size: .78rem; line-height: 1.25; overflow: hidden; }
.cal__ev:hover { background: var(--red-dark); color: #fff; }
.cal__ev--cancel { background: #8a817b; text-decoration: line-through; }
.cal__time { font-weight: 700; display: block; }
.cal__evtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .cal { padding: 10px 8px; }
  .cal__cell { min-height: 46px; padding: 2px; text-align: center; }
  .cal__evtitle { display: none; }
  .cal__ev { font-size: .68rem; padding: 2px 1px; }
}

.nextbox { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; }
.nextbox__date { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }

/* ---------- PDF-Karten ---------- */
.docs { display: grid; gap: 14px; }
.doc { display: grid; grid-template-columns: auto 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.aside .doc + .doc { margin-top: 12px; }
.doc__icon { width: 52px; height: 64px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-size: .72rem; letter-spacing: .05em; }
.doc__icon .icon { width: 26px; height: 26px; }
.doc__title { margin: 0 0 4px; font-size: 1.05rem; }
.doc__desc { margin: 0 0 4px; font-size: .95rem; }
.doc__meta { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--tint); color: var(--muted); font-size: .95rem; }
.note .icon { color: var(--red); margin-top: 2px; }
.note p { margin: 0; }

/* ---------- Termin-Detail ---------- */
.facts { margin: 0 0 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.facts dt .icon { color: var(--red); }
.facts dd { margin: 0; font-weight: 550; }
.facts--cancelled dd { text-decoration: line-through; color: var(--muted); }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.alert { background: var(--tint); border-radius: 10px; padding: 10px 14px; }
.alert--cancel { background: #f3dcd9; color: var(--red-dark); }

/* ---------- Fließtext ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--red); color: var(--muted); }
.prose--lead { font-size: 1.15rem; }

/* ---------- Startseite: Intro & Teaser ---------- */
.intro { display: grid; gap: 24px; align-items: center; }
.intro__logo img { width: 240px; mix-blend-mode: multiply; }
.intro .prose { font-size: 1.2rem; }
@media (min-width: 760px) { .intro { grid-template-columns: 280px 1fr; } }
.teasers { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 700px) { .teasers { grid-template-columns: 1fr 1fr; } }
.teaser { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: box-shadow .15s; min-height: 120px; }
.teaser:hover { box-shadow: var(--shadow); color: var(--ink); }
.teaser img { width: 40%; height: 100%; min-height: 120px; object-fit: cover; align-self: stretch; }
.teaser img.teaser__portrait { width: 96px; height: 96px; min-height: 0; border-radius: 50%; margin-left: 16px; align-self: center; }
.teaser__body { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.teaser__body strong { font-size: 1.15rem; color: var(--red); }
.teaser__body span { color: var(--muted); font-size: .95rem; }

/* ---------- Über mich ---------- */
.about { display: grid; gap: 24px; }
@media (min-width: 700px) { .about { grid-template-columns: 220px 1fr; gap: 40px; } }
.about__img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.contact { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.contact p { margin: 4px 0; display: flex; gap: 8px; align-items: center; }
.contact .icon { color: var(--red); }

/* ---------- Kreistanz: Video & Galerie ---------- */
.video { width: 100%; border-radius: var(--radius); background: #000; margin-bottom: 24px; aspect-ratio: 16 / 9; }
.gallery { position: relative; margin: 24px 0; }
.gallery__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.gallery__item { margin: 0; flex: 0 0 85%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .gallery__item { flex-basis: calc(50% - 6px); } }
.gallery__item img { width: 100%; aspect-ratio: 768 / 284; object-fit: cover; }
.gallery__btn { position: absolute; top: calc(50% - 26px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery__btn:hover { color: var(--red); }
.gallery__btn--prev { left: 8px; }
.gallery__btn--next { right: 8px; }
.cta { padding-top: 8px; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #2f2826; color: #e9e1da; padding: 40px 0 0; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f3c9c4; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
.footer__h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #c9b8ab; margin-bottom: 10px; }
.footer__next { display: flex; flex-direction: column; text-decoration: none; margin-bottom: 10px; }
.footer__next span { color: #d8cdc4; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; padding-bottom: 24px; color: #b8aaa0; font-size: .88rem; }

@media print {
  .topbar, .banner, .site-footer, .tabs, .event__ics, .aside, .hero { display: none !important; }
  body { background: #fff; }
  .event { break-inside: avoid; box-shadow: none; }
}
