/* ===== Custom Properties ===== */
:root {
  --bg-hero: #0a0a0a;
  --bg-section: #111111;
  --text: #f5f5f7;
  --text-muted: #86868b;
  --accent: #4a9eff;
  --accent-hover: #3a8eef;
  --divider: #2d2d2d;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", sans-serif;
  --max-width: 800px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ===== Base ===== */
body {
  background-color: var(--bg-hero);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--divider);
}

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

.navbar__brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.navbar__brand::after {
  content: " Stammtisch";
  font-weight: 400;
  color: var(--text-muted);
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.navbar__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.navbar__links a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .navbar__links {
    display: none;
  }
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.85)),
    url("images/hero.jpg") top / cover no-repeat;
  padding: 160px 0 120px;
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 48px;
}

.hero__event {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.hero__event span {
  color: var(--text-muted);
  padding: 0 8px;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 980px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--accent-hover);
  transform: scale(1.02);
}

.cta-button:active {
  transform: scale(0.98);
}

/* ===== Hero Event Link ===== */
.hero__event-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 48px;
  transition: opacity 0.2s ease;
}

.hero__event-link:hover {
  opacity: 0.7;
}

.hero__event-link .hero__event {
  margin-bottom: 0;
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}

.section--alt {
  background-color: var(--bg-section);
}

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.section__text {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 640px;
}

.section__text:last-child {
  margin-bottom: 0;
}

/* ===== Event Info ===== */
.event-info {
  margin-bottom: 40px;
}

.event-info__date {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.event-info__location {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}

.event-info__address {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Subsection Title ===== */
.subsection__title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* ===== Agenda List ===== */
.agenda-list {
  list-style: none;
  margin-bottom: 48px;
  max-width: 640px;
}

.agenda-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.agenda-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.agenda-list li:last-child {
  margin-bottom: 0;
}

.agenda-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.agenda-link:hover {
  opacity: 0.7;
}

/* ===== Map ===== */
.map-container {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

@media (max-width: 600px) {
  .map-container iframe {
    height: 280px;
  }
}

/* ===== Past Events ===== */
.past-event {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.past-event:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.past-event__date {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.past-event .agenda-list {
  margin-bottom: 0;
}

/* ===== Kontakt ===== */
.kontakt {
  text-align: center;
}

.kontakt .section__text {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--divider);
  padding: 32px 0;
  text-align: center;
}

.footer__links {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 12px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}
