/* ============================================================
   BATTLECORE – style.css
   Inspired by webkinder.ch: bold, minimal, high-contrast
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --accent-glow: rgba(244, 63, 94, 0.28);
  --red: #ff1f1f;
  --bg: #0d0d0d;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #888888;
  --text-faint: #444444;
  --border: rgba(255,255,255,0.08);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --nav-h: 80px;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-2: #ece7dd;
  --bg-3: #e2dcce;
  --text: #0d0d0d;
  --text-muted: #555555;
  --text-faint: #aaaaaa;
  --border: rgba(0,0,0,0.1);
  --accent-glow: rgba(244, 63, 94, 0.15);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }


/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(245,240,232,0.9);
}

.nav-logo {
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-logo:hover { transform: scale(1.05); }

.nav-center { flex: 1; display: flex; justify-content: center; }

.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition), color var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { transition: opacity 0.2s; }
.icon-sun { opacity: 1; }
.icon-moon { opacity: 0.4; }
[data-theme="light"] .icon-sun { opacity: 0.4; }
[data-theme="light"] .icon-moon { opacity: 1; }

.menu-btn {
  width: 52px; height: 52px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.menu-btn:hover { transform: scale(1.08); background: var(--accent-light); }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MENU OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 58px) 40px);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-overlay.is-open {
  clip-path: circle(150% at calc(100% - 58px) 40px);
}

.menu-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.menu-overlay.is-open .menu-overlay-inner {
  opacity: 1;
  transform: translateY(0);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.menu-link {
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  transition: color 0.2s, transform 0.2s;
  display: block;
}
.menu-link:hover {
  color: rgba(255,255,255,0.55);
  transform: translateX(12px);
}

.menu-footer {
  display: flex;
  gap: 32px;
}
.menu-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.menu-footer a:hover { color: #fff; }

.menu-close {
  position: absolute;
  top: 28px; right: 32px;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: background 0.2s, transform 0.2s;
}
.menu-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

/* ---------- SECTION BASE ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 48px;
}
.section-headline em {
  font-style: italic;
  color: var(--accent-light);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  transform: translateY(-3px);
}
.btn-large { padding: 18px 40px; font-size: 16px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-headline strong {
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- BLOBS ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: rgba(244, 63, 94, 0.2);
  top: 10%; right: 5%;
  animation-delay: 0s;
  animation-duration: 9s;
}
.blob-2 {
  width: 320px; height: 320px;
  background: rgba(251, 113, 133, 0.12);
  bottom: 15%; left: 5%;
  animation-delay: 3s;
  animation-duration: 11s;
}
.blob-3 {
  width: 600px; height: 600px;
  background: rgba(244, 63, 94, 0.22);
  top: -100px; right: -150px;
  animation-delay: 1s;
  animation-duration: 13s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.06); }
  66%       { transform: translate(-20px, 20px) scale(0.96); }
}

/* ---------- SCROLL ARROW ---------- */
.scroll-arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  color: var(--accent);
  animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about-link:hover { opacity: 0.75; }

/* ---------- FEATURES ---------- */
.features { background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px var(--accent-glow);
}
.feature-icon { font-size: 32px; margin-bottom: 20px; }
.feature-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- EVENTS ---------- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.event-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.event-item:first-child { border-top: 1px solid var(--border); }
.event-item:hover .event-title { color: var(--accent); }

.event-date {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.event-month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.event-day {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.event-info { flex: 1; }
.event-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.event-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.event-tag {
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- JOIN ---------- */
.join {
  background: var(--accent);
  overflow: hidden;
}
.join-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.join-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.join-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}
.join-headline strong { font-style: italic; }
.join-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 48px;
}
.join-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.join .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.join .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.join .btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.join .btn-ghost:hover { border-color: #fff; }
.join .blob-3 { opacity: 0.3; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-logo {
  display: flex; align-items: center;
  margin-bottom: 24px;
}
.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-tagline { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 220px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- MAP ---------- */
.map-section {
  background: var(--bg-2);
  padding: 120px 0 0;
}
.map-top {
  padding-bottom: 64px;
}
.map-embed-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -20px 80px var(--accent-glow);
}
.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
.map-overlay-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  pointer-events: none;
}
.map-coords {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.map-coord-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-coord-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.map-coord-value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- ZUR ALTEN ANSICHT BADGE ---------- */
.old-site-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.old-site-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- SUBPAGE HERO ---------- */
/* ---------- SUBPAGE NAVIGATION ---------- */
.back-link-container {
  margin-bottom: 24px;
}
.back-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.back-link:hover {
  opacity: 0.8;
}

.subpage-hero {
  padding: calc(var(--nav-h) + 60px) 0 80px;
  border-bottom: 1px solid var(--border);
}
.subpage-hero .section-tag { margin-bottom: 16px; }
.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}
.subpage-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.subpage-hero p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- DOWNLOAD PAGE ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.download-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px var(--accent-glow);
}
.download-card-icon { font-size: 36px; }
.download-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 4px 12px;
  width: fit-content;
}
.download-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}
.download-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}
.download-card-meta {
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  gap: 16px;
}
.download-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- PROSE (Impressum / Datenschutz) ---------- */
.prose-section { padding: 80px 0 120px; }
.prose-content {
  max-width: 760px;
}
.prose-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text);
}
.prose-content h2:first-child { margin-top: 0; }
.prose-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text);
}
.prose-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose-content ul li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.prose-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ---------- ARCHIV ---------- */
.archiv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.archiv-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}
.archiv-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.archiv-card-year {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.archiv-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.archiv-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.archiv-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-embed-wrapper { height: 380px; }
}

@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .event-item { flex-direction: column; align-items: flex-start; gap: 16px; }
  .menu-link { font-size: clamp(28px, 9vw, 52px); }
  .hero-actions { flex-direction: column; }
  .join-actions { flex-direction: column; align-items: center; }
  .map-embed-wrapper { height: 280px; }
  body { cursor: auto; }
  .cursor-dot { display: none; }
}
