/* ──────────────────────────────────────────────────────────────────
   Behindertenbeirat Kirchheim — site styles
   Plain CSS recreation of the design-system components.
   Tokens come from colors/typography/spacing/effects.css.
   ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
html.fs2 { font-size: 115%; }
html.fs3 { font-size: 130%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-900);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; position: relative; z-index: 1; }

a { color: var(--teal-700); }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; border-radius: 3px; }

/* ── High-contrast mode ─────────────────────────────────────────── */
html.contrast {
  --ink-900: #000000;
  --ink-600: #1a1a1a;
  --ink-400: #1a1a1a;
  --text-muted: #1a1a1a;
  --paper: #ffffff;
  --surface-page: #ffffff;
  --surface-sunken: #eeeeee;
  --line: #000000;
  --teal-700: #005a64;
  --teal-500: #00727e;
  --coral-600: #9c4326;
  --coral-500: #b14a28;
}

/* ── Layout helpers ─────────────────────────────────────────────── */
.wrap { max-width: var(--content-width); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.reading { max-width: var(--reading-width); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.center { text-align: center; }
.eyebrow {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--tracking-wide); color: var(--coral-600); margin-bottom: .5rem;
}
.lead { font-size: var(--fs-lead); color: var(--ink-600); line-height: 1.8; }
.muted { color: var(--ink-600); }
h1 { font-size: var(--fs-h1); color: var(--ink-900); margin: 0; line-height: 1.2; }
.section-h2 { font-size: var(--fs-h2); color: var(--teal-700); margin: 0 0 1.5rem; }
.section-h2.coral { color: var(--coral-600); }

/* ── Decorative top accent bar (logo spectrum) ──────────────────── */
.accent-bar { height: 5px; background: var(--accent-bar); background-size: 200% 100%; animation: bbAccent 12s linear infinite; }
.accent-bar.thin { height: 4px; }
@keyframes bbAccent { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ── Floating background circles ────────────────────────────────── */
.bg-deco { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-deco span { position: absolute; border-radius: 50%; }
.bg-deco .c1 { top: 12%; left: -70px; width: 260px; height: 260px; background: var(--teal-300); opacity: .07; animation: bbFloat 14s var(--ease-out) infinite; }
.bg-deco .c2 { top: 48%; right: -90px; width: 320px; height: 320px; background: var(--coral-300); opacity: .07; animation: bbFloat 18s var(--ease-out) infinite; }
.bg-deco .c3 { bottom: 4%; left: 18%; width: 200px; height: 200px; background: var(--sage-500); opacity: .08; animation: bbFloat 16s var(--ease-out) infinite; }
@keyframes bbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* ── Skip link ──────────────────────────────────────────────────── */
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--teal-700); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none; }
.skip:focus { left: 0; }

/* ── Header chrome ──────────────────────────────────────────────── */
.chrome { position: relative; z-index: 20; }
.a11y-bar { background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.a11y-bar .inner { max-width: var(--content-width); margin: 0 auto; padding: .4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.a11y-bar .label { font-size: .85rem; color: var(--ink-600); font-weight: 600; }
.a11y-tools { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.a11y-tools .small { font-size: .8rem; color: var(--ink-600); }
.a11y-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-width: 32px; height: 28px; padding: 0 .5rem; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-600);
  cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: .85rem;
}
.a11y-btn[aria-pressed="true"], .a11y-btn.active { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.a11y-btn svg { width: 14px; height: 14px; }
.ls-link { font-size: .8rem; font-weight: 700; color: var(--teal-700); text-decoration: none; padding: .25rem .5rem; }

.logo-bar { background: var(--surface-card); text-align: center; padding: 1.4rem 1.5rem .9rem; }
.logo-bar img { max-width: 440px; width: 82%; height: auto; }

.nav-bar { position: sticky; top: 0; z-index: 50; background: var(--surface-card); box-shadow: var(--shadow-sm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-bar .inner { max-width: var(--content-width); margin: 0 auto; padding: 0 1.5rem; }
.nav-toggle { display: none; width: 100%; align-items: center; justify-content: center; gap: .5rem; border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; color: var(--teal-700); padding: .9rem; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.nav a {
  text-decoration: none; display: inline-block; white-space: nowrap;
  font-size: 1rem; font-weight: 600; color: var(--ink-600);
  padding: .7rem .75rem; border-bottom: 3px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.nav a:hover { color: var(--teal-700); }
.nav a[aria-current="page"] { color: var(--teal-700); border-bottom-color: var(--teal-500); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav { flex-direction: column; gap: .1rem; padding: .25rem 0 .9rem; }
  .nav[hidden] { display: none; }
}

/* ── Banner ─────────────────────────────────────────────────────── */
.banner { background: var(--teal-banner); color: #fff; text-align: center; padding: 3.25rem 1.5rem; position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.04) 10px, rgba(255,255,255,.04) 20px); }
.banner .inner { position: relative; max-width: 800px; margin: 0 auto; }
.banner h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
.banner p { margin: .7rem 0 0; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; opacity: .94; }
.banner.coral { background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); }
.banner.coral::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 28px; background: rgba(255,255,255,.10); transform: rotate(15deg); }

.motto { font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 700; color: var(--teal-700); letter-spacing: var(--tracking-motto); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .7rem 1.6rem; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--teal-500); color: #fff; }
.btn--primary:hover { background: var(--teal-700); box-shadow: 0 4px 16px rgba(0,151,167,.3); }
.btn--accent { background: var(--coral-500); color: #fff; }
.btn--accent:hover { background: var(--coral-600); box-shadow: 0 4px 16px rgba(0,151,167,.3); }
.btn--secondary { background: transparent; color: var(--teal-700); border-color: var(--teal-500); }
.btn--secondary:hover { background: var(--teal-050); }
.btn--ghost { background: transparent; color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-050); }
.btn-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card { background: var(--surface-card); border-radius: var(--radius-md); padding: var(--card-pad); box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal-500); }
.card.coral { border-left-color: var(--coral-500); }
.card.sage { border-left-color: var(--sage-600); }
.card.plain { border-left: none; }
.grid { display: grid; gap: 1.25rem; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-stat { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.icon-chip { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-050); color: var(--teal-700); display: flex; align-items: center; justify-content: center; margin-bottom: .85rem; }
.icon-chip svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--ink-900); }
.card p { margin: 0; color: var(--ink-600); line-height: 1.65; font-size: .96rem; }

/* ── ValueCard ──────────────────────────────────────────────────── */
.value-card { background: var(--surface-card); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal-500); }
.value-card .letter { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--teal-700); }
.value-card h3 { margin: .5rem 0 .4rem; font-size: 1.1rem; font-weight: 700; color: var(--teal-700); }
.value-card p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-600); }
.value-card.teilhabe { border-left-color: var(--coral-500); }
.value-card.teilhabe .letter, .value-card.teilhabe h3 { color: var(--coral-600); }
.value-card.vielfalt { border-left-color: var(--sage-600); }
.value-card.vielfalt .letter, .value-card.vielfalt h3 { color: var(--sage-600); }

/* ── Focus-area cards (colored left accent + colored title) ─────── */
.focus-card { background: var(--surface-card); border-radius: var(--radius-md); padding: var(--card-pad); box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal-500); }
.focus-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--teal-700); }
.focus-card p { margin: 0; color: var(--ink-600); line-height: 1.65; font-size: .96rem; }
.focus-card.coral { border-left-color: var(--coral-500); }
.focus-card.coral h3 { color: var(--coral-600); }
.focus-card.sage { border-left-color: var(--sage-600); }
.focus-card.sage h3 { color: var(--sage-600); }

/* ── Callout ────────────────────────────────────────────────────── */
.callout { display: flex; align-items: flex-start; gap: .65rem; border-radius: var(--radius-md); padding: 1rem 1.25rem; line-height: 1.6; font-size: .95rem; }
.callout svg { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.callout .body { font-size: .95rem; line-height: 1.6; }
.callout--sage { background: linear-gradient(135deg, #e8f5e9, #f1f8f2); border-left: 3px solid var(--sage-600); color: #3e6346; }
.callout--sage svg { color: var(--sage-600); }
.callout--teal { background: var(--teal-050); border-left: 3px solid var(--teal-500); color: var(--ink-900); }
.callout--teal svg { color: var(--teal-700); }
.callout--coral { background: var(--coral-100); border-left: 3px solid var(--coral-500); color: #6a3826; }
.callout--coral svg { color: var(--coral-600); }

/* ── ContactItem ────────────────────────────────────────────────── */
.contact-item { display: flex; align-items: flex-start; gap: .75rem; padding: .5rem; border-radius: var(--radius-sm); transition: background var(--dur-fast), transform var(--dur-fast); }
.contact-item:hover { background: rgba(0,151,167,.05); transform: translateX(4px); }
.contact-item .ci-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-500); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform var(--dur-med); }
.contact-item:hover .ci-icon { transform: scale(1.1); }
.contact-item .ci-icon svg { width: 18px; height: 18px; }
.contact-item .ci-body { line-height: 1.5; }
.contact-item .ci-body a { color: var(--teal-700); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-item:hover .ci-body a { text-decoration: underline; }
.contact-item .ci-label { font-size: .88rem; color: var(--ink-600); font-weight: 400; }

/* ── StatCard ───────────────────────────────────────────────────── */
.stat-card { position: relative; background: var(--surface-card); border-radius: var(--radius-lg); padding: 1.5rem 1rem; text-align: center; box-shadow: var(--shadow-sm); overflow: hidden; border-top: 4px solid var(--teal-500); }
.stat-card.coral { border-top-color: var(--coral-500); }
.stat-card.sage { border-top-color: var(--sage-600); }
.stat-card .num { font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.stat-card.coral .num { color: var(--coral-600); }
.stat-card.sage .num { color: var(--sage-600); }
.stat-card .lbl { font-size: .85rem; color: var(--ink-600); margin-top: .35rem; }

/* ── Event / "next session" card ────────────────────────────────── */
.event-card { background: linear-gradient(135deg, #f0fafa 0%, #faf8f5 100%); border-radius: var(--radius-lg); border: 2px solid var(--teal-500); box-shadow: var(--shadow-teal); overflow: hidden; }
.event-head { background: var(--teal-banner); color: #fff; padding: 1.25rem 1.75rem; display: flex; align-items: center; gap: 1rem; }
.event-head .eh-icon { width: 48px; height: 48px; background: rgba(255,255,255,.18); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.event-head .eh-icon svg { width: 26px; height: 26px; }
.event-head .kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.event-head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: #fff; }
.event-body { padding: 1.5rem 1.75rem 1.75rem; }
.event-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.event-meta .row { display: flex; gap: .65rem; align-items: flex-start; }
.event-meta .mi { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-500); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.event-meta .mi svg { width: 20px; height: 20px; }
.event-meta strong { display: block; color: var(--ink-900); }
.event-meta span { font-size: .86rem; color: var(--ink-600); }
.event-body .invite { font-size: 1.02rem; line-height: 1.75; margin: 0 0 1.1rem; }
.maplink { border: none; background: none; padding: 0; cursor: pointer; color: var(--teal-700); font-weight: 600; font-family: var(--font-sans); font-size: inherit; text-decoration: underline; }

/* ── Countdown ──────────────────────────────────────────────────── */
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1.4rem; }
.cd-box { background: #fff; border: 1px solid var(--teal-100); border-radius: 12px; padding: .7rem .3rem; text-align: center; }
.cd-box .v { font-size: clamp(1.4rem,5vw,2rem); font-weight: 700; color: var(--teal-700); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box.sec .v { color: var(--coral-500); }
.cd-box .u { font-size: .72rem; color: var(--ink-600); margin-top: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.cd-note { background: var(--teal-050); border-radius: 12px; padding: .85rem 1rem; text-align: center; color: var(--teal-700); font-weight: 600; font-size: .95rem; margin-bottom: 1.4rem; }

/* ── Feature promo card (Lego) ──────────────────────────────────── */
.promo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); color: #fff; padding: 2.25rem; box-shadow: var(--shadow-md); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); display: block; text-decoration: none; }
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.promo::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 180px; height: 180px; border-radius: 24px; background: rgba(255,255,255,.10); transform: rotate(12deg); }
.promo .inner { position: relative; }
.promo .kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.promo h2 { margin: .4rem 0 .6rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #fff; }
.promo p { margin: 0 0 1rem; max-width: 560px; line-height: 1.7; opacity: .96; }
.promo .more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.promo .more svg { width: 20px; height: 20px; }

/* ── Lego collection points ─────────────────────────────────────── */
.lego-point { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface-card); border-radius: var(--radius-md); border-left: 4px solid var(--coral-500); box-shadow: var(--shadow-sm); padding: 1.25rem 1.4rem; }
.lego-point .num { width: 44px; height: 44px; border-radius: 50%; background: var(--coral-100); color: var(--coral-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 1.2rem; }
.lego-point h3 { margin: 0 0 .25rem; font-size: 1.1rem; color: var(--ink-900); }
.lego-point p { margin: 0 0 .35rem; color: var(--ink-600); font-size: .95rem; line-height: 1.5; }

/* ── Team & people ──────────────────────────────────────────────── */
.team-photo { margin: 0 auto 2rem; max-width: var(--reading-width); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.team-photo img { display: block; width: 100%; height: auto; }
.person { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--card-pad); text-align: center; }
.person .avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .75rem; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 700; }
.person h3 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--ink-900); }
.person p { margin: 0; color: var(--ink-600); font-size: .9rem; line-height: 1.5; }

/* ── Donation list ──────────────────────────────────────────────── */
.donation { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.donation dl { margin: 0; flex: 1; min-width: 200px; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .95rem; }
.donation dt { color: var(--ink-600); }
.donation dd { margin: 0; font-weight: 600; }
.donation dd.iban { font-variant-numeric: tabular-nums; }
.donation img { width: 110px; height: 110px; border-radius: 8px; border: 1px solid var(--line); }

/* ── Check list (Barrierefreiheit) ──────────────────────────────── */
.checks { display: grid; gap: .85rem; }
.checks .item { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.65; }
.checks .item svg { width: 22px; height: 22px; color: var(--teal-500); margin-top: 2px; flex-shrink: 0; }

/* ── Leichte Sprache ────────────────────────────────────────────── */
.ls-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--teal-050); color: var(--teal-700); font-weight: 700; padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem; }
.ls-badge svg { width: 18px; height: 18px; }
.ls-body { font-size: 1.15rem; line-height: 2; }
.ls-body h2 { font-size: 1.4rem; color: var(--teal-700); margin: 2rem 0 .75rem; }
.ls-body p { margin: 0 0 1.5rem; }

/* ── Events / Veranstaltungshinweise ────────────────────────────── */
.events-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ev-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; border-left: 4px solid var(--teal-500); display: flex; flex-direction: column; margin: 0; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.ev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ev-card.photo { border-left-color: var(--coral-500); }
.ev-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ev-body { padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.ev-meta-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ev-date { display: inline-block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); background: var(--teal-050); padding: .22rem .6rem; border-radius: 999px; }
.ev-source { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: var(--coral-600); background: var(--coral-100); padding: .22rem .55rem; border-radius: 999px; }
.ev-source svg { width: 12px; height: 12px; }
.ev-card h3 { margin: .1rem 0 0; font-size: 1.1rem; color: var(--ink-900); }
.ev-place { display: flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--ink-600); }
.ev-place svg { width: 16px; height: 16px; color: var(--teal-500); flex-shrink: 0; }
.ev-text { margin: .15rem 0 0; color: var(--ink-600); font-size: .95rem; line-height: 1.6; }
.ev-link { margin-top: .3rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--teal-700); text-decoration: none; font-size: .95rem; }
.ev-link svg { width: 16px; height: 16px; }
.ev-src-row { padding: .75rem 1.4rem 0; }
.ev-caption { padding: .6rem 1.4rem 1.1rem; color: var(--ink-600); font-size: .92rem; line-height: 1.55; }
.ev-foot-note { text-align: center; margin-top: 1.75rem; color: var(--ink-600); font-size: .95rem; }

/* Klickbare Karte (öffnet Detail-Layer) */
.ev-card[role="button"] { cursor: pointer; }
.ev-card[role="button"]:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 3px; }
.ev-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--teal-700); font-size: .95rem; margin-top: .35rem; }
.ev-more svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.ev-card:hover .ev-more svg { transform: translateX(3px); }
.ev-more--photo { padding: 0 1.4rem 1.1rem; margin-top: 0; }

/* Detail-Layer */
.ev-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.ev-modal[hidden] { display: none; }
.ev-modal-backdrop { position: absolute; inset: 0; background: rgba(18,30,38,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ev-modal-card { position: relative; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 540px; width: 100%; max-height: 88vh; overflow: auto; animation: bbModalIn .28s var(--ease-out); }
.ev-modal-img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.ev-modal-close { position: absolute; top: .85rem; right: .85rem; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(18,30,38,.5); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); }
.ev-modal-close:hover { background: rgba(18,30,38,.75); }
.ev-modal-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ev-modal-body { padding: 1.6rem 1.85rem 1.85rem; }
.ev-modal-body h2 { margin: .25rem 0 .55rem; font-size: 1.45rem; color: var(--ink-900); }
.ev-modal-body .ev-place { margin-bottom: .9rem; }
.ev-modal-body p { color: var(--ink-700); line-height: 1.75; margin: 0 0 1.4rem; }
.ev-modal-body .btn svg { width: 18px; height: 18px; }
@keyframes bbModalIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev-modal-card { animation: none; } }

/* ── Slider (Startseite) ───────────────────────────────────────── */
.ev-slider { position: relative; display: flex; align-items: center; gap: .6rem; }
.ev-slider-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; flex: 1; padding: .5rem .25rem; scrollbar-width: none; -ms-overflow-style: none; }
.ev-slider-track::-webkit-scrollbar { display: none; }
.ev-slide { flex: 0 0 calc((100% - 2 * 1.25rem) / 3); scroll-snap-align: start; display: flex; }
.ev-slide > .ev-card { width: 100%; }
.ev-sl-arrow { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); background: var(--surface-card); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--teal-700); transition: background var(--dur-fast), opacity var(--dur-fast); }
.ev-sl-arrow:hover { background: var(--teal-050); }
.ev-sl-arrow:disabled { opacity: .3; cursor: default; }
.ev-sl-arrow:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.ev-sl-prev svg { transform: rotate(180deg); }
.ev-sl-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.ev-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 999px; background: #cfd8dc; cursor: pointer; transition: width var(--dur-fast), background var(--dur-fast); }
.ev-dot.is-active { width: 28px; background: var(--teal-500); }
@media (max-width: 900px) { .ev-slide { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (max-width: 600px) { .ev-slide { flex-basis: 100%; } .ev-sl-arrow { display: none; } }

/* ── Ansichts-Umschalter (/veranstaltungen) ─────────────────────── */
.ev-toolbar { display: flex; gap: .25rem; width: max-content; max-width: 100%; margin: 0 auto 2.25rem; padding: .3rem; background: #eef2f3; border-radius: 999px; }
.ev-vbtn { border: none; background: transparent; padding: .55rem 1.3rem; border-radius: 999px; font-family: var(--font-sans); font-weight: 600; font-size: .95rem; color: var(--ink-600); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.ev-vbtn.is-active { background: var(--surface-card); color: var(--teal-700); box-shadow: var(--shadow-sm); }
.ev-vbtn:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; }

/* ── Liste ──────────────────────────────────────────────────────── */
.ev-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: .7rem; max-width: 860px; }
.ev-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal-500); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.ev-row:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.ev-row:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.ev-row-when { flex: 0 0 auto; min-width: 175px; font-weight: 700; font-size: .88rem; color: var(--teal-700); }
.ev-row-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ev-row-title { font-weight: 600; color: var(--ink-900); }
.ev-row-place { display: flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--ink-600); }
.ev-row-place svg { width: 14px; height: 14px; color: var(--teal-500); flex-shrink: 0; }
.ev-pill-cat { flex: 0 0 auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-700); background: var(--teal-050); padding: .28rem .65rem; border-radius: 999px; }
.ev-row-go { flex: 0 0 auto; color: var(--teal-700); display: flex; }
@media (max-width: 640px) { .ev-row { flex-wrap: wrap; } .ev-row-when { flex-basis: 100%; min-width: 0; } .ev-row-go { display: none; } }

/* ── Kalender ───────────────────────────────────────────────────── */
.ev-cal { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.25rem; }
.ev-cal-h { font-size: 1.15rem; color: var(--teal-700); margin: 0 0 .75rem; padding-bottom: .45rem; border-bottom: 2px solid var(--teal-050); }
.ev-cal-row { display: flex; align-items: center; gap: 1.1rem; padding: .9rem .25rem; border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer; }
.ev-cal-row:hover .ev-cal-title { color: var(--teal-700); }
.ev-cal-row:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.ev-cal-day { flex: 0 0 auto; width: 66px; text-align: center; font-weight: 800; font-size: 1.05rem; line-height: 1.1; color: var(--coral-600); }
.ev-cal-day--ong { font-size: .8rem; font-weight: 700; color: var(--ink-600); }
.ev-cal-main { flex: 1 1 auto; min-width: 0; }
.ev-cal-title { font-weight: 600; color: var(--ink-900); }
.ev-cal-meta { font-size: .85rem; color: var(--ink-600); margin-top: .15rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { flex-shrink: 0; position: relative; z-index: 1; background: var(--surface-card); border-top: 1px solid var(--line); margin-top: 3rem; }
.site-footer .cols { max-width: var(--content-width); margin: 0 auto; padding: 2.75rem 1.5rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer .brand { font-weight: 700; color: var(--navy-wordmark); font-size: 1.05rem; letter-spacing: .02em; }
.site-footer .fmotto { font-size: .82rem; font-weight: 700; color: var(--teal-700); letter-spacing: var(--tracking-motto); margin: .5rem 0 .9rem; }
.dots { display: flex; gap: 9px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.site-footer .col-title { font-weight: 700; color: var(--ink-900); margin-bottom: .7rem; }
.site-footer .links { display: flex; flex-direction: column; gap: .45rem; font-size: .95rem; }
.site-footer .links a { color: var(--ink-600); text-decoration: none; }
.site-footer .links a.teal { color: var(--teal-700); }
.site-footer .links a:hover { text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); padding: 1.1rem 1.5rem; text-align: center; font-size: .85rem; color: var(--ink-600); }
.site-footer .legal a { color: var(--teal-700); text-decoration: none; }

/* ── Misc content ───────────────────────────────────────────────── */
.stack > * + * { margin-top: 1.5rem; }
.section { padding-top: 2.5rem; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.legal-page h2 { font-size: var(--fs-h2); color: var(--teal-700); margin: 0 0 .75rem; }
.legal-page h3 { font-size: 1.05rem; color: var(--ink-900); margin: 1.5rem 0 .4rem; }
.legal-page p { color: var(--ink-600); line-height: 1.8; margin: 0 0 1.25rem; }
.legal-page p.tight { color: var(--ink-900); }
.legal-page .note { color: var(--ink-400); font-size: .9rem; }

/* ── Reveal ──────────────────────────────────────────────────────────
   Content is always fully visible and never depends on an animation —
   essential for an accessibility-first site. (No opacity fade-in.) */
[data-reveal] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
