:root {
  /* block-24-shared-css: Gemeinsames Designsystem für Unterseiten. */
  color-scheme: dark;
  --bg: #07060d;
  --bg-soft: #100d19;
  --surface: rgba(18, 16, 28, 0.88);
  --surface-strong: rgba(14, 12, 22, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.19);
  --text: #f7f3eb;
  --muted: #b8b0c5;
  --muted-soft: #80788f;
  --gold: #d9b95f;
  --gold-strong: #f5d981;
  --purple: #7d43ff;
  --purple-2: #4f37cc;
  --green: #27d56e;
  --red: #ff2d62;
  --blue: #39b7ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.50);
  --page: min(1360px, calc(100% - 32px));
}

body[data-theme="light"] {
  color-scheme: dark;
  --bg: #15101f;
  --bg-soft: #211833;
  --surface: rgba(36, 30, 50, 0.88);
  --surface-strong: rgba(26, 22, 38, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #fffaf1;
  --muted: #d4ccdc;
  --muted-soft: #a69bb2;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  /* block-24-shared-css: Globaler Hintergrund, Runen-Vibe und Basis-Typografie. */
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(217, 185, 95, 0.24), transparent 28%),
    radial-gradient(circle at 8% 7%, rgba(217, 185, 95, 0.18), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(125, 67, 255, 0.22), transparent 32%),
    radial-gradient(circle at 52% 100%, rgba(57, 183, 255, 0.08), transparent 36%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

body::before {
  content: "ᛁᛃᛋᛉᛏᚱᛁᚾ   ᚱᚨᚷᚾᚨᚱᛟᚲ   ᛁᛃᛋᛉᛏᚱᛁᚾ";
  position: fixed;
  left: -10vw;
  top: 14vh;
  z-index: 0;
  width: 130vw;
  color: rgba(245, 217, 129, 0.055);
  font-family: "Segoe UI Symbol", "Noto Sans Runic", serif;
  font-size: clamp(80px, 15vw, 240px);
  font-weight: 950;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transform: rotate(-8deg);
  pointer-events: none;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 8% 7%, rgba(217, 185, 95, 0.24), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(125, 67, 255, 0.27), transparent 32%),
    linear-gradient(180deg, #251c35, var(--bg));
}

body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(245, 217, 129, 0.72);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.page {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-nav {
  /* block-01-navigation: Wiederverwendete Navigation auf Unterseiten. */
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 13, 0.78);
  backdrop-filter: blur(20px);
}

.page > .site-nav {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand::before {
  content: "K";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 185, 95, 0.36);
  border-radius: 10px;
  color: var(--gold-strong);
  background: rgba(217, 185, 95, 0.10);
  font-size: 12px;
  font-weight: 950;
}

.nav-links,
.nav-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0 48px;
}

.nav-actions { margin-left: auto; }

.theme-wrap {
  position: relative;
  display: inline-flex;
}

.theme-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  min-width: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 17, 31, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.theme-popover button {
  min-height: 46px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.theme-popover button.is-active {
  background:
    linear-gradient(135deg, rgba(217,185,95,0.32), rgba(125,67,255,0.16)),
    rgba(255,255,255,0.08);
}

.nav-links a,
.button,
.icon-button,
.login-button,
.logout-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.button:hover,
.icon-button:hover,
.login-button:hover,
.logout-button:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 185, 95, 0.36);
}

.button:disabled,
.icon-button:disabled,
.login-button:disabled,
.logout-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  border-color: rgba(245, 217, 129, 0.48);
  background:
    linear-gradient(135deg, rgba(217,185,95,0.35), rgba(125,67,255,0.20)),
    rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 10px 28px rgba(217, 185, 95, 0.12);
}

.login-button {
  border-color: rgba(125, 67, 255, 0.55);
  background:
    linear-gradient(135deg, #9b4dff 0%, #6f35f0 58%, #4e29c9 100%);
  color: #fff;
  box-shadow:
    0 12px 30px rgba(125, 67, 255, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.20);
  gap: 10px;
  padding: 0 19px 0 10px;
}

.login-button .twitch-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #111018;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.08),
    0 7px 16px rgba(0,0,0,0.22);
}

.login-button .twitch-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.hero,
.card,
.panel,
.game-card {
  /* block-24-shared-css: Gemeinsame Karten- und Panel-Optik. */
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel::before,
.card::before,
.game-card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 46%;
  height: 72%;
  opacity: 0.12;
  background: radial-gradient(circle at 0 0, var(--gold), transparent 68%);
  pointer-events: none;
}

.panel > *,
.card > *,
.game-card > * {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  margin-bottom: 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 48%;
  height: 76%;
  opacity: 0.22;
  background: radial-gradient(circle at 0 0, var(--gold), transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -9%;
  bottom: -24%;
  z-index: 0;
  width: min(1500px, 120vw);
  height: 230px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221700%22%20height%3D%22260%22%20viewBox%3D%220%200%201700%20260%22%3E%3Ctext%20x%3D%220%22%20y%3D%22185%22%20fill%3D%22rgba(217%2C185%2C95%2C0.22)%22%20font-size%3D%22150%22%20font-family%3D%22Segoe%20UI%20Symbol%2C%20Arial%22%20font-weight%3D%22900%22%20letter-spacing%3D%2224%22%3E%E1%9B%81%E1%9B%83%E1%9B%8B%E1%9B%89%E1%9B%8F%E1%9A%B1%E1%9B%81%E1%9A%BE%20%20%20%E1%9A%B1%E1%9A%A8%E1%9A%B7%E1%9A%BE%E1%9A%A8%E1%9A%B1%E1%9B%9F%E1%9A%B2%20%20%20%E1%9B%81%E1%9B%83%E1%9B%8B%E1%9B%89%E1%9B%8F%E1%9A%B1%E1%9B%81%E1%9A%BE%3C%2Ftext%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: 0.22;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero h1,
.section-head h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(38px, 7vw, 76px); }
.section-head h2 { font-size: clamp(26px, 4vw, 44px); }

.hero p,
.card p,
.panel p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 14px;
}

.section-head span,
.eyebrow,
.muted {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card,
.panel {
  padding: clamp(16px, 2.4vw, 24px);
}

.remember-toggle,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.user-chip { display: none; }
body.is-logged-in .login-button,
body.is-logged-in .remember-toggle { display: none; }
body.is-logged-in .user-chip { display: inline-flex; }
body:not(.is-logged-in) .logout-button { display: none; }

.user-avatar,
.user-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(125, 67, 255, 0.22);
}

.rune-band {
  width: var(--page);
  margin: 0 auto 18px;
  color: rgba(245, 217, 129, 0.20);
  font-family: "Segoe UI Symbol", "Noto Sans Runic", serif;
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

form { display: grid; gap: 12px; }

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

textarea { min-height: 150px; resize: vertical; }

footer {
  margin-top: 34px;
  color: var(--muted-soft);
  text-align: center;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions { margin-left: 0; }
  .nav-links,
  .nav-actions {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a,
  .button,
  .login-button,
  .logout-button,
  .icon-button {
    width: 100%;
  }

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

@media (max-width: 520px) {
  :root { --page: min(1360px, calc(100% - 22px)); }
  .nav-links,
  .nav-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { padding-top: 14px; }
}
