/* Erstellt: 15.11.2026, 08:45 Uhr (Europe/Berlin).
   MassiveCube PR.09.05–PR.11 / Renderer-Vertrag v1: Stylesheet der öffentlichen Streamer-Seite.
   Werte kommen ausschließlich über die Design-Tokens (--pv-*) aus dem Theme; Klassen siehe renderer-contract-v1.md.
   Mobile first; auf dem Handy Burger-Menü statt horizontal scrollender Leiste (Betreiberanforderung PR.06.05).
   Geändert: 16.11.2026, 08:31 Uhr (Europe/Berlin) – volle Breite mit mitwachsendem Rand (--pv-gutter), mehr Spalten auf breiten Bildschirmen,
     Lesebreite für Fließtext, waagrecht scrollbare Tabellen in HTML-Blöcken (Betreiberwunsch).
   Geändert: 16.11.2026, 05:38 Uhr (Europe/Berlin) – PR.13 Wunschkarten/Spiele/Suche/Seiten, PR.19 Schutz geschützter Elemente. */

/* ===== Lokale Schriften (kein externer Abruf) ===== */
@font-face { font-family: 'PlayVault Josefin Sans'; src: url('fonts/JosefinSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PlayVault Lato'; src: url('fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PlayVault Nunito'; src: url('fonts/Nunito-ExtraLight.ttf') format('truetype'); font-weight: 200 400; font-display: swap; }
@font-face { font-family: 'PlayVault Roboto'; src: url('fonts/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* ===== Grundlage ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pv-bg); color: var(--pv-fg); font-family: var(--pv-font); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--pv-accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.pv-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--pv-card); padding: 8px 12px; border-radius: 8px; }
.pv-skip:focus { left: 8px; }
.pv { min-height: 100vh; display: flex; flex-direction: column; --pv-gutter: clamp(16px, 3vw, 48px); }

/* ===== Kopf ===== */
.pv-banner { height: 120px; background: var(--pv-banner); overflow: hidden; }
.pv-banner.has-image img { width: 100%; height: 100%; object-fit: cover; }
.pv-head { width: 100%; margin: -40px 0 0; padding: 0 var(--pv-gutter); display: flex; gap: 14px; align-items: flex-end; position: relative; flex-wrap: wrap; }
.pv-avatar { width: 84px; height: 84px; border-radius: var(--pv-avatar-radius); background: var(--pv-accent); color: var(--pv-on-accent);
  border: 4px solid var(--pv-bg); display: grid; place-items: center; font-weight: 800; font-size: 28px; flex-shrink: 0; object-fit: cover; }
.pv-id { flex: 1; min-width: 0; padding-bottom: 4px; }
.pv-name { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.pv-tag { margin: 2px 0 0; color: var(--pv-muted); }
.pv-name, .pv-tag, .pv-text, .pv-link b, .pv-link small, .pv-game-title, .pv-page h2, .pv-card h2 { overflow-wrap: anywhere; word-break: break-word; }

/* ===== Navigation: Handy = Burger-Menü, ab 761px = Leiste ===== */
.pv-nav { width: 100%; margin: 14px 0 0; padding: 0 var(--pv-gutter); border-bottom: 1px solid var(--pv-line); position: relative; }
.pv-burger { display: none; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; padding: 12px 2px;
  min-height: 48px; font: inherit; font-weight: 700; color: var(--pv-fg); cursor: pointer; }
.pv-burger .lbl { display: flex; align-items: center; gap: 8px; }
.pv-burger .cur { font-weight: 500; color: var(--pv-muted); }
.pv-burger .ico:last-child { transition: transform .2s; }
.pv-nav.open .pv-burger .ico:last-child { transform: rotate(180deg); }
.js .pv-burger { display: flex; }
.pv-navlist { list-style: none; margin: 0; padding: 0; }
.js .pv-navlist { display: none; }
.js .pv-nav.open .pv-navlist { display: flex; flex-direction: column; position: absolute; left: 12px; right: 12px; top: 100%; z-index: 5;
  background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.pv-navlist a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; text-decoration: none; color: var(--pv-fg); border-radius: 10px; }
.pv-navlist a[aria-current="page"] { background: var(--pv-soft); box-shadow: inset 4px 0 0 var(--pv-accent); font-weight: 700; }

/* ===== Inhalt ===== */
.pv-main { width: 100%; margin: 0; padding: 18px var(--pv-gutter) 40px; display: grid; gap: 16px; grid-template-columns: 1fr; flex: 1; }
.pv-card { background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: var(--pv-radius); padding: 18px; box-shadow: var(--pv-shadow); min-width: 0; }
.pv-card h1, .pv-card h2 { margin: 0 0 10px; font-size: 19px; }
.pv-card h3, .pv-card h4 { margin: 16px 0 6px; }
.pv-card p { margin: 0 0 10px; }
.pv-more, .pv-empty, .pv-hint { color: var(--pv-muted); font-size: 14px; }
.pv-hint { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--pv-soft); color: var(--pv-fg); }
.pv-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--pv-accent); color: var(--pv-on-accent); font-weight: 700; text-decoration: none; }
.pv-gift { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 12px;
  background: var(--pv-gift); color: var(--pv-on-gift); font-weight: 800; text-decoration: none; }
.pv-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv-link { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; border: 1px solid var(--pv-line); border-radius: 12px;
  background: var(--pv-card-2); text-decoration: none; min-width: 0; }
.pv-link > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.pv-link small { color: var(--pv-muted); }
.pv-link.feature { border-color: var(--pv-accent); }
.pv-link-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--pv-soft); display: grid; place-items: center; flex-shrink: 0; object-fit: cover; }
.pv-group { font-size: 15px; color: var(--pv-muted); }
.pv-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.pv-game { border: 1px solid var(--pv-line); border-radius: calc(var(--pv-radius) - 4px); background: var(--pv-card-2); }
.pv-game-body { padding: 12px; }
.pv-game-title { font-weight: 700; margin: 0; }
.pv-comment { color: var(--pv-muted); font-style: italic; font-size: 14px; }
.pv-search { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; color: var(--pv-muted); }
.pv-search input { font: inherit; color: var(--pv-fg); background: var(--pv-card-2); border: 1px solid var(--pv-line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.pv-commands { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-cmd { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pv-line); }
.pv-cmd code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--pv-soft); padding: 2px 8px; border-radius: 6px; align-self: start; overflow-wrap: anywhere; }
.pv-cmd p { margin: 2px 0 0; color: var(--pv-muted); font-size: 14px; }
.pv-alias { color: var(--pv-muted); }
.pv-block { margin: 14px 0; }
.pv-figure { margin: 0; }
.pv-figure img { border-radius: calc(var(--pv-radius) - 4px); }
.pv-figure figcaption { font-size: 13px; color: var(--pv-muted); margin-top: 4px; }
.pv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pv-image-text { display: grid; gap: 14px; }
.pv-faq details { border-top: 1px solid var(--pv-line); padding: 10px 0; }
.pv-faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.pv-error { max-width: 640px; }

/* ===== Steam-Wunschliste und Spiele (PR.13) ===== */
.pv-game { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.pv-cover { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; background: var(--pv-soft); }
.pv-cover-ph { display: block; background: linear-gradient(135deg, var(--pv-soft), var(--pv-card-2)); }
.pv-game-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pv-game-title { font-size: 16px; line-height: 1.3; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pv-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--pv-accent); color: var(--pv-on-accent); }
.pv-badge.soft { background: var(--pv-soft); color: var(--pv-fg); font-weight: 600; }
.pv-edition { margin: 0; font-size: 13px; color: var(--pv-muted); }
.pv-comment { margin: 0; }
.pv-game-actions { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-gift.small { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.pv-store { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; color: var(--pv-muted); }
.pv-wish-mini { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.pv-wish-mini li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-wish-mini img, .pv-wish-mini .pv-cover-ph { width: 92px; height: 43px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.pv-wish-mini span:last-child { overflow-wrap: anywhere; font-weight: 600; }
.pv-search { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pv-search label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; }
.pv-search .pv-button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pv-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pv-line);
  text-decoration: none; background: var(--pv-card-2); }
.pv-chips a[aria-current="true"] { border-color: var(--pv-accent); box-shadow: inset 0 0 0 1px var(--pv-accent); font-weight: 700; }
.pv-count { margin: 0 0 8px; color: var(--pv-muted); font-size: 14px; }
.pv-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.pv-pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--pv-line);
  text-decoration: none; background: var(--pv-card-2); font-weight: 600; }
.pv-library { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pv-library a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px; border: 1px solid var(--pv-line); border-radius: 10px;
  background: var(--pv-card-2); text-decoration: none; min-width: 0; }
.pv-library img, .pv-library .pv-cover-ph { width: 100%; aspect-ratio: 231 / 108; border-radius: 6px; object-fit: cover; }
.pv-lib-title { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

/* ===== Geschützte Elemente (PR.19): eigenes CSS darf sie weder verstecken noch überdecken =====
   Eigenes CSS kann kein !important setzen (Filter entfernt es) – diese Regeln haben deshalb immer Vorrang.
   data-pv-protected     = das geschützte Element samt Inhalt (Geschenk-Button, Steam-Hinweis)
   data-pv-protected-box = Behälter eines geschützten Elements (darf gestaltet, aber nicht versteckt werden) */
.pv [data-pv-protected], .pv [data-pv-protected] * { visibility: visible !important; opacity: 1 !important; transform: none !important;
  filter: none !important; clip-path: none !important; pointer-events: auto !important; font-size: max(14px, 1em) !important;
  letter-spacing: normal !important; word-spacing: normal !important; text-indent: 0 !important; color: var(--pv-fg) !important; }
.pv [data-pv-protected] { display: revert !important; position: relative !important; z-index: 3 !important; width: auto !important;
  height: auto !important; max-height: none !important; overflow: visible !important; }
.pv a.pv-gift[data-pv-protected] { display: inline-flex !important; background: var(--pv-gift) !important; color: var(--pv-on-gift) !important; min-height: 48px !important; }
.pv a.pv-gift[data-pv-protected] * { color: var(--pv-on-gift) !important; }
.pv .pv-hint[data-pv-protected] { display: block !important; background: var(--pv-soft) !important; }
.pv [data-pv-protected-box] { display: block !important; visibility: visible !important; opacity: 1 !important; transform: none !important;
  filter: none !important; clip-path: none !important; height: auto !important; max-height: none !important; overflow: visible !important; }
.pv-nav, .pv-foot { position: relative; z-index: 4; background: var(--pv-bg); }
.pv-html { overflow-x: auto; }
.pv-html table { border-collapse: collapse; width: 100%; }
.pv-html th, .pv-html td { border: 1px solid var(--pv-line); padding: 6px 8px; text-align: left; }
.pv-html img { border-radius: 8px; }
.pv-html blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--pv-accent); }

/* ===== Fußzeile (geschützt) ===== */
.pv-foot { border-top: 1px solid var(--pv-line); padding: 16px var(--pv-gutter); text-align: center; font-size: 13px; color: var(--pv-muted); }

/* ===== Tablet/Desktop ===== */
@media (min-width: 761px) {
  .pv-banner { height: 200px; }
  .pv-head { margin-top: -52px; }
  .pv-avatar { width: 104px; height: 104px; font-size: 34px; }
  .pv-name { font-size: 30px; }
  .pv-burger, .js .pv-burger { display: none; }
  .js .pv-navlist, .pv-navlist { display: flex; flex-wrap: wrap; gap: 4px; position: static; }
  .js .pv-nav.open .pv-navlist { position: static; flex-direction: row; box-shadow: none; border: 0; padding: 0; background: none; }
  .pv-navlist a { border-radius: 0; border-bottom: 3px solid transparent; color: var(--pv-muted); }
  .pv-navlist a[aria-current="page"] { background: none; box-shadow: none; border-color: var(--pv-accent); color: var(--pv-fg); }
  .pv-main { padding-top: 22px; padding-bottom: 48px; grid-template-columns: 1.6fr 1fr; gap: 20px; }
  .pv-wide, .pv-error { grid-column: 1 / -1; }
  .tile-about { grid-row: span 2; }
  .pv-gallery { grid-template-columns: repeat(3, 1fr); }
  .pv-image-text.is-image-left, .pv-image-text.is-image-right { grid-template-columns: 1fr 1fr; align-items: start; }
  .pv-image-text.is-image-right .pv-figure { order: 2; }
  /* Bento-Raster: Kacheln, „Über mich“ farbig hervorgehoben */
  .layout-bento .pv-main { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .layout-bento .tile-about { grid-column: span 2; grid-row: span 1; background: var(--pv-accent); color: var(--pv-on-accent); border-color: var(--pv-accent); }
  .layout-bento .tile-about a { color: inherit; }
  .layout-bento .tile-wish { grid-column: span 2; }
  .layout-bento .tile-links { grid-column: span 2; }
  .layout-bento .tile-new { grid-column: span 2; }
  .layout-bento .tile-games { grid-column: span 2; }
  .layout-bento .pv-wide { grid-column: 1 / -1; }
}

/* ===== Breite Bildschirme: Platz nutzen, Fließtext lesbar halten ===== */
.pv-card p, .pv-text, .pv-card li { max-width: 90ch; }
.pv-games li, .pv-library li, .pv-wish-mini li, .pv-links li { max-width: none; }
@media (min-width: 1280px) {
  .pv-banner { height: 240px; }
  .pv-gallery { grid-template-columns: repeat(4, 1fr); }
  .pv-games { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
}
@media (min-width: 1440px) {
  .layout-bento .pv-main { grid-template-columns: repeat(6, 1fr); }
  .layout-bento .pv-main > .pv-card { grid-column: span 2; }
  .layout-bento .pv-main > .pv-wide, .layout-bento .pv-main > .pv-error { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
