/* ===================================================
   MOROV CITIZEN — MOROVD.DE
   New Design — Warm Parchment / Illustration Style
   =================================================== */

:root {
  --nav-h:            70px;
  --parchment:        #f0ebe0;
  --parchment-mid:    #e8e0d0;
  --parchment-deep:   #dfd7c5;
  --parchment-border: #cdc1aa;
  --ink:              #2a2218;
  --ink-soft:         #4a3e30;
  --teal:             #4a8a85;
  --teal-dim:         #2d6560;
  --teal-line:        rgba(74, 138, 133, 0.32);
  --ember:            #c07a35;
  --stone:            #8a7a65;
  --stone-light:      #c8bca8;
  --text-dim:         #6a5a48;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--parchment-deep); }
::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: rgba(74, 138, 133, 0.2); color: var(--teal); }

/* ===================================================
   CANVAS OVERLAY (particles — subtle on light bg)
   =================================================== */
#canvas-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.45;
}

/* ===================================================
   RIPPLE (click)
   =================================================== */
.ripple {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(74, 138, 133, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 1.4s ease-out forwards;
  z-index: 9999;
}
@keyframes ripple-expand {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ===================================================
   NAVIGATION
   =================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.9rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240, 235, 224, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding-bottom: calc(0.9rem + 4px);
}
nav::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--teal-dim);
  pointer-events: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 1; }
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
  margin: -18px 0;
  filter: brightness(1.1) drop-shadow(0 1px 6px rgba(0,0,0,0.3));
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ── Nav links — Glühen-Hover ── */
nav ul a {
  font-family: 'Cinzel', serif;
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0.1rem;
  display: inline-block;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
nav ul a:hover {
  color: var(--teal);
  text-shadow:
    0 0 8px rgba(74, 138, 133, 0.7),
    0 0 20px rgba(74, 138, 133, 0.35),
    0 0 40px rgba(74, 138, 133, 0.15);
}

/* Active */
nav ul a.active {
  color: var(--teal);
}

/* ===================================================
   HAMBURGER + MOBILE NAV PANEL
   =================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 34, 24, 0.45);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
}

/* Side panel */
.mobile-nav-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 82vw);
  height: 100%;
  background: var(--parchment);
  border-left: 1px solid var(--teal-dim);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 5rem 2.5rem 3rem;
  gap: 0;
}
.mobile-nav-panel.open {
  transform: translateX(0);
}
.mobile-nav-panel a {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--parchment-border);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: block;
}
.mobile-nav-panel a:first-child {
  border-top: 1px solid var(--parchment-border);
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  color: var(--teal);
  text-shadow:
    0 0 8px rgba(74, 138, 133, 0.6),
    0 0 20px rgba(74, 138, 133, 0.25);
}
.mobile-nav-panel .mobile-lang {
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav ul { display: none; }
  nav > .lang-toggle { display: none; }
}

/* ===================================================
   LANG TOGGLE
   =================================================== */
.lang-toggle {
  background: none;
  border: 1px solid var(--parchment-border);
  color: var(--stone);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.68rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  line-height: 1;
}
.lang-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ===================================================
   REVEAL ANIMATION
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

@keyframes fade-in { to { opacity: 1; } }

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  width: 100%;
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Parallax bg — JS moves this via translateY */
.hero-bg {
  position: absolute;
  inset: -10%;
  background: url('images/mc_index.jpg') center center / cover no-repeat;
  filter: brightness(0.88) saturate(0.82);
  transform: scale(1.1);
  will-change: transform;
  z-index: 0;
}

/* Fog overlay */
.fog-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.fog-layer::before,
.fog-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 60% at 50% 80%,
    rgba(192, 122, 53, 0.04) 0%, transparent 70%);
  animation: fog-drift 20s ease-in-out infinite alternate;
}
.fog-layer::after {
  background: radial-gradient(ellipse 80% 40% at 30% 60%,
    rgba(74, 138, 133, 0.04) 0%, transparent 60%);
  animation: fog-drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes fog-drift {
  0%   { opacity: 0.5; transform: translateX(-3%) scale(1); }
  100% { opacity: 1;   transform: translateX(3%)  scale(1.04); }
}

/* Logo watermark — large, ghosted over hero */
.hero-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(95%, 900px);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* Bottom gradient fade to parchment */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(240, 235, 224, 0.0)  0%,
    rgba(240, 235, 224, 0.1)  45%,
    rgba(240, 235, 224, 0.8)  82%,
    rgba(240, 235, 224, 1.0)  100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 0;
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: clamp(0.8rem, 2.5vh, 3rem);
}

/* ── THE 3D ZOOM TITLE ── */
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--ink);
  text-transform: uppercase;
  animation: heroZoomIn 2.6s cubic-bezier(0.16, 1, 0.3, 1) 1.8s both;
  text-shadow: 0 2px 40px rgba(42, 34, 24, 0.2), 0 0 80px rgba(240, 235, 224, 0.5);
  display: inline-block;
  position: relative;
}

@keyframes heroZoomIn {
  0% {
    transform: perspective(1200px) scale(4.2) translateZ(0);
    opacity: 0;
    filter: blur(8px);
  }
  30% {
    opacity: 0.75;
    filter: blur(2px);
  }
  100% {
    transform: perspective(1200px) scale(1) translateZ(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* ── GLITCH OVERLAY ── */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.glitch::before {
  color: var(--teal);
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 42%);
  animation: glitch-top 9s infinite 5s;
}
.glitch::after {
  color: var(--ember);
  clip-path: polygon(0 58%, 100% 58%, 100% 100%, 0 100%);
  animation: glitch-bot 9s infinite 5.1s;
}
@keyframes glitch-top {
  0%, 93%, 100% { opacity: 0; transform: none; }
  94%  { opacity: 0.75; transform: translate(-3px, -1px); }
  95%  { opacity: 0.6;  transform: translate(3px, 0); }
  96%  { opacity: 0; }
  97%  { opacity: 0.4;  transform: translate(-2px, 0); }
  98%  { opacity: 0; }
}
@keyframes glitch-bot {
  0%, 93%, 100% { opacity: 0; transform: none; }
  94%  { opacity: 0.5;  transform: translate(3px, 1px); }
  95%  { opacity: 0.75; transform: translate(-3px, 0); }
  96%  { opacity: 0; }
  97%  { opacity: 0.3;  transform: translate(2px, 0); }
  98%  { opacity: 0; }
}

.hero-tagline {
  max-width: 520px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: clamp(1.65, 2.8vw, 2.1);
  color: #f5f0e8;
  font-style: italic;
  opacity: 0;
  animation: fade-in 1.5s ease-out 1.2s forwards;
  padding: 0 1rem;
  text-shadow:
    0 1px 14px rgba(10, 8, 4, 0.88),
    0 2px 36px rgba(10, 8, 4, 0.6);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fade-in 1.5s ease-out 4s forwards;
}
.hero-scroll-hint span {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  color: var(--stone);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--teal-dim), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.85); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ===================================================
   ATMOSPHERE STRIP
   =================================================== */
#atmosphere {
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--teal-dim);
  border-bottom: 1px solid var(--teal-dim);
  padding: 3px 0;
  background: var(--parchment);
}
.atmosphere-strip {
  display: flex;
  height: 300px;
  gap: 0;
}
.atm-img {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.atm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.7);
  transition: filter 1.0s ease, transform 1.2s ease;
  transform: scale(1.06);
  display: block;
}
.atm-img:hover img {
  filter: brightness(0.95) saturate(0.92);
  transform: scale(1.0);
}
@media (max-width: 820px) {
  .atmosphere-strip { height: 200px; }
}
@media (max-width: 540px) {
  .atmosphere-strip { flex-direction: column; height: auto; }
  .atm-img { height: 160px; }
}

/* ===================================================
   INDEX — MANUSCRIPT INTRO
   Between hero and atmosphere strip
   =================================================== */
.index-manuscript {
  background: var(--parchment);
  padding: 4rem 2rem 4.5rem;
}
.index-manuscript-inner {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0 2.5rem;
}
.index-manuscript-pillar {
  grid-row: 1 / 4;
  background: linear-gradient(180deg, var(--teal) 0%, transparent 100%);
  opacity: 0.3;
  border-radius: 2px;
}
.index-manuscript-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  opacity: 0.9;
  margin-bottom: 1.4rem;
}
.index-manuscript-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.38rem);
  color: var(--ink-soft);
  line-height: 2;
}
.index-manuscript-drop {
  float: left;
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 300;
  font-size: 5.5rem;
  line-height: 0.78;
  margin-right: 0.08em;
  margin-top: 0.1em;
  color: var(--teal);
  opacity: 0.65;
}
.index-manuscript-first {
  color: var(--ink);
  font-weight: 500;
}
.index-manuscript-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  clear: both;
}
.index-manuscript-rule-line {
  height: 1px;
  background: var(--parchment-border);
  flex: 1;
}
.index-manuscript-rule-ornament {
  display: flex;
  gap: 4px;
  align-items: center;
}
.index-manuscript-rule-ornament span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.4;
}
.index-manuscript-rule-ornament span.mid {
  width: 4px;
  height: 4px;
  opacity: 0.65;
}
@media (max-width: 600px) {
  .index-manuscript { padding: 3rem 1.5rem 3.5rem; }
  .index-manuscript-drop { font-size: 4rem; }
}

/* ===================================================
   SECTION COMMON
   =================================================== */
section {
  position: relative;
  padding: 8rem 2rem;
}

.section-inner {
  max-width: 820px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: var(--teal-dim);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--teal-dim);
  flex-shrink: 0;
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 2rem;
}

p {
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* ===================================================
   DROP CAP — Buchartiger Initialbuchstabe
   =================================================== */
.dropcap {
  font-size: 1.08rem;
  line-height: 2.15;
  color: var(--ink-soft);
}

.dropcap::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 5.2rem;
  font-weight: 300;
  line-height: 0.72;
  float: left;
  padding-right: 0.12em;
  padding-top: 0.06em;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ===================================================
   WORKS / TRACKS
   =================================================== */
#works { background: var(--parchment); }

.track-card {
  position: relative;
  padding: 2.5rem 2rem 3.5rem;
  background: var(--parchment-mid);
  border: 1px solid var(--parchment-border);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.track-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--teal);
  transition: height 0.4s ease;
}
.track-card:hover {
  border-color: var(--teal-line);
  box-shadow: 0 6px 28px rgba(42, 34, 24, 0.1);
}
.track-card:hover::before { height: 100%; }

.track-number {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--stone);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.track-title {
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.track-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--teal-dim);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.track-prose {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

/* Linked track card */
a.track-card--linked {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.track-card--linked:hover .track-title {
  color: var(--teal);
  transition: color 0.3s;
}

/* YT badge */
.track-yt-badge {
  position: absolute;
  bottom: 1.2rem; right: 1.2rem;
  width: 22px; height: 16px;
  color: var(--stone-light);
  opacity: 0.55;
  transition: color 0.3s, opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.track-yt-badge svg { width: 22px; height: 16px; }
a.track-card--linked:hover .track-yt-badge {
  color: #e63020;
  opacity: 0.9;
}

.track-wave {
  margin-top: 1.5rem;
  height: 20px;
  opacity: 0.4;
}

.carousel-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--stone);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ===================================================
   CAROUSEL
   =================================================== */
.carousel-wrapper {
  position: relative;
  max-width: 820px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.carousel-viewport {
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 2px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-track .track-card {
  flex: 0 0 calc(50% - 1px);
  min-width: calc(50% - 1px);
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--parchment-border);
  background: var(--parchment);
  color: var(--stone);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(74, 138, 133, 0.05);
}
.carousel-arrow:disabled { opacity: 0.22; cursor: default; }
.carousel-prev { left: -58px; }
.carousel-next { right: -58px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--stone-light);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: var(--teal);
  transform: scale(1.5);
}

/* Swipe hint (mobile) */
.swipe-hint {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--stone);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  opacity: 0;
  animation: swipe-hint-appear 4s ease forwards;
  pointer-events: none;
}
.swipe-hint-line { width: 24px; height: 1px; background: var(--stone); opacity: 0.4; }
@keyframes swipe-hint-appear {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ===================================================
   LEGEND
   =================================================== */
#legend { background: var(--parchment); padding: 0; }

.legend-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
}
.legend-body p {
  font-size: 1.08rem;
  line-height: 2.15;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  text-align: justify;
  hyphens: auto;
}
.legend-body p.legend-speech {
  color: var(--ink);
  padding-left: 1.8rem;
  border-left: 2px solid var(--teal-line);
  font-style: italic;
}
.legend-body p.legend-climax {
  color: var(--ink);
  font-size: 1.12rem;
}
.warnstein-symbol {
  font-size: 1.5rem;
  color: var(--teal);
  opacity: 0.55;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  display: block;
}
.legend-perhaps {
  text-align: center;
  font-style: italic;
  color: var(--stone);
  font-size: 1.1rem;
}

.legend-ending {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--stone);
  text-transform: uppercase;
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--parchment-border);
}

/* ===================================================
   PROSE
   =================================================== */
#prosa { background: var(--parchment); }

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
}
.prose-block {
  padding: 2rem 0;
  border-top: 2px solid var(--parchment-border);
}
.prose-block-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--teal-dim);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.prose-en {
  font-size: 1.08rem;
  line-height: 2.05;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ===================================================
   PLAY — SECTION DIVIDER + KOSTI
   =================================================== */
#kosti { background: var(--parchment); }

/* Ornamental divider between mini-hero and game sections */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 40px;
  background: var(--parchment);
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--parchment-border);
}
.section-divider-ornament {
  display: flex;
  align-items: center;
  gap: 5px;
}
.section-divider-ornament span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
}
.section-divider-ornament span.mid {
  width: 5px;
  height: 5px;
  opacity: 0.8;
}

/* ===================================================
   FORGE
   =================================================== */
#forge {
  background: var(--parchment);
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forge-wip {
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.forge-wip-symbol {
  font-size: 2.8rem;
  color: var(--teal-dim);
  opacity: 0.4;
  animation: pulse-slow 4s ease-in-out infinite;
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.5; }
}
.forge-wip-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 2.05;
  max-width: 480px;
}

/* ===================================================
   FOOTER — mc_footer.jpg with dark overlay
   =================================================== */
footer {
  background: var(--parchment);
  padding: 3rem 2rem 3.5rem;
  text-align: center;
}

/* Gerahmtes Footer-Bild */
.footer-image-frame {
  display: block;
  width: 560px;
  max-width: 90%;
  height: 220px;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--teal-dim);
  padding: 3px;
  background: var(--parchment);
}
.footer-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  filter: brightness(0.88) saturate(0.82);
}

.footer-logo {
  width: 62px;
  height: auto;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(74, 138, 133, 0.2));
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--stone);
  text-transform: uppercase;
}
.footer-quote {
  max-width: 380px;
  margin: 2rem auto 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.95;
}
.footer-lang {
  margin-top: 1.8rem;
}
.footer-legal {
  margin-top: 1.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}
.footer-legal a {
  color: #6a5e50;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--teal); }

/* ===================================================
   IMPRESSUM
   =================================================== */
#impressum {
  padding: 5rem 2rem 6rem;
  background: var(--parchment);
}
#impressum .section-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.impressum-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.impressum-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.95;
}
.impressum-text a {
  color: var(--teal);
  text-decoration: none;
}
.impressum-text a:hover { text-decoration: underline; }

/* ===================================================
   MINI-HERO (subpages)
   =================================================== */
.mini-hero {
  position: relative;
  width: 100%;
  margin-top: var(--nav-h);
  height: 55vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mini-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82) saturate(0.85);
  transform: scale(1.06);
  transition: transform 8s ease;
  z-index: 0;
}
.mini-hero:hover .mini-hero-bg {
  transform: scale(1.01);
}

/* Warm tint overlay */
.mini-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 232, 218, 0.18);
  z-index: 1;
  pointer-events: none;
}
/* Bottom fade to parchment */
.mini-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--parchment));
  z-index: 2;
  pointer-events: none;
}

.mini-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding-top: 2.5rem;
}

.mini-hero-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  color: var(--teal-dim);
  text-transform: uppercase;
  animation: fade-in 0.9s ease-out 0.2s both;
  text-shadow: 0 1px 10px rgba(240, 235, 224, 0.9);
}

.mini-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--ink);
  line-height: 1.3;
  text-transform: uppercase;
  animation: miniZoomIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  text-shadow: 0 2px 24px rgba(240, 235, 224, 0.95);
}

@keyframes miniZoomIn {
  0% {
    transform: perspective(900px) scale(2.8) translateZ(0);
    opacity: 0;
    letter-spacing: 0.7em;
    filter: blur(5px);
  }
  100% {
    transform: perspective(900px) scale(1) translateZ(0);
    opacity: 1;
    letter-spacing: 0.28em;
    filter: blur(0);
  }
}

/* ── Per-page mini-hero backgrounds ── */
.mini-hero--works .mini-hero-bg {
  background-image: url('images/mc_works.jpg');
  background-position: center 55%;
}
.mini-hero--legend .mini-hero-bg {
  background-image: url('images/mc_legend.jpg');
  background-position: center 40%;
}
.mini-hero--legend { height: 62vh; min-height: 380px; }

.mini-hero--prose .mini-hero-bg {
  background-image: url('images/mc_prose.jpg');
  background-position: center 40%;
}
.mini-hero--play .mini-hero-bg {
  background-image: url('images/mc_play.jpg');
  background-position: center 50%;
}
.mini-hero--kosti .mini-hero-bg {
  background-image: url('images/mc_play_kosti.jpg');
  background-position: center 50%;
}
.mini-hero--hnefy .mini-hero-bg {
  background-image: url('images/mc_play_hnefy.jpg');
  background-position: center 40%;
}
.mini-hero--mlyn .mini-hero-bg {
  background-image: url('images/mc_play_mlyn.jpg');
  background-position: center 50%;
}
.mini-hero--forge .mini-hero-bg {
  background-image: url('images/mc_forge.jpg');
  background-position: center 50%;
}
.mini-hero--impressum .mini-hero-bg {
  background-image: url('images/mc_banner.jpg');
  background-position: center 0%;
}
.mini-hero--drift .mini-hero-bg {
  background-image: url('images/mc_driftwood.jpg');
  background-position: center 50%;
}

/* Dark mode removed — site is parchment-only. */

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 960px) {
  .carousel-wrapper {
    display: grid;
    grid-template-areas:
      "viewport viewport"
      "dots     dots"
      "prev     next";
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .carousel-viewport { grid-area: viewport; }
  .carousel-dots     { grid-area: dots; justify-self: center; }
  .carousel-prev     { grid-area: prev;  justify-self: end;   position: static; transform: none; margin-right: 1rem; }
  .carousel-next     { grid-area: next;  justify-self: start; position: static; transform: none; margin-left: 1rem; }
}

@media (max-width: 820px) {
  nav { padding: 1.1rem 1.5rem; }
  nav ul { gap: 1.4rem; }
  .prose-grid { grid-template-columns: 1fr; }
  #atmosphere { height: 220px; }
}

@media (max-width: 600px) {
  .carousel-track .track-card { flex: 0 0 100%; min-width: 100%; }
  .carousel-prev, .carousel-next { display: none; }
  .swipe-hint { display: flex; }
  .mini-hero { height: 45vh; }
  .mini-hero--legend { height: 50vh; }
}

@media (max-width: 480px) {
  nav ul { gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
  nav ul a, .lang-toggle { font-size: 0.55rem; }
  section { padding: 5rem 1.2rem; }
  h2 { font-size: 1.65rem; }
  .legend-body { padding: 3rem 1.2rem 5rem; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 4rem); }
}

/* ===================================================
   NHL CANADIAN TEAMS — drift.html
   =================================================== */

#nhl {
  background: var(--parchment-mid);
}

.nhl-header {
  text-align: center;
  margin-bottom: 3rem;
}
.nhl-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.nhl-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.nhl-phase {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ember);
  letter-spacing: 0.04em;
}

/* ── Today's games ── */
.nhl-section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
  margin-bottom: 1.2rem;
}
.nhl-games {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.nhl-game-card {
  background: var(--parchment);
  border: 1px solid var(--parchment-border);
  border-radius: 4px;
  padding: 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 180px;
  transition: border-color 0.3s;
}
.nhl-game-card--live {
  border-color: var(--teal);
}
.nhl-game-team {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.nhl-game-score {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.1em;
}
.nhl-game-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
}
.nhl-game-state {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--stone);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nhl-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: nhl-pulse 1.4s ease-in-out infinite;
}
@keyframes nhl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Standings table ── */
.nhl-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nhl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
}
.nhl-table thead tr {
  border-bottom: 1px solid var(--teal-dim);
}
.nhl-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0.6rem 0.8rem;
  text-align: center;
  white-space: nowrap;
  font-weight: 300;
}
.nhl-th-team { text-align: left; }
.nhl-table td {
  padding: 0.75rem 0.8rem;
  text-align: center;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--parchment-border);
  vertical-align: middle;
}
.nhl-table tbody tr:last-child td { border-bottom: none; }
.nhl-table tbody tr:hover { background: var(--parchment-deep); }

.nhl-td-rank {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--stone);
  width: 2rem;
}
.nhl-td-team {
  text-align: left;
  white-space: nowrap;
}
.nhl-fullname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink);
  margin-right: 0.5rem;
}
.nhl-abbrev {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  font-weight: 300;
  color: var(--stone);
  letter-spacing: 0.08em;
  margin-right: 0.3rem;
}
.nhl-clinch {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  color: var(--teal);
  margin-left: 0.4rem;
  vertical-align: super;
}
.nhl-td-div { white-space: nowrap; }
.nhl-div-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.nhl-div--atlantic { color: var(--teal); }
.nhl-div--central  { color: var(--ember); }
.nhl-div--pacific  { color: var(--stone); }

.nhl-td-w   { color: var(--teal-dim); font-weight: 400; }
.nhl-td-pts {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
}
.nhl-td-divrank {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.nhl-td-streak { width: 3.5rem; }
.nhl-streak {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}
.nhl-streak--win  { color: var(--teal);  background: rgba(74,138,133,0.1); }
.nhl-streak--loss { color: var(--ember); background: rgba(192,122,53,0.1); }
.nhl-streak--ot   { color: var(--stone); background: rgba(138,122,101,0.1); }

.nhl-loading {
  text-align: center;
  font-style: italic;
  color: var(--stone);
  padding: 2rem;
}
.nhl-error { color: var(--ember); }

.nhl-updated {
  text-align: right;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--stone-light);
  margin-top: 0.8rem;
}
.nhl-games-wrap { margin-bottom: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nhl-abbrev { display: none; }
  .nhl-table th, .nhl-table td { padding: 0.6rem 0.5rem; font-size: 0.9rem; }
  .nhl-table th { font-size: 0.5rem; }
}

/* ===================================================
   ACCESSIBILITY
   =================================================== */

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Focus Indicators ── */
nav ul a:focus-visible,
.mobile-nav-panel a:focus-visible,
.carousel-arrow:focus-visible,
.lang-toggle:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Touch targets ── */
nav ul a, .carousel-arrow, .lang-toggle,
.track-card, button {
  touch-action: manipulation;
}

/* ── Active feedback ── */
.carousel-arrow:active { transform: scale(0.94); }
.lang-toggle:active    { opacity: 0.75; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #canvas-overlay { display: none; }
}

/* ══════════════════════════════════════════════════════
   PLAY — HERO PANELS
══════════════════════════════════════════════════════ */

.play-hero {
  max-width: 100%;
  border-top: 1px solid var(--teal-dim);
  border-bottom: 1px solid var(--teal-dim);
  padding: 3px 0;
}

.play-hero .section-divider {
  border-top: 1px solid var(--teal-dim);
  border-bottom: 1px solid var(--teal-dim);
  margin: 3px 0;
}

.play-panel {
  display: flex;
  height: 340px;
  align-items: stretch;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.play-panel:hover {
  filter: brightness(1.06);
}
.play-panel:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.play-panel--kosti { background: #1e1610; }
.play-panel--hnefy { background: #121818; }
.play-panel--mlyn  { background: #100e18; }

/* Bild-Seite (links) */
.play-panel-img {
  position: relative;
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.play-panel--kosti .play-panel-img {
  background-image: url('images/mc_play_kosti.jpg');
}
.play-panel--hnefy .play-panel-img {
  background-image: url('images/mc_play_hnefy.jpg');
}
.play-panel--mlyn .play-panel-img {
  background-image: url('images/mc_play_mlyn.jpg');
}
/* Gradient-Overlay: unten für CTA-Lesbarkeit, rechts für Übergang */
.play-panel-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to top,    rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
  z-index: 1;
}
/* Inhalt auf dem Bild */
.play-panel-img-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 18px 20px;
}
.play-panel-num {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 300;
  color: rgba(74,138,133,0.13);
  line-height: 1;
}
.play-panel-title {
  position: absolute;
  bottom: 42px;
  left: 20px;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #f0ebe0;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}
.play-panel-cta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: var(--teal);
  letter-spacing: 0.22em;
}

/* Vertikale Teal-Trennlinie */
.play-panel-divider-v {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 5%,
    var(--teal) 30%,
    var(--teal) 70%,
    transparent 95%
  );
  flex-shrink: 0;
}

/* Text-Seite (rechts) */
.play-panel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}
.play-panel-genre {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: #9dd4d0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.play-panel-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(240,235,224,0.75);
  line-height: 1.7;
  max-width: 460px;
}

/* Horizontale Gradient-Trennlinie zwischen Panels */
.play-panel-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal) 20%, var(--teal) 80%, transparent);
}

/* Mobil: Bild oben, Text darunter */
@media (max-width: 768px) {
  .play-panel {
    flex-direction: column;
    height: auto;
  }
  .play-panel-img {
    width: 100%;
    height: 260px;
  }
  .play-panel-img::before {
    background:
      linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
  }
  .play-panel-divider-v {
    display: none;
  }
  .play-panel-text {
    padding: 24px 24px 32px;
  }
  .play-panel-desc {
    font-size: 0.95rem;
  }
}
