/* ============================================================
   SG Neptun Lampertheim – Portal Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand — Ocean palette (SG Neptun) */
  --brand-from:     #0ea5e9;   /* sky-500 */
  --brand-mid:      #0284c7;   /* sky-600 */
  --brand-to:       #1e40af;   /* blue-800 */
  --brand-deep:     #0c4a6e;   /* sky-900 — hero depths */
  --brand-soft:     #e0f2fe;   /* sky-100 — tinted backgrounds */
  --brand-glow:     #38bdf8;   /* sky-400 — accent / shimmer */
  --teal:           #14b8a6;
  --teal-deep:      #0f766e;
  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
  --brand-gradient-vivid: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #1e40af 100%);
  --brand-gradient-soft: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);

  /* RGB channels for alpha usage */
  --brand-from-rgb: 14,165,233;
  --brand-mid-rgb:  2,132,199;
  --brand-to-rgb:   30,64,175;
  --brand-glow-rgb: 56,189,248;

  /* Status colours */
  --green:      #10b981; --green-bg:  #ecfdf5; --green-text:  #065f46;
  --yellow:     #f59e0b; --yellow-bg: #fffbeb; --yellow-text: #92400e;
  --red:        #ef4444; --red-bg:    #fef2f2; --red-text:    #991b1b;
  --blue:       #3b82f6; --blue-bg:   #eff6ff; --blue-text:   #1d4ed8;
  --orange:     #f97316; --orange-bg: #fff7ed; --orange-text: #9a3412;

  /* Neutrals */
  --white:    #ffffff;
  --bg:       #f8fafc;
  --border:   #e2e8f0;
  --muted:    #94a3b8;
  --soft:     #64748b;
  --text:     #1e293b;
  --heading:  #0f172a;

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;

  /* Border radius */
  --r-sm: 6px;  --r: 10px;  --r-lg: 14px;  --r-xl: 20px;

  /* Shadows — tinted with brand */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.05);
  --shadow:    0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-md: 0 12px 24px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-lg: 0 24px 48px rgba(15,23,42,0.12);
  --shadow-brand: 0 6px 24px rgba(var(--brand-from-rgb), 0.25);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t1: 0.15s;  --t2: 0.25s;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-from); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER — Public (gradient)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Platz für die nach unten ragenden Wellen */
  padding-bottom: 32px;
  background:
    radial-gradient(ellipse 70% 110% at 85% -20%, rgba(56,189,248,0.55), transparent 55%),
    radial-gradient(ellipse 55% 110% at 0% 120%, rgba(20,184,166,0.35), transparent 60%),
    linear-gradient(125deg, #0c4a6e 0%, var(--brand-to) 35%, var(--brand-from) 80%, #38bdf8 100%);
  box-shadow: 0 14px 40px rgba(12,74,110,0.30);
  isolation: isolate;
}
.site-header::before {
  /* feines Punktmuster + Lichtschimmer */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(255,255,255,0.18), transparent 28%),
    radial-gradient(circle at 78% 75%, rgba(255,255,255,0.10), transparent 30%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: auto, auto, 22px 22px;
  pointer-events: none;
  z-index: 0;
}
.site-header::after {
  /* gestapelte Wellen, die ein Stück nach unten in die Seite ragen */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 56px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 56' preserveAspectRatio='none'><path d='M0 28 Q 150 8 300 28 T 600 28 T 900 28 T 1200 28 V56 H0 Z' fill='rgba(238,246,252,0.55)'/><path d='M0 38 Q 150 18 300 38 T 600 38 T 900 38 T 1200 38 V56 H0 Z' fill='%23eef6fc'/></svg>") center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 110px;
}

/* Logo in weißem Pad mit abgerundeten Ecken */
.site-header__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.35) inset;
}
.site-header__logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* Seitentitel – sauber abgesetzt */
.site-header__title {
  flex: 1;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.22);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Org-Pille NICHT mehr anzeigen */
.site-header__org { display: none !important; }

@media (max-width: 768px) {
  .site-header__inner { height: 92px; padding: 0 20px; gap: 18px; }
  .site-header__logo { padding: 8px 12px; border-radius: 14px; }
  .site-header__logo img { height: 56px; }
  .site-header__title {
    font-size: 1.2rem;
    padding-left: 18px;
  }
}
@media (max-width: 480px) {
  .site-header__inner { height: 78px; padding: 0 14px; gap: 14px; }
  .site-header__logo { padding: 6px 10px; border-radius: 12px; }
  .site-header__logo img { height: 46px; }
  .site-header__title {
    font-size: 1rem;
    padding-left: 14px;
  }
}

/* ============================================================
   HEADER — Admin (white)
   ============================================================ */
.admin-header {
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.admin-header__brand img {
  height: 38px;
  width: auto;
}
.admin-header__brand-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}
.admin-header__brand-text span {
  font-size: 0.75rem;
  color: var(--soft);
}

.admin-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .admin-header__inner { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .admin-header__nav { width: 100%; }
  .admin-header__brand { margin-bottom: 8px; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.page-wrap    { padding: 28px 0 56px; }

@media (max-width: 768px) {
  .container, .container-sm, .container-lg { padding: 0 16px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform   var(--t1) var(--ease),
    box-shadow  var(--t1) var(--ease),
    background  var(--t1) var(--ease),
    border-color var(--t1) var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--brand-from-rgb), 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(var(--brand-from-rgb), 0.48); }

.btn-success {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.btn-success:hover { background: #059669; box-shadow: 0 4px 14px rgba(16,185,129,0.4); }

.btn-danger {
  background: var(--red);
  color: white;
  box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239,68,68,0.4); }

.btn-secondary {
  background: white;
  color: var(--soft);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg); color: var(--text); border-color: #c1cad6; }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.7); }

.btn-sm  { padding: 6px 12px;  font-size: 13px; border-radius: var(--r-sm); }
.btn-lg  { padding: 13px 28px; font-size: 16px; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--s8);
}

.card-hover {
  transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
}
.card h3 { font-size: 1rem; margin-bottom: 14px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

label.required::after { content: ' *'; color: var(--red); text-transform: none; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-from);
  box-shadow: 0 0 0 4px rgba(var(--brand-from-rgb), 0.15);
}
input.has-error, select.has-error, textarea.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.code-input-group {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 24px;
}
.code-input-group h3 { color: var(--blue-text); margin-bottom: 8px; font-size: 1rem; }
.code-input-group p  { color: var(--blue-text); font-size: 14px; margin-bottom: 14px; }
.code-input-group input { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: 17px; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
}
.checkbox-group input[type="checkbox"] { width: auto; flex-shrink: 0; margin-top: 2px; }
.checkbox-group label { margin: 0; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 500; color: var(--text); }
.checkbox-group a { color: var(--brand-from); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 14px;
  margin-bottom: 18px;
  border-left: 3px solid;
  line-height: 1.55;
}
.alert-success { background: var(--green-bg);  color: var(--green-text);  border-color: var(--green); }
.alert-warning { background: var(--yellow-bg); color: var(--yellow-text); border-color: var(--yellow); }
.alert-error,
.alert-danger  { background: var(--red-bg);    color: var(--red-text);    border-color: var(--red); }
.alert-info    { background: var(--blue-bg);   color: var(--blue-text);   border-color: var(--blue); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-success   { background: var(--green-bg);  color: var(--green-text); }
.badge-warning   { background: var(--yellow-bg); color: var(--yellow-text); }
.badge-danger    { background: var(--red-bg);    color: var(--red-text); }
.badge-info      { background: var(--blue-bg);   color: var(--blue-text); }
.badge-primary   { background: rgba(102,126,234,0.1); color: var(--brand-to); }
.badge-secondary { background: #f1f5f9; color: var(--soft); }
.badge-pending   { background: var(--yellow-bg); color: var(--yellow-text); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; }

thead tr { background: #f8fafc; border-bottom: 1px solid var(--border); }
th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.stat-card h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  margin-bottom: 10px;
}
.stat-card .number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}

/* ============================================================
   EVENT CARDS — Public listing
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.event-card {
  position: relative;
  background: white;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px rgba(12,74,110,0.08);
  border: 1px solid rgba(226,232,240,0.7);
  transition: transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease), border-color var(--t2) var(--ease);
  display: flex;
  flex-direction: column;
}
.event-card::before {
  /* obere Akzentlinie als Verlauf */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-gradient-vivid);
  z-index: 1;
}
.event-card[data-type="kurs"]::before {
  background: linear-gradient(135deg, #5eead4 0%, var(--teal) 50%, var(--teal-deep) 100%);
}
.event-card::after {
  /* dezenter Glow im Hover-Zustand */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: radial-gradient(60% 60% at 50% 0%, rgba(var(--brand-glow-rgb), 0.18), transparent 70%);
  opacity: 0;
  transition: opacity var(--t2) var(--ease);
  pointer-events: none;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(15,23,42,0.05), 0 24px 48px rgba(12,74,110,0.16);
  border-color: rgba(var(--brand-from-rgb), 0.25);
}
.event-card:hover::after { opacity: 1; }
.event-card:focus-within { box-shadow: 0 24px 48px rgba(12,74,110,0.16), 0 0 0 3px rgba(var(--brand-from-rgb), 0.25); }

.event-header {
  padding: 22px 24px 4px;
  background:
    linear-gradient(180deg, rgba(224,242,254,0.5) 0%, rgba(255,255,255,0) 100%);
  position: relative;
}

.event-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.event-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-type.event { background: rgba(var(--brand-from-rgb), 0.12); color: var(--brand-to); }
.event-type.kurs  { background: rgba(20,184,166,0.14);  color: #0f766e; }

.member-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(245,158,11,0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
}

.event-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.event-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--soft);
  font-weight: 500;
  margin-bottom: 0;
}
.event-date svg { width: 14px; height: 14px; flex-shrink: 0; }

.event-body {
  padding: 14px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card__cta { margin-top: auto; }

.event-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--soft);
  margin-bottom: 7px;
}
.event-info-item svg    { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }
.event-info-item strong { color: var(--text); font-weight: 600; flex-shrink: 0; }

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.spots-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.spots-badge.viele   { background: var(--green-bg);  color: var(--green-text); }
.spots-badge.mittel  { background: var(--yellow-bg); color: var(--yellow-text); }
.spots-badge.wenige  { background: var(--orange-bg); color: var(--orange-text); }
.spots-badge.ausgebucht { background: #f1f5f9; color: var(--soft); }

.deadline-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.deadline-badge.deadline-today    { background: var(--red-bg); color: var(--red-text); animation: pulse 2s infinite; }
.deadline-badge.deadline-tomorrow { background: var(--orange-bg); color: var(--orange-text); }
.deadline-badge.deadline-soon     { background: var(--yellow-bg); color: var(--yellow-text); }

.warning-badge {
  background: var(--yellow-bg);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  color: var(--yellow-text);
  margin-top: 12px;
}

/* ============================================================
   EVENT CARDS — Admin dashboard
   ============================================================ */
.admin-event-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t2) var(--ease);
}
.admin-event-card:hover { box-shadow: var(--shadow); }

.admin-event-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.admin-event-card__title { font-size: 1.1rem; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.admin-event-card__meta  { font-size: 13px; color: var(--soft); }

.admin-event-card__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-badge.kurs   { background: var(--blue-bg);  color: var(--blue-text); }
.event-badge.event  { background: rgba(102,126,234,0.1); color: var(--brand-to); }
.event-badge.aktiv  { background: var(--green-bg); color: var(--green-text); }
.event-badge.inaktiv{ background: #f1f5f9; color: var(--soft); }

.event-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.event-stat {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--r);
  border: 1px solid var(--border);
  text-align: center;
}
.event-stat .label { color: var(--soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.event-stat .value { color: var(--heading); font-size: 1.6rem; font-weight: 800; line-height: 1; }

.event-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Welcome box */
.welcome-box {
  background: var(--brand-gradient);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  color: white;
}
.welcome-box h2 { font-size: 1.5rem; color: white; margin-bottom: 6px; }
.welcome-box p  { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 18px; }
.welcome-box__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2 { margin: 0; }

/* Toggle group */
.toggle-group {
  display: flex;
  border-radius: var(--r);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.toggle-group button {
  padding: 8px 18px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: white;
  color: var(--soft);
  transition: background var(--t1), color var(--t1);
}
.toggle-group button.active { background: var(--brand-gradient); color: white; }

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.success-message {
  text-align: center;
  padding: 40px 20px 24px;
}
.success-message > svg {
  width: 80px;
  height: 80px;
  color: var(--green);
  margin-bottom: 22px;
  padding: 14px;
  background: var(--green-bg);
  border-radius: 50%;
  box-sizing: content-box;
  box-shadow: 0 0 0 6px rgba(16,185,129,0.10);
}
.success-message h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.success-message > p {
  color: var(--soft);
  margin-bottom: 8px;
  line-height: 1.7;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color var(--t1);
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 36px 24px 24px;
  font-size: 14px;
  color: var(--soft);
  border-top: 1px solid var(--border);
  background: white;
  margin-top: 16px;
}
.site-footer a {
  color: var(--soft);
  font-weight: 600;
  margin: 0 10px;
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer__sep { color: var(--border); margin: 0 4px; }

/* ============================================================
   PAGE TYPES
   ============================================================ */
body.public-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(56,189,248,0.20), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 8%, rgba(30,64,175,0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(20,184,166,0.10), transparent 60%),
    linear-gradient(180deg, #eef6fc 0%, #f4f8fc 100%);
  background-attachment: fixed;
  position: relative;
}
body.public-page::before {
  /* sehr dezente "Wellen"-Textur im Hintergrund */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0 30 Q 25 18 50 30 T 100 30 T 150 30 T 200 30' fill='none' stroke='rgba(14,165,233,0.06)' stroke-width='1.2'/><path d='M0 45 Q 25 33 50 45 T 100 45 T 150 45 T 200 45' fill='none' stroke='rgba(30,64,175,0.05)' stroke-width='1.2'/></svg>");
  background-size: 600px 180px;
  background-repeat: repeat;
  opacity: 0.6;
  z-index: 0;
}
body.public-page > * { position: relative; z-index: 1; }
body.admin-page  { background: var(--bg); min-height: 100vh; padding-bottom: 48px; }

/* ============================================================
   NO EVENTS
   ============================================================ */
.no-events {
  text-align: center;
  padding: 64px 20px;
}
.no-events svg   { width: 72px; height: 72px; margin-bottom: 20px; opacity: 0.5; }
.no-events h2, .no-events h3 { font-size: 1.4rem; margin-bottom: 10px; }
.no-events.white-bg {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.public-page .no-events h2 { color: var(--heading); }
.public-page .no-events p  { color: var(--soft); }
.public-page .no-events svg { stroke: var(--muted); }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  padding: 24px;
}
.login-card {
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.login-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.login-card__logo img {
  height: 60px;
  width: auto;
}
.login-card h1   { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.login-card .subtitle {
  text-align: center;
  color: var(--soft);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center    { text-align: center; }
.text-muted     { color: var(--soft); }
.text-sm        { font-size: 13px; }
.font-mono      { font-family: 'Courier New', monospace; letter-spacing: 0.02em; }
.fw-bold        { font-weight: 700; }
.fw-medium      { font-weight: 600; }

.d-flex         { display: flex; }
.flex-wrap      { flex-wrap: wrap; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }

.gap-2 { gap: 8px;  }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-2 { margin-top: 8px;  }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .card { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-event-card__header { flex-direction: column; }
  .event-actions { flex-direction: column; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--brand-from); outline-offset: 2px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes cardIn   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.loading-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   FILTER BAR (public listing)
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(12,74,110,0.06);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: white;
  color: var(--soft);
  transition: all var(--t1) var(--ease);
  box-shadow: var(--shadow-xs);
}
.filter-tab:hover {
  border-color: var(--brand-from);
  color: var(--brand-to);
  transform: translateY(-1px);
}
.filter-tab.active {
  background: var(--brand-gradient-vivid);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(var(--brand-from-rgb), 0.42), inset 0 1px 0 rgba(255,255,255,0.25);
}
.filter-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg);
  color: var(--soft);
  transition: background var(--t1), color var(--t1);
}
.filter-tab.active .tab-count {
  background: rgba(255,255,255,0.25);
  color: white;
}

.events-result-count {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   CAPACITY BAR
   ============================================================ */
.capacity-bar {
  margin-top: 14px;
}
.capacity-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 5px;
  font-weight: 500;
}
.capacity-bar__track {
  height: 6px;
  background: #f0f4f8;
  border-radius: 3px;
  overflow: hidden;
}
.capacity-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--green);
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.capacity-bar__fill.medium { background: var(--yellow); }
.capacity-bar__fill.low    { background: var(--orange); }
.capacity-bar__fill.full   { background: var(--red); }

/* ============================================================
   EVENT CARD ANIMATIONS
   ============================================================ */
.event-card {
  animation: cardIn 0.45s var(--ease) both;
}
.event-card:nth-child(1) { animation-delay: 0.04s; }
.event-card:nth-child(2) { animation-delay: 0.09s; }
.event-card:nth-child(3) { animation-delay: 0.14s; }
.event-card:nth-child(4) { animation-delay: 0.19s; }
.event-card:nth-child(5) { animation-delay: 0.24s; }
.event-card:nth-child(6) { animation-delay: 0.29s; }
.event-card:nth-child(7) { animation-delay: 0.34s; }
.event-card:nth-child(8) { animation-delay: 0.39s; }

/* hidden by filter */
.event-card.hidden { display: none; }

.event-card__cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.event-card__cta .mb-3 { margin-bottom: 10px; }


/* ============================================================
   LOADING BUTTON STATE
   ============================================================ */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   BOOKING NUMBER BOX (success page)
   ============================================================ */
.booking-box {
  background: var(--brand-gradient-soft);
  border: 1.5px solid rgba(var(--brand-from-rgb), 0.28);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
  margin: 20px 0 24px;
  text-align: center;
  position: relative;
}
.booking-box__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 10px;
}
.booking-box__number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.booking-box__number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-to);
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  line-height: 1.2;
}
.booking-box__hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Copy-to-clipboard button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border: 1.5px solid rgba(var(--brand-from-rgb), 0.3);
  border-radius: var(--r);
  color: var(--brand-to);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t1), border-color var(--t1), transform var(--t1);
}
.copy-btn:hover { background: var(--brand-soft); border-color: var(--brand-from); transform: translateY(-1px); }
.copy-btn:active { transform: translateY(0); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.is-copied { background: var(--green-bg); color: var(--green-text); border-color: rgba(16,185,129,0.4); }
.copy-btn.is-copied .copy-btn__label::after { content: 'Kopiert!'; }
.copy-btn:not(.is-copied) .copy-btn__label::after { content: 'Kopieren'; }
.copy-btn .copy-btn__icon-copied { display: none; }
.copy-btn.is-copied .copy-btn__icon-default { display: none; }
.copy-btn.is-copied .copy-btn__icon-copied { display: inline-flex; }

/* ============================================================
   SUCCESS ACTIONS (calendar + home CTA row)
   ============================================================ */
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.success-actions .btn {
  /* Beide Buttons gleich hoch & gleich breit auf Desktop */
  flex: 1 1 220px;
  min-height: 52px;
  padding: 14px 22px;
  font-size: 15px;
  gap: 10px;
}
.success-actions .btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .success-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .success-actions .btn { width: 100%; flex: none; }
}

/* Calendar / ICS download button – sauberer brand-getönter Look */
.btn-calendar {
  background: white;
  color: var(--brand-to);
  border: 1.5px solid rgba(var(--brand-from-rgb), 0.35);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(var(--brand-from-rgb), 0.08);
}
.btn-calendar:hover {
  background: var(--brand-soft);
  border-color: var(--brand-from);
  color: var(--brand-to);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(var(--brand-from-rgb), 0.18);
}
.btn-calendar svg {
  color: var(--brand-from);
  stroke-width: 2;
}

/* ============================================================
   EVENT DETAIL PAGE — extracted from inline styles
   ============================================================ */
.event-details-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.event-details-section p {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--soft);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.event-details-section p:last-child { margin-bottom: 0; }
.event-details-section strong {
  color: var(--heading);
  min-width: 130px;
  flex-shrink: 0;
  font-weight: 600;
}
.event-details-section h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--heading);
}
.event-details-section .description-text {
  color: var(--text);
  line-height: 1.75;
  font-size: 14.5px;
}

/* ============================================================
   MARKDOWN BODY (Event-Beschreibung)
   ============================================================ */
.markdown-body > *:first-child { margin-top: 0; }
.markdown-body > *:last-child  { margin-bottom: 0; }

.markdown-body p {
  margin: 0 0 12px;
  line-height: 1.75;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 22px 0 10px;
  line-height: 1.3;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.markdown-body h1 { font-size: 1.4rem; }
.markdown-body h2 { font-size: 1.2rem; }
.markdown-body h3 { font-size: 1.05rem; }
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 { font-size: 0.98rem; color: var(--soft); text-transform: uppercase; letter-spacing: 0.04em; }

.markdown-body strong { color: var(--heading); font-weight: 700; }
.markdown-body em     { font-style: italic; }

.markdown-body a {
  color: var(--brand-from);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}
.markdown-body a:hover { color: var(--brand-to); }

.markdown-body ul,
.markdown-body ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}
.markdown-body li {
  margin-bottom: 4px;
  line-height: 1.65;
}
.markdown-body li::marker { color: var(--brand-from); }

.markdown-body blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--brand-from);
  background: rgba(var(--brand-from-rgb), 0.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--soft);
  font-style: italic;
}
.markdown-body blockquote p { margin: 0; }
.markdown-body blockquote p + p { margin-top: 8px; }

.markdown-body code {
  background: rgba(var(--brand-from-rgb), 0.10);
  color: var(--brand-to);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* Form section header */
.form-section { margin-bottom: 28px; }
.form-section > h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   PDF DOWNLOAD LIST — extracted from inline styles
   ============================================================ */
.pdf-download-list {
  display: grid;
  gap: 8px;
}
.pdf-download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t1), background var(--t1), transform var(--t1);
}
.pdf-download-item:hover {
  border-color: var(--brand-from);
  background: var(--brand-soft);
  transform: translateY(-1px);
  text-decoration: none;
}
.pdf-download-item__icon {
  width: 40px;
  height: 40px;
  background: var(--brand-gradient);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.pdf-download-item__body { flex: 1; min-width: 0; }
.pdf-download-item__title {
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 2px;
  font-size: 14.5px;
}
.pdf-download-item__desc { font-size: 13px; color: var(--soft); }

/* ============================================================
   WAITLIST BUTTON — extracted from inline styles
   ============================================================ */
.btn-waitlist {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}
.btn-waitlist:hover {
  color: white;
  box-shadow: 0 6px 18px rgba(245, 87, 108, 0.45);
  text-decoration: none;
}

/* ============================================================
   INLINE FORM VALIDATION
   ============================================================ */
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red-text);
  line-height: 1.4;
}
.field-error svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--red); }
.form-group.has-error .field-error { display: inline-flex; }

.form-group {
  position: relative;
}

/* Improved back link */
.back-link {
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--r-sm);
}
.back-link:hover { background: rgba(var(--brand-from-rgb), 0.08); color: var(--brand-to); }

/* ============================================================
   HERO — Public landing
   ============================================================ */
.hero {
  position: relative;
  margin: 28px 0 32px;
  padding: 36px 36px 32px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(20,184,166,0.14), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f0f7fc 100%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 10px 30px rgba(12,74,110,0.08);
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-glow-rgb), 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 24px;
  background: rgba(var(--brand-from-rgb), 0.12);
  color: var(--brand-to);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-from);
  box-shadow: 0 0 0 4px rgba(var(--brand-from-rgb), 0.18);
  animation: pulse 2s infinite;
}
.hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0;
}
.hero__title span {
  background: var(--brand-gradient-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--soft);
  margin: 0;
  max-width: 580px;
}
@media (max-width: 640px) {
  .hero { padding: 26px 22px; margin: 16px 0 22px; }
  .hero__subtitle { font-size: 0.98rem; }
}

/* ============================================================
   POLISH — Submit-Button (Anmeldeseite) – stärkerer "Wow"-Hover
   ============================================================ */
.btn-primary {
  background: var(--brand-gradient-vivid);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 70%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 130%; }

/* ============================================================
   POLISH — Booking Box (Erfolgsseite)
   ============================================================ */
.booking-box {
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(var(--brand-glow-rgb), 0.18), transparent 70%),
    var(--brand-gradient-soft);
  border: 1.5px solid rgba(var(--brand-from-rgb), 0.30);
  box-shadow: 0 6px 24px rgba(12,74,110,0.08);
}

/* ============================================================
   POLISH — Event-Detail Section
   ============================================================ */
.event-details-section {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 6px 18px rgba(12,74,110,0.06);
}

/* ============================================================
   POLISH — Card auf Anmeldeseite
   ============================================================ */
.public-page .container-sm .card {
  border-radius: var(--r-xl);
  border: 1px solid rgba(226,232,240,0.7);
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 16px 40px rgba(12,74,110,0.10);
}
.public-page .container-sm .card h1 {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

/* ============================================================
   POLISH — Capacity Bar (etwas dicker, mit Glanz)
   ============================================================ */
.capacity-bar__track {
  height: 8px;
  background: linear-gradient(180deg, #e2ebf3 0%, #eef3f8 100%);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.06);
}
.capacity-bar__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #34d399 0%, var(--green) 100%);
  box-shadow: 0 0 12px rgba(16,185,129,0.35);
  position: relative;
}
.capacity-bar__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  border-radius: 4px;
}
.capacity-bar__fill.medium { background: linear-gradient(90deg, #fbbf24 0%, var(--yellow) 100%); box-shadow: 0 0 12px rgba(245,158,11,0.32); }
.capacity-bar__fill.low    { background: linear-gradient(90deg, #fb923c 0%, var(--orange) 100%); box-shadow: 0 0 12px rgba(249,115,22,0.32); }
.capacity-bar__fill.full   { background: linear-gradient(90deg, #f87171 0%, var(--red) 100%); box-shadow: 0 0 12px rgba(239,68,68,0.32); }

/* ============================================================
   POLISH — Footer
   ============================================================ */
.site-footer {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226,232,240,0.7);
  margin-top: 32px;
}
.site-footer a:hover { color: var(--brand-from); }

/* ============================================================
   NO-EVENTS – schöner empty state
   ============================================================ */
.public-page .no-events {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 30px rgba(12,74,110,0.06);
  padding: 56px 24px;
}
.public-page .no-events svg {
  stroke: var(--brand-from);
  opacity: 0.7;
  width: 64px; height: 64px;
}

/* ============================================================
   POLISH — Multiselect Checkboxen (sauberes Grid)
   ============================================================ */
.form-group .checkbox-group + .checkbox-group { margin-top: 8px; }
.form-group > .checkbox-group {
  background: white;
  cursor: pointer;
  transition: border-color var(--t1), background var(--t1), box-shadow var(--t1);
}
.form-group > .checkbox-group:hover {
  border-color: var(--brand-from);
  background: rgba(var(--brand-from-rgb), 0.04);
}
.form-group > .checkbox-group:has(input:checked) {
  border-color: var(--brand-from);
  background: rgba(var(--brand-from-rgb), 0.07);
  box-shadow: 0 0 0 3px rgba(var(--brand-from-rgb), 0.12);
}
.form-group > .checkbox-group label { cursor: pointer; }

/* ============================================================
   IMPRESSUM (vereinheitlicht mit Hauptdesign)
   ============================================================ */
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--heading);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.legal-content strong { color: var(--heading); font-weight: 600; }

/* ============================================================
   FEATURED EVENT CARD (Startseite)
   ============================================================ */
.event-card--featured {
  position: relative;
  border: 2px solid #f59e0b !important;
  box-shadow:
    0 1px 3px rgba(15,23,42,0.04),
    0 12px 30px rgba(245,158,11,0.22),
    0 0 0 4px rgba(245,158,11,0.10) !important;
  transform: translateY(-2px);
}
.event-card--featured::before {
  /* den Brand-Akzent oben durch goldenen ersetzen */
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
  height: 5px !important;
}
.event-card--featured:hover {
  box-shadow:
    0 4px 8px rgba(15,23,42,0.05),
    0 20px 44px rgba(245,158,11,0.32),
    0 0 0 4px rgba(245,158,11,0.16) !important;
  transform: translateY(-6px);
}
.event-card__featured-ribbon {
  position: absolute;
  top: 14px;
  right: -8px;
  z-index: 5;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 4px 10px rgba(245,158,11,0.35);
}
.event-card__featured-ribbon::after {
  /* kleine Ribbon-Falte unten rechts */
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  border-top: 6px solid #b45309;
  border-right: 8px solid transparent;
}
@media (max-width: 480px) {
  .event-card__featured-ribbon { top: 12px; right: -6px; padding: 5px 11px; font-size: 10px; }
}


