/* DIE KARTE – Projektseite. Design-Variablen kommen aus ../../assets/css/shared.css */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
img, video, picture { max-width: 100%; display: block; }
.char-pics picture { height: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hintergrundvideo (wie Hero der Hauptseite) ---------- */
.bg-media { position: fixed; inset: 0; z-index: 0; background: #000 url("assets/video/poster.jpg") center / cover no-repeat; }
.bg-media video { width: 100%; height: 100%; object-fit: cover; filter: var(--video-filter); }
.bg-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    var(--video-veil),
    linear-gradient(90deg, rgba(8,8,10,0.42) 0%, rgba(8,8,10,0.28) 60%, rgba(8,8,10,0.12) 100%);
  transition: background 0.6s var(--ease);
}

/* ---------- Navigation (wie Hauptseite) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line-soft); padding: 0.75rem 1.5rem;
}
.nav-logo {
  font-family: var(--font-ui); font-weight: 300; font-size: 1.02rem; letter-spacing: 0.42em;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.nav-back {
  padding: 0.55rem 1.3rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-back:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); text-shadow: none; }

/* ---------- Kategorie-Tabs (identisch zu den Tabs der Hauptseite) ---------- */
.cat-rail {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 10px;
}
.cat-tab {
  position: relative;
  min-width: 172px; white-space: nowrap;
  display: flex; align-items: center;
  padding: 15px 22px; cursor: pointer; text-decoration: none;
  border-radius: 999px 0 0 999px;
  background: var(--c); color: #fff;
  font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.06em; line-height: 1;
  text-shadow: none;
  box-shadow: -7px 7px 20px rgba(0,0,0,0.38);
  transform: translateX(0);
  transition: transform 0.3s var(--ease), filter 0.25s var(--ease);
}
/* füllt beim Herausziehen den Spalt bis zum rechten Rand mit der Kategoriefarbe */
.cat-tab::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 30px; background: var(--c); }
.cat-tab:hover { transform: translateX(-12px); filter: brightness(1.1); }
.cat-tab.is-active { transform: translateX(-12px); filter: brightness(1.12); }
.cat-tab.is-active::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #fff;
}

/* ---------- Seite ---------- */
.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 1140px; margin: 0 auto;
  padding: 0 calc(1.5rem + 190px) 3rem 1.5rem;   /* rechts Platz für die Tabs */
  min-height: 100svh; display: flex; flex-direction: column;
}

.kicker {
  display: inline-block; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}

/* Intro: Titelbereich am Seitenanfang */
.intro { padding-top: 30svh; padding-bottom: 4rem; }
.intro-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: 0.92; letter-spacing: 0.02em;
  text-shadow: var(--shadow-title);
}
.intro-sub { margin-top: 1.2rem; font-size: clamp(0.98rem, 1.2vw, 1.12rem); max-width: 54ch; text-shadow: var(--shadow-text); }
.intro-status {
  margin-top: 0.6rem; font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-dim); text-shadow: var(--shadow-text);
}
/* One-Page: alle Bereiche untereinander, jeder blendet beim Hineinscrollen ein */
.panels { flex: 1; }
.panel { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.panel.is-visible { opacity: 1; transform: none; }
.panel + .panel { margin-top: clamp(5rem, 11vw, 8.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-soft); }

.panel h2 {
  font-family: var(--font-display); font-weight: 400; font-size: var(--h-size);
  line-height: 1.04; letter-spacing: 0.015em; margin: 0 0 1.1rem;
  text-shadow: var(--shadow-title);
}
.panel h2:not(:first-child) { margin-top: 3rem; }
.panel p { max-width: var(--measure); color: var(--text); text-shadow: var(--shadow-text); }
.panel p + p { margin-top: 1.1em; }
.lead { color: var(--text) !important; }

/* Buttons wie auf der Hauptseite */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 2rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; text-shadow: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); background: #9cc4f4; border-color: #9cc4f4; }
.btn svg { width: 14px; height: 14px; }

.intro-dates { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.intro-date {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 1rem 0.6rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px;
  background: rgba(12, 13, 16, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.intro-date dt { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.intro-date dd { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 0.05em; line-height: 1; }
.intro-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1rem; }
.pf-label { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); text-shadow: var(--shadow-text); }
.platforms { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pf {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.85rem 0.42rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none;
  background: rgba(12, 13, 16, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; text-shadow: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pf-icon {
  width: 18px; height: 18px; flex: none; background: var(--pf, currentColor);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
a.pf:hover { border-color: var(--pf); background: rgba(12, 13, 16, 0.8); }
.intro-actions { margin-top: 1.6rem; }

/* ---------- Konzept: Bildreihe auf einer Linie ---------- */
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 16px; margin: 2.6rem 0 2.4rem; }
.shot-row figure { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.shot-row figure:nth-child(2) { transition-delay: 0.12s; }
.shot-row figure:nth-child(3) { transition-delay: 0.24s; }
.shot-row figure.in { opacity: 1; transform: none; }
.shot-row img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Charaktere ---------- */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.char-card {
  text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: rgba(12, 13, 16, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.char-card:hover { transform: translateY(-4px); border-color: rgba(239, 143, 43, 0.6); }
.char-pics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; aspect-ratio: 1 / 1; background: #111; }
.char-pics img { width: 100%; height: 100%; object-fit: cover; }
.char-body { padding: 0.9rem 1rem 1.1rem; }
.char-name { display: block; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.04em; line-height: 1.1; }
.char-kurz { display: block; margin-top: 0.3rem; font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }

.more-figures { margin-top: 2.6rem; }
.more-figures h3 { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.more-row { display: flex; flex-wrap: wrap; gap: 1.1rem 1.2rem; }
.more-fig {
  width: 84px; padding: 0; border: none; background: none; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.more-fig img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 0.45rem;
  border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.more-fig:hover img, .more-fig:focus-visible img { transform: translateY(-3px); border-color: var(--c-orange); }
.more-name { font-size: 0.78rem; color: var(--text-dim); line-height: 1.3; transition: color 0.3s var(--ease); }
.more-fig:hover .more-name { color: var(--text); }

/* ---------- Orte: Raster wie die Figuren ---------- */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.place-card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: rgba(12, 13, 16, 0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.place-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.place-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.place-name { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.04em; line-height: 1.1; }
.place-text { font-size: 0.88rem; color: var(--text-dim) !important; line-height: 1.5; flex: 1; }
.partner-slot {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  margin-top: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px dashed rgba(127, 177, 239, 0.55); color: var(--accent);
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.place-card .partner-slot { font-size: 0.64rem; letter-spacing: 0.1em; padding: 0.45rem 0.8rem; border-radius: 14px; text-align: center; }
.partner-slot:hover { background: var(--accent); color: var(--accent-ink); text-shadow: none; }
.partner-logo { max-height: 40px; width: auto; margin-top: 0.4rem; }

/* ---------- Sponsoring ---------- */
.compare {
  position: relative; margin: 2.4rem 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 3 / 2; box-shadow: 0 20px 50px rgba(0,0,0,0.45); user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-line::after {
  content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center;
  font-size: 1.1rem; text-shadow: none; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.compare-label {
  position: absolute; top: 12px; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(10,10,11,0.7);
  font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; pointer-events: none;
}
.compare-label--l { left: 12px; } .compare-label--r { right: 12px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.form-wrap {
  margin-top: 1rem; padding: 1.6rem; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(12, 13, 16, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  max-width: 760px;
}
.form-wrap h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: 0.03em; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font: inherit; font-size: 0.92rem; text-shadow: none;
  transition: border-color 0.25s var(--ease);
}
.field select option { background: #15161a; color: var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-privacy { font-size: 0.8rem; color: var(--text-dim) !important; margin-top: 0.9rem; }
.form-actions { margin-top: 1.1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: 0.9rem; }
.form-status.is-ok { color: #9be7b0; }
.form-status.is-info { color: var(--accent); }
.form-status.is-err { color: #ff9b9b; }
.form-note { margin-top: 1.1rem; font-size: 0.78rem; color: var(--text-mute) !important; max-width: 760px; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(6, 7, 9, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--fade) var(--ease);
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.overlay-inner { position: relative; width: 100%; max-height: 92svh; }
.overlay-inner--video { max-width: 1100px; }
.overlay-inner--video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.overlay-inner--char {
  max-width: 1200px; overflow-y: auto; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(14, 15, 18, 0.96); display: grid; grid-template-columns: 1fr; gap: 0;
}
.char-sheets img { width: 100%; height: auto; }
.char-sheets img + img { border-top: 1px solid var(--line); }
.char-text { padding: 1.4rem 1.6rem 1.8rem; }
.char-text h2 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; letter-spacing: 0.03em; line-height: 1; margin-bottom: 0.6rem; }
.char-text p { max-width: 70ch; }
.overlay-close {
  position: absolute; top: -16px; right: -16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; background: #fff; color: #111; font-size: 1.5rem; line-height: 1; text-shadow: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.overlay-inner--char .overlay-close { position: sticky; justify-self: end; top: 10px; right: auto; margin: 10px 10px -52px 0; }

/* ---------- Fußzeile ---------- */
.page-footer { margin-top: 4rem; display: flex; gap: 0.6rem; font-size: 0.8rem; color: var(--text-mute); }
.page-footer a { text-decoration: none; color: var(--text-dim); }
.page-footer a:hover { color: var(--accent); }
.noscript { padding: 2rem 0; }

/* ---------- Smartphone ---------- */
@media (max-width: 759.98px) {
  .bg-media::after {
    background:
      var(--video-veil),
      linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.62) 100%);
  }
  .nav-back { padding: 0.45rem 0.9rem; font-size: 0.68rem; letter-spacing: 0.1em; }
  .page { padding: 0 1.1rem calc(88px + env(safe-area-inset-bottom, 0px)) 1.1rem; }
  .intro { padding-top: 22svh; }
  .intro-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .intro-date { padding: 0.5rem 0.75rem 0.55rem; }
  .intro-date dt { font-size: 0.6rem; letter-spacing: 0.1em; }
  .intro-date dd { font-size: 1.35rem; }
  .intro-platforms { display: block; }
  .pf-label { display: block; margin-bottom: 0.5rem; }
  .platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .pf { width: 100%; }

  /* Kategorie-Tabs als fixe Leiste am unteren Rand: vier gleich breite Buttons */
  .cat-rail {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(10,10,11,0.9);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  }
  .cat-tab {
    min-width: 0; justify-content: center; border-radius: 0; padding: 0 4px; height: 58px;
    font-size: clamp(0.82rem, 3.6vw, 1rem); letter-spacing: 0.04em; box-shadow: none;
    border-top: 3px solid transparent;
  }
  .cat-tab::after { display: none; }
  .cat-tab:hover { transform: none; }
  .cat-tab.is-active { transform: none; border-top-color: #fff; filter: brightness(1.12); }
  .cat-tab.is-active::before { display: none; }

  .shot-row { grid-template-columns: 1fr; gap: 12px; }

  /* Charaktere zweispaltig, Orte untereinander – nichts läuft seitlich */
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .char-body { padding: 0.7rem 0.75rem 0.85rem; }
  .char-name { font-size: 1.15rem; }
  .char-kurz { font-size: 0.8rem; }
  .place-grid { grid-template-columns: 1fr; gap: 12px; }
  .more-row { gap: 1rem 0.6rem; }
  .more-fig { width: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .overlay { padding: 2vh 3vw; }
  .overlay-close { top: -10px; right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .shot-row figure { opacity: 1; transform: none; }
}
