/* Loconio Veranstalter-Portal – Anthrazit-Theme (passend zu loconio.de/.com/.app) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #1C2030;
  --surface: #282D40;
  --surface-2: #323852;
  --text: #F9FAFB;
  --text-2: #C7CDDA;
  --muted: #99A1B3;
  --primary: #8B5CF6;
  --primary-d: #7C3AED;
  --border: rgba(255,255,255,.12);
  --danger: #FB7185;
  --success: #34D399;
  --warning: #FBBF24;
  --radius: 14px;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(14,165,233,.10), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  max-width: 1100px; margin: 0 auto;
}
.topnav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.topnav__brand img { width: 30px; height: 30px; border-radius: 8px; }
.topnav__links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topnav__links a, .topnav__links button {
  color: var(--text-2); font: inherit; background: none; border: none; cursor: pointer;
}
.topnav__links a:hover, .topnav__links button:hover { color: var(--text); text-decoration: none; }

.wrap { max-width: 720px; margin: 0 auto; padding: clamp(16px, 4vw, 32px); }
.wrap--narrow { max-width: 440px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
}
.card + .card { margin-top: 16px; }

h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 700; }
.lead { color: var(--text-2); margin-top: 6px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }

/* Tabs */
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 22px; }
.tabs button {
  flex: 1; padding: 9px; border: none; border-radius: 9px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--text-2); background: transparent;
}
.tabs button.is-active { background: var(--primary); color: #fff; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,.22); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; font: inherit; font-weight: 700; font-size: 14px;
  border: none; border-radius: 12px; cursor: pointer; transition: background .12s, transform .12s, opacity .12s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--danger); border-color: rgba(251,113,133,.35); }
.btn-danger:hover { background: rgba(251,113,133,.12); color: var(--danger); }
.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:active { transform: translateY(1px); }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 11px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid transparent; }
.alert--info { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.4); color: #DDD6FE; }
.alert--danger { background: rgba(251,113,133,.13); border-color: rgba(251,113,133,.4); color: #FECDD3; }
.alert--success { background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.4); color: #A7F3D0; }
.alert--warning { background: rgba(251,191,36,.13); border-color: rgba(251,191,36,.4); color: #FDE68A; }
.alert .alert__row { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* Events */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.event {
  display: flex; align-items: flex-start; gap: 14px; justify-content: space-between;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.event:first-child { border-top: none; }
.event__title { font-weight: 700; font-size: 15px; }
.event__meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.event__right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.badge--active { background: rgba(52,211,153,.16); color: #6EE7B7; }
.badge--pending { background: rgba(251,191,36,.16); color: #FCD34D; }
.badge--other { background: rgba(255,255,255,.08); color: var(--text-2); }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.center { text-align: center; }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.footer { max-width: 1100px; margin: 0 auto; padding: 28px clamp(16px,4vw,40px); color: var(--muted); font-size: 12px; }
.footer a { color: var(--muted); }

/* Event-Formular */
.field textarea, .ef-select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field textarea:focus, .ef-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,.22); }
.ef-select option { background: var(--surface); color: var(--text); }
.ef-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.ef-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.ef-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.ef-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.leaflet-container { background: var(--surface-2); font: inherit; }
