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

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body { background-color: #000000; color: #ffffff; font-family: 'Comfortaa', 'Arial', sans-serif; padding: 20px; min-height: 100vh; }
/* In Webador eingebettet: keine Mindesthöhe, damit sich der Rahmen an den Inhalt anpasst */
html.eingebettet body { min-height: 0; }

.container { max-width: 800px; margin: 0 auto 30px auto; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 25px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); }
html.eingebettet .container:last-of-type { margin-bottom: 0; }

h1, h2, h3, h4 { color: #c3ff00; margin-bottom: 10px; font-weight: 700; }
h5 { color: #ffffff; margin-bottom: 20px; font-weight: 700; }
h6 { color: #ffffff; margin-bottom: 10px; font-weight: 700; }
body.admin h1, body.admin h2, body.admin h3 { margin-bottom: 20px; }
body.admin h4 { color: #ffffff; margin-bottom: 10px; }

.form-group { margin-bottom: 20px; }
label { display: block; color: #ffffff; font-weight: bold; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], textarea, select { width: 100%; padding: 12px; background-color: #151515; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; font-family: 'Comfortaa', 'Arial', sans-serif; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #c3ff00; }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.checkbox-group input { width: 20px; height: 20px; accent-color: #c3ff00; }
.checkbox-group label { margin-bottom: 0; }
.row { display: flex; gap: 15px; flex-wrap: wrap; }
.col { flex: 1; min-width: 200px; }

button, .btn { display: inline-block; width: 100%; padding: 5px; background-color: #c3ff00; color: #151515; border: none; border-radius: 20px; font-family: 'Comfortaa', 'Arial', sans-serif; font-weight: bold; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; transition: all 0.3s ease; }
button:hover, .btn:hover { background-color: #aae000; box-shadow: 0 0 15px rgba(195, 255, 0, 0.4); }
button:disabled { opacity: 0.5; cursor: wait; }
.btn-danger { background-color: #ff4444; color: #ffffff; margin-top: 10px; }
.btn-danger:hover { background-color: #cc0000; box-shadow: 0 0 15px rgba(255, 68, 68, 0.4); }
.btn-secondary { background-color: #555555; color: #ffffff; margin-top: 10px; }
.btn-secondary:hover { background-color: #333333; box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.btn-absagen { background-color: #ff4444; color: #ffffff; }
.btn-absagen:hover { background-color: #cc0000; box-shadow: 0 0 15px rgba(255, 68, 68, 0.4); }
.btn-klein { padding: 6px; font-size: 12px; }
.link-btn { background: none; color: #c3ff00; text-decoration: underline; width: auto; padding: 0; font-size: 13px; font-weight: normal; }
.link-btn:hover { background: none; box-shadow: none; color: #aae000; }

.event-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 20px; margin-bottom: 15px; }
.typ1 { margin-bottom: 6px; }
.infos { white-space: pre-wrap; }
.ev-block { margin-top: 12px; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-bottom: 10px; }
.badge-public { background-color: rgba(0, 255, 0, 0.2); color: #00ff00; border: 1px solid #00ff00; }
.badge-private { background-color: rgba(255, 0, 0, 0.2); color: #ff0000; border: 1px solid #ff0000; }

.status-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 10px; }
.status-badge { padding: 4px 8px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.status-open { background: #555; color: #fff; }
.status-confirmed { background: #00ff00; color: #151515; font-weight: bold; }
.status-declined { background: #ff0000; color: #fff; }
.mitglied-status { margin-bottom: 5px; padding: 5px; background: rgba(255,255,255,0.02); border-radius: 20px; }

.maps-link { color: #c3ff00; text-decoration: underline; }
.action-buttons { display: flex; gap: 10px; margin-top: 10px; }
.action-buttons .btn-danger, .action-buttons .btn-secondary { margin-top: 0; }

/* Kopfzeile mit Abmelden */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 800px; margin: 0 auto 15px auto; }
.topbar .user { color: #aaaaaa; font-size: 12px; word-break: break-all; }
.topbar button { width: auto; padding: 6px 14px; font-size: 13px; margin-top: 0; }

/* Login */
.login-box { max-width: 420px; }
.login-box h1 { margin-bottom: 20px; }
.login-box button[type="submit"] { padding: 10px; }
.login-links { margin-top: 15px; text-align: center; }
.meldung { margin-top: 15px; font-size: 13px; color: #cccccc; line-height: 1.5; }
.meldung code { display: block; margin-top: 6px; padding: 8px; background: #151515; border-radius: 10px; color: #c3ff00; word-break: break-all; user-select: all; }

.fehler { color: #ff6b6b; line-height: 1.5; }
.hinweis { color: #aaaaaa; font-size: 13px; }

/* Handy: lange Überschriften umbrechen, weniger Rand */
h1 { overflow-wrap: anywhere; hyphens: auto; }
.login-box h1 { font-size: clamp(22px, 7vw, 32px); }
@media (max-width: 480px) {
  body { padding: 10px; }
  .container { padding: 18px; }
  h1 { font-size: 24px; }
}

/* Datum in den Event-Karten: am Handy kleiner, damit auch "Donnerstag, 07.01.2027" in eine Zeile passt */
.event-card h2 { font-size: clamp(17px, 5.5vw, 24px); }
@media (max-width: 480px) {
  .event-card { padding: 16px; }
}

/* Gäste, Mitglieder & Admin-Live-Status: kein großer Rahmen, jedes Event bekommt die schöne Box */
.container:has(#guestEventList),
.container:has(#memberEventList),
.container:has(#realtimeStatusList) {
  background: none; border: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0;
}
#guestEventList .event-card,
#memberEventList .event-card,
#realtimeStatusList .event-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  margin-bottom: 20px;
}

/* Admin: Status auf einen Blick am linken Rand */
#realtimeStatusList .event-card.rand-zugesagt { border-left: 5px solid #00ff00; }
#realtimeStatusList .event-card.rand-abgesagt { border-left: 5px solid #ff4444; }
#realtimeStatusList .event-card.rand-offen    { border-left: 5px solid #777777; }

/* Badge-Zeile oben in der Karte (Öffentlich/Privat + Heute/Morgen) */
.badge-zeile { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge-zeile .badge, .ev-block .badge { margin-bottom: 0; }
.badge-heute  { background-color: #c3ff00; color: #151515; border: 1px solid #c3ff00; }
.badge-morgen { background-color: rgba(195, 255, 0, 0.15); color: #c3ff00; border: 1px solid #c3ff00; }
.badge-tage   { background-color: rgba(255, 255, 255, 0.08); color: #cccccc; border: 1px solid rgba(255, 255, 255, 0.3); }

/* Veranstaltungsinfos: Trennlinie darüber, auffällig hervorgehoben */
.ev-infos { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.ev-infos .infos { color: #ffffff; font-weight: 700; line-height: 1.4; }

/* Kein leerer Abstand unten in der Karte */
.event-card > :last-child { margin-bottom: 0; }

/* Reservieren: eigene kompakte Bubble, linksbündig statt volle Breite */
.btn-reservieren { width: auto; padding: 10px 24px; font-size: 15px; }

/* Admin: Auswahl gespeicherte Location + Entfernen-Knopf in einer Zeile */
.row-inline { display: flex; gap: 10px; align-items: center; }
.row-inline select { flex: 1; min-width: 0; }
.row-inline button { width: auto; padding: 10px 16px; font-size: 14px; margin-top: 0; }
.checkbox-group input { flex-shrink: 0; }

/* Admin: ungültige Uhrzeit rot markieren */
.feld-fehler { border-color: #ff4444 !important; }
