/* =====================================================
   Webseite – Kopfzeile mit Menü, Fußzeile.
   Die Seiteninhalte selbst kommen aus lp.css (dieselben Bausteine wie die
   Landingpages) – hier steht nur, was die Webseite drumherum braucht.
   ===================================================== */

.ws {
  --ws-accent: #1e1e1e;
  --ws-ink:    #16181d;
  --ws-muted:  #6b7280;
  --ws-line:   rgba(0,0,0,.09);
  --ws-head-h: 84px;
  --ws-head-w: 1600px;   /* Kopf- und Fußzeile duerfen breiter als der Inhalt sein */
  margin: 0;
  font-family: var(--font-content, 'Lato', 'Segoe UI', system-ui, Arial, sans-serif);
  color: var(--ws-ink);
}
.ws *, .ws *::before, .ws *::after { box-sizing: border-box; }
/* Formularelemente erben die Schrift nicht -> überall Marken-Schrift (Lato). */
.ws button, .ws input, .ws select, .ws textarea {
  font-family: var(--font-content, 'Lato', 'Segoe UI', system-ui, Arial, sans-serif);
}

/* ── Kopfzeile ──────────────────────────────────────
   Bleibt beim Scrollen oben stehen; halbtransparent mit Weichzeichner, damit
   Hero-Bilder darunter durchscheinen. */
.ws-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--ws-line);
}
.ws-head-in {
  max-width: var(--ws-head-w); margin: 0 auto; padding: 0 20px;
  height: var(--ws-head-h); display: flex; align-items: center; gap: 20px;
}
.ws-brand {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ws-ink); text-decoration: none; white-space: nowrap;
}
.ws-brand:hover { opacity: .75; }
/* Logo statt Text: passt sich der Kopfhoehe an, Breite frei. */
.ws-brand.has-logo { display: inline-flex; align-items: center; }
.ws-logo { height: 58px; max-height: calc(var(--ws-head-h) - 18px); width: auto; max-width: 260px; object-fit: contain; display: block; }
@media (max-width: 640px) { .ws-logo { height: 44px; max-width: 190px; } }

/* Twitch-Anzeige: steht ganz rechts, hinter dem Menue. Gibt es kein Menue,
   schiebt sie sich selbst von der Marke weg. */
.ws-tw { margin-left: 14px; }
.ws-head-in > .ws-tw:nth-child(2) { margin-left: auto; }

/* ── Menü (Desktop) ─────────────────────────────── */
.ws-nav { margin-left: auto; }
.ws-nav-l1 { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ws-li { position: relative; }
.ws-a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; color: var(--ws-muted); text-decoration: none;
  transition: color .12s, background .12s;
}
/* Menü-Text OHNE Kasten: beim Hover ändert sich nur die Farbe, kein Hintergrund. */
.ws-a:hover { color: var(--ws-ink); background: transparent; }
.ws-a.on { color: var(--ws-ink); }
/* Aktiver Punkt: feiner Strich in der Akzentfarbe */
.ws-a.on::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--ws-accent);
}
.ws-caret {
  width: 0; height: 0; margin-left: 1px;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor; opacity: .55;
}

/* Untermenü – klappt beim Überfahren auf, bleibt per :focus-within für die Tastatur offen */
.ws-sub {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--ws-line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.13);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.ws-li.has-sub:hover .ws-sub,
.ws-li.has-sub:focus-within .ws-sub { opacity: 1; visibility: visible; transform: none; }
.ws-sub a {
  display: block; padding: 9px 13px; border-radius: 7px;
  font-size: 15px; color: var(--ws-muted); text-decoration: none; white-space: nowrap;
}
.ws-sub a:hover { background: rgba(0,0,0,.05); color: var(--ws-ink); }

/* ── Burger (nur mobil) ─────────────────────────── */
.ws-burger { display: none; margin-left: auto; cursor: pointer; padding: 8px; }
.ws-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ws-ink); margin: 4px 0; transition: transform .2s, opacity .2s;
}

/* Hamburger-Menü früher (≤920px statt 760): mit sieben Menüpunkten + Twitch-
   Button wurde die volle Leiste schon ab ~800px zu eng (Umbruch bei „Über mich").
   Unter 920px klappt das Menü in den Hamburger. */
@media (max-width: 920px) {
  /* Die Anzeige bleibt sichtbar (verkuerzt) und rueckt links neben den Burger.
     Im Markup steht sie hinter ihm – order dreht das nur fuer die Anzeige um. */
  .ws-tw    { order: 1; margin-left: auto; }
  .ws-burger { display: block; order: 2; margin-left: 10px; }
  .ws-nav   { order: 3; }
  /* Ohne JS: das versteckte Kontrollkästchen schaltet das Menü.
     Die Flaeche ist nur so hoch wie ihr Inhalt (kein weisser Rand mehr unter
     dem letzten Punkt) und unten abgerundet. */
  .ws-nav {
    position: fixed; inset: var(--ws-head-h) 0 auto 0;
    background: #fff;
    padding: 0; margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease, padding .25s ease, box-shadow .25s ease;
    box-shadow: none;
    border-radius: 0 0 16px 16px;
  }
  /* Erst wenn offen: Innenabstand und Schatten. Zu = 0 Hoehe, 0 Abstand,
     kein Schatten – dann ist auch kein weisser Streifen sichtbar. */
  .ws-burger-cb:checked ~ .ws-nav {
    max-height: calc(100vh - var(--ws-head-h)); overflow: auto;
    padding: 6px 0 8px; box-shadow: 0 16px 30px rgba(0,0,0,.12);
  }
  .ws-burger-cb:checked ~ .ws-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .ws-burger-cb:checked ~ .ws-burger span:nth-child(2) { opacity: 0; }
  .ws-burger-cb:checked ~ .ws-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .ws-nav-l1 { flex-direction: column; align-items: stretch; gap: 0; }
  /* Ganze Zeile klickbar: der Link fuellt die Breite, nicht nur der Text. */
  .ws-a {
    display: flex; width: 100%;
    padding: 15px 18px; font-size: 16px; border-radius: 0;
    justify-content: space-between;
  }
  .ws-a.on::after { left: 18px; right: auto; width: 18px; bottom: 9px; }
  .ws-li + .ws-li { border-top: 1px solid var(--ws-line); }
  /* Untermenü mobil: immer offen, eingerückt – kein Hover auf Touch. Die
     Unterpunkte fuellen ebenfalls die ganze Zeile. */
  .ws-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding: 0; min-width: 0;
  }
  .ws-sub a { display: block; padding: 12px 18px 12px 32px; font-size: 15px; }
  .ws-caret { display: none; }
}

/* ── Fußzeile ───────────────────────────────────── */
.ws-foot { border-top: 1px solid var(--ws-line); background: #fff; }
.ws-foot-in {
  max-width: var(--ws-head-w); margin: 0 auto; padding: 26px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; font-size: 12.5px; color: var(--ws-muted);
}
.ws-foot-legal { display: flex; gap: 16px; }
.ws-foot a { color: var(--ws-muted); text-decoration: none; }
.ws-foot a:hover { text-decoration: underline; }
/* Auf dem Handy zentriert (wie bei den Landingpages): Copyright und Links
   untereinander, mittig – statt links/rechts auseinandergezogen. */
@media (max-width: 640px) {
  .ws-foot-in { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .ws-foot-legal { justify-content: center; flex-wrap: wrap; }
}

/* Entwurf-Hinweis – nur für eingeloggte Admins */
.ws-draft {
  background: #fef3c7; color: #92400e; text-align: center;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700;
}
.ws-draft a { color: #92400e; }

/* 404 */
.ws-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; background: #12151a; color: #fff;
}
.ws-404 h1 { font-size: 24px; margin: 0; }
.ws-404 p { color: #9aa3b2; margin-top: 8px; }
.ws-404-home {
  display: inline-block; margin-top: 6px; padding: 10px 20px; border-radius: 999px;
  background: #fff; color: #12151a; text-decoration: none; font-weight: 700; font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .ws-nav, .ws-sub, .ws-a, .ws-burger span { transition: none !important; }
}

/* ── „Nackte" Ansicht (?bare=1) ──────────────────────
   Rechtstexte (Impressum/Datenschutz), aus einer Landingpage geöffnet: kein
   großes Website-Menü, nur ein schmaler Zurück-Link oben und unten. */
.ws-bare-bar {
  max-width: var(--ws-head-w); margin: 0 auto; padding: 16px 20px;
}
.ws-bare-foot {
  max-width: var(--ws-head-w); margin: 0 auto; padding: 24px 20px 40px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.ws-bare-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ws-accent); text-decoration: none; font-weight: 600; font-size: 15px;
}
.ws-bare-back:hover { text-decoration: underline; }
