/* Seite: Club (club_detail_page.dart) – Titelbild randlos, Abschnitte ohne Kacheln,
   Abstand 26, Seitenrand 16. Schwebende Glasknöpfe oben ohne Schein. */

/* ---------- Kopfzeile über dem Bild ---------- */
.club-topbar {
  --club-top: max(10px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: var(--club-top) 12px 0;
  pointer-events: none;
}
.page--club.has-hero .club-topbar { margin-bottom: calc(-44px - var(--club-top)); }
.club-topbar .glass-btn,
.club-topbar__actions { pointer-events: auto; }
.club-topbar__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-topbar__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

/* ---------- Titelbild ---------- */
.club-hero {
  position: relative;
  width: 100%;
  height: min(380px, 100vw);
  overflow: hidden;
  background: var(--placeholder);
  isolation: isolate;
}
.club-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}
.club-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) 110px),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .72) 100%);
}
.club-hero__text {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  min-width: 0;
  color: #fff;
}
.club-hero__name {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.club-hero__address {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  min-width: 0;
}
.club-hero__address .icon { width: 14px; height: 14px; flex: none; }
.club-hero__address span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-hero__status {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Ohne Bild: Name als normale Überschrift */
.club-title {
  padding: 4px var(--gutter) 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}

/* ---------- Status-Pille (auch in der Club-Liste) ---------- */
.club-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.15;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.club-status--image {
  color: #fff;
  background: rgba(0, 0, 0, .42);
  border-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.club-status__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #FF5A5F;
}
.club-status.is-open .club-status__dot { background: #3DDC84; }

/* ---------- Mitteilungen erhalten (leichte Pille, Rand im Verlauf) ---------- */
.club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px var(--gutter) 0;
}
.club-notify {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  border: 1.2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--accent-gradient) border-box;
}
.club-notify.is-on {
  background: var(--input-fill);
  border-color: var(--line-soft);
}
.club-notify:disabled { color: var(--text-2); opacity: .7; cursor: default; }
.club-notify__bell { display: grid; place-items: center; transform-origin: 50% 0; }
.club-notify__bell .icon { width: 18px; height: 18px; }
.club-notify.is-pop { animation: club-pop .42s ease-out; }
.club-notify.is-ringing .club-notify__bell { animation: club-ring .76s ease-out; }
@keyframes club-pop {
  28% { transform: scale(.92); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes club-ring {
  10% { transform: rotate(.38rad); }
  25% { transform: rotate(-.3rad); }
  42% { transform: rotate(.2rad); }
  58% { transform: rotate(-.12rad); }
  75% { transform: rotate(.05rad); }
  100% { transform: rotate(0); }
}

.club-campus {
  padding: 16px var(--gutter) 0;
  font-size: 12.5px;
  font-weight: 800;
}

/* ---------- Abschnitte ---------- */
.club-section .section__head { margin-bottom: 12px; }
.club-head-link {
  margin-left: auto;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
}
.club-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.club-empty .icon { width: 22px; height: 22px; flex: none; }

/* Anstehende Events: waagerecht, quadratische Bilder */
.club-events {
  display: flex;
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.club-events::-webkit-scrollbar { display: none; }
.club-event {
  flex: 0 0 clamp(160px, 52%, 230px);
  scroll-snap-align: start;
  min-width: 0;
}
.club-event__link {
  display: grid;
  gap: 6px;
  color: var(--text);
}
.club-event__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--placeholder);
}
.club-event__media .icon { width: 36px; height: 36px; }
.club-event__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.club-event__title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.club-event__date {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-2);
}
.club-event__sk { display: block; aspect-ratio: 1; border-radius: 16px; margin-bottom: 8px; }
.club-events--sk { overflow: hidden; }

/* Vergangene Events: runde Vorschaubilder */
.club-past {
  display: flex;
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.club-past::-webkit-scrollbar { display: none; }
.club-past li { flex: 0 0 106px; }
.club-past__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-align: center;
}
.club-past__thumb {
  width: 82px;
  height: 82px;
  margin-bottom: 4px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--placeholder);
}
.club-past__img { width: 100%; height: 100%; object-fit: cover; }
.club-past__title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.club-past__date { font-size: 11px; color: var(--text-2); }

/* Impressionen: 3 Spalten, kleine runde Ecken */
.club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.club-grid__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--placeholder);
}
.club-grid__img { width: 100%; height: 100%; object-fit: cover; }
.club-grid__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.club-viewer {
  display: grid;
  gap: 10px;
  padding: 10px 0 24px;
}
.club-viewer__item {
  margin: 0;
  background: var(--placeholder);
}
.club-viewer__img {
  width: 100%;
  height: auto;
  max-height: 80dvh;
  object-fit: contain;
  margin: 0 auto;
}

.club-about {
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* Öffnungszeiten und Spezialtage: schlichte Zeilen */
.club-hours__badge { margin: -2px 0 8px; }
.club-hours { display: grid; }
.club-hours__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}
.club-hours__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-gradient);
}
.club-hours__day {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--text-2);
}
.club-hours__row.is-today .club-hours__day,
.club-hours__day--strong {
  color: var(--text);
  font-weight: 800;
}
.club-hours__day--strong { font-weight: 600; }
.club-hours__time {
  flex: none;
  font-weight: 700;
  color: var(--text);
}
.club-hours__time.is-closed {
  font-weight: 500;
  font-style: italic;
  color: var(--text-3);
}
.club-hours__time--soft { font-weight: 500; color: var(--text-2); }

/* Location ohne Karte: Adresse und „Route“ */
.club-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.club-location .club-location__pin {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--text-2);
}
.club-location__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.club-location__route { flex: none; gap: 6px; }
.club-location__route .icon { width: 17px; height: 17px; }

/* Socials als Pillen */
.club-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.club-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}
.club-social .icon { width: 18px; height: 18px; }
.club-social .club-social__out { width: 15px; height: 15px; color: var(--text-3); }

/* ---------- Laden, nicht gefunden, abgemeldet ---------- */
.club-hero-sk {
  display: block;
  width: 100%;
  height: min(380px, 100vw);
  border-radius: 0;
}
.club-sk-lines { display: grid; gap: 10px; margin-top: 22px; }
.club-missing { padding-top: 8px; }
.club-body { padding-bottom: 24px; }
.club-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 8px;
  text-align: center;
}
.club-login__text { max-width: 320px; font-size: 14px; color: var(--text-2); }

@media (min-width: 768px) {
  .page--club { padding-top: 24px; }
  .club-hero,
  .club-hero-sk { border-radius: var(--r-media); }
}
