/* ============================= */
/* ===== Grundlegendes ===== */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(-45deg, #030007, #08001a, #1a0033, #0a0015);
  background-size: 400% 400%;
  animation: gradientBG 30s ease infinite;
  color: #fff;
}

/* ===== Animation ===== */
@keyframes gradientBG {
  0% {background-position:0% 50%;}
  50% {background-position:100% 50%;}
  100% {background-position:0% 50%;}
}

/* ============================= */
/* ===== Header / Hero ===== */
/* ============================= */

header, .hero {
  text-align: center;
  padding: 60px 20px 30px;
}

.hero h1 {
  font-size: 3rem;
}

.subtitle {
  opacity: 0.85;
  margin-top: 8px;
}

/* ============================= */
/* ===== Navigation ===== */
/* ============================= */

nav.site-nav {
  padding: 0;
  margin-bottom: 40px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo Links */
.nav-logo {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  color: rgba(145,70,255,1);
  transform: translateX(3px);
}

/* Navigation Rechts */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
}

.nav-links a:hover {
  background: rgba(145,70,255,0.35);
  border-color: rgba(145,70,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145,70,255,0.3);
}

.nav-links a.active {
  background: rgba(145,70,255,0.5);
  border-color: rgba(145,70,255,0.7);
}

/* ============================= */
/* ===== Container & Glass ===== */
/* ============================= */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

.glass {
  width: 100%;
  max-width: 520px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
}

.section {
  margin-bottom: 30px;
}

.center {
  text-align: center;
}

/* ============================= */
/* ===== Kalender Woche ===== */
/* ============================= */

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.calendar-day {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

.calendar-day.glass {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
}

.calendar-day h3 {
  margin-bottom: 10px;
}

.calendar-item {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

.calendar-item:last-child {
  margin-bottom: 0;
}

.calendar-time {
  font-size: 0.85rem;
  opacity: 0.7;
}

.calendar-title {
  font-weight: bold;
  margin-top: 2px;
}

.loading {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
}

/* ============================= */
/* ===== Tags ===== */
/* ============================= */

.calendar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.calendar-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  transition: transform 0.2s;
}

.calendar-tag:hover {
  transform: scale(1.05);
}

/* Notion Tag Colors */
.calendar-tag[data-color="default"] { background: rgba(150,150,150,0.25); }
.calendar-tag[data-color="gray"] { background: rgba(150,150,150,0.25); }
.calendar-tag[data-color="brown"] { background: rgba(140,100,70,0.25); }
.calendar-tag[data-color="orange"] { background: rgba(255,165,0,0.25); }
.calendar-tag[data-color="yellow"] { background: rgba(255,215,0,0.25); }
.calendar-tag[data-color="green"] { background: rgba(50,205,50,0.25); }
.calendar-tag[data-color="blue"] { background: rgba(0,150,255,0.25); }
.calendar-tag[data-color="purple"] { background: rgba(145,70,255,0.25); }
.calendar-tag[data-color="pink"] { background: rgba(255,105,180,0.25); }
.calendar-tag[data-color="red"] { background: rgba(255,69,58,0.25); }

/* ============================= */
/* ===== Footer ===== */
/* ============================= */

.site-footer {
  margin-top: 60px;
  padding: 25px 10px;
  text-align: center;
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ============================= */
/* ===== Responsive ===== */
/* ============================= */

@media (max-width: 768px) {
  .hero h1 { font-size: 2.3rem; }
  .glass { padding: 20px; }
  
  .nav-inner {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  
  .nav-logo {
    flex: none;
    width: 100%;
    text-align: center;
  }
  
  .nav-links {
    flex: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .calendar-list { gap: 12px; }
  .calendar-item { padding: 8px; }
}
