/* ==========================================================================
   MoMa Camp - 2026 High-End Re-Design Stylesheet
   Farbe: MoMa-Rot #B41D23 | 0% Extern | Smooth & Rounded
   ========================================================================== */

:root {
  --moma-red: #B41D23;
  --moma-red-hover: #96161b;
  --moma-red-dark: #801216;
  --bg-light: #ffffff;
  --bg-shaded: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-muted: #5a5a5a;
  
  /* Modern 2026 Shadows & Radii */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  --shadow-red: 0 10px 25px -5px rgba(180, 29, 35, 0.35);
  
  /* Smooth Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Lokale System-Schriften (DSGVO-safe, 0% Google!) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Globale Bild-Bremse */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.moma-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Progress Bar (Modern Glowing) */
#moma-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 100001;
  pointer-events: none;
}

#moma-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   2. HEADER & NAV (Glassmorphic Red)
   ========================================================================== */
.moma-header {
  position: sticky;
  top: 0;
  background-color: rgba(180, 29, 35, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: background-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Header Logo Bremse */
.moma-logo img {
  max-height: 44px !important;
  width: auto !important;
  transition: transform var(--transition-fast);
}

.moma-logo:hover img {
  transform: scale(1.03);
}

.moma-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.moma-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.moma-nav a:hover,
.moma-nav li.active > a {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Modern Dropdowns */
.moma-nav li.has-dropdown {
  position: relative;
}

.moma-nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--moma-red-dark);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-md);
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.moma-nav li.has-dropdown:hover .dropdown {
  display: flex;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.moma-nav .dropdown a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.moma-nav .dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

/* Mobile Menu Toggle */
.moma-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.moma-menu-toggle span {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* ==========================================================================
   3. HERO VIDEO BANNER
   ========================================================================== */
.moma-hero {
  position: relative;
  width: 100vw;
  height: 650px;
  overflow: hidden;
  background: #000;
}

.moma-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.95);
}

/* ==========================================================================
   4. SECTIONS & EXAKTE WEBADOR SCHRIFTGRÖSSEN
   ========================================================================== */
.moma-section {
  padding: 80px 0;
}

.moma-bg-white { background-color: var(--bg-light); }
.moma-bg-shaded { background-color: var(--bg-shaded); }

/* Baukasten-Schriften in moderner 2026-Ästhetik */
.moma-section h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text-dark);
  line-height: 1.2;
}

.moma-section h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.moma-intro-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 900px;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Modern Pill Buttons mit Glow-Effekt */
.moma-btn-row {
  margin-bottom: 36px;
}

.moma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--moma-red);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-red);
  transition: all var(--transition-smooth);
}

.moma-btn:hover {
  background: var(--moma-red-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(180, 29, 35, 0.5);
}

/* ==========================================================================
   5. SOCIAL ICONS (Willkommen LINKS | Footer ZENTRIERT)
   ========================================================================== */
.moma-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start !important; /* Willkommen = stur links! */
}

.moma-social-icons a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--moma-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(180, 29, 35, 0.25);
  transition: all var(--transition-smooth);
}

.moma-social-icons a:hover {
  background: var(--moma-red-hover);
  transform: translateY(-4px) rotate(6deg);
  box-shadow: 0 8px 20px rgba(180, 29, 35, 0.4);
}

.moma-social-icons svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   6. 2026 GRIDS & ANIMIERTE CARDS
   ========================================================================== */
.moma-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.moma-video-card, .moma-cat-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-smooth);
}

/* Super weiches Aufschweben beim Hover */
.moma-video-card:hover, .moma-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(180, 29, 35, 0.15);
}

.moma-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Platzhalter-Logos in Kategorien */
.moma-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 30px;
  background-color: #ffffff;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.moma-video-card:hover img, .moma-cat-card:hover img {
  transform: scale(1.06);
}

/* Glassmorphic Play Button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 68px;
  height: 68px;
  background: rgba(180, 29, 35, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-smooth);
}

.moma-video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(180, 29, 35, 0.98);
  box-shadow: 0 15px 35px rgba(180, 29, 35, 0.5);
}

.play-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  margin-left: 4px;
}

/* ==========================================================================
   7. FOOTER (SATTES ROT & ZENTRIERT)
   ========================================================================== */
.moma-footer {
  background-color: var(--moma-red);
  color: #ffffff;
  padding: 80px 0 40px 0;
}

.moma-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.moma-footer h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.moma-footer-grid .small-v {
  margin-bottom: 20px;
}

.moma-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 50px 0 40px 0;
}

.moma-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Rundes Footer Logo mit Glow */
.footer-logo img {
  width: 130px !important;
  height: 130px !important;
  object-fit: contain !important;
  border-radius: var(--radius-full);
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-smooth);
}

.footer-logo:hover img {
  transform: rotate(-5deg) scale(1.05);
}

/* NUR IM FOOTER ZENTRIERT: */
.footer-social {
  text-align: center;
}

.footer-social p {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 16px;
}

.footer-social .moma-social-icons {
  justify-content: center !important; /* Hier stur zentriert! */
}

/* Links im Footer mittig & smooth */
.footer-links {
  text-align: center;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
  display: inline-block;
  margin: 4px 0;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   8. FLOATING ACTION BUTTONS (2026 Glassmorphic Style)
   ========================================================================== */
#moma-scroll-top, #moma-darkmode-toggle {
  position: fixed;
  background-color: rgba(180, 29, 35, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 99999;
  box-shadow: var(--shadow-hover);
  width: 48px;
  height: 48px;
  right: 28px;
  transition: all var(--transition-smooth);
}

#moma-scroll-top:hover, #moma-darkmode-toggle:hover {
  background-color: var(--moma-red);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 15px 30px rgba(180, 29, 35, 0.4);
}

#moma-scroll-top {
  bottom: 90px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
}

#moma-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#moma-scroll-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid #ffffff;
}

#moma-darkmode-toggle {
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moma-toggle-icon {
  font-size: 22px;
  user-select: none;
  transition: transform var(--transition-smooth);
}

#moma-darkmode-toggle:hover .moma-toggle-icon {
  transform: rotate(20deg) scale(1.1);
}

/* ==========================================================================
   9. DARK MODE 2026 OVERRIDES (Tiefes OLED-Schwarz #0a0a0a)
   ========================================================================== */
html.dark-mode-active,
html.dark-mode-active body,
html.dark-mode-active .moma-section {
  background-color: #0a0a0a !important;
  color: #f0f0f0 !important;
}

html.dark-mode-active .moma-video-card,
html.dark-mode-active .moma-cat-card {
  background-color: #141414 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode-active p,
html.dark-mode-active h1,
html.dark-mode-active h2,
html.dark-mode-active h3 {
  color: #ffffff !important;
}

html.dark-mode-active #moma-scroll-top::before {
  border-bottom-color: #0a0a0a !important;
}

/* ==========================================================================
   10. MOBILE RESPONSIVENESS (2026 App-Like Feel)
   ========================================================================== */
@media (max-width: 768px) {
  .moma-section { padding: 50px 0; }
  .moma-section h1 { font-size: 30px; }
  .moma-section h2 { font-size: 24px; }
  
  .moma-menu-toggle { display: flex; }
  
  .moma-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(180, 29, 35, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .moma-nav.open { 
    display: block; 
    animation: fadeInDown 0.3s ease forwards;
  }

  .moma-nav ul {
    flex-direction: column;
    padding: 24px;
    gap: 12px;
  }

  .moma-nav a {
    display: block;
    padding: 12px 20px;
  }

  .moma-hero { height: 56.25vw; }
  .moma-grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .moma-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .moma-footer-bottom { flex-direction: column; text-align: center; gap: 36px; }
  
  #moma-scroll-top, #moma-darkmode-toggle {
    right: 16px;
    width: 44px;
    height: 44px;
  }
  
  #moma-scroll-top { bottom: 76px; }
  #moma-darkmode-toggle { bottom: 16px; }
}