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

:root {
  --bg-color: #000000;
  --bg-secondary: #0a0a0a;
  --text-main: #f5f5f7;
  --text-muted: #a1a1a6;
  --accent-gold: #d8ba6a;
  --accent-gold-hover: #c4a95a;
  --accent-gold-dark: #b1964a;
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  background-color: var(--bg-color);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
  text-transform: lowercase;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.title-xl {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.title-lg {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 700px;
  margin-inline: auto;
}

.highlight-gold {
  color: var(--accent-gold);
  background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.nav-img-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .nav-img-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: #ddd;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-color);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(226, 200, 111, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Hero Section (Apple-style Scroll) */
.hero-sticky-container {
  height: 300vh;
  /* erzeugt 2 Viewports Scroll-Distanz */
  position: relative;
  padding: 0;
  margin-top: -70px;
  /* Ausgleich für fixen Header */
  z-index: 10;
}

.hero-sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(226, 200, 111, 0.06) 0%, var(--bg-color) 65%);
}

.hero-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 800px;
  z-index: 2;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out, filter 0.1s ease-out;
  will-change: transform, opacity, filter;
}

.hero-img-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(226, 200, 111, 0.2));
}

.hero-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 50px);
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  text-align: center;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  /* nicht klickbar, wenn unsichtbar */
  transition: opacity 0.1s ease-out, transform 0.1s ease-out;
  will-change: opacity, transform;
}

.hero-text-container p {
  margin-top: 1.5rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--text-main);
  font-weight: 500;
}

.image-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  aspect-ratio: 4/3;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

/* Events Section (Termine) */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4rem;
  max-width: 800px;
  margin-inline: auto;
}

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  /* Datum, Titel(dehnt sich), Uhrzeit */
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

.event-date {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.event-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Weil unsere event-details aktuell im HTML <div><h4>Titel</h4><p>Uhrzeit</p></div> sind, 
   brechen wir das HTML so auf, dass Titel und Uhrzeit sich verteilen: */
.event-details {
  display: contents;
  /* So wirken grid-template-columns auch auf h4 und p */
}

.event-details h4 {
  margin-bottom: 0;
  font-size: 1.25rem;
  /* Optionale Begrenzung, falls Name extrem lang ist */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-details p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
}

.contact-card h4 {
  color: var(--accent-gold);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer & Social Links */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: rgba(226, 200, 111, 0.15);
  /* light gold */
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(226, 200, 111, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Animations (Intersection Observer Targets) */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {

  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--glass-border);
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .title-xl {
    font-size: 11vw;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem;
  }

  .event-details h4 {
    white-space: normal;
    /* Erlaubt Umbruch am Handy */
  }

  .event-details p {
    text-align: left;
    white-space: normal;
  }

  .event-item .btn {
    align-self: flex-start;
    margin-top: 1rem;
  }
}

/* Team Carousel Apple Style */
.team-carousel {
  display: flex;
  gap: 1.5rem;
  /* Start with spacing from the left edge */
  padding-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  padding-right: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  margin-top: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  padding-bottom: 2rem;
  /* Reduced space */
}

/* Hide horizontal scrollbar for carousel */
.team-carousel::-webkit-scrollbar {
  display: none;
}

/* Carousel Navigation Arrows */
.section-header-with-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.carousel-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.team-card {
  flex: 0 0 85vw;
  /* Width on mobile */
  max-width: 350px;
  /* Width on larger screens */
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}

/* Add an empty element at the end to allow the last item to be centered when scrolled to the end */
.team-carousel::after {
  content: '';
  flex: 0 0 max(2rem, calc((100vw - 1200px) / 2));
  display: block;
}

.team-image-container {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

.team-info {
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}

.team-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.team-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Gallery Section (Apple Style Masonry Horizontal) */
.gallery-section {
  background-color: var(--bg-color);
  /* Match background */
  overflow: hidden;
}

.gallery-carousel {
  display: grid;
  /* 4 rows fixed height */
  grid-template-rows: repeat(4, minmax(140px, 180px));
  /* Auto-flow columns horizontally */
  grid-auto-flow: column dense;
  grid-auto-columns: minmax(250px, 300px);
  gap: 1.5rem;
  padding-left: max(2rem, calc((100vw - 1200px) / 2));
  padding-right: max(2rem, calc((100vw - 1200px) / 2));
  margin-top: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  padding-bottom: 2rem;
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

/* Scroll snap point adjustment so it aligns with the left padding */
.gallery-carousel::after {
  content: '';
  width: max(2rem, calc((100vw - 1200px) / 2));
  grid-row: 1 / -1;
  /* Stretch across all rows */
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--glass-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  scroll-snap-align: center;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
  filter: brightness(0.9);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.gallery-item.item-video:hover .video-overlay {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Grid layout variations for masonry feel in horizontal scroll */
.item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.item-tall {
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
}