/* ==========================================================================
   Delle Bar Verein — gemeinsame Stile
   Designsprache: Highway / Roadhouse, Schwarz mit gelben Akzenten
   ========================================================================== */

:root {
  /* Dark Mode (Standard) */
  --bg: #0a0a0a;
  --bg-2: #131210;
  --surface: #1a1815;
  --surface-alt: #1e1b17;
  --surface-2: #221f1a;
  --border: #2a2620;
  --border-bright: #3d362a;

  --yellow: #f5d517;
  --yellow-bright: #ffe34f;
  --yellow-dim: #c9ad12;
  --amber: #d4a574;
  --cream: #f5ead0;
  --text: #f0e9d8;
  --text-dim: #b0a78f;
  --text-muted: #6b6353;
  --error: #e26b5b;
  --danger: #e26b5b;
  --success: #6ec07a;

  --font-display: 'Anton', 'Oswald', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;
}

/* Light Mode */
[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-2: #ebe6da;
  --surface: #ffffff;
  --surface-alt: #f9f6f0;
  --surface-2: #f0ece3;
  --border: #ddd8cc;
  --border-bright: #c8c2b4;

  --yellow: #c9a800;
  --yellow-bright: #e8c200;
  --yellow-dim: #a08700;
  --amber: #9a6e3a;
  --cream: #5a4a2a;
  --text: #1a1610;
  --text-dim: #5a5040;
  --text-muted: #8a7d68;
  --error: #c0392b;
  --danger: #c0392b;
  --success: #27ae60;
}

/* Theme-Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--yellow); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Asphalt-Textur als Grundton */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.12;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.script {
  font-family: var(--font-script);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,10,10,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img { width: 44px; height: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-text .tag {
  font-family: var(--font-script);
  font-size: 14px;
  color: var(--yellow);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--yellow);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 -2px rgba(245,213,23,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: var(--bg);
}
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ==========================================================================
   Highway-Streifen-Trennelement
   ========================================================================== */
.highway-divider {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0,
    var(--yellow) 60px,
    transparent 60px,
    transparent 100px
  );
  opacity: 0.85;
}

/* ==========================================================================
   Hero (öffentliche Seiten)
   ========================================================================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow) 50%, transparent);
  opacity: 0.4;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-headline {
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.85;
  margin: 24px 0;
  letter-spacing: -0.01em;
}
.hero-headline .yellow { color: var(--yellow); }
.hero-headline .stroke {
  -webkit-text-stroke: 2px var(--yellow);
  color: transparent;
}
.hero-tag {
  font-family: var(--font-script);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 32px;
  transform: rotate(-2deg);
  display: inline-block;
}
.hero-text {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo img {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 24px 60px rgba(245,213,23,0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.hero-info {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero-info .item .label { display: block; margin-bottom: 6px; }
.hero-info .item .value {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section.block { padding: 90px 0; }
.block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.block-header h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.01em;
}
.block-header h2 .yellow { color: var(--yellow); }
.block-subtitle {
  color: var(--text-dim);
  max-width: 420px;
  font-size: 15px;
}

/* ==========================================================================
   News-Karten
   ========================================================================== */
.bg-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.news-card {
  background: var(--bg-2);
  padding: 32px;
  transition: background 0.25s;
  position: relative;
}
.news-card:hover { background: var(--surface); }
.news-card .date {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--yellow);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  display: block;
}
.news-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.news-card p {
  color: var(--text-dim);
  font-size: 15px;
}

/* ==========================================================================
   Events-Liste (öffentlich)
   ========================================================================== */
.events-list { display: flex; flex-direction: column; }
.event-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: padding 0.3s;
}
.event-row:last-child { border-bottom: 1px solid var(--border); }
.event-row:hover { padding-left: 14px; padding-right: 14px; background: var(--bg-2); }
.event-row .date-block {
  text-align: center;
  border-right: 2px solid var(--yellow);
  padding-right: 32px;
}
.event-row .date-block .day {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
  display: block;
}
.event-row .date-block .month {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--cream);
  display: block;
  margin-top: 4px;
}
.event-row .body h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 6px;
}
.event-row .body .meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.event-row .body p { color: var(--text-dim); max-width: 580px; }
.event-row .arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--yellow);
}

/* ==========================================================================
   About / Über uns
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { font-size: clamp(40px, 5vw, 68px); margin: 14px 0 28px; }
.about-text p { color: var(--text-dim); font-size: 17px; margin-bottom: 18px; line-height: 1.7; }
.about-visual {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, var(--surface), var(--bg));
  border: 2px dashed var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-visual img {
  width: 70%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(245,213,23,0.2));
}
.about-visual::before {
  content: '★ EST. 2018 ★';
  position: absolute;
  top: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--yellow);
}

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
}
.gallery-item {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  color: var(--yellow);
  font-size: 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .placeholder { padding: 20px; text-align: center; }
.gallery-item--clickable { cursor: pointer; }
.gallery-item--locked { cursor: default; background: var(--surface); }
.gallery-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}
.gallery-lock-icon { font-size: 32px; opacity: .6; }
.gallery-lock-title { color: var(--text-dim); font-size: 13px; font-weight: 600; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding: 28px 14px 12px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-title { display: block; color: #fff; font-weight: 700; font-size: 14px; }
.gallery-overlay-count { display: block; color: rgba(255,255,255,.7); font-size: 12px; margin-top: 2px; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3 {
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin: 24px 0 8px;
}
.contact-info p { color: var(--text-dim); }

/* ==========================================================================
   Formulare (Login, Admin, Mitglieder)
   ========================================================================== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================================================================
   Login-Seite
   ========================================================================== */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-side {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border-right: 1px solid var(--border);
  position: relative;
}
.login-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 60px,
    rgba(245,213,23,0.03) 60px,
    rgba(245,213,23,0.03) 120px
  );
}
.login-side img {
  max-width: 280px;
  filter: drop-shadow(0 20px 50px rgba(245,213,23,0.3));
  animation: float 6s ease-in-out infinite;
  position: relative;
}
.login-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  max-width: 540px;
}
.login-form-side h1 {
  font-size: 56px;
  margin-bottom: 8px;
}
.login-form-side .script { color: var(--yellow); font-size: 26px; margin-bottom: 32px; display: block; }
.login-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.login-tab {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.login-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.login-back {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
  display: inline-block;
}
.login-back:hover { color: var(--yellow); }

.login-demo-hint {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface);
  border-left: 3px solid var(--yellow);
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 0 4px 4px 0;
}
.login-demo-hint strong { color: var(--yellow); }
.login-demo-hint code {
  font-family: ui-monospace, monospace;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--cream);
}

/* ==========================================================================
   Admin- & Mitglieder-Layout
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.mobile-menu-btn { display: none; }
.sidebar-overlay { display: none; }
.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 0 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
}
.sidebar .brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a, .sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.sidebar nav a:hover, .sidebar nav button:hover {
  background: var(--surface);
  color: var(--text);
}
.sidebar nav a.active {
  background: var(--surface-2);
  color: var(--yellow);
  border-left: 3px solid var(--yellow);
  padding-left: 11px;
}
.sidebar nav .icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-footer {
  padding: 12px 12px 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  flex-shrink: 0;
}
.user-chip {
  background: var(--surface);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
}
.user-chip .name { color: var(--text); font-weight: 700; }
.user-chip .role { color: var(--text-muted); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px; }

.app-main { padding: 32px 48px 80px; max-width: 1300px; }
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.app-header h1 { font-size: 44px; }
.app-header .script { font-size: 22px; color: var(--yellow); display: block; margin-bottom: 4px; }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}
.panel h2 { font-size: 22px; margin-bottom: 18px; color: var(--text); letter-spacing: 0.05em; }
.panel-actions { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }

/* Tabellen */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
  background: var(--surface);
}
.data-table tr:hover td { background: var(--surface); }
.data-table .actions { display: flex; gap: 6px; }

.empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Stats-Karten */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(245,213,23,0.15), transparent 70%);
}
.stat-card .label { display: block; margin-bottom: 8px; }
.stat-card .value {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--yellow);
  line-height: 1;
}
.stat-card .desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-backdrop.active { display: flex; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { font-size: 28px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.modal-actions .btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Toast / Hinweise */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-2);
  border: 1px solid var(--yellow);
  border-radius: 6px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 14px;
  z-index: 300;
  animation: toastIn 0.3s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.toast.error { border-color: var(--danger); }
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mitglieder-Foto-Galerie */
.member-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
}
.member-photo {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.member-photo:hover img { transform: scale(1.06); }
.member-photo .info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 12px;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.25s;
}
.member-photo:hover .info { opacity: 1; }
.member-photo .delete-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.82);
  border: 1px solid var(--yellow-bright);
  color: var(--yellow-bright);
  width: 32px; height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: none;
}
.member-photo:hover .delete-btn { display: block; }
.member-photo .photo-edit-btn {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.82);
  border: 1px solid var(--yellow-bright);
  color: var(--yellow-bright);
  width: 32px; height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: none;
}
.member-photo:hover .photo-edit-btn { display: block; }

.photo-event-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  background: rgba(245,213,23,0.2);
  border: 1px solid var(--yellow-bright);
  border-radius: 3px;
  color: var(--yellow-bright);
  font-size: 10px;
  letter-spacing: 0.03em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.gallery-header h2 { margin: 0; }
.gallery-header select { font-size: 13px; max-width: 160px; }

.upload-area {
  border: 2px dashed var(--border-bright);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-2);
  display: block;
}
.upload-area:hover, .upload-area.dragging {
  border-color: var(--yellow);
  background: var(--surface);
}
.upload-area input { display: none; }
.upload-icon { font-size: 36px; color: var(--yellow); margin-bottom: 10px; }
.upload-hint { color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* ==========================================================================
   Geburtstag
   ========================================================================== */
.birthday-banner {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, rgba(245,213,23,0.12), rgba(245,213,23,0.04));
  border: 1px solid var(--yellow-dim);
  border-radius: 12px;
  margin-bottom: 24px;
  animation: bdayPulse 2s ease-in-out infinite;
}
@keyframes bdayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,213,23,0); }
  50%       { box-shadow: 0 0 24px 4px rgba(245,213,23,0.15); }
}
.bday-emoji { font-size: 52px; margin-bottom: 10px; }

.bday-widget { cursor: default; }
.bday-list { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.bday-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 14px;
}
.bday-row.bday-today {
  background: rgba(245,213,23,0.1);
  border: 1px solid var(--yellow-dim);
}
.bday-date  { font-family: var(--font-display); color: var(--yellow); min-width: 40px; font-size: 13px; }
.bday-name  { flex: 1; font-weight: 600; }
.bday-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.bday-row.bday-today .bday-label { color: var(--yellow); font-weight: 700; }

.bday-card-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bday-card-popup.active {
  opacity: 1;
  pointer-events: auto;
}
.bday-card-inner {
  background: var(--bg-2);
  border: 1px solid var(--yellow-dim);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(245,213,23,0.2);
  animation: bdayCardIn 0.4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes bdayCardIn {
  from { transform: scale(0.7) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==========================================================================
   Raumreservation
   ========================================================================== */
.res-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.res-grid-zip {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}
.res-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.res-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.res-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.res-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 0;
}
.res-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}
.res-cal-day {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
  user-select: none;
  min-width: 0;
}
.res-cal-day.empty { background: transparent; }
.res-cal-day.past  { color: var(--text-muted); background: transparent; font-size: 12px; }
.res-cal-day.blocked {
  background: rgba(226,107,91,0.18);
  color: var(--error);
  font-size: 12px;
  text-decoration: line-through;
}
.res-cal-day.pending {
  background: rgba(245,213,23,0.15);
  color: var(--yellow);
  border: 1px solid var(--yellow-dim);
}
.res-cal-day.free {
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.15s;
}
.res-cal-day.free:hover { background: var(--border-bright); }
.res-cal-day.selected {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  cursor: pointer;
}
.res-cal-legend {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
  align-items: center;
}
.res-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 3px;
}
.res-legend-dot.blocked { background: rgba(226,107,91,0.5); }
.res-legend-dot.pending { background: rgba(245,213,23,0.4); border: 1px solid var(--yellow-dim); }
.res-legend-dot.free    { background: var(--surface-2); border: 1px solid var(--border-bright); }

.res-date-display {
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.res-option-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.res-option-row:last-child { border-bottom: none; }
.res-option-row input[type="checkbox"] { margin-top: 2px; accent-color: var(--yellow); }
.res-price-hint { color: var(--yellow-dim); font-size: 12px; margin-left: 4px; }

.res-price-preview {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(245,213,23,0.08);
  border: 1px solid var(--yellow-dim);
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.res-booking-card {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.pill-green  { background: rgba(110,192,122,0.18); color: #6ec07a; border: 1px solid rgba(110,192,122,0.4); }
.pill-red    { background: rgba(226,107,91,0.18);  color: var(--error); border: 1px solid rgba(226,107,91,0.4); }
.pill-grey   { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.admin-table { width:100%; border-collapse:collapse; font-size:14px; }
.admin-table th { text-align:left; padding:8px 10px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-dim); border-bottom:1px solid var(--border); }
.admin-table td { padding:10px 10px; border-bottom:1px solid var(--border); vertical-align:middle; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:var(--surface-2); }

/* Drink Picker */
.drink-category { margin-bottom:20px; }
.drink-category-label {
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-dim); margin-bottom:10px; padding-bottom:6px;
  border-bottom:1px solid var(--border);
}
.drink-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:10px;
}
.drink-card {
  background:var(--surface-2); border:1px solid var(--border); border-radius:10px;
  padding:12px 10px; text-align:center; position:relative;
  transition:border-color .15s, background .15s;
}
.drink-card.in-cart { border-color:var(--yellow); background:rgba(255,214,0,0.07); }
.drink-card.is-daily { border-color:rgba(255,214,0,0.4); }
.drink-name { font-size:13px; font-weight:600; line-height:1.3; margin-bottom:4px; }
.drink-price { font-size:12px; color:var(--text-dim); margin-bottom:8px; }
.daily-star { position:absolute; top:6px; right:8px; color:var(--yellow); font-size:14px; }
.drink-counter { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:6px; }
.counter-btn {
  width:28px; height:28px; border-radius:50%; border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-size:18px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .1s, border-color .1s;
}
.counter-btn:hover { background:var(--yellow); color:#000; border-color:var(--yellow); }
.counter-val { font-size:16px; font-weight:700; min-width:20px; text-align:center; color:var(--yellow); }
.consumption-summary {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:18px; padding-top:14px; border-top:1px solid var(--border);
}
.consumption-summary .total { font-family:var(--font-display); font-size:26px; color:var(--yellow); }
@media (max-width:480px) {
  .drink-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap:8px; }
  .drink-card { padding:10px 8px; }
  .drink-name { font-size:12px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 18px;
}
.footer-grid a, .footer-grid li {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 0;
  list-style: none;
}
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: -105vw;
    width: min(280px, 85vw);
    z-index: 60;
    transition: left 0.3s;
  }
  .sidebar.open { left: 0; box-shadow: 4px 0 32px rgba(0,0,0,0.5); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 59; }
  .sidebar-overlay.active { display: block; }
  .mobile-menu-btn { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 0.05em; }
  .mobile-menu-btn:hover { background: var(--surface-alt); }
  .app-main { padding: 24px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-form-side { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
  }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .event-row { grid-template-columns: 90px 1fr; }
  .event-row .arrow { display: none; }
  .event-row .date-block { padding-right: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .container { padding: 0 20px; }
  .app-header h1 { font-size: 32px; }
}

/* ==========================================================================
   GAMIFICATION-MODULE
   ========================================================================== */

/* Dashboard */
.dashboard-greeting {
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(245,213,23,0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px 32px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.dashboard-greeting::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0, var(--yellow) 30px, transparent 30px, transparent 50px);
}
.cheers-anim {
  font-size: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 14px;
}
.glass { display: inline-block; }
.glass.left  { animation: glass-left  1.5s cubic-bezier(.36,.07,.19,.97) forwards; }
.glass.right { animation: glass-right 1.5s cubic-bezier(.36,.07,.19,.97) forwards; }
@keyframes glass-left {
  0%   { transform: translateX(-50px) rotate(-30deg); opacity: 0; }
  45%  { transform: translateX(14px)  rotate(14deg);  opacity: 1; }
  60%  { transform: translateX(10px)  rotate(11deg); }
  75%  { transform: translateX(14px)  rotate(14deg); }
  100% { transform: translateX(0)     rotate(0deg); }
}
@keyframes glass-right {
  0%   { transform: translateX(50px)  rotate(30deg);  opacity: 0; }
  45%  { transform: translateX(-14px) rotate(-14deg); opacity: 1; }
  60%  { transform: translateX(-10px) rotate(-11deg); }
  75%  { transform: translateX(-14px) rotate(-14deg); }
  100% { transform: translateX(0)     rotate(0deg); }
}
.greeting-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  margin: 0 0 6px;
  line-height: 1.1;
}
.checkin-cta-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 2px solid var(--yellow);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.checkin-cta-banner:hover { background: #1e1a00; transform: translateY(-2px); }
.checkin-cta-icon { font-size: 32px; flex-shrink: 0; }
.checkin-cta-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkin-cta-body strong { font-size: 15px; color: var(--yellow); }
.checkin-cta-body span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 480px) {
  .checkin-cta-banner { flex-wrap: wrap; }
  .checkin-cta-banner .btn { width: 100%; text-align: center; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}
.dash-widget:hover { border-color: var(--yellow); transform: translateY(-2px); }
.dash-value {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--yellow);
  margin: 8px 0 4px;
  line-height: 1;
}
.dash-bar {
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 3px;
  transition: width 0.8s ease;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}
@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr; }

  /* Vereinsfotos — Upload kompakt auf Mobile */
  .upload-area {
    padding: 14px 20px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .upload-icon { display: none; }
  .upload-hint { display: none; }

  /* Reservation — Formular-Grids einspaltiger */
  .res-grid-2  { grid-template-columns: 1fr; }
  .res-grid-zip { grid-template-columns: 90px 1fr; }
  .res-grid-3  { grid-template-columns: 1fr 1fr; }

  /* Kalender: edge-to-edge, volle Bildschirmbreite */
  .res-cal-panel {
    padding: 14px 8px;
    margin-left: -14px;
    margin-right: -14px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .res-cal-grid { gap: 2px; }
  .res-cal-weekdays { gap: 2px; }
  .res-cal-day { font-size: 13px; border-radius: 3px; }
  .res-cal-weekdays span { font-size: 11px; padding: 3px 0; }
}

/* ==========================================================================
   Mobile — Phones (≤ 480 px)
   ========================================================================== */
@media (max-width: 480px) {
  /* Weniger Innenabstand im Hauptbereich */
  .app-main { padding: 16px 14px 60px; }

  /* Bingo-Zellen kleiner */
  .bingo-row .row-label { width: 36px; font-size: 10px; padding-right: 5px; }
  .bingo-cell { width: 40px; height: 40px; font-size: 16px; border-radius: 6px; }
  .bingo-row.bonus .bingo-cell { width: 34px; height: 34px; font-size: 14px; }
  .bingo-card h3 { font-size: 20px; }
  .bingo-card { padding: 16px 12px; }

  /* Mitgliederausweis */
  .member-card { padding: 16px 14px 14px; }
  .mc-logo { width: 40px; height: 40px; }
  .mc-org-sub { font-size: 9px; }
  .mc-body { gap: 12px; margin-top: 14px; }
  .mc-chip { width: 32px; height: 24px; border-radius: 4px; }

  /* Number-Popup */
  .number-popup-inner { padding: 28px 16px; }
  .number-popup-num { font-size: clamp(100px, 28vw, 180px); }

  /* Vereinsfotos — Galerie: Edge-to-Edge */
  .photo-gallery-panel {
    padding: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-left: -14px;
    margin-right: -14px;
  }
  .photo-gallery-panel .gallery-header { padding: 20px 14px 12px; }
  .gallery-header select { font-size: 12px; max-width: 120px; }
  .member-gallery { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .member-photo .info { opacity: 1; padding: 20px 8px 6px; font-size: 11px; }
  .member-photo .delete-btn { display: block; opacity: 0.9; width: 28px; height: 28px; font-size: 14px; }
  .member-photo .photo-edit-btn { display: block; opacity: 0.9; width: 28px; height: 28px; font-size: 14px; }
}

/* ==========================================================================
   Mobile — Kleine Phones (≤ 375 px, z. B. iPhone SE)
   ========================================================================== */
@media (max-width: 375px) {
  .app-main { padding: 12px 10px 60px; }

  /* Bingo noch kompakter */
  .bingo-row .row-label { width: 30px; font-size: 9px; padding-right: 4px; }
  .bingo-cell { width: 34px; height: 34px; font-size: 14px; }
  .bingo-row.bonus .bingo-cell { width: 28px; height: 28px; font-size: 12px; }

  /* Mitgliederausweis */
  .mc-header { gap: 9px; }
  .mc-logo { width: 34px; height: 34px; }
  .mc-org-name { font-size: 12px; }
  .mc-photo-wrap, .mc-photo-placeholder { width: 54px; height: 54px; }
  .mc-name { font-size: 14px; }

  /* Number-Popup */
  .number-popup-num { font-size: clamp(80px, 26vw, 140px); }
  .number-popup-status { font-size: clamp(18px, 5.5vw, 26px); }

  /* Vereinsfotos — sehr kleine Phones */
  .photo-gallery-panel { margin-left: -10px; margin-right: -10px; }
  .photo-gallery-panel .gallery-header { padding: 16px 10px 10px; }

  /* Reservation — noch kompakter */
  .res-cal-panel { margin-left: -10px; margin-right: -10px; padding: 10px 6px; }
  .res-cal-day { font-size: 11px; }
  .res-grid-zip { grid-template-columns: 80px 1fr; }
}

/* Bingo-Karte */
.bingo-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow-x: auto;
}
.bingo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--yellow) 0, var(--yellow) 30px,
    transparent 30px, transparent 50px);
}
.bingo-card h3 {
  font-size: 28px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.bingo-card .sub {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}
.bingo-progress-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  margin-bottom: 22px;
  overflow: hidden;
}
.bingo-progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #ffed47);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.bingo-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
  align-items: center;
}
.bingo-row.bonus {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-bright);
  flex-wrap: wrap;
  row-gap: 5px;
}
.bingo-row.bonus + .bingo-row.bonus {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.bingo-row .row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  width: 48px;
  text-align: right;
  padding-right: 8px;
  flex-shrink: 0;
}
.bingo-row.win .row-label { color: var(--yellow); }
.bingo-cell {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dim);
  position: relative;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.bingo-row.bonus .bingo-cell {
  width: 42px;
  height: 42px;
  font-size: 16px;
  border-radius: 6px;
}
.bingo-cell.marked {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
  font-weight: 700;
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(245,213,23,0.35);
  color: #111;
}
.bingo-cell.marked.via-joker::after {
  content: 'J';
  position: absolute;
  top: 2px; right: 4px;
  font-size: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  color: #111;
}
.bingo-cell.marked.via-bonus { background: var(--amber); border-color: var(--amber); box-shadow: 0 3px 10px rgba(220,150,0,0.35); }
.bingo-row.win .bingo-cell.marked { animation: cell-pulse 0.8s ease-out; }

@keyframes cell-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,213,23,0.7); }
  60%  { box-shadow: 0 0 0 10px rgba(245,213,23,0); }
  100% { box-shadow: 0 3px 10px rgba(245,213,23,0.35); }
}

/* Neu markierte Zelle: kurzes Pop-Scaling */
@keyframes cell-new-mark {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); box-shadow: 0 0 18px rgba(245,197,23,0.9); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.bingo-cell.new-mark {
  animation: cell-new-mark 0.55s cubic-bezier(0.36,0.07,0.19,0.97) forwards;
  z-index: 2;
  position: relative;
}

/* Funken-Partikel */
@keyframes spark-fly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
.bingo-spark {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: spark-fly 0.75s ease-out forwards;
}

.bingo-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  flex-wrap: wrap;
}
.bingo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bingo-legend .swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ============================================================
   Mitgliederausweis
   ============================================================ */
.member-card {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.586;
  border-radius: 20px;
  background: linear-gradient(145deg, #16120c 0%, #241a0a 45%, #111008 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px 18px;
  color: #fff;
  font-family: var(--font-body);
  user-select: none;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.65),
    0 0 0 1px rgba(245,197,23,0.18),
    inset 0 1px 0 rgba(245,197,23,0.12);
}
.mc-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.member-card::before {
  content: '';
  position: absolute;
  top: -90px; right: -70px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(245,197,23,0.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.member-card::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,197,23,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.mc-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow), #ffaa00, var(--yellow), transparent);
}

/* Header */
.mc-header {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.mc-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.mc-org { flex: 1; min-width: 0; }
.mc-org-name {
  font-family: var(--font-display);
  font-size: clamp(13px, 3.5vw, 16px);
  letter-spacing: 0.14em;
  color: var(--yellow);
  line-height: 1.2;
}
.mc-org-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.10em;
  margin-top: 3px;
}
.mc-year-badge {
  background: var(--yellow);
  color: #111;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(245,197,23,0.4);
}

/* Body */
.mc-body {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.mc-photo-wrap {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(245,197,23,0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.mc-photo-img { width: 100%; height: 100%; object-fit: cover; }
.mc-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--yellow), #e8a800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  color: #111;
}
.mc-info { flex: 1; min-width: 0; }
.mc-role-label {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 5px;
  opacity: 0.9;
}
.mc-name {
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 22px);
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.mc-tagline-card {
  font-family: var(--font-script);
  font-size: 13px;
  color: rgba(255,255,255,0.32);
}

/* Footer */
.mc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.mc-chip {
  width: 32px; height: 24px;
  background: linear-gradient(135deg, #b8930a, #f5c518, #b8930a);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.mc-chip span {
  display: block;
  width: 20px; height: 1.5px;
  background: rgba(0,0,0,0.22);
  border-radius: 1px;
}
.mc-wave { opacity: 0.7; }
.mc-id {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.12em;
}

/* Avatar */
.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  display: block;
}
.avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #ffed47);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--bg);
  border: 3px solid var(--yellow);
  flex-shrink: 0;
}
.avatar-sm { width: 40px; height: 40px; font-size: 15px; border-width: 2px; }
.avatar-lg { width: 100px; height: 100px; font-size: 36px; }
.avatar-upload-btn {
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline;
  background: none; border: none;
  padding: 0; margin-top: 6px;
}
.avatar-upload-btn:hover { color: var(--yellow); }

/* Diskussion / Posts */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--border-bright); }
.post-card.pinned { border-color: var(--yellow); }
.post-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.post-meta { flex: 1; }
.post-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.post-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.post-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}
.post-body {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Drink-Auswahl */
.drink-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.drink-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.drink-item.is-daily {
  border-color: var(--yellow);
  background: linear-gradient(135deg, var(--surface), rgba(245,213,23,0.08));
}
.drink-item.is-daily::after {
  content: '★ Tagesdrink';
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--yellow);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}
/* Favoriten-Stern */
.fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--border-bright);
  padding: 0;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}
.fav-btn:hover { color: var(--yellow); transform: scale(1.2); }
.fav-btn.active { color: var(--yellow); }
.drink-item.is-fav { border-color: rgba(245,213,23,0.4); }

/* Kategorie-Header */
.drink-category-header {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.drink-category-header:first-child { margin-top: 0; }
.drink-category-header span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.drink-item .name { font-weight: 700; color: var(--text); }
.drink-item .meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }
.drink-item .qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.drink-item .qty-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-body);
}
.drink-item .qty-btn:hover { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }
.drink-item .qty-display {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--yellow);
  min-width: 40px;
  text-align: center;
}

.consumption-summary {
  background: var(--surface-2);
  border: 1px solid var(--yellow);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.consumption-summary .total {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--yellow);
}

/* Joker-Anzeige */
.joker-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 16px;
}
.joker-counter .count {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--yellow);
  line-height: 1;
}
.joker-counter .label-inline {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* QR-Container */
.qr-display {
  display: inline-block;
  padding: 18px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.qr-display + .qr-info {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
.qr-display + .qr-info code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--cream);
  font-family: ui-monospace, monospace;
}

/* Scanner-Container */
#qr-scanner-container {
  max-width: 400px;
  margin: 16px auto;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  overflow: hidden;
}

/* Gewinner-Board */
.winners-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.winner-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 20px;
}
.winner-card .crown { font-size: 24px; color: var(--yellow); margin-bottom: 8px; }
.winner-card h4 { font-size: 22px; margin-bottom: 4px; }
.winner-card .prize { font-family: var(--font-script); color: var(--yellow); font-size: 20px; }
.winner-card .meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Status-Pille */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill-yellow { background: var(--yellow); color: var(--bg); }
.pill-success { background: var(--success); color: var(--bg); }
.pill-danger { background: var(--danger); color: var(--bg); }
.pill-muted { background: var(--surface-2); color: var(--text-dim); }

/* Sub-Tabs in Admin/Mitglieder */
.sub-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 0;
}
.sub-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  white-space: nowrap;
}
.sub-tab:hover { color: var(--text); }
.sub-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Hinweis-Boxen */
.notice {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 18px 0;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 1.6;
}
.notice-info    { background: rgba(245,213,23,0.06); border-color: var(--yellow); color: var(--text); }
.notice-warning { background: rgba(226,107,91,0.08); border-color: var(--danger); color: var(--text); }
.notice-success { background: rgba(110,192,122,0.08); border-color: var(--success); color: var(--text); }
.notice strong { color: var(--yellow); display: block; margin-bottom: 4px; font-family: var(--font-display); letter-spacing: 0.1em; }

/* ==========================================================================
   Zahlen-Popup (Bingo-Ergebnis nach QR-Scan)
   ========================================================================== */
.number-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  animation: popupFadeIn 0.2s ease-out;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.number-popup-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 600px;
  width: 100%;
}
.number-popup-num {
  font-family: var(--font-display);
  font-size: clamp(140px, 30vw, 280px);
  color: var(--yellow);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-shadow: 0 0 80px rgba(245,213,23,0.5), 0 0 160px rgba(245,213,23,0.15);
  animation: numBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes numBounce {
  from { transform: scale(0.3) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.number-popup-status {
  font-family: var(--font-script);
  font-size: clamp(22px, 6vw, 34px);
  margin: 16px 0 10px;
}
.number-popup-status.hit  { color: var(--success); }
.number-popup-status.miss { color: var(--text-muted); }
.number-popup-prizes {
  font-family: var(--font-display);
  font-size: clamp(18px, 5vw, 26px);
  color: var(--yellow);
  letter-spacing: 0.05em;
  margin: 8px 0 24px;
}

/* Zahlen-Picker (Karte konfigurieren) */
.number-picker-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.num-pick-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}
.num-pick-cell:hover:not(.pick-main):not(.pick-bonus) {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245,213,23,0.07);
}
.num-pick-cell.pick-main {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}
.num-pick-cell.pick-bonus {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}
