﻿/*
Theme Name: Marcomannia Stuttgart
Author: AI
Description: WordPress Theme
Version: 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.7);
  --glass-border: hsl(var(--color-zinc-800) / 0.5);
  --glass-blur: 16px;

  /* Typography */
  --font-serif: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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;
}

/* 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);
}

.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));
  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(2rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  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;
  gap: 1rem;
}

.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);
}

/* About Section */
.section {
  padding: 8rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.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.5rem;
}

@media (min-width: 768px) {
  .glass-panel {
    padding: 4rem;
    border-radius: 3rem;
  }
}

h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  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;
}

/* 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-white));
  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);
}

.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;
}

/* 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 / 5;
  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-white));
  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-color: hsl(var(--color-black));
}

.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: hidden;
}

.timeline-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  padding: 3rem;
  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: 4rem;
  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: 800;
  color: white;
  line-height: 1;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.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);
}

/* 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;
}

