/*
Theme Name: Marcomannia Stuttgart
Theme URI: https://marcomannia-stuttgart.de
Author: Antigravity Team
Description: Ein premium Glassmorphism-Theme für die Landsmannschaft Marcomannia.
Version: 1.1.0
*/

/* Marcomannia Stuttgart - Premium Design System */

:root {
  --color-green: 159 81% 53%;
  /* #27e9a5 */
  --color-violet: 263 83% 62%;
  /* #8b5cf6 */
  --color-white: 157 100% 96%;
  /* #eafff7 */
  --color-black: 187 33% 15%;
  /* #1a3134 */
  --color-zinc-900: 187 25% 20%;
  --color-zinc-800: 187 20% 25%;
  --color-zinc-400: 187 10% 65%;
  --color-zinc-100: 187 10% 90%;

  /* Glassmorphism */
  --glass-bg: hsl(var(--color-black) / 0.25);
  --glass-border: hsl(var(--color-zinc-400) / 0.12);
  --glass-blur: 24px;

  /* Typography */
  --font-serif: 'Pirata One', system-ui;
  --font-sans: 'Inter', sans-serif;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
}

/* Custom Cursor */
#cursor-dot,
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  will-change: left, top;
  transform: translate(-50%, -50%);
}

#cursor-dot {
  width: 7px;
  height: 7px;
  background: hsl(var(--color-green));
  box-shadow: 0 0 8px 3px hsl(var(--color-green) / 0.8), 0 0 20px 6px hsl(var(--color-green) / 0.4);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
}

#cursor-glow {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, hsl(var(--color-green) / 0.28) 0%, hsl(var(--color-green) / 0.08) 45%, transparent 70%);
  filter: blur(6px);
  transition: width 0.35s ease, height 0.35s ease, opacity 0.3s ease;
}

#cursor-dot.cursor-hover {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px 5px hsl(var(--color-green) / 0.9), 0 0 32px 14px hsl(var(--color-green) / 0.4);
}

#cursor-glow.cursor-hover {
  width: 140px;
  height: 140px;
}

@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto; }
  #cursor-dot, #cursor-glow { display: none; }
}


html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: hsl(var(--color-black));
  color: hsl(var(--color-white));
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  isolation: isolate;
}

/* Animated Aurora Background */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -15%;        /* oversized so edges never clip into view */
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

body::before {
  background:
    radial-gradient(ellipse 70% 55% at 40% 30%, hsl(160 70% 18% / 0.85) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 70% 65%, hsl(155 65% 12% / 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 55% 80%, hsl(163 60% 16% / 0.6) 0%, transparent 55%);
  animation: auroraShift1 18s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(ellipse 55% 45% at 60% 30%, hsl(158 55% 10% / 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 25% 65%, hsl(162 65% 14% / 0.7) 0%, transparent 65%);
  animation: auroraShift2 24s ease-in-out infinite alternate;
}

@keyframes auroraShift1 {
  0%   { transform: scale(1)    translate(0%, 0%); }
  33%  { transform: scale(1.04) translate(2%, -1.5%); }
  66%  { transform: scale(0.98) translate(-1.5%, 2%); }
  100% { transform: scale(1.03) translate(1%, 1%); }
}

@keyframes auroraShift2 {
  0%   { transform: scale(1.03) translate(1%, 0.5%); }
  33%  { transform: scale(0.98) translate(-2%, 2%); }
  66%  { transform: scale(1.05) translate(1.5%, -1%); }
  100% { transform: scale(1)    translate(-0.5%, -1.5%); }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1200ms ease-in-out, transform 1200ms ease-in-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section containers: reveal via transform only, not opacity */
section.reveal {
  opacity: 1;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered child entrance animation */
.sa {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa.sa-in {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  animation: fadeIn 1200ms ease-in-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.stagger-2 {
  animation: fadeIn 1200ms ease-in-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.stagger-3 {
  animation: fadeIn 1200ms ease-in-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.stagger-nav {
  animation: fadeIn 1200ms ease-in-out forwards;
  animation-delay: 0.0s;
  opacity: 0;
}

/* Navbar */
.nav-container {
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 0.75rem;
}

@media (min-width: 768px) {
  .nav-container {
    top: 1.5rem;
    padding: 0 1.5rem;
  }
}

.navbar {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  flex: 1;
  min-width: 0;
  /* Allows flex item to shrink below intrinsic image width */
}

.nav-logo a {
  display: flex;
  max-width: 100%;
}

@media (min-width: 768px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }
}

#nav-crest {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: all 0.3s ease;
}

nav,
.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .navbar {
    width: max-content;
    max-width: 100%;
    gap: 3.5rem;
    padding: 0.75rem 2rem;
  }

  .nav-logo {
    flex: 0 0 auto;
  }

  #nav-crest {
    height: 52px;
    max-width: none;
  }

  nav {
    display: block;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
  }
}

.nav-links a {
  color: hsl(var(--color-zinc-400));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: hsl(var(--color-green));
}

.nav-btn {
  display: none;
}

@media (min-width: 1024px) {
  .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
  }
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.4s ease;
  transform-origin: center;
}

/* X Animation when active */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: hsl(var(--color-black) / 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.mobile-nav-links a:not(.mobile-btn):hover {
  color: hsl(var(--color-green));
}

.mobile-btn {
  background: hsl(var(--color-green));
  color: hsl(var(--color-black)) !important;
  padding: 0.75rem 2.5rem;
  border-radius: 1rem;
  display: inline-block;
  margin-top: 1rem;
}

.mobile-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6rem 1.5rem 6rem 1.5rem;
  padding-bottom: clamp(6rem, 15vh, 12rem);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    align-items: center;
    padding-bottom: 6rem;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  /* Restrict height on mobile to scale video down */
  z-index: -2;
}

@media (min-width: 1024px) {
  .hero-bg {
    bottom: 0;
    height: auto;
    /* Full height on desktop */
  }
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  /* Focus on the right side (cap) for mobile */
  opacity: 0.9;
}

@media (min-width: 1024px) {

  .hero-bg img,
  .hero-bg video {
    object-position: center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      hsl(var(--color-black) / 0.1) 0%,
      hsl(var(--color-black) / 0) 60%,
      hsl(var(--color-black) / 0.8) 90%,
      hsl(var(--color-black) / 1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 80rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 10vw, 6.5rem);
  font-weight: 400; 
  line-height: 1.1;
  letter-spacing: 0.03em;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.brand-text {
  color: hsl(var(--color-green));
}

.hero-p {
  color: hsl(var(--color-zinc-400));
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 40rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
  }
}

.btn-primary {
  background: hsl(var(--color-green));
  color: hsl(var(--color-black));
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Section Spacing */
.section {
  padding: 4rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 1.5rem;
  }
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 2rem 1.25rem;
}

@media (min-width: 1024px) {
  .timeline-slide {
    padding: 3rem 4rem;
  }
}

@media (min-width: 768px) {
  .glass-panel {
    padding: 4rem;
    border-radius: 3rem;
  }
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  color: hsl(var(--color-green));
}

.text-content p {
  color: hsl(var(--color-zinc-400));
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

#über-uns .image-container {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#über-uns .image-container img {
  object-fit: contain;
}

/* Feature List (Identität) */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 1.5rem;
  transition: all 0.7s ease-in-out;
}

@keyframes slowGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
      transparent,
      hsl(var(--color-green) / 0.15),
      hsl(var(--color-violet) / 0.15),
      transparent);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.feature-item:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 0 30px hsla(var(--color-green) / 0.3);
  border-color: hsl(var(--color-green) / 0.5);
}

.feature-item:hover::before {
  opacity: 1;
  animation: slowGradient 6s ease infinite;
}

.feature-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--color-green));
}

.feature-text {
  position: relative;
  z-index: 2;
}

.feature-text h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(----color-green));
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-text p {
  color: hsl(var(--color-zinc-400));
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.image-container {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.image-container img,
.image-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Custom Google Maps Dark Theme */
.map-container {
  position: relative;
}

.map-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid hsl(var(--color-green) / 0.2);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.map-container:hover::after {
  border-color: hsl(var(--color-green) / 0.5);
  box-shadow: inset 0 0 30px hsl(var(--color-green) / 0.05);
}

.map-iframe {
  /* Dark mode: invert colors, rotate hue back so greens/blues become correct,
     then nudge saturation and brightness to match our teal/green palette */
  filter:
    invert(1)
    hue-rotate(175deg)
    saturate(0.7)
    brightness(0.75)
    contrast(1.1);
  transition: filter 0.5s ease;
}

.map-container:hover .map-iframe {
  filter:
    invert(1)
    hue-rotate(175deg)
    saturate(0.9)
    brightness(0.85)
    contrast(1.1);
}

.badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: hsl(var(--color-green) / 0.1);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--color-green) / 0.2);
  color: hsl(var(--color-green));
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* Image Stack Layout */
.image-stack {
  position: relative;
  min-height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .image-stack {
    min-height: 600px;
  }
}

.image-stack-item {
  position: absolute;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-stack-item--main {
  width: 65%;
  aspect-ratio: 3 / 4;
  z-index: 2;
  position: relative;
  transform: rotate(-2deg);
}

.image-stack-item--top-left {
  width: 35%;
  aspect-ratio: 1 / 1;
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-8deg);
}

.image-stack-item--bottom-right {
  width: 50%;
  aspect-ratio: 4 / 3;
  bottom: 0;
  right: 0;
  z-index: 3;
  transform: rotate(4deg);
}

.image-stack-item--top-right {
  width: 25%;
  aspect-ratio: 1 / 1;
  top: 10%;
  right: 5%;
  z-index: 1;
  transform: rotate(10deg);
}

.image-stack-item:hover {
  z-index: 10;
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px hsla(var(--color-green) / 0.3);
  border-color: hsl(var(--color-green) / 0.5);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: hsl(var(--color-green));
}

.accordion-icon {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: hsl(var(--color-zinc-400));
}

.accordion-item.open .accordion-header {
  color: hsl(var(--color-green));
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: hsl(var(--color-green));
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
  opacity: 1;
}

.accordion-content p {
  padding-bottom: 2rem;
  color: hsl(var(--color-zinc-400));
  font-size: 1.05rem;
}

/* Values Grid & Cards */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.7s ease-in-out;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
      transparent,
      hsl(var(--color-green) / 0.15),
      hsl(var(--color-violet) / 0.15),
      transparent);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.value-card:hover {
  transform: translateY(-12px) scale(1.04) !important;
  box-shadow: 0 0 30px hsla(var(--color-green) / 0.3);
  border-color: hsl(var(--color-green) / 0.5);
}

.value-card:hover::before {
  opacity: 1;
  animation: slowGradient 6s ease infinite;
}

.value-card-img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
}

.value-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.5rem 0.5rem 0.5rem;
}

.value-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: hsl(var(--color-green));
  font-weight: 700;
}

.value-card-content p {
  color: hsl(var(--color-zinc-400));
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
/* Decorative & Footer */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsl(var(--color-green) / 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.footer {
  padding: 6rem 1.5rem 3rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: hsl(var(--color-black) / 0.4);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

.footer-brand p {
  color: hsl(var(--color-zinc-400));
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a,
.footer-links p {
  color: hsl(var(--color-zinc-400));
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: hsl(var(--color-green));
}

.footer-bottom {
  max-width: 80rem;
  margin: 4rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--color-zinc-800) / 0.3);
  text-align: center;
}

.footer-bottom p {
  color: hsl(var(--color-zinc-400));
  font-size: 0.875rem;
}

/* Timeline Interactive CSS */
.timeline-wrapper {
  display: grid;
  overflow: visible;
  position: relative; /* Base for absolute arrows */
}

.timeline-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  padding: 2.5rem 1rem; /* Reduced padding for mobile */
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s;
  transform: translateX(30px);
  pointer-events: none;
}

.timeline-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .history-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.history-text-col {
  display: flex;
  flex-direction: column;
}

.history-subtitle {
  color: hsl(var(--color-zinc-400));
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.history-year {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  color: hsl(var(--color-green));
  line-height: 1;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

.history-desc {
  color: hsl(var(--color-zinc-400));
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 90%;
}

.history-img-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-image {
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

#kontakt .grid {
  gap: 2.5rem;
}

@media (max-width: 1023px) {
  #kontakt .image-container {
    order: 2 !important;
  }
  #kontakt .text-content {
    order: 1 !important;
    text-align: center;
  }
}

/* Timeline Navigation Bottom Bar */
.timeline-nav-container {
  display: flex;
  align-items: flex-end;
  padding: 0 3rem 3rem 3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* IE and Edge */
}

.timeline-nav-container::-webkit-scrollbar {
  display: none;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 90px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.step-year {
  color: hsl(var(--color-zinc-400));
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s;
  font-family: var(--font-sans);
}

.step-line {
  height: 2px;
  width: 100%;
  background: var(--glass-border);
  transition: all 0.3s;
}

.timeline-step:hover .step-year {
  color: white;
}

.timeline-step.active .step-year {
  color: hsl(var(--color-green));
}

.timeline-step.active .step-line {
  background: hsl(var(--color-green));
  height: 3px;
}

/* Timeline Arrows & Wrapper */
.timeline-nav-wrapper {
  display: flex;
  flex-direction: column; /* Arrow logic moved to absolute */
  gap: 1rem;
  padding: 0 1.5rem 3rem 1.5rem;
}

@media (min-width: 768px) {
  .timeline-nav-wrapper {
    padding: 0 3rem 3rem 3rem;
  }
}

.timeline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100; /* High z-index */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: hsl(var(--color-green));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.timeline-arrow.prev {
  left: -25px; /* Overlap half */
}

.timeline-arrow.next {
  right: -25px; /* Overlap half */
}

@media (max-width: 768px) {
  .timeline-arrow.prev { left: 0px; }
  .timeline-arrow.next { right: 0px; }
  .timeline-arrow { 
    width: 36px; 
    height: 36px; 
    background: hsl(var(--color-green));
    color: hsl(var(--color-black));
  }
}

.timeline-arrow:hover {
  background: hsl(var(--color-green));
  color: hsl(var(--color-black));
  border-color: hsl(var(--color-green));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px hsla(var(--color-green) / 0.4);
}

.timeline-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.timeline-nav-container {
  display: flex;
  align-items: flex-end;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none; /* IE and Edge */
  gap: 1rem;
}