/* MaximGrow – Dark Premium */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Palette: colorhunt.co/palette/00000052057b892cdcbc6ff1 */
  --bg: #000000;
  --bg-raised: #0d0716;
  --bg-sunken: #07040c;
  --line: #24143a;
  --line-strong: #3d225c;
  --text: #f4ecfc;
  --text-muted: #a99bbb;
  --accent: #892cdc;       /* Violett: Linien, Punkte, Flächen */
  --accent-mid: #bc6ff1;   /* Lavendel: Buttons, Kategorien, Links */
  --accent-light: #cf98f5; /* hellere Stufe von #BC6FF1 für Hover und Hervorhebungen */
  --accent-deep: #52057b;  /* Pflaume: Unterstreichungen, dezente Rahmen */
  --live: #ff5c7a;
  --focus: #bc6ff1;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);

  --page-max: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --header-h: 4.75rem;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent-mid);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus { top: calc(0.75rem + env(safe-area-inset-top, 0px)); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* Unschärfe auf einem Pseudo-Element, sonst würde backdrop-filter das
   fixierte Mobilmenü in der Kopfzeile einsperren. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

.header-cta-short { display: none; }
@media (max-width: 420px) {
  .header-cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta-short { display: inline; }
}

/* ---------- Buttons & Links ---------- */

/* Liquid-Glass-Buttons (nach „LiquidButton“, ohne React portiert).
   Zwei Ebenen hinter dem Text: ::after ist das Glas (Unschärfe bzw. in
   Chromium die Verzerrung #container-glass), ::before der Lichtrand. */
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.9rem;
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.button::before,
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
/* Glas */
.button::after {
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(188, 111, 241, 0.5), rgba(137, 44, 220, 0.36));
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  backdrop-filter: blur(8px) saturate(1.4);
  transition: background 0.3s ease;
}
.has-refract .button::after {
  -webkit-backdrop-filter: url("#container-glass");
  backdrop-filter: url("#container-glass");
}
/* Lichtrand */
.button::before {
  z-index: -1;
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15),
    0 8px 28px -10px rgba(137, 44, 220, 0.55);
  transition: box-shadow 0.3s ease;
}
.button:hover { transform: scale(1.05); }
.button:hover::after { background: linear-gradient(180deg, rgba(188, 111, 241, 0.62), rgba(137, 44, 220, 0.48)); }
.button:active { transform: scale(0.98); transition-duration: 0.1s; }
.button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* Klares Glas ohne Farbe */
.button-ghost::after { background: rgba(255, 255, 255, 0.02); }
.button-ghost::before {
  box-shadow:
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
}
.button-ghost:hover::after { background: rgba(188, 111, 241, 0.12); }

.button-small {
  min-height: 2.6rem;
  padding: 0.5rem 1.3rem;
  font-size: 0.92rem;
}

.text-link {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-deep);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-color: var(--accent-light); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) var(--section-space);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, calc((100vw - 2 * var(--gutter)) / 5.15), 13.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "wght" 720, "SOFT" 100, "WONK" 1;
  color: var(--text);
  margin-left: -0.04em;
  animation: grow 1.6s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

@keyframes grow {
  from {
    font-variation-settings: "opsz" 144, "wght" 140, "SOFT" 100, "WONK" 1;
    letter-spacing: 0.01em;
    color: var(--accent-deep);
  }
  to {
    font-variation-settings: "opsz" 144, "wght" 720, "SOFT" 100, "WONK" 1;
    letter-spacing: -0.035em;
    color: var(--text);
  }
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.hero-grid .actions { margin-top: 0; }

.status {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text);
}
.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--text-muted);
}
.status.is-live .status-dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 92, 122, 0.6);
  animation: pulse 2s ease-out infinite;
}
.status.is-soon .status-dot { background: var(--accent); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 122, 0.55); }
  70% { box-shadow: 0 0 0 0.6rem rgba(255, 92, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 122, 0); }
}

.status-sub {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.lede {
  margin-top: 1.4rem;
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Stream & Chat ---------- */

.hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.stream-section { padding-bottom: var(--section-space); }

.stream {
  --radius: 16;
  --inner-radius: calc(var(--radius) * 1px - var(--border-size));
  isolation: isolate;
}

.stream-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  padding: 0.85rem 0.9rem 0.85rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.stream-state,
.stream-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.stream-state .status-dot { margin-top: 0; }
.stream-state.is-live { color: var(--text); font-weight: 600; }
.stream-state.is-live .status-dot {
  background: var(--live);
  animation: pulse 2s ease-out infinite;
}
.stream-meta svg { flex: none; color: var(--text-muted); }
.stream-meta[data-stream-followers-wrap] svg { color: var(--accent-mid); }
.stream.is-live .stream-meta:first-of-type svg { color: var(--live); }
.stream-meta[hidden] { display: none; }

.stream-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(18rem, 28vw, 22rem);
}

.stream-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunken);
  border-bottom-left-radius: var(--inner-radius);
  overflow: hidden;
}
.stream-player iframe,
.stream-chat iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-chat {
  position: relative;
  min-height: 18rem;
  border-left: 1px solid var(--line);
  background: #08040e;
  border-bottom-right-radius: var(--inner-radius);
  overflow: hidden;
}
.chat-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  text-align: center;
}

.stream-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(137, 44, 220, 0.30), transparent 60%),
    var(--bg-sunken);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.stream-consent.has-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55));
}
.stream-consent > * { position: relative; }

.player-play {
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent-mid);
  display: grid;
  place-items: center;
}
.player-play::after {
  content: "";
  margin-left: 0.22rem;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--accent-mid);
}

.consent-title { font-weight: 600; font-size: var(--step-1); }
.consent-note { max-width: 46ch; color: var(--text-muted); font-size: var(--step--1); }
.consent-note a { color: var(--accent-light); }
.consent-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  cursor: pointer;
}
.consent-remember input { width: 1rem; height: 1rem; accent-color: var(--accent-mid); }

.stream-revoke {
  padding: 0.75rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--step--1);
}
.stream-revoke[hidden] { display: none; }
.link-button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent-light);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (max-width: 900px) {
  .stream-body { grid-template-columns: minmax(0, 1fr); }
  .stream-player { border-bottom-left-radius: 0; }
  .stream-chat {
    height: 26rem;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom-left-radius: var(--inner-radius);
  }
  .stream-body:not(.is-loaded) .stream-chat { display: none; }
  .stream-body:not(.is-loaded) .stream-player {
    border-bottom-right-radius: var(--inner-radius);
    border-bottom-left-radius: var(--inner-radius);
  }
  .stream-bar { grid-template-columns: repeat(3, auto); justify-content: start; }
  .stream-bar .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
  .stream-player:not(.is-loaded) { aspect-ratio: auto; min-height: 24rem; }
  .stream-bar { grid-template-columns: 1fr 1fr; padding: 0.9rem 1.1rem; }
  .stream-state { grid-column: 1 / -1; }
  .stream-chat { height: 22rem; }
}

/* ---------- Social Media ---------- */

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.social {
  --radius: 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 1.6rem 1rem 1.4rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  isolation: isolate;
  transition: border-color 0.15s ease;
}
.social:hover { border-color: var(--line-strong); }
.social-icon { display: grid; place-items: center; margin-bottom: 0.4rem; }
.social-twitch .social-icon { color: #9146ff; }
.social-tiktok .social-icon { color: #ffffff; }
.social-discord .social-icon { color: #5865f2; }
.social-youtube .social-icon { color: #ff0033; }
.social-name { font-weight: 600; font-size: var(--step-0); }
.social-handle { color: var(--text-muted); font-size: var(--step--1); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Dialoge (Kontakt, Impressum, Datenschutz) ---------- */

dialog.modal {
  width: min(46rem, calc(100% - 2 * var(--gutter)));
  max-height: min(86vh, 52rem);
  padding: 0;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(137, 44, 220, 0.35);
}
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
dialog.modal.modal-small { width: min(30rem, calc(100% - 2 * var(--gutter))); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "wght" 520, "SOFT" 100;
}
.modal-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-body {
  padding: 1.25rem 1.5rem 1.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-body > p + p { margin-top: 0.8rem; }
.modal-body .actions { margin-top: 1.25rem; }

.legal-body h2 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: "wght" 520, "SOFT" 100;
  margin: 1.75rem 0 0.5rem;
}
.legal-body h2:first-child { margin-top: 0.5rem; }
.legal-body p, .legal-body li { color: var(--text-muted); }
.legal-body a { color: var(--accent-light); }
.legal-body .todo {
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--accent-deep);
  border-radius: 8px;
  color: var(--accent-light);
}
.empty-note { color: var(--text-muted); }

.contact-mail {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem);
  font-variation-settings: "wght" 480, "SOFT" 100;
  color: var(--accent-mid);
  overflow-wrap: anywhere;
  user-select: all;
}

body.modal-open { overflow: hidden; }

/* ---------- Sections ---------- */

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-space);
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section h2 {
  overflow-wrap: break-word;
  hyphens: auto;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "wght" 480, "SOFT" 100, "WONK" 0;
}

.section-intro {
  margin-top: 0.9rem;
  max-width: 52ch;
  color: var(--text-muted);
}

/* Clips */

.clips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.clip {
  display: block;
  text-decoration: none;
  color: inherit;
}
.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  border-radius: 4px;
  overflow: hidden;
}
.clip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.clip:hover .clip-thumb img { transform: scale(1.03); }
.clip-duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 3px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.clip-title {
  margin-top: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip:hover .clip-title { color: var(--accent-light); }
.clip-meta {
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.clip-skeleton .clip-thumb { animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: 0.55; } }

.empty-state {
  grid-column: 1 / -1;
  padding: 2.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--text-muted);
}
.empty-state a { color: var(--accent-light); }

@media (max-width: 900px) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clips { grid-template-columns: 1fr; } }

/* Community */

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2.5rem 4rem;
  align-items: end;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.community-grid .button { margin-top: 2rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0;
}
.stat dt {
  order: 2;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "wght" 400, "SOFT" 100;
}
.stat:first-child dd { color: var(--accent-light); }

.quotes {
  list-style: none;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  font-variation-settings: "wght" 350, "SOFT" 100;
}
.quote figcaption {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}

@media (max-width: 760px) {
  .community-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Shop & Formular */

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem 4rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.signup-row {
  display: flex;
  gap: 0.6rem;
}
.field {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding-left: 1.3rem;
  min-height: 3.25rem;
}
.field::placeholder { color: #75688a; }
.field:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.field[aria-invalid="true"] { border-color: var(--live); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  max-width: 56ch;
}
.form-note a { color: var(--accent-light); }

.form-message {
  margin-top: 0.9rem;
  min-height: 1.5em;
  font-weight: 500;
}
.form-message.is-success { color: var(--accent-light); }
.form-message.is-error { color: #ff8fa3; }

@media (max-width: 860px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); padding: 1.75rem 1.25rem; }
}
@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
}

/* FAQ */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-size: var(--step-1);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.3rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq summary:hover { color: var(--accent-light); }
.faq details p {
  padding: 0 0 1.5rem;
  max-width: 62ch;
  color: var(--text-muted);
}
.faq details a { color: var(--accent-light); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 3rem var(--gutter) calc(3rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem 3rem;
  align-items: baseline;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variation-settings: "wght" 600, "SOFT" 100, "WONK" 1;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-copy {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: var(--step--1);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Nach oben ---------- */

.to-top {
  position: fixed;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent-light); }

/* ---------- Rechtliche Unterseiten ---------- */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) var(--section-space);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  font-variation-settings: "wght" 520, "SOFT" 100;
  margin-bottom: 2rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "wght" 480, "SOFT" 100;
  margin: 2.5rem 0 0.8rem;
}
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 0.9rem; }
.legal a { color: var(--accent-light); }
.legal .todo {
  padding: 1rem 1.2rem;
  border: 1px dashed var(--accent-deep);
  border-radius: 6px;
  color: var(--accent-light);
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wordmark { animation: none; }
  .button:hover, .button:active { transform: none; }
}
.legal-actions { margin-top: 2rem; }

/* =================================================================
   Liquid-Navigation („Waterline“, nach Nimbus UI von guglielmogiannattasio.it,
   ohne React portiert und auf die MaximGrow-Palette umgefärbt)
   ================================================================= */

.nimbus-nav {
  --n-tint: rgba(82, 5, 123, 0.2);
  --n-fg: var(--text);
  --n-fg-soft: rgba(244, 236, 252, 0.66);
  --n-rim: rgba(188, 111, 241, 0.32);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  isolation: isolate;
  font-family: var(--font-body);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nimbus-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.nimbus-glass {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border-radius: inherit;
  background: var(--n-tint);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow:
    inset 0 1px 1px var(--n-rim),
    inset 0 0 0 1px rgba(188, 111, 241, 0.12),
    0 12px 32px -14px rgba(137, 44, 220, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
.nimbus-nav[data-refract="on"] .nimbus-glass {
  -webkit-backdrop-filter: url(#nimbus-refract) blur(2px) saturate(1.2);
  backdrop-filter: url(#nimbus-refract) blur(2px) saturate(1.2);
}

.nimbus-water {
  position: absolute;
  left: -14px;
  top: -14px;
  z-index: -1;
  pointer-events: none;
}
.nimbus-nav[data-gl="off"] .nimbus-water { display: none; }

/* Ersatz-Tropfen ohne WebGL */
.nimbus-drop {
  display: none;
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  will-change: transform, width, opacity;
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(188, 111, 241, 0.6), rgba(188, 111, 241, 0) 55%),
    rgba(137, 44, 220, 0.45);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(82, 5, 123, 0.5),
    inset 0 0 0 1px rgba(188, 111, 241, 0.4),
    0 6px 16px -6px rgba(137, 44, 220, 0.6);
}
.nimbus-nav[data-gl="off"] .nimbus-drop { display: block; }

.nimbus-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--n-fg-soft);
  font: 500 14.5px/1 var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s;
}
.nimbus-item:hover,
.nimbus-item[aria-current="true"] { color: var(--n-fg); }
.nimbus-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 999px; }

.nv-ico { position: relative; display: inline-flex; flex: none; }
.nv-ico svg { width: 18px; height: 18px; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.nimbus-item[aria-current="true"] .nv-ico svg { transform: translateY(-1px) scale(1.08); }

.nv-ico[data-play="pop"] svg { animation: nvPop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes nvPop { 0% { transform: scale(0.72); } 60% { transform: scale(1.2); } 100% { transform: translateY(-1px) scale(1.08); } }

.nv-ico[data-play="spin"] svg { animation: nvSpin 1s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
@keyframes nvSpin { 0% { transform: perspective(80px) rotateY(0); } 100% { transform: perspective(80px) rotateY(360deg) translateY(-1px) scale(1.08); } }

.nv-ico[data-play="hop"] svg { animation: nvHop 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both; transform-origin: 50% 100%; }
@keyframes nvHop { 0% { transform: none; } 30% { transform: translateY(-5px) scale(1.04, 0.96); } 55% { transform: translateY(0) scale(1.12, 0.88); } 75% { transform: translateY(-2px) scale(0.98, 1.04); } 100% { transform: translateY(-1px) scale(1.08); } }

.nv-ico[data-play="wave"] svg { animation: nvWave 0.9s ease-in-out both; transform-origin: 50% 92%; }
@keyframes nvWave { 0% { transform: none; } 20% { transform: rotate(-15deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } 100% { transform: translateY(-1px) scale(1.08); } }

.nv-ico[data-play="drop"] svg { animation: nvDrop 0.95s cubic-bezier(0.4, 0, 0.3, 1) both; transform-origin: 50% 100%; }
@keyframes nvDrop { 0% { transform: translateY(-1px); } 26% { transform: translateY(-13px) scale(0.88, 1.12); } 46% { transform: translateY(3px) scale(1.3, 0.68); } 62% { transform: translateY(-3px) scale(0.92, 1.08); } 80% { transform: translateY(0) scale(1.04, 0.97); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-play="drop"]::before,
.nv-ico[data-play="drop"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0;
  pointer-events: none;
}
.nv-ico[data-play="drop"]::before { animation: nvSplashL 0.95s ease-out both; }
.nv-ico[data-play="drop"]::after { animation: nvSplashR 0.95s ease-out both; }
@keyframes nvSplashL { 0%, 44% { opacity: 0; transform: none; } 50% { opacity: 0.9; transform: translate(-5px, -6px); } 75%, 100% { opacity: 0; transform: translate(-11px, 1px) scale(0.4); } }
@keyframes nvSplashR { 0%, 44% { opacity: 0; transform: none; } 50% { opacity: 0.9; transform: translate(5px, -7px); } 75%, 100% { opacity: 0; transform: translate(12px, 1px) scale(0.4); } }

/* Platz im Header: Symbole erst ab breiten Bildschirmen */
.header-inner .nimbus-nav { margin-left: auto; }
@media (max-width: 1180px) and (min-width: 961px) {
  .nimbus-item .nv-ico { display: none; }
  .nimbus-item { padding: 0 13px; }
}

/* Mobil: schwebende Leiste unten, nur Symbole */
@media (max-width: 960px) {
  .nimbus-nav {
    --n-tint: rgba(20, 5, 32, 0.8);
    position: fixed;
    left: 50%;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    transform: translateX(-50%);
  }
  .nimbus-item { padding: 0 13px; }
  .nimbus-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 340px) {
  .nimbus-item { padding: 0 10px; }
}

/* =================================================================
   Glow-Karten (Spotlight-Rand, folgt dem Mauszeiger)
   ================================================================= */

.glow-card {
  --base: 270;            /* Violett #892CDC */
  --spread: 12;           /* bis Lavendel #BC6FF1 */
  --radius: 14;
  --border: 2;
  --size: 220;
  --backdrop: rgba(13, 7, 22, 0.75);
  --border-size: calc(var(--border) * 1px);
  --spotlight-size: calc(var(--size) * 1px);
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread)));
  position: relative;
  border: var(--border-size) solid var(--line);
  border-radius: calc(var(--radius) * 1px);
  background-color: var(--backdrop);
}

.has-glow .glow-card {
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
    calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
    hsl(var(--hue) 100% 70% / 0.1), transparent
  );
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  background-attachment: fixed;
}

.has-glow .glow-card::before,
.has-glow .glow-card::after {
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  pointer-events: none;
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
}
.has-glow .glow-card::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
    hsl(var(--hue) 100% 62% / 1), transparent 100%
  );
  filter: brightness(1.6);
}
.has-glow .glow-card::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
    hsl(0 100% 100% / 0.8), transparent 100%
  );
}

/* weicher äußerer Schein */
.glow-outer { display: none; }
.has-glow .glow-outer {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: calc(var(--radius) * 1px);
  filter: blur(calc(var(--border-size) * 10));
  will-change: filter;
}
.has-glow .glow-outer::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 10px solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
    hsl(var(--hue) 100% 60% / 0.55), transparent 100%
  );
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
}

/* Einsatzorte */
.clip.glow-card { padding: 0.6rem 0.6rem 1.1rem; isolation: isolate; }
.clip.glow-card .clip-thumb { border-radius: 8px; }
.clip.glow-card .clip-title,
.clip.glow-card .clip-meta { padding: 0 0.35rem; }

.shop-grid.glow-card { --radius: 16; --size: 340; isolation: isolate; }

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