@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* =============== Global =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #111;
  color: #fff;
}

/* Entferne Unterstreichung bei allen Icons und Links */
a.icon,
.notification-icon,
.header-icons .icon,
.bottom-nav a.nav-item,
a i,
.header-icons a,
.notification-icon a,
.nav-item i,
.nav-item span {
  text-decoration: none !important;
}





/* =============== Header =============== */

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dunklerer Filter */
  backdrop-filter: blur(4px);
  z-index: 1;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #111 100%);
  z-index: 2;
}




.custom-alert {
  position: relative;
  max-width: fit-content;
  margin: 20px auto;
  padding: 14px 24px;
  background: #b51c29a9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border-radius: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  font-family: sans-serif;
  animation: border-color-pulse 3s ease-in-out infinite;
}

.custom-alert i {
  font-size: 1.2rem;
  color: #fff;
}



.cookie-box {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  color: #ddd;
  font-size: 0.95rem;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  animation: fadeInUp 0.4s ease-out;
}

.cookie-box p {
  margin: 0 0 12px;
}

.cookie-box button.accept-cookies {
  background: #b51c29;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.cookie-box button.accept-cookies:hover {
  background: #c2125f;
}

.cookie-box.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =============== Header Content =============== */
.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

/* Logo im Header */
.header-content .logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.header-content .logo img:hover {
  transform: scale(1.05);
}

.header-content h1 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.header-content p {
  color: #ccc;
  font-size: 1rem;
}

/* =============== Notification Icon (immer sichtbar) =============== */
.notification-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 24px;
  color: #fff;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s;
}


/* =============== Header Icons (nur Desktop) =============== */
.header-icons {
  position: absolute;
  top: 20px;
  right: 70px; /* Abstand vom rechten Rand, da Notification ganz rechts ist */
  display: flex;
  gap: 20px;
  z-index: 3;
}

.header-icons .icon {
  position: relative;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.header-icons .icon:hover {
  transform: scale(1.15);
}

.chat-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #b51c29;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 20px;
}

.icon-with-badge {
  position: relative;
  display: inline-block;
}

.chat-badge-menu {
  position: absolute;
  top: -4px;
  right: -10px;
  background: #b51c29;
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  display: none;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  z-index: 2;
}

/* Desktop only */
.desktop-only {
  display: none;
}

@media (min-width: 601px) {
  .desktop-only {
    display: flex;
  }
}

/* =============== Notification Dropdown - ÜBERARBEITET =============== */
.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(31, 31, 31, 0.95);
  border: 1px solid #444;
  padding: 0; /* Padding entfernt, damit Sticky-Header voll greift */
  border-radius: 14px;
  width: 300px;
  z-index: 99;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  max-height: 300px;
  overflow-y: auto;
}

/* Sticky-Header */
.notification-dropdown h4 {
  position: sticky;
  top: 0;
  background: rgba(31, 31, 31, 0.95);
  backdrop-filter: blur(6px);
  padding: 15px;
  margin: 0;
  font-size: 1rem;
  border-bottom: 1px solid #444;
  color: #fff;
  z-index: 10;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}


.notification-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 6px;
}

.notification-dropdown li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 0;
  padding-left: 5px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.notification-dropdown li:hover {
  border: 1px solid #333;
  border-radius: 10px;
  padding-left: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.notification-dropdown li:last-child {
  border-bottom: none;
}

.avatar {
  font-size: 24px;
  color: #b51c29;
  margin-top: 2px;
}

.notif-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #eee;
}

.notif-text strong {
  color: #fff;
  font-weight: 600;
}

.notif-text span {
  font-size: 0.8rem;
  color: #aaa;
}

.notification-dropdown::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

.notification-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.hidden {
  display: none;
}


/* Logo oben links im Header */
.top-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.top-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.top-logo:hover img {
  transform: scale(1.05);
}


/* =============== Tile Section =============== */
.tile-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 18px;
  padding: 20px 14px;
  width: 120px;
  height: 120px; /* fixiert gleiche Höhe */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tile:hover {
  transform: translateY(-6px) scale(1.04);
  background: rgba(181, 28, 41, 0.1);
  border-color: #b51c29;
  box-shadow: 0 8px 20px rgba(181, 28, 41, 0.4);
}

.tile i {
  font-size: 28px;
  color: #b51c29;
  margin-bottom: 6px;
}

.tile span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  font-size: 0.9rem;
  color: #eee;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  max-width: 100%;

  /* ✨ Automatische Trennung */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}




/* =============== Footer =============== */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #0d0d0d;
  font-size: 0.9rem;
  color: #888;
}

footer a {
  color: #b51c29;
  text-decoration: none;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  background: rgba(34, 34, 34, 0.8);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.event-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.event-item:hover {
  background: rgba(0, 199, 199, 0.1);
}

.event-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 4px;
}

.event-description {
  margin-top: 16px;
  line-height: 1.5;
  color: #ccc;
}

/* =============== WLAN-Icon für Desktop & Mobil =============== */
.wifi-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
}

.wifi-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.wifi-modal.hidden {
  display: none;
}

.wifi-modal-content {
  position: relative;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  border: 1px solid #444;
}

.wifi-modal-content img {
  margin: 20px 0;
  max-width: 200px;
}

.wifi-modal-content .close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 22px;
  color: #fff;
  background: rgba(116, 116, 116, 0.171);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wifi-modal-content .close:hover {
  background: rgba(148, 148, 148, 0.3);
}


.notification-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  backdrop-filter: blur(4px);
}

.notification-modal.hidden {
  display: none;
}

.notification-modal-content {
  background: #1f1f1f;
  color: #fff;
  padding: 30px 40px;
  border-radius: 14px;
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  text-align: center;
  border: 1px solid #444;
}

.notification-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  padding: 5px 10px;
}

.notification-icon-circle {
  background: #b51c29;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.notification-icon-circle i {
  font-size: 28px;
  color: #fff;
}

.notification-modal-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.notification-modal-content p {
  margin-bottom: 12px;
  font-size: 16px;
  color: #ccc;
}

.notification-modal-content small {
  font-size: 12px;
  color: #999;
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.notification-modal-content {
  animation: fadeScaleIn 0.3s ease;
}



/* Position für Desktop (unten links) */
@media (min-width: 769px) {
  .wifi-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(30, 30, 30, 0.8);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #444;
    backdrop-filter: blur(8px);
  }
  .wifi-password {
    display: inline;
    font-size: 13px;
    color: #ccc;
  }
}

/* Position für Mobilgeräte (oben rechts neben Notification-Icon) */
@media (max-width: 768px) {
  .wifi-icon {
    position: absolute;
    top: 20px;
    right: 60px; /* neben Notification */
    font-size: 24px;
  }
  .wifi-password {
    display: none; /* mobil nur das Icon */
  }
}


/* =============== Bottom Navigation =============== */
.bottom-nav {
  display: none;
}

@media (max-width: 600px) {

  .top-logo {
    top: 16px;
    left: 16px;
  }

  .notification-icon {
    top: 16px;
    right: 16px;
  }

  .header-icons {
    top: 16px;
    right: 60px;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #333;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
  }

  .nav-item {
    text-align: center;
    flex: 1;
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    transition: color 0.2s ease;
  }

  .nav-item i {
    font-size: 22px;
  }

  /* Kein Hintergrund, nur Farbwechsel bei Hover/Active */
  .nav-item:hover,
  .nav-item.active {
    color: #b51c29;
  }

  .tile-section {
    padding-bottom: 90px; /* Platz für Bottom-Nav */
  }
  .header-content {
    padding: 0px 16px 0px; /* weniger Abstand oben (vorher 40px) */
  }

  .header-content .logo img {
    max-width: 140px; /* optional: etwas kleineres Logo mobil */
    margin-bottom: 24px; /* enger zum Text */
  }

  .header-content h1 {
    font-size: 2rem; /* optional: Schriftgröße reduzieren */
  }

  .header-content p {
    font-size: 0.9rem;
  }
}
