/* Veranstaltungen (veranstaltungen.php, veranstaltung.php) – geladen über $seo['stylesheets'] */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ev-hero {
  background: linear-gradient(135deg, #eaf3fe 0%, #f6f9fc 60%, #fff8e1 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 6vw, 56px) 16px clamp(22px, 4vw, 36px);
}
.ev-hero__inner { max-width: 960px; margin: 0 auto; }
.ev-hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: var(--logo-blue); background: #fff; border: 1px solid rgba(3,103,211,.18);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.ev-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.15; }
.ev-hero__intro { margin: 0 0 18px; color: var(--muted); max-width: 640px; line-height: 1.55; }

.ev-filter { display: flex; gap: 10px; max-width: 560px; }
.ev-filter__field { flex: 1; margin: 0; }
.ev-filter .input { width: 100%; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ev-chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s;
}
.ev-chip:hover { border-color: var(--logo-blue); }
.ev-chip.is-active { background: var(--logo-blue); border-color: var(--logo-blue); color: #fff; }

.ev-wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
.ev-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ev-toolbar__links { display: flex; gap: 16px; font-size: .88rem; }
.ev-toolbar__links a { color: var(--muted); }

.ev-group { margin-top: 26px; }
.ev-group__title {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.ev-list { display: flex; flex-direction: column; gap: 14px; }

.ev-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px; box-shadow: 0 2px 10px rgba(3,103,211,.05);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.ev-card:hover { box-shadow: var(--shadow-card); border-color: rgba(3,103,211,.35); transform: translateY(-1px); }
.ev-card--past { opacity: .62; }
.ev-card__body { flex: 1; min-width: 0; }
.ev-card__title { margin: 2px 0 6px; font-size: 1.12rem; line-height: 1.3; }
.ev-card__link { color: var(--text); text-decoration: none; }
.ev-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ev-card__link:focus-visible { outline: none; }
.ev-card:focus-within { outline: 3px solid rgba(3,103,211,.35); outline-offset: 2px; }
.ev-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .88rem; color: var(--muted); }
.ev-card__desc { margin: 8px 0 0; font-size: .92rem; line-height: 1.5; color: var(--text); }
.ev-card__arrow { align-self: center; font-size: 1.6rem; color: var(--line); line-height: 1; }
.ev-card:hover .ev-card__arrow { color: var(--logo-blue); }
.ev-entry { color: var(--success); font-weight: 600; }

/* Datumskachel im Kalender-Look */
.ev-date {
  flex: 0 0 64px; display: flex; flex-direction: column; align-items: center;
  border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  text-align: center; line-height: 1.05;
}
.ev-date__wd { width: 100%; background: var(--logo-blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.ev-date__day { font-size: 1.65rem; font-weight: 800; padding: 6px 0 0; color: var(--text); }
.ev-date__mon { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 2px 0 7px; text-transform: uppercase; }
.ev-date--lg { flex-basis: 84px; }
.ev-date--lg .ev-date__day { font-size: 2.2rem; }

/* Status-Hinweise */
.ev-status { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ev-status--heute { background: var(--logo-red); color: #fff; }
.ev-status--laeuft { background: #e7f4e1; color: var(--success); }
.ev-status--wochenende { background: var(--logo-yellow); color: #3a2e00; }
.ev-status--bald { background: #eaf3fe; color: var(--logo-blue); }
.ev-status--vorbei { background: #eef1f5; color: var(--muted); }

/* „Mit dabei“: Geräte der beteiligten Anbieter (liegen über dem Kartenlink) */
.ev-onsite { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ev-onsite__label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.ev-onsite__item {
  display: inline-flex; align-items: center; gap: 6px; max-width: 220px;
  padding: 3px 10px 3px 3px; border-radius: 999px; background: #f6f9fc; border: 1px solid var(--line);
  font-size: .82rem; color: var(--text); text-decoration: none;
}
.ev-onsite__item:hover { border-color: var(--logo-blue); }
.ev-onsite__item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ev-onsite__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ev-empty { margin-top: 20px; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.ev-empty h2 { margin: 0 0 8px; }
.ev-empty p { margin: 0 0 16px; line-height: 1.6; color: var(--muted); }
.ev-empty--provider { border-color: rgba(3,103,211,.22); background: linear-gradient(135deg, #fff, #f0f7fe); }
.ev-empty__actions, .ev-provider-box__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ev-provider-box {
  margin-top: 40px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 22px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  border-left: 5px solid var(--logo-yellow);
}
.ev-provider-box h2 { margin: 0 0 4px; font-size: 1.1rem; }
.ev-provider-box p { margin: 0; color: var(--muted); max-width: 560px; }

/* Einzelseite */
.ev-detail__head { display: flex; gap: 18px; align-items: flex-start; margin: 14px 0 18px; }
.ev-detail__head h1 { margin: 6px 0 6px; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; }
.ev-note { background: #eef1f5; border-radius: var(--r-sm); padding: 10px 14px; }
.ev-detail__grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.ev-section { margin-bottom: 26px; }
.ev-section h2 { font-size: 1.15rem; margin: 0 0 10px; }
.ev-section p { line-height: 1.65; }
.ev-facts {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 18px; box-shadow: var(--shadow-card);
}
.ev-facts dl { margin: 0 0 14px; }
.ev-facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-top: 10px; }
.ev-facts dt:first-child { margin-top: 0; }
.ev-facts dd { margin: 3px 0 0; line-height: 1.5; }
.ev-facts .small { margin: 12px 0 0; }

.ev-onsite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ev-onsite-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; background: #fff; color: var(--text); text-decoration: none; transition: box-shadow .18s, border-color .18s;
}
.ev-onsite-card:hover { box-shadow: var(--shadow-card); border-color: rgba(3,103,211,.35); }
.ev-onsite-card img, .ev-onsite-card__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ev-onsite-card__ph { display: grid; place-items: center; font-size: 2rem; background: #f0f7fe; }
.ev-onsite-card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.ev-onsite-card__cat { font-size: .74rem; font-weight: 700; color: var(--logo-blue); text-transform: uppercase; letter-spacing: .04em; }
.ev-rent-cta { padding: 20px; border-radius: var(--r-sm); background: linear-gradient(135deg, #eaf3fe, #fff); border: 1px solid rgba(3,103,211,.18); }
.ev-rent-cta p { margin: 0 0 14px; color: var(--muted); }

@media (max-width: 760px) {
  .ev-detail__grid { grid-template-columns: 1fr; }
  .ev-facts { position: static; order: -1; }
  .ev-card { padding: 14px; gap: 12px; }
  .ev-date { flex-basis: 56px; }
  .ev-date__day { font-size: 1.4rem; }
  .ev-card__arrow { display: none; }
}
@media (max-width: 480px) {
  .ev-filter { flex-direction: column; }
  .ev-filter .btn { width: 100%; }
}
