/*
  Paradise Website, Gestaltung.

  Farben und Schrift kommen aus dem Spiel (Paradise src/style.css), damit Seite
  und Spiel wie aus einem Guss wirken. Grundregel des Layouts: Inhalt liegt
  IMMER links, die rechte Bildhälfte ist Artwork und bleibt frei.
*/

:root {
  --gold: #ffd166;
  --gold-soft: rgba(255, 209, 102, 0.18);
  --ink-0: #1a1a1e;
  --ink-1: #1d232b;
  --ink-2: #262d38;
  --ink-3: #3a4353;
  --text: #e8e6e1;
  --muted: #9aa3b2;
  --parchment: #e8dcc2;
  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --topbar-h: 76px;
  /* Breite des linken Bildbereichs, in dem der Inhalt liegt. Rechts davon ist Artwork. */
  --content-zone: 44vw;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink-0);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ Bühne */

/*
  Das Standbild im CSS ist zugleich der Rückfall: Ohne WebGL oder bei
  "Bewegung reduzieren" bleibt genau dieses Bild stehen. Der Bildausschnitt
  (72 % / 50 %) entspricht dem Fokuspunkt der Effekt-Szene, damit beim
  Einblenden der Effekte nichts springt.
*/
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink-0) url('../img/day.webp?v=20261008-1401') 72% 50% / cover no-repeat;
}

.stage__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
}

.stage__layer--screen {
  mix-blend-mode: screen;
}

.stage.is-live .stage__layer {
  opacity: 1;
}

@media (width < 700px) {
  .stage {
    background-image: url('../img/day-small.webp?v=20261008-1401');
  }
}

/* ------------------------------------------------------------ Kopfbereich */

/*
  Der Kopfbereich läuft über die volle Breite: Logo links, Navigation mittig,
  Login-Bereich rechts. Er liegt auf einem weichen Verlauf, damit er lesbar
  bleibt, ohne als Balken das Bild abzuschneiden.
*/
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 2.6vw, 44px);
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.82) 0%, rgba(14, 14, 18, 0.45) 65%, rgba(14, 14, 18, 0) 100%);
}

/*
  Das Logo ist der Spieltitel aus dem Hauptmenü des Spiels: Palatino in
  Kapitälchen, pergamentfarben, weit gesperrt, darunter das Motto in Gold
  (Paradise src/style.css, .menue-titel und .menue-motto).
*/
.brand {
  display: flex;
  flex-direction: column;
  justify-self: start;
  line-height: 1;
  text-decoration: none;
}

.brand__name {
  color: var(--parchment);
  font-size: 2.3rem;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.brand__sub {
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px clamp(14px, 1.6vw, 28px);
  justify-content: center;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold);
}

.nav a[aria-current='page'] {
  color: var(--gold);
}

.nav a[aria-current='page']::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: '';
}

.topbar__account {
  display: flex;
  gap: 10px;
  justify-self: end;
}

.btn--small {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
}

/* ------------------------------------------------------------- Hauptbereich */

/*
  Kompakte Box, mittig im linken Bildbereich (links von --content-zone).
  Rechts davon ist Artwork. Ist der Inhalt länger, rollt die Box in sich.
*/
.panel {
  position: fixed;
  top: calc(var(--topbar-h) + 16px);
  bottom: 48px;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--content-zone);
  padding: 0 clamp(16px, 2vw, 32px);
  pointer-events: none;
}

.panel__body {
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  padding: 28px 30px;
  overflow-y: auto;
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: var(--radius);
  /* 50 % Deckkraft (Renés Vorgabe 08.10.2026), das Bild soll durchscheinen. */
  background: rgba(26, 28, 34, 0.5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px) saturate(1.1);
  overscroll-behavior: contain;
  scrollbar-color: var(--ink-3) transparent;
  scrollbar-width: thin;
  pointer-events: auto;
}

.panel__body:focus {
  outline: none;
}

.site-foot {
  position: fixed;
  bottom: 14px;
  left: clamp(16px, 2.6vw, 44px);
  z-index: 10;
  color: rgba(232, 230, 225, 0.75);
  font-size: 0.78rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}


/* ----------------------------------------------------------------- Bereiche */

.view {
  animation: view-in 0.45s var(--ease);
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Überschriften im Stil des Spieltitels: Palatino in Kapitälchen, gesperrt. */
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.hero-title {
  margin-bottom: 6px;
  color: var(--parchment);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-motto {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

h2 {
  color: var(--parchment);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

h3 {
  margin-top: 28px;
  color: var(--parchment);
  font-size: 1.2rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 1.12rem;
}

.muted {
  color: var(--muted);
}

/* Platzhalter sind als solche erkennbar, bis die echten Texte kommen. */
.placeholder {
  padding-left: 14px;
  border-left: 2px dashed rgba(255, 209, 102, 0.35);
  color: var(--muted);
  font-style: italic;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, #ffe08f, var(--gold) 55%, #e8b84a);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.28);
  color: #2a2110;
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(255, 209, 102, 0.4);
}

.btn--ghost {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.06);
  color: var(--gold);
}

.btn--ghost:hover {
  background: rgba(255, 209, 102, 0.12);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(38, 45, 56, 0.5);
}

.facts strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.card-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(38, 45, 56, 0.55);
}

.card h4 {
  margin-bottom: 6px;
  color: var(--parchment);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card--placeholder {
  border-style: dashed;
  border-color: rgba(255, 209, 102, 0.2);
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li {
  margin-bottom: 6px;
}

.news {
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(38, 45, 56, 0.5);
}

.news time {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news h3 {
  margin-top: 4px;
}

.faq {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(38, 45, 56, 0.5);
}

.faq summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq[open] summary {
  color: var(--gold);
}

.faq > :not(summary) {
  margin: 0 18px 14px;
}

.faq ol {
  padding-left: 20px;
}

/* --------------------------------------------------------------- Spielmodus */

/*
  Läuft das Spiel, verschwinden Bühne und Inhaltsbereich komplett. Die Bühne
  wird dazu in main.js zusätzlich angehalten, display:none allein würde das
  Rechnen nicht stoppen.
*/
.game {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--ink-0);
}

.game[hidden] {
  display: none;
}

body.is-playing .stage,
body.is-playing .panel,
body.is-playing .topbar,
body.is-playing .site-foot {
  display: none;
}

.game__bar {
  display: flex;
  flex: none;
  gap: 16px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ink-1);
}

.game__back {
  font-size: 0.9rem;
  text-decoration: none;
}

.game__back::before {
  content: '‹ ';
}

.game__title {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.game__mount {
  position: relative;
  flex: 1;
  min-height: 0;
}

.game__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.game__placeholder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.game__placeholder img {
  margin-bottom: 12px;
  border-radius: 20px;
}

.game__placeholder p {
  color: var(--muted);
}

/* ---------------------------------------------------- Mittlere Bildschirme */

@media (width < 1180px) {
  .nav a {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .topbar__account .btn--ghost {
    display: none;
  }
}

/* ------------------------------------------------------------ Kleine Geräte */

@media (width < 900px) {
  :root {
    --content-zone: 100vw;
  }

  body {
    font-size: 16px;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    background: linear-gradient(180deg, rgba(14, 14, 18, 0.9), rgba(14, 14, 18, 0.55));
  }

  .menu-toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-radius: 10px;
    background: rgba(14, 14, 18, 0.4);
    cursor: pointer;
  }

  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    position: absolute;
    left: 10px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    content: '';
  }

  .menu-toggle__bar {
    top: 18px;
  }

  .menu-toggle__bar::before {
    top: -6px;
    left: 0;
  }

  .menu-toggle__bar::after {
    top: 6px;
    left: 0;
  }

  .nav {
    position: absolute;
    top: var(--topbar-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(14, 14, 18, 0.94);
    backdrop-filter: blur(10px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 11px 0;
    font-size: 0.9rem;
  }

  .panel {
    top: calc(var(--topbar-h) + 10px);
    bottom: 40px;
    align-items: flex-start;
  }

  .panel__body {
    max-width: none;
    padding: 22px 20px;
    background: rgba(26, 28, 34, 0.5);
  }

  .site-foot {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

@media (width < 480px) {
  .brand__sub {
    display: none;
  }

  .topbar__account .btn--primary {
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
