/* ==========================================================
   OhneGrenzen Games — single committed dark "night horizon /
   HUD" world. No light variant: the identity is the night sky,
   not a color scheme choice.

   Fonts are self-hosted (see ./assets/fonts) on purpose: no
   request ever leaves the visitor's browser toward Google, so
   there's no IP-address transfer to disclose or consent to.
   ========================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/inter-variable-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/bricolage-grotesque-variable-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
}

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

:root {
  --bg: #0d0b0a;
  --bg-raised: #151210;
  --bg-raised-2: #1c1815;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --ink: #f5f1ea;
  --ink-dim: #a49c8f;
  --ink-dimmer: #6b6259;

  /* gold family sampled straight from the OhneGrenzen Games logo */
  --gold: #d9a536;
  --gold-bright: #f7d66b;
  --gold-deep: #8c5a1e;
  --gold-ink: #23150a;
  --grad-gold: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));

  --rose: #ff5d73;
  --good: #6fdc8c;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --content-w: 1240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

::selection { background: var(--gold); color: var(--gold-ink); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* film grain — keeps large flat ink areas from looking dead */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.07) 0%, transparent 72%);
  transform: translate(-50%, -50%);
  will-change: transform;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

.text-accent { color: var(--gold); }

/* ---------- Doodles: small hand-placed accents, not decoration-by-the-yard ---------- */
.doodle {
  position: absolute;
  pointer-events: none;
  color: var(--gold);
  opacity: 0.8;
  animation: doodleFloat 7s ease-in-out infinite;
}
.doodle.rose { color: var(--rose); }
.doodle.dim { color: var(--ink-dimmer); opacity: 0.6; }
@keyframes doodleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -10px) rotate(12deg); }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  transform: rotate(-1.6deg);
}
.kicker::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--gold);
}

/* ---------- HUD tag (hero eyebrow) ---------- */
.hud-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-bottom: 30px;
  transform: rotate(-1deg);
}

.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 220, 140, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(111, 220, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 220, 140, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease-bounce), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad-gold);
  color: var(--gold-ink);
  box-shadow: 0 8px 24px -8px rgba(217, 165, 54, 0.5);
}
.btn-primary:hover { transform: translateY(-3px) rotate(-1.5deg) scale(1.03); box-shadow: 0 14px 28px -8px rgba(217, 165, 54, 0.65); }
.btn-primary:active { transform: translateY(0) rotate(0) scale(0.96); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(255, 176, 32, 0.06); transform: translateY(-3px) rotate(1.5deg) scale(1.03); }
.btn-ghost:active { transform: translateY(0) rotate(0) scale(0.96); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--content-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: flex; transition: transform .5s var(--ease-bounce); animation: logoWiggle 7s ease-in-out infinite; }
.logo-mark img { height: 34px; width: auto; display: block; }
.logo:hover .logo-mark { animation-play-state: paused; transform: rotate(-10deg) scale(1.1); }
@keyframes logoWiggle {
  0%, 92%, 100% { transform: rotate(0deg); }
  94% { transform: rotate(-6deg); }
  96% { transform: rotate(5deg); }
  98% { transform: rotate(-3deg); }
}
.logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em;
}
.logo-text em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.footer-logo img { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--ink-dim); white-space: nowrap;
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: width .35s var(--ease-bounce);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 0.9rem; font-weight: 500; color: var(--ink-dim); transition: color .2s; }
.nav-login:hover { color: var(--gold); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 600;
}
.lang-switch button {
  border: none; background: transparent; color: var(--ink-dimmer);
  padding: 8px 13px; min-width: 38px; border-radius: 100px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-bounce);
}
.lang-switch button.active { background: var(--gold); color: var(--gold-ink); }
.lang-switch button:hover:not(.active) { color: var(--ink); transform: translateY(-1px); }

.tts-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-dim);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);

  &:hover { color: var(--ink); border-color: var(--gold); }
  &[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
  & svg { display: block; }
}

.skip-link {
  position: absolute; top: -100px; left: 14px; z-index: 300;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 0.9rem;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);

  &:focus { top: 14px; outline: none; }
}

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 32px 80px;
  max-width: var(--content-w);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-dim);
  max-width: 480px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 36px;
  padding-top: 32px;
  border-top: 1px dashed var(--line-strong);
}
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem; font-weight: 600;
  color: var(--gold);
}
.stat-label { font-size: 0.78rem; color: var(--ink-dimmer); }

/* horizon visual */
.hero-visual {
  position: relative; aspect-ratio: 1 / 0.95;
  transform: perspective(900px) rotate(-1.2deg) rotateX(0deg) rotateY(0deg);
  transition: transform .5s var(--ease-bounce);
  will-change: transform;
}
#horizonCanvas { width: 100%; height: 100%; display: block; border-radius: var(--radius-lg); }

.hero-visual-frame { position: absolute; inset: 0; pointer-events: none; }
.frame-corner {
  position: absolute; width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.85;
}
.frame-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.frame-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 8px; }
.frame-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 8px; }
.frame-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }

.frame-label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--ink-dim);
  background: rgba(11, 12, 20, 0.55);
  padding: 4px 9px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.doodle-star {
  position: absolute; width: 22px; height: 22px;
  color: var(--rose);
  animation: doodleSpin 9s linear infinite;
  pointer-events: none;
}
@keyframes doodleSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-dimmer); font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 2;
}
.scroll-dot { animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(6px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Section shell ---------- */
.section { padding: 130px 32px; max-width: var(--content-w); margin: 0 auto; position: relative; }
.section-alt { max-width: none; background: var(--bg-raised); padding-top: 170px; padding-bottom: 170px; }
.section-alt > * { max-width: var(--content-w); margin-left: auto; margin-right: auto; }

.wave-divider { position: absolute; left: 0; width: 100%; height: 64px; line-height: 0; }
.wave-divider.top { top: -1px; }
.wave-divider.bottom { bottom: -1px; transform: scaleY(-1); }
.wave-divider svg { width: 100%; height: 100%; display: block; }

.section-head { max-width: 560px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-desc { color: var(--ink-dim); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  padding: 34px 30px;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .45s var(--ease-bounce), border-color .3s var(--ease), box-shadow .45s var(--ease-bounce);
}
.feature-card:nth-child(1) { transform: rotate(-1.4deg); }
.feature-card:nth-child(2) { transform: rotate(1deg); }
.feature-card:nth-child(3) { transform: rotate(-0.8deg); }
.feature-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 650; }
.feature-card p { color: var(--ink-dim); font-size: 0.94rem; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  transition: transform .45s var(--ease-bounce), border-color .35s var(--ease), box-shadow .45s var(--ease-bounce);
}
.project-card:nth-child(odd) { transform: rotate(-1.3deg); }
.project-card:nth-child(even) { transform: rotate(1.1deg); }
.project-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  border-color: var(--line-strong);
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, 0.55);
}

.project-media {
  position: relative; height: 132px;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg-raised-2) 100%),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 32px);
  display: flex; align-items: center; justify-content: center;
}
.project-icon { color: var(--gold); transition: transform .4s var(--ease-bounce); }
.project-card:hover .project-icon { transform: scale(1.12) rotate(-6deg); }

.project-status {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid;
  transform: rotate(-4deg);
  box-shadow: 0 3px 8px -2px rgba(0,0,0,0.4);
}
.status-live { background: rgba(111, 220, 140, 0.14); color: var(--good); border-color: rgba(111,220,140,0.35); }
.status-beta { background: rgba(255, 176, 32, 0.14); color: var(--gold); border-color: rgba(255,176,32,0.35); }
.status-soon { background: rgba(255,255,255,0.08); color: var(--ink-dim); border-color: var(--line-strong); }

.project-body { padding: 20px; }
.project-body h3 { font-size: 1.06rem; margin-bottom: 8px; font-weight: 650; }
.project-body h3 a { color: inherit; transition: color .2s; }
.project-body h3 a:hover { color: var(--gold); }
.project-body p { color: var(--ink-dim); font-size: 0.87rem; margin-bottom: 16px; min-height: 62px; }

.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
}
.project-link svg { transition: transform .3s var(--ease-bounce); }
.project-link:hover svg { transform: translate(2px, -3px) rotate(8deg); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center;
}

.orbit-wrap { position: relative; width: 100%; aspect-ratio: 1; max-width: 380px; margin: 0 auto; }
.orbit-ring { position: absolute; inset: 0; border: 1px dashed var(--line-strong); border-radius: 50%; }
.ring-1 { animation: spin 34s linear infinite; }
.ring-2 { inset: 13%; animation: spin 24s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--bg-raised-2);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.orbit-core img { width: 76%; height: auto; object-fit: contain; }

.orbit-chip {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-raised-2); border: 1px solid var(--line);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  animation: chipFloat 6s ease-in-out infinite;
}
.chip-1 { top: 2%; left: 47%; animation-delay: 0s; }
.chip-2 { top: 50%; right: -3%; animation-delay: -2s; }
.chip-3 { bottom: 4%; left: 6%; animation-delay: -4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.about-content h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin-bottom: 22px; }
.about-content p { color: var(--ink-dim); margin-bottom: 16px; font-size: 1rem; max-width: 60ch; }
.about-tagline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 650; color: var(--ink) !important;
  font-size: 1.1rem !important; line-height: 1.4;
  margin-top: 24px !important; margin-bottom: 24px !important;
}
.about-badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.badge {
  padding: 8px 15px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  font-family: 'IBM Plex Mono', monospace;
  transition: transform .3s var(--ease-bounce), color .3s var(--ease), border-color .3s var(--ease);
}
.badge:nth-child(1) { transform: rotate(-2.5deg); }
.badge:nth-child(2) { transform: rotate(2deg); }
.badge:nth-child(3) { transform: rotate(-1.5deg); }
.badge:hover { transform: rotate(0deg) translateY(-2px); color: var(--gold); border-color: var(--gold); }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  margin: 0 32px 130px;
  max-width: 1176px;
  margin-left: auto; margin-right: auto;
  padding: 90px 40px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255, 93, 115, 0.16), transparent),
    radial-gradient(ellipse 50% 60% at 15% -10%, rgba(255, 176, 32, 0.1), transparent),
    var(--bg-raised);
  text-align: center;
  overflow: hidden;
}
.cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: 16px; }
.cta-inner p { color: var(--ink-dim); margin-bottom: 36px; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px dashed var(--line); padding: 70px 32px 30px; }
.footer-inner {
  max-width: var(--content-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 60px;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--ink-dimmer); margin-top: 14px; max-width: 320px; font-size: 0.9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem; color: var(--ink-dimmer); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a { display: block; color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 12px; transition: color .2s, transform .3s var(--ease-bounce); }
.footer-col a:hover { color: var(--gold); transform: translateX(3px); }

.footer-bottom {
  max-width: var(--content-w); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px dashed var(--line);
  font-size: 0.82rem; color: var(--ink-dimmer);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- No-JS fallback ----------
   Every page starts with <html class="no-js">; script.js removes that class
   as its very first action once it actually runs. If script.js never runs —
   JavaScript disabled entirely, or this one file specifically blocked by an
   ad-blocker / extension — "no-js" stays put and this takes over, so the
   site stays fully visible and navigable instead of going blank. */
html.no-js .reveal { opacity: 1 !important; transform: none !important; }
html.no-js .lang-switch,
html.no-js .tts-btn,
html.no-js .burger { display: none !important; }
@media (max-width: 980px) {
  html.no-js .nav-links, html.no-js .nav-cta { display: flex !important; }
  html.no-js .nav-inner { flex-wrap: wrap; row-gap: 10px; }
  html.no-js .nav-links, html.no-js .nav-cta {
    flex-direction: column; align-items: flex-start; gap: 10px; width: 100%;
  }
}

/* ---------- Responsive ---------- */
/* Eigener, weiterer Breakpoint als der Rest der Seite: die Hauptnavigation
   braucht mit "Neuigkeiten" als sechstem Punkt mehr Platz, bevor sie noch
   sauber in eine Zeile passt — sonst brechen einzelne Linktexte hässlich um. */
@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; order: -1; }
  .hero-sub { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 620px) {
  /* Drei feste Spalten (Projekte/Community/Rechtliches) quetschen sich auf
     Telefonbreite zu schmal zusammen — Links wie "Nutzungsbedingungen"
     laufen dann über den Bildschirmrand hinaus. Gestapelt statt nebeneinander. */
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}

.nav-menu { display: contents; }

@media (max-width: 1180px) {
  .nav.mobile-open .nav-menu {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; inset: 68px 16px auto 16px;
    padding: 14px;
    background: rgba(14, 15, 26, 0.97);
    border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(20px);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .nav.mobile-open .nav-menu .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: static; inset: auto;
    background: none; border: none; backdrop-filter: none; padding: 0;
  }
  .nav.mobile-open .nav-menu .nav-links a { padding: 12px 10px; width: 100%; }
  .nav.mobile-open .nav-menu .nav-cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    position: static; inset: auto;
    padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line);
  }
  .nav.mobile-open .nav-menu .lang-switch { justify-content: center; }
  .nav.mobile-open .nav-menu .tts-btn { align-self: center; }
  .nav.mobile-open .nav-menu .nav-login { text-align: center; padding: 8px 0; }
}

@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 24px 40px; }
  .cta-band { padding: 60px 24px; margin-bottom: 80px; }
  .section { padding: 90px 20px; }
  .section-alt { padding-top: 120px; padding-bottom: 120px; }
}

/* ==========================================================
   Sub-pages: project detail, legal, auth (registration/login/profile)
   ========================================================== */

.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem;
  color: var(--ink-dimmer);
}
.breadcrumb a { color: var(--ink-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }

.page-hero {
  padding: 150px 32px 70px;
  max-width: var(--content-w); margin: 0 auto;
}
.page-hero-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 22px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 18px; transform: rotate(-0.6deg); }
.page-hero-sub { color: var(--ink-dim); font-size: 1.06rem; max-width: 62ch; }

.detail-grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px;
  max-width: var(--content-w); margin: 0 auto; padding: 0 32px 130px;
  align-items: start;
}
.detail-card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.detail-card + .detail-card { margin-top: 20px; }
.detail-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.stat-list { display: flex; flex-direction: column; gap: 14px; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.92rem; }
.stat-row span:first-child { color: var(--ink-dim); }
.stat-row span:last-child { font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-variant-numeric: tabular-nums; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 32px; }
.game-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-raised-2);
  transition: transform .3s var(--ease-bounce), border-color .3s var(--ease);
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.game-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--gold);
}
.game-card h3 { font-size: 0.95rem; margin-bottom: 4px; font-weight: 650; }
.game-card p { font-size: 0.84rem; margin-bottom: 0; }
@media (max-width: 640px) { .games-grid { grid-template-columns: 1fr; } }

.prose { max-width: var(--content-w); margin: 0 auto; padding: 0 32px 130px; }
.prose-inner { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.ogg-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255, 176, 32, 0.08); border: 1px dashed var(--gold);
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 0.9rem; color: var(--ink-dim);
  max-width: var(--content-w); margin: 0 auto 40px; margin-top: -20px;

  & svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
  & strong { color: var(--ink); }
}

/* agreement gate (before registration) — class names are brand-prefixed
   (ogg-*) rather than generic (e.g. "notice", "agree") on purpose: cosmetic
   ad-blocker filter lists (cookie-notice/consent-wall annoyance lists) match
   on exactly those generic patterns and would otherwise hide this content. */
.ogg-agree-box {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg);
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  overflow: hidden; transform: rotate(-0.4deg);
}
.ogg-agree-box-header {
  background: var(--grad-gold); color: #1a1206;
  font-weight: 750; font-size: 1.05rem; padding: 18px 30px;
}
.ogg-agree-box-body {
  padding: 30px 30px 6px;

  & p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.65; margin-bottom: 18px; }
  & p.ogg-agree-final { color: var(--ink); font-weight: 650; }
  & a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
}
.ogg-agree-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  max-width: 760px; margin: 34px auto 110px;
}

/* auth pages */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 150px 24px 80px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 36px;
  transform: rotate(-0.5deg);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 28px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-dim); }
.field input, .field textarea {
  background: var(--bg-raised-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 165, 54, 0.15);
}
.field-hint { font-size: 0.78rem; color: var(--ink-dimmer); }

.field-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; font-size: 0.86rem; color: var(--ink-dim); }
.field-check input { margin-top: 3px; accent-color: var(--gold); }
.field-check a { color: var(--gold); }

.field-error { font-size: 0.8rem; color: var(--rose); min-height: 1.1em; margin-top: -12px; margin-bottom: 12px; }
.field-success { font-size: 0.85rem; color: var(--good); margin-top: -12px; margin-bottom: 16px; }

.auth-submit { width: 100%; justify-content: center; margin-bottom: 18px; }
.auth-switch { font-size: 0.88rem; color: var(--ink-dim); text-align: center; }
.auth-switch a { color: var(--gold); font-weight: 600; }

.lang-block[hidden] { display: none !important; }

/* Hover tabs (Nutzungsbedingungen) */
.terms-wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 32px 90px; }
.terms-section-title { font-size: 1.3rem; margin: 70px 0 24px; }
.terms-section-title:first-child { margin-top: 0; }
.terms-appendix-note { color: var(--ink-dimmer); font-size: 0.85rem; margin: -14px 0 24px; }

.hover-tabs { display: flex; gap: 26px; align-items: flex-start; }

.hover-tabs-nav {
  display: flex; flex-direction: column; gap: 2px;
  width: 280px; flex-shrink: 0;
  max-height: 620px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px; background: var(--bg-raised);
  position: sticky; top: 100px;
}
.hover-tab-btn {
  text-align: left; padding: 10px 14px; border-radius: var(--radius-sm);
  background: transparent; border: none; color: var(--ink-dim);
  font-size: 0.85rem; line-height: 1.3; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.hover-tab-btn:hover, .hover-tab-btn.active { background: var(--bg-raised-2); color: var(--gold); }
.hover-tab-btn.active { font-weight: 600; }
.hover-tab-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.hover-tabs-content {
  flex: 1; min-width: 0;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 34px;
}
.hover-tab-pane { display: none; }
.hover-tab-pane.active { display: block; animation: paneFade .25s var(--ease); }
@keyframes paneFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hover-tab-pane h2 { margin-top: 0; font-size: 1.25rem; margin-bottom: 16px; }
.hover-tab-pane p, .hover-tab-pane li { color: var(--ink-dim); font-size: 0.96rem; margin-bottom: 14px; }
.hover-tab-pane ul { padding-left: 22px; margin-bottom: 14px; }
.hover-tab-pane a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.hover-tabs-select {
  display: none;
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background-color: var(--bg-raised-2); color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 0.92rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a536' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  margin-bottom: 18px;
}
.hover-tabs-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 860px) {
  .hover-tabs { flex-direction: column; }
  .hover-tabs-nav { display: none; }
  .hover-tabs-select { display: block; }
  .hover-tabs-content { padding: 22px; }
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-raised); overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 650; font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease-bounce);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-dim); font-size: 0.95rem; }
.faq-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-kicker { margin: 44px 0 4px; }
.faq-kicker:first-child { margin-top: 0; }

/* Server status page */
.status-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; border-radius: var(--radius); margin-bottom: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(111, 220, 140, 0.08);
}
.status-banner-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--good); box-shadow: 0 0 0 4px rgba(111, 220, 140, 0.18);
}
.status-banner-text { font-weight: 650; font-family: 'Bricolage Grotesque', sans-serif; }
.status-banner-meta { color: var(--ink-dimmer); font-size: 0.82rem; margin-left: auto; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }

/* incident variants — swap the class on .status-banner during an outage */
.status-banner.is-degraded { background: rgba(255, 176, 32, 0.08); }
.status-banner.is-degraded .status-banner-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.18); }
.status-banner.is-outage { background: rgba(255, 93, 115, 0.08); }
.status-banner.is-outage .status-banner-dot { background: var(--rose); box-shadow: 0 0 0 4px rgba(255, 93, 115, 0.18); }

.status-group { margin-bottom: 36px; }
.status-group-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dimmer);
  margin-bottom: 12px;
}
.status-list {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-raised);
}
.status-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.status-row:last-child { border-bottom: none; }
.status-row-name { font-weight: 600; }
.status-row-sub { color: var(--ink-dimmer); font-size: 0.82rem; margin-top: 2px; }
.status-pill {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.03em; border: 1px solid;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.ok { color: var(--good); background: rgba(111, 220, 140, 0.12); border-color: rgba(111, 220, 140, 0.35); }
.status-pill.degraded { color: var(--gold); background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.35); }
.status-pill.outage { color: var(--rose); background: rgba(255, 93, 115, 0.12); border-color: rgba(255, 93, 115, 0.35); }
.status-pill.maintenance { color: var(--ink-dim); background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }

.status-footnote { color: var(--ink-dimmer); font-size: 0.85rem; margin-top: 32px; }

@media (max-width: 560px) {
  .status-row { flex-wrap: wrap; }
  .status-pill { margin-left: 0; order: 3; }
  .status-banner { flex-wrap: wrap; }
  .status-banner-meta { margin-left: 0; }
}

/* profile page */
.profile-header {
  display: flex; align-items: center; gap: 22px; margin-bottom: 40px; flex-wrap: wrap;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad-gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.8rem;
  border: 1px solid var(--line-strong); flex-shrink: 0;
  overflow: hidden;

  & img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
}
.profile-avatar-edit {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; cursor: pointer;
  background: var(--bg-raised); color: var(--ink-dim); border: 1px solid var(--line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease);

  &:hover { color: var(--gold); border-color: var(--gold); }
}
.profile-name { font-size: 1.5rem; margin-bottom: 4px; }
.profile-email { color: var(--ink-dimmer); font-size: 0.9rem; font-family: 'IBM Plex Mono', monospace; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px;
  max-width: var(--content-w); margin: 0 auto;
}
.member-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 22px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-raised);
}
.member-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--grad-gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.4rem;
  border: 1px solid var(--line-strong);

  & img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
}
.member-name { font-weight: 650; }
.member-since { color: var(--ink-dimmer); font-size: 0.82rem; font-family: 'IBM Plex Mono', monospace; }

.post-composer {
  max-width: var(--content-w); margin: 0 auto 30px;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised);

  & textarea { width: 100%; resize: vertical; min-height: 70px; }
  & .btn { margin-top: 4px; }
}

.post-image-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.post-image-pick {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink-dim); font-size: 0.82rem; transition: color .2s var(--ease), border-color .2s var(--ease);

  &:hover { color: var(--gold); border-color: var(--gold); }
}
.post-image-filename { color: var(--ink-dimmer); font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; }
.post-image-remove {
  background: none; border: none; cursor: pointer; color: var(--ink-dimmer); font-size: 0.8rem;
  transition: color .2s var(--ease);

  &:hover { color: var(--rose); }
}
.post-image-preview {
  display: block; max-width: 100%; max-height: 260px; border-radius: var(--radius-sm);
  margin-bottom: 10px; border: 1px solid var(--line);
}
.post-image {
  display: block; max-width: 100%; border-radius: var(--radius-sm); margin-top: 12px; border: 1px solid var(--line);
}

.post-list { max-width: var(--content-w); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.feed-empty { max-width: var(--content-w); margin: 0 auto; color: var(--ink-dimmer); text-align: center; }

.post-card {
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised);
}
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--grad-gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem;
  border: 1px solid var(--line-strong);

  & img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
}
.post-author { font-weight: 650; }
.post-time { color: var(--ink-dimmer); font-size: 0.78rem; font-family: 'IBM Plex Mono', monospace; }
.post-body { color: var(--ink-dim); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.post-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.post-like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: var(--ink-dimmer); font-size: 0.85rem; font-family: 'IBM Plex Mono', monospace;
  transition: color .2s var(--ease);

  &:hover { color: var(--rose); }
  &.is-liked { color: var(--rose); }
}
.post-delete {
  background: none; border: none; cursor: pointer;
  color: var(--ink-dimmer); font-size: 0.8rem; font-family: 'Inter', sans-serif;
  transition: color .2s var(--ease);

  &:hover { color: var(--rose); }
}

.post-comments { margin-top: 14px; }
.post-comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.post-comment { display: flex; align-items: flex-start; gap: 10px; }
.post-comment-avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--grad-gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.72rem;
  border: 1px solid var(--line-strong);

  & img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
}
.post-comment-body { font-size: 0.88rem; line-height: 1.5; }
.post-comment-author { font-weight: 650; }
.post-comment-text { color: var(--ink-dim); white-space: pre-wrap; word-break: break-word; }
.post-comment-delete {
  display: block; background: none; border: none; cursor: pointer; padding: 0;
  color: var(--ink-dimmer); font-size: 0.72rem; font-family: 'Inter', sans-serif;
  transition: color .2s var(--ease);

  &:hover { color: var(--rose); }
}
.post-comment-form { display: flex; gap: 8px; }
.post-comment-input-wrap {
  position: relative; flex: 1;

  & input {
    width: 100%; background: var(--bg-raised-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 8px 12px; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.85rem;
  }
  & input:focus { outline: none; border-color: var(--gold); }
}
.mention-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--bg-raised-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.mention-suggest-item {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 8px 12px; color: var(--ink-dim); font-family: 'Inter', sans-serif; font-size: 0.85rem;
  transition: background .15s var(--ease), color .15s var(--ease);

  &:hover { background: var(--bg-raised); color: var(--gold); }
}
.mention { color: var(--gold); font-weight: 650; }

.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--rose); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; font-family: 'IBM Plex Mono', monospace;
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200; width: 320px; max-width: 80vw;
  max-height: 400px; overflow-y: auto;
  background: var(--bg-raised-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.notif-empty { padding: 18px; color: var(--ink-dimmer); font-size: 0.85rem; text-align: center; }
.notif-item {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); color: var(--ink-dim); font-size: 0.85rem;
  transition: background .15s var(--ease);

  &:last-child { border-bottom: none; }
  &:hover { background: var(--bg-raised); }
  &.is-unread { background: rgba(217, 165, 54, 0.08); }
}
.notif-snippet { color: var(--ink-dimmer); font-size: 0.78rem; font-style: italic; }

.admin-section {
  max-width: var(--content-w); margin: 0 auto 24px;
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised);

  & h2 { margin-bottom: 6px; }
  & form { margin-top: 4px; }
}
.admin-section:last-child { margin-bottom: 0; }

.admin-shell {
  max-width: var(--content-w); margin: 0 auto;
  display: grid; grid-template-columns: 216px 1fr; gap: 32px; align-items: start;
}
.admin-tabs {
  display: flex; flex-direction: column; gap: 3px;
  position: sticky; top: 96px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px;
}
.admin-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: none;
  color: var(--ink-dim); font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; text-align: left; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);

  & svg { flex-shrink: 0; opacity: .75; transition: opacity .2s var(--ease); }
  &:hover { color: var(--ink); background: var(--bg-raised-2); }
  &.active { color: var(--gold-ink); background: var(--grad-gold); }
  &.active svg { opacity: 1; }
}

.admin-panels { min-width: 0; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.admin-stat-card {
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised);
}
.admin-stat-value {
  display: block; font-size: 2.1rem; font-weight: 750; font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.admin-stat-label {
  color: var(--ink-dimmer); font-size: 0.78rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-tabs {
    flex-direction: row; overflow-x: auto; position: static;
    -webkit-overflow-scrolling: touch; scroll-padding-inline: 10px;
    /* Blendet den rechten Rand leicht aus, solange dort noch mehr Tabs
       folgen — ein rein optischer Hinweis "hier geht's weiter", ganz ohne JS. */
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }
  .admin-tab { flex-shrink: 0; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  /* Ab hier lohnt sich eine seitwärts scrollende Tab-Reihe nicht mehr — bei
     genau 5 Bereichen passt eine feste Bottom-Nav (wie in echten Apps) ohne
     Scrollen, abgeschnittene Icons oder sichtbare Scrollbar komplett drauf. */
  .admin-shell { padding-bottom: 76px; }
  .admin-tabs {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 400;
    flex-direction: row; justify-content: space-around;
    overflow: visible; mask-image: none; -webkit-mask-image: none;
    border: none; border-top: 1px solid var(--line-strong); border-radius: 0;
    background: rgba(13, 11, 10, 0.96); backdrop-filter: blur(20px);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .admin-tab {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px;
    padding: 6px 2px; border-radius: var(--radius-sm);
    font-size: 0.62rem; letter-spacing: 0;
  }
  .admin-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .admin-tab svg { width: 19px; height: 19px; }
  .admin-tab.active { background: none; color: var(--gold); }
  .admin-tab.active svg { opacity: 1; }

  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .admin-stat-card { padding: 16px 18px; }
  .admin-stat-value { font-size: 1.6rem; }
  .admin-section { padding: 18px; }

  .admin-table-wrap { overflow-x: visible; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr {
    margin-bottom: 12px; padding: 4px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-raised-2);
  }
  .admin-table td {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    padding: 9px 0; border-bottom: 1px solid var(--line); white-space: normal;
  }
  .admin-table tr td:last-child { border-bottom: none; }
  .admin-table td::before {
    content: attr(data-label); margin-right: auto;
    color: var(--ink-dimmer); font-weight: 650; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.03em;
  }
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem; white-space: nowrap;

  & th, & td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  & th { color: var(--ink-dimmer); font-weight: 650; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.03em; }
  & td { color: var(--ink-dim); font-family: 'IBM Plex Mono', monospace; }
  & td.admin-td-name { color: var(--ink); font-family: 'Inter', sans-serif; font-weight: 650; }
}
.admin-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 650; font-family: 'Inter', sans-serif;
}
.admin-pill.ok { background: rgba(111, 220, 140, 0.12); color: var(--good); }
.admin-pill.blocked { background: rgba(255, 93, 115, 0.12); color: var(--rose); }
.admin-pill.admin { background: rgba(217, 165, 54, 0.14); color: var(--gold); }
.admin-action-btn {
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 5px 12px; margin-right: 6px; cursor: pointer; color: var(--ink-dim);
  font-size: 0.78rem; font-family: 'Inter', sans-serif; transition: color .2s var(--ease), border-color .2s var(--ease);

  &:hover { color: var(--gold); border-color: var(--gold); }
  &.danger:hover { color: var(--rose); border-color: var(--rose); }
}

.profile-card-links {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);

  & a, & button {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--ink-dim); font-size: 0.88rem; font-weight: 600; font-family: 'Inter', sans-serif;
    transition: color .2s var(--ease);
  }
  & a:hover, & button:hover { color: var(--gold); }
}

/* Cookie-Zustimmung — "ogg-"-Präfix bewusst statt generischer Namen wie
   .cookie-banner, siehe Begründung bei .ogg-agree-box weiter oben. */
.ogg-cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--bg-raised-2); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
  padding: 18px 24px;
  animation: ogg-cookie-bar-in .5s var(--ease);
}
.ogg-cookie-bar[hidden] { display: none; }
@keyframes ogg-cookie-bar-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ogg-cookie-bar-inner {
  max-width: var(--content-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.ogg-cookie-bar-text {
  flex: 1 1 380px; font-size: 0.88rem; color: var(--ink-dim); line-height: 1.55;

  & strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 4px; }
  & a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
}
.ogg-cookie-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.ogg-cookie-modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ogg-cookie-modal[hidden] { display: none; }
.ogg-cookie-modal-backdrop {
  position: absolute; inset: 0; background: rgba(10, 8, 6, 0.72); backdrop-filter: blur(3px);
}
.ogg-cookie-modal-panel {
  position: relative; max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 30px; animation: ogg-cookie-modal-in .35s var(--ease);

  & h3 { margin-bottom: 8px; }
  & > p { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; margin-bottom: 20px; }
}
@keyframes ogg-cookie-modal-in {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.ogg-cookie-cat {
  padding: 16px 0; border-top: 1px solid var(--line);

  & p { color: var(--ink-dimmer); font-size: 0.82rem; line-height: 1.5; margin-top: 8px; }
}
.ogg-cookie-cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 650; color: var(--ink); font-size: 0.92rem;
}
.ogg-cookie-cat-locked {
  font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink-dimmer); background: var(--bg-raised-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
}
.ogg-cookie-switch {
  position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0;

  & input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
}
.ogg-cookie-switch-track {
  position: absolute; inset: 0; background: var(--bg-raised-2); border: 1px solid var(--line-strong);
  border-radius: 999px; transition: background .25s var(--ease), border-color .25s var(--ease);

  &::before {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    background: var(--ink-dimmer); border-radius: 50%; transition: transform .25s var(--ease), background .25s var(--ease);
  }
}
.ogg-cookie-switch input:checked + .ogg-cookie-switch-track { background: rgba(217, 165, 54, 0.18); border-color: var(--gold); }
.ogg-cookie-switch input:checked + .ogg-cookie-switch-track::before { transform: translateX(18px); background: var(--gold); }
.ogg-cookie-switch input:focus-visible + .ogg-cookie-switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }

.ogg-cookie-modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; }

.ogg-cookie-footer-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--ink-dimmer); font-size: 0.82rem; font-family: 'Inter', sans-serif;
  text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease);
}
.ogg-cookie-footer-link:hover { color: var(--gold); }

.news-list { max-width: var(--content-w); margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.news-card { padding: 26px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-raised); }
.news-card-date { color: var(--ink-dimmer); font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; margin-bottom: 8px; }
.news-card-title { font-size: 1.3rem; margin-bottom: 12px; }
.news-card-body { color: var(--ink-dim); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.news-media { display: block; max-width: 100%; border-radius: var(--radius-sm); margin-top: 18px; border: 1px solid var(--line); }
video.news-media { width: 100%; background: #000; }
.news-empty { text-align: center; color: var(--ink-dimmer); padding: 50px 0; }

.admin-news-form {
  display: grid; gap: 16px; margin-bottom: 14px;

  & .field { margin: 0; }
}
.admin-news-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-news-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-dim); }
.admin-news-checkbox input { width: auto; }
.admin-news-existing-media { display: flex; align-items: center; gap: 10px; margin-top: -8px; font-size: 0.82rem; color: var(--ink-dimmer); }
.admin-news-existing-media img, .admin-news-existing-media video { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.admin-news-form-actions { display: flex; gap: 10px; }

.admin-news-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.admin-news-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.admin-news-item-title { font-weight: 650; color: var(--ink); }
.admin-news-item-meta { color: var(--ink-dimmer); font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; }
.admin-news-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

@media (max-width: 900px) {
  .admin-news-form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .ogg-cookie-bar-inner { flex-direction: column; align-items: stretch; }
  .ogg-cookie-bar-actions { justify-content: stretch; }
  .ogg-cookie-bar-actions .btn { flex: 1 1 auto; }
}
