/* Gemeinsamer Rahmen fuer alle Seiten unter lauaul.de (auf jeder Seite unter /_shared/frame.css):
   Farben (Blau mit roten Akzenten), Hintergrund + Koernung, Kopfzeile mit Anmelden, Rechtliches unten (immer sichtbar),
   Anmelde-Fenster (Twitch oder Discord). Alles mit Praefix f- / --f-, damit es sich nicht mit den Seiten-Stilen beisst.
   Gegenstueck: /_shared/frame.js */
@font-face { font-family: 'Hanken Grotesk'; src: url('/_shared/fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Unbounded Black (SIL OFL, fonts/unbounded-LICENSE.txt) */
@font-face { font-family: 'Unbounded'; src: url('/_shared/fonts/unbounded-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
:root {
  --f-bg: #020617;
  --f-navy: #071030;
  --f-blue: #2f6bff;
  --f-blue-l: #6f9bff;
  --f-red: #ff2b2b;
  --f-text: #edf2ff;
  --f-dim: #8d9bc4;
  --f-line: rgba(130, 160, 255, .12);
  --f-line2: rgba(130, 160, 255, .24);
  --f-glass: rgba(9, 18, 48, .55);
  --f-pad: clamp(16px, 3.6vw, 140px);
  --f-ease: cubic-bezier(.16, .84, .24, 1);
  --f-legal: 44px;
  color-scheme: dark;
}
html { background: var(--f-bg); }
body.f-body { margin: 0; min-height: 100svh; padding: 76px 0 var(--f-legal); color: var(--f-text); background: var(--f-bg); font: 400 clamp(15px, .95vw, 22px)/1.55 'Hanken Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.f-body) a { color: inherit; text-decoration: none; } /* :where = schwach, Knopf-Farben der Seiten gewinnen */

/* Hintergrund + Koernung */
.f-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% -5%, rgba(47, 107, 255, .42), transparent 70%),
    radial-gradient(55% 45% at 105% 30%, rgba(30, 64, 200, .38), transparent 70%),
    radial-gradient(70% 60% at 45% 115%, rgba(29, 78, 216, .34), transparent 70%),
    radial-gradient(28% 22% at 92% 92%, rgba(255, 43, 43, .14), transparent 70%),
    var(--f-bg); }
.f-grain { position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .9 0 0 0 0 .92 0 0 0 0 1 0 0 0 1.1 -.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: f-grain .9s steps(7) infinite; }
@keyframes f-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-4%, 3%); } 100% { transform: translate(0, 0); } }
.f-body > main, .f-body > .f-main { position: relative; z-index: 1; }

/* Knoepfe */
.f-pill { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 2.7em; padding: 0 1.4em; border-radius: 99px; border: 1px solid var(--f-text); background: var(--f-text); color: var(--f-bg) !important; font: 700 .92em/1 'Hanken Grotesk', sans-serif; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--f-ease); }
.f-pill:hover { background: var(--f-red); border-color: var(--f-red); color: #fff !important; }
.f-pill.ghost { background: rgba(9, 18, 48, .45); color: var(--f-text) !important; border-color: var(--f-line2); backdrop-filter: blur(10px); }
.f-pill.ghost:hover { border-color: var(--f-blue-l); background: rgba(47, 107, 255, .18); }
.f-pill:active { transform: scale(.97); }
.f-ico { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; flex: none; }
.f-ico svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* Kopfzeile */
.f-nav { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(2, 6, 23, .66); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--f-line); }
/* Ebene 1: Logo | Seiten | Konto */
.f-row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: max(13px, env(safe-area-inset-top)) var(--f-pad) 13px; }
/* Ebene 2: Bereiche der aktuellen Seite (z. B. Startseite) */
.f-sub { display: flex; justify-content: center; gap: clamp(14px, 2vw, 40px); padding: 0 var(--f-pad); height: 36px; align-items: center; border-top: 1px solid var(--f-line); font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--f-dim); }
.f-sub a { position: relative; padding: 4px 0; transition: color .3s; }
.f-sub a:hover, .f-sub a.on { color: var(--f-text); }
.f-sub a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--f-red); }
body.f-body.f-has-sub { padding-top: 112px; }
/* Fehlende Verbindung: Knopf oben + Punkt am Profilbild */
.f-chip { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 99px; font-size: .82em; font-weight: 800; color: #fff !important; transition: filter .3s, transform .3s var(--f-ease); }
.f-chip.discord { background: #5865f2; box-shadow: 0 8px 24px -10px #5865f2; }
.f-chip.twitch { background: #9146ff; box-shadow: 0 8px 24px -10px #9146ff; }
.f-chip:hover { filter: brightness(1.12); transform: translateY(-1px); }
.f-chip .f-ico { width: 1.1em; height: 1.1em; }
.f-avatar { position: relative; }
.f-avatar.has-dot::after { content: ''; position: absolute; right: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--f-red); border: 2px solid var(--f-bg); }
.f-conns { display: flex; gap: 6px; padding: 8px 10px 4px; }
.f-conn { display: inline-flex; align-items: center; gap: .35em; padding: .2em .6em; border-radius: 99px; font-size: .78em; font-weight: 700; border: 1px solid var(--f-line2); }
.f-conn .f-ico { width: 1em; height: 1em; }
.f-conn.on { color: #9ff0c4; border-color: rgba(110, 231, 168, .35); }
.f-conn.off { color: var(--f-dim); }
.f-menu a.f-connect { display: flex; align-items: center; gap: .5em; margin: 6px 4px; color: #fff; font-weight: 800; justify-content: center; }
.f-menu a.f-connect.discord { background: #5865f2; }
.f-menu a.f-connect.twitch { background: #9146ff; }
.f-menu a.f-connect:hover { filter: brightness(1.1); background-image: none; }
/* Einmaliger Hinweis unten rechts */
.f-promo { position: fixed; z-index: 45; right: var(--f-pad); bottom: calc(var(--f-legal) + 16px); width: min(340px, calc(100vw - 32px)); display: grid; gap: 8px; justify-items: start; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--f-line2); background: rgba(7, 16, 48, .96); box-shadow: 0 30px 80px -30px #000; animation: f-in .5s var(--f-ease); }
.f-promo > .f-ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: #fff; background: #5865f2; }
.f-promo.twitch > .f-ico { background: #9146ff; }
.f-promo p { margin: 0; color: var(--f-dim); font-size: .9em; }
.f-promo .f-close { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; }
.f-both { padding: 10px 12px; border-radius: 12px; background: rgba(88, 101, 242, .14); border: 1px solid rgba(88, 101, 242, .4); font-size: .88em; }
.f-both b { color: var(--f-text); }
.f-logo { justify-self: start; font: 900 1.05em/1 'Unbounded', sans-serif; letter-spacing: -.03em; }
.f-logo small { margin-left: .5em; font: 700 .62em/1 'Hanken Grotesk', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--f-red); }
.f-links { display: flex; gap: clamp(14px, 2.2vw, 48px); font-size: .9em; color: var(--f-dim); }
.f-links a { position: relative; padding: 6px 0; transition: color .3s; }
.f-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--f-red); transform: scaleX(0); transition: transform .5s var(--f-ease); }
.f-links a:hover, .f-links a.on { color: var(--f-text); }
.f-links a.on::after { transform: scaleX(1); }
.f-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.f-avatar { width: 38px; height: 38px; padding: 0; border: 2px solid var(--f-line2); border-radius: 50%; overflow: hidden; background: var(--f-navy); cursor: pointer; transition: border-color .3s; }
.f-avatar:hover { border-color: var(--f-red); }
.f-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-menu { position: absolute; right: var(--f-pad); top: calc(100% + 6px); display: grid; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--f-line2); background: rgba(7, 16, 48, .96); box-shadow: 0 24px 60px -20px #000; }
.f-menu[hidden] { display: none; }
.f-menu p { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--f-line); font-weight: 700; }
.f-menu p small { display: block; color: var(--f-dim); font-weight: 400; }
.f-menu a, .f-menu button { padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--f-text); font: inherit; text-align: left; cursor: pointer; }
.f-menu a:hover, .f-menu button:hover { background: rgba(47, 107, 255, .18); }

/* Rechtliches: immer sichtbar */
.f-legal { position: fixed; inset: auto 0 0; z-index: 30; height: var(--f-legal); display: flex; align-items: center; gap: 16px; padding: 0 var(--f-pad) env(safe-area-inset-bottom);
  background: rgba(2, 6, 23, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--f-line); font-size: .78em; color: var(--f-dim); }
.f-legal nav { display: flex; gap: clamp(12px, 1.6vw, 32px); margin-left: auto; }
.f-legal a:hover { color: var(--f-text); }

/* Anmelde-Fenster */
.f-sheet { width: min(460px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--f-line2); border-radius: 20px; background: #061033; color: var(--f-text); box-shadow: 0 40px 120px -30px #000; }
.f-sheet::backdrop { background: rgba(2, 6, 23, .7); backdrop-filter: blur(6px); }
.f-sheet[open] { animation: f-in .35s var(--f-ease); }
@keyframes f-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.f-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.f-sheet-head p { margin: 0; font: 900 1.05em/1 'Unbounded', sans-serif; }
.f-close { width: 34px; height: 34px; border: 1px solid var(--f-line2); border-radius: 50%; background: none; color: var(--f-text); cursor: pointer; }
.f-sheet-body { display: grid; gap: 14px; padding: 6px 20px 22px; }
.f-sheet-body p { margin: 0; color: var(--f-dim); }
.f-perks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: .92em; color: var(--f-dim); }
.f-perks li { position: relative; padding-left: 14px; line-height: 1.45; }
.f-perks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--f-red); }
.f-perks b { color: var(--f-text); }
.f-login { display: flex; align-items: center; justify-content: center; gap: .7em; min-height: 3.1em; border-radius: 14px; color: #fff !important; font-weight: 800; transition: transform .3s var(--f-ease), filter .3s; }
.f-login:hover { transform: translateY(-2px); filter: brightness(1.1); }
.f-login.twitch { background: #9146ff; }
.f-login.discord { background: #5865f2; }
.f-small { font-size: .82em; }

.f-burger { display: none; }
@media (max-width: 760px) {
  .f-row { grid-template-columns: 1fr auto; }
  .f-links { display: none; }
  .f-burger { display: grid; place-content: center; gap: 5px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--f-line2); border-radius: 50%; background: rgba(9, 18, 48, .5); cursor: pointer; }
  .f-burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--f-text); transition: transform .3s var(--f-ease); }
  .f-nav.open .f-burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .f-nav.open .f-burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .f-nav.open .f-links { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0; padding: 6px var(--f-pad) 14px; background: rgba(2, 6, 23, .96); border-bottom: 1px solid var(--f-line); font-size: 1.05em; }
  .f-nav.open .f-links a { padding: 12px 0; border-bottom: 1px solid var(--f-line); }
  .f-nav.open .f-links a::after { display: none; }
  .f-sub { display: none; }
  body.f-body.f-has-sub { padding-top: 76px; }
  .f-chip span { display: none; }
  .f-chip { padding: .5em; }
  .f-legal { --f-legal: 40px; font-size: .72em; }
  .f-legal > span { display: none; }
  .f-legal nav { width: 100%; justify-content: space-between; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .f-grain, .f-sheet[open] { animation: none; } }

/* "Verwalten"-Fenster des Inhabers (28.11.2026) */
.f-manage { position: fixed; inset: 0 0 0 auto; width: min(980px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--f-line); background: #050b1a; color: var(--f-text); display: flex; flex-direction: column; }
.f-manage[open] { display: flex; }
.f-manage::backdrop { background: rgba(2, 6, 23, .6); backdrop-filter: blur(3px); }
.f-manage-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--f-line); flex-wrap: wrap; }
.f-manage-head small { color: var(--f-dim); flex: 1; min-width: 180px; }
.f-manage-full { color: var(--f-blue-l); font-size: .85em; font-weight: 700; }
.f-manage iframe { flex: 1; width: 100%; border: 0; background: #050b1a; }
.f-manage-btn { white-space: nowrap; }
@media (max-width: 720px) { .f-manage-btn { padding-inline: .7em; font-size: .85em; } }
