/* Trauma Kingdom — shared stylesheet
   Farben:  Hintergrund #0c0b0a | Rosa #d98fb0 | Türkis #7fd9d9 | Grau #a8a8a8 | Text #ece5da  */

@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=IM+Fell+English:ital@0;1&family=EB+Garamond:ital@0;1&family=VT323&display=swap');

:root {
  --bg: #0c0b0a;
  --panel: #14100f;
  --pink: #d98fb0;
  --teal: #7fd9d9;
  --gray: #a8a8a8;
  --text: #ece5da;
  --cell: 34px;   /* Labyrinth-Kachelgroesse (Mobil: shared/mobile.css) */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  /* Gauntlet-Cursor: gauntlet_cursor.png muss im selben Ordner liegen (max. 32x32 px) */
  cursor: url("assets/gauntlet_cursor.png") 10 1, auto;
}

a, button, .nav-link, .button, .link-box { cursor: inherit; }

a { color: var(--pink); text-decoration: underline; }
a:hover { color: var(--teal); }

::-webkit-scrollbar { width: 16px; background: #111; }
::-webkit-scrollbar-thumb { background: #7a4a63; border: 2px solid #000; }

@keyframes blink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- Rahmen-Layout ---------- */
.layout {
  display: grid;
  grid-template-rows: 108px 1fr 40px;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  background: var(--panel);
  border-bottom: 6px ridge var(--pink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.site-logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 16px; }

.site-title {
  font-family: 'Pirata One', cursive;
  font-size: 46px;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(217, 143, 176, 0.5);
}
.site-tagline { font-family: 'IM Fell English', serif; font-size: 21px; font-style: italic; color: var(--teal); }
.badge {
  background: #000;
  border: 3px outset #888;
  padding: 6px 10px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--teal);
  animation: blink 1.2s infinite steps(1);
}

/* ---------- Mittlerer Bereich ---------- */
.middle { display: grid; grid-template-columns: 210px 1fr; overflow: hidden; }

.sidebar {
  background: var(--panel);
  border-right: 6px ridge var(--pink);
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar h2 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  font-weight: normal;
  color: var(--pink);
  text-align: center;
  border-bottom: 2px dashed var(--teal);
}
.nav-link {
  display: block;
  background: #1c1715;
  border: 2px outset var(--teal);
  color: var(--text);
  text-align: center;
  padding: 6px 4px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  text-decoration: none;
}
.nav-link:hover { color: var(--teal); }
.nav-link.active {
  background: #2a1f24;
  border: 2px inset var(--pink);
  color: var(--pink);
}

.sidebar-extras {
  margin-top: 12px;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.counter {
  background: #000;
  border: 3px inset #888;
  color: var(--teal);
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 4px;
  padding: 4px 10px;
}
.counter-label { font-family: 'VT323', monospace; font-size: 13px; color: var(--gray); }
.note {
  border: 2px solid var(--pink);
  padding: 4px 6px;
  font-family: 'VT323', monospace;
  font-size: 12px;
  text-align: center;
}

/* ---------- Inhalt ---------- */
.content {
  overflow-y: auto;
  padding: 24px 30px 60px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.panel { background: var(--panel); padding: 16px 20px; border: 4px double var(--teal); }
.panel h2 {
  margin: 0;
  font-family: 'Pirata One', cursive;
  font-size: 32px;
  font-weight: normal;
  color: var(--pink);
  text-shadow: 2px 2px 0 #000;
}
.panel p { font-size: 22px; line-height: 1.5; }

.news-item { border-top: 1px dashed var(--teal); margin-top: 12px; padding-top: 10px; }
.news-date { font-family: 'VT323', monospace; font-size: 18px; color: var(--teal); }
.news-body { font-size: 22px; line-height: 1.5; }

.player-box {
  margin-top: 14px;
  background: #000;
  border: 3px inset var(--pink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.embed-placeholder {
  background: #111;
  border: 1px dashed var(--teal);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #666;
}
.button {
  align-self: flex-start;
  background: var(--pink);
  color: #000;
  border: 2px outset var(--text);
  padding: 6px 14px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  text-decoration: none;
}
.button:hover { color: #000; background: var(--teal); }

.link-row { display: flex; gap: 10px; margin-top: 10px; }
.link-row .link-box { flex: 1 1 0; justify-content: center; }
.link-box {
  border: 2px solid var(--text);
  color: var(--pink);
  padding: 4px 10px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.link-box:hover { background: #ece5da; color: #000; border-color: #ece5da; }
.link-box svg { flex-shrink: 0; }

.mono-box {
  margin-top: 10px;
  background: #000;
  border: 2px inset var(--pink);
  padding: 12px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--teal);
}

.guestbook-form {
  margin-top: 12px;
  background: #000;
  border: 3px inset var(--pink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guestbook-form label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--teal);
  letter-spacing: 1px;
  margin-bottom: -4px;
}
.guestbook-form input, .guestbook-form textarea {
  background: #14100f;
  border: 2px inset var(--teal);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 19px;
  padding: 8px 10px;
  resize: vertical;
}
.guestbook-form input::placeholder, .guestbook-form textarea::placeholder { color: #6a6a6a; font-style: italic; }
.guestbook-form input:focus, .guestbook-form textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.guestbook-form .button { align-self: flex-start; }
.guestbook-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.guest-entry {
  border: 1px solid var(--teal);
  background: #000;
  padding: 8px 10px;
  font-size: 18px;
}
.guest-name { color: var(--pink); }
.guest-when { font-family: 'VT323', monospace; font-size: 14px; color: var(--gray); }

/* ---------- Gaestebuch (SmartGB per iframe, siehe site-data.js) ---------- */
.guestbook-embed {
  margin-top: 12px;
  border: 3px inset var(--teal);
  background: #fff;
  height: 480px;
  overflow: hidden;
}
.guestbook-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Lore-Kasten auf der Startseite ---------- */
.lore-panel { text-align: center; }
.lore-text {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--teal);
  margin: 0;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  background: #000;
  border-top: 4px ridge var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--gray);
}

/* ---------- Labyrinth ---------- */
.maze-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.maze-frame { border: 5px ridge var(--teal); background: #000; padding: 10px; flex-shrink: 0; }
.maze-board { display: grid; gap: 0; outline: none; }
.maze-cell {
  width: var(--cell); height: var(--cell);
  display: flex; align-items: center; justify-content: center;
  font-family: 'VT323', monospace; font-size: 22px;
  background: #000; border: 1px solid #120f14; color: #3b3348;
}
.maze-cell.wall { background: #1a1622; border: 2px outset #35283a; }
.maze-cell.seen { background: #0e0b12; }
.maze-cell.relic { background: #101c1c; border: 2px solid var(--teal); color: var(--teal); }
.maze-cell.here { background: #2a1f24; border: 2px solid var(--pink); color: var(--pink); box-shadow: 0 0 14px rgba(217,143,176,0.7); }
.maze-side { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.maze-kind { font-family: 'VT323', monospace; font-size: 16px; color: var(--gray); letter-spacing: 2px; }
.maze-find-title { font-family: 'Pirata One', cursive; font-size: 30px; color: var(--teal); text-shadow: 2px 2px 0 #000; margin-bottom: 10px; }
.maze-find-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.maze-cover { width: 210px; height: 210px; border: 3px inset var(--pink); background: #000; object-fit: cover; display: block; flex-shrink: 0; }
.maze-find-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 200px; font-size: 21px; line-height: 1.4; }
.maze-voucher { background: #000; border: 3px inset var(--teal); padding: 14px; text-align: center; }
.maze-voucher-label { font-family: 'VT323', monospace; font-size: 15px; color: var(--gray); letter-spacing: 2px; }
.maze-cell.lurker { color: #c85a5a; text-shadow: 0 0 8px rgba(200, 90, 90, 0.8); }
.maze-chase-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--gray);
  cursor: inherit;
  min-height: 34px;
}
.maze-chase-toggle input { width: 18px; height: 18px; accent-color: #c85a5a; cursor: inherit; }
.maze-voucher-code { font-family: 'VT323', monospace; font-size: 40px; color: var(--teal); letter-spacing: 6px; text-shadow: 0 0 14px rgba(127,217,217,0.5); }
.maze-hint { border: 2px dashed var(--teal); background: var(--panel); padding: 14px; color: var(--gray); font-family: 'VT323', monospace; font-size: 20px; line-height: 1.5; }
.maze-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.maze-btn {
  background: #1c1715; border: 2px outset var(--teal); color: var(--text);
  padding: 6px 14px; font-family: 'VT323', monospace; font-size: 18px; text-decoration: none;
}
.maze-btn:hover { background: #ece5da; color: #000; border-color: #ece5da; }
.maze-pad { display: grid; grid-template-columns: repeat(3, 44px); grid-auto-rows: 44px; gap: 4px; }
.maze-pad .maze-btn { display: flex; align-items: center; justify-content: center; padding: 0; }

.maze-cell.near { color: #4d6b6b; background: #0f1414; }
.maze-cover.missing {
  border: 3px dashed var(--teal);
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E");
  position: relative;
}
.maze-cover.missing::after {
  content: 'cover art missing';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'VT323', monospace; font-size: 16px; color: #666;
}

/* ---------- Hintergrundmusik ---------- */
.bgm-box {
  margin-top: 10px;
  width: 100%;
  border: 2px solid var(--teal);
  background: #000;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.bgm-title { font-family: 'VT323', monospace; font-size: 14px; color: var(--gray); text-align: center; letter-spacing: 1px; }
.bgm-player { display: block; border: 0; width: 100%; height: 42px; background: #000; }
.bgm-note { font-family: 'VT323', monospace; font-size: 11px; color: #6a6a6a; text-align: center; }

/* ---------- Steinwand-Hintergrund (gemauerte Pixel-Kachel) ----------
   Kachel: assets/stone-tile.png (224x224, nahtlos). Willst du die Wand
   heller oder dunkler, aendere die Deckkraft der beiden Verlaeufe. */
body {
  background-color: #14131a;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.15) 260px),
    radial-gradient(120% 90% at 50% 0%, rgba(217,143,176,0.08), transparent 62%),
    radial-gradient(150% 130% at 50% 100%, rgba(0,0,0,0.82), transparent 62%),
    url("assets/stone-tile.png");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

/* ---------- Illuminierte Ecken an den Panels ---------- */
.panel { position: relative; }
.panel::before {
  content: '';
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #e7bcd0 0 22%, #a8688a 40%, rgba(0,0,0,0.9) 70%, transparent 72%),
    radial-gradient(circle, #e7bcd0 0 22%, #a8688a 40%, rgba(0,0,0,0.9) 70%, transparent 72%),
    radial-gradient(circle, #e7bcd0 0 22%, #a8688a 40%, rgba(0,0,0,0.9) 70%, transparent 72%),
    radial-gradient(circle, #e7bcd0 0 22%, #a8688a 40%, rgba(0,0,0,0.9) 70%, transparent 72%);
  background-size: 9px 9px;
  background-repeat: no-repeat;
  background-position: left top, right top, left bottom, right bottom;
  opacity: 0.85;
}
.panel > .button { margin-top: 14px; display: inline-flex; align-items: center; }

/* ---------- Wappen als Trenner zwischen News-Eintraegen ---------- */
.news-item { position: relative; }
.news-item::before {
  content: '\2720';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  padding: 0 9px;
  color: var(--teal);
  font-size: 15px;
  line-height: 22px;
}

/* ---------- Fackel-Licht am Mauszeiger ---------- */
.torch {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  will-change: transform;
  background: radial-gradient(circle,
    rgba(255, 196, 126, 0.13) 0%,
    rgba(255, 150, 80, 0.06) 38%,
    rgba(255, 120, 60, 0.02) 58%,
    transparent 72%);
}

/* ---------- Diskografie-Gitter (ab 3 Releases) ---------- */
.disco-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.disco-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #000;
  border: 3px inset var(--teal);
  padding: 10px;
  text-decoration: none;
  color: var(--text);
}
.disco-card:hover { border-color: var(--pink); color: var(--pink); }
.disco-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #111; }
.disco-cover.missing { border: 2px dashed var(--teal); }
.disco-title { font-family: 'Pirata One', cursive; font-size: 24px; }
.disco-meta { font-family: 'VT323', monospace; font-size: 15px; color: var(--gray); }

/* ---------- Player-Platzhalter, bis Bandcamp geladen ist ---------- */
.player-frame { position: relative; }
.embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #6a6a6a;
  animation: blink 1.6s infinite;
  pointer-events: none;
}
.player-frame.loaded .embed-loading { display: none; }

/* ---------- Live-Termine ---------- */
.show-list { display: flex; flex-direction: column; }
.show-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  border-top: 1px dashed var(--teal);
  margin-top: 12px;
  padding-top: 10px;
}
.show-when { font-family: 'VT323', monospace; font-size: 19px; color: var(--teal); }
.show-what { font-size: 21px; line-height: 1.4; }
.show-note { font-family: 'VT323', monospace; font-size: 15px; color: var(--gray); }
.show-past { opacity: 0.45; }
.show-past .show-when { color: var(--gray); }

/* ---------- Press kit ---------- */
.press-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.press-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 3px inset var(--pink);
  background: #000;
  flex-shrink: 0;
  display: block;
}
.press-photo.missing { border: 3px dashed var(--teal); position: relative; }
.press-photo.missing::after {
  content: 'press photo missing';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #666;
}
.press-body { flex: 1; min-width: 260px; }
.press-body p { margin-top: 4px; }

/* ---------- Tastaturbedienung sichtbar machen ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .maze-board:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Umschalter Desktop / Mobil (in der Fusszeile) ---------- */
.view-switch {
  color: var(--pink);
  text-decoration: none;
  border: 2px outset var(--teal);
  background: #14100f;
  padding: 2px 8px;
  font-family: 'VT323', monospace;
  font-size: 14px;
}
.view-switch:hover { color: var(--teal); }
