/* Goetschi Labs design DNA: product-specific colors, clear states, accessible controls.
   Source: GoetschiM/Goetschi-Labs-Corporate-identity-/docs/BRAND-GUIDELINES.md */
/* Goetschi Labs Corporate Identity v2 (Brand DNA v1.0.002): ruhig, hochwertig, technologisch.
   Tokens folgen den semantischen CI-Rollen background / surface / text / accent / focus / status.
   Original-Marke und Netzwerkmotiv: public/assets/brand/ (Herkunft in README.md). */
@font-face{font-family:"Sora";src:url(/ui/fonts/sora-latin-wght-normal.woff2) format("woff2");font-weight:100 800;font-display:swap}
@font-face{font-family:"Manrope";src:url(/ui/fonts/manrope-latin-wght-normal.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/ui/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");font-weight:100 800;font-display:swap}
:root {
  color-scheme: dark;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bg: #060b11; --bg-elevated: #09121b; --surface: #0d1823; --surface-hi: #13212f;
  --text: #e4ebf2; --muted: #8da2b5; --line: #1b2c3c; --line-strong: #2a4157;
  --accent: #3aaef2; --accent-deep: #1f6fe0; --accent-ink: #031420;
  --warm: #d7bfa3; --gold: #d7bfa3; --focus: #8fd3ff;
  --success: #5fd0a0; --warning: #e8b765; --danger: #ef7b86;
  --radius-control: 4px; --radius-panel: 10px;
  --shadow: 0 24px 70px rgba(0,0,0,.38); --brand-art-opacity: .8;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f6; --bg-elevated: #e5ebf1; --surface: #fff; --surface-hi: #f3f6fa;
  --text: #0e1a26; --muted: #46596b; --line: #d0dbe5; --line-strong: #aebfce;
  --accent: #0b64b0; --accent-deep: #0b64b0; --accent-ink: #fff;
  --warm: #7a5a2f; --gold: #7a5a2f; --focus: #0b64b0;
  --success: #17795a; --warning: #8a5a0a; --danger: #b3263a;
  --shadow: 0 18px 50px rgba(20,45,70,.12); --brand-art-opacity: 0;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #eef2f6; --bg-elevated: #e5ebf1; --surface: #fff; --surface-hi: #f3f6fa;
    --text: #0e1a26; --muted: #46596b; --line: #d0dbe5; --line-strong: #aebfce;
    --accent: #0b64b0; --accent-deep: #0b64b0; --accent-ink: #fff;
    --warm: #7a5a2f; --gold: #7a5a2f; --focus: #0b64b0;
    --success: #17795a; --warning: #8a5a0a; --danger: #b3263a;
    --shadow: 0 18px 50px rgba(20,45,70,.12); --brand-art-opacity: 0;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font-body); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -100px; background: var(--accent);
  color: var(--accent-ink); padding: 10px 18px; border-radius: 8px; z-index: 9999; }
.skip-link:focus { top: 12px; }
.shell { width: min(1320px, calc(100% - 48px)); margin: auto; }
.site-header { display: flex; align-items: center; gap: clamp(14px,3vw,38px);
  min-height: 96px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand img { border-radius: 12px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.brand-copy strong { font-size: 18px; letter-spacing: -.035em; font-weight: 770; }
.brand-copy strong span { color: var(--accent); }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .19em; font-weight: 700; }
.primary-nav, .header-actions { display: flex; align-items: center; gap: 9px; }
.primary-nav { margin-right: auto; }
.nav-link { padding: 10px 14px; text-decoration: none; border-radius: 11px;
  color: var(--muted); font-size: 13px; font-weight: 660; }
.nav-link:hover, .nav-link.current { color: var(--text); background: var(--surface); }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
.theme-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.theme-control select { border: 1px solid var(--line); border-radius: 9px; color: var(--text);
  padding: 7px 26px 7px 10px; background: var(--surface); max-width: 110px; }
.session-tools { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.user-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.text-button { color: var(--accent); background: transparent; border: 1px solid var(--line);
  border-radius: 9px; min-height: 38px; padding: 7px 12px; font-weight: 650; }
.text-button:hover { background: var(--surface); }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: stretch; gap: 38px; margin: 35px 0 65px; }
.hero-copy { min-height: 360px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 770; letter-spacing: .21em; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .admin-hero h1 { max-width: 700px; margin: 14px 0 19px;
  font-size: clamp(42px, 5.5vw, 76px); font-weight: 780; letter-spacing: -.065em; line-height: 1.035; }
.hero h1 em, .admin-hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(15px,1.5vw,18px); color: var(--muted); max-width: 58ch; line-height: 1.65; }
.hero-cta, .primary-button { display: inline-flex; align-items: center; justify-content: space-between;
  gap: 26px; border: 0; border-radius: 11px; background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; min-height: 48px; text-decoration: none; font-size: 14px; font-weight: 780; }
.hero-cta:hover, .primary-button:hover { filter: brightness(1.08); }
.hero-note { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.spotlight { position: relative; isolation: isolate; min-height: 365px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 23px; background: var(--surface);
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; }
.spotlight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,12,18,.24), rgba(3,12,18,.91)); }
.spotlight-inner { padding: 26px; color: #fff; }
.spotlight .section-kicker { color: #a7f3da; }
.spotlight h2 { font-size: 31px; line-height: 1.1; letter-spacing: -.04em; margin: 10px 0; }
.spotlight p { color: #d6e6e3; font-size: 13px; }
.spotlight-link { display: inline-block; padding: 9px 15px; border: 1px solid rgba(255,255,255,.58);
  border-radius: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.section-kicker { margin-bottom: 9px; }
.section-heading h2 { font-size: clamp(25px, 3vw, 36px); letter-spacing: -.05em; line-height: 1.1; margin-bottom: 8px; }
.section-description { color: var(--muted); font-size: 14px; max-width: 62ch; }
.count-pill, .admin-count { color: var(--accent); background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap; border-radius: 99px; padding: 8px 13px; font-size: 12px; font-weight: 700; }
.library-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
  margin: 25px 0 23px; }
.search-field { display: flex; align-items: center; gap: 9px; flex: 1 1 260px; max-width: 420px;
  min-height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 23%, transparent); }
.search-field input { border: 0; outline: 0; background: transparent; color: var(--text); min-width: 0; width: 100%; }
.search-field input::placeholder { color: var(--muted); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  color: var(--muted); font-size: 12px; font-weight: 750; min-height: 41px; }
.filter-button:hover { color: var(--text); }
.filter-button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.game-grid { display: grid; gap: 19px; grid-template-columns: repeat(auto-fill, minmax(min(100%,250px),1fr)); }
.game-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--text);
  text-decoration: none; border-radius: 17px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.game-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg,color-mix(in srgb,var(--game-accent) 26%,var(--bg-elevated)),var(--bg-elevated)); }
.game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .game-cover img { transform: scale(1.04); }
.game-fallback { font-size: 62px; font-weight: 800; color: var(--game-accent); }
.game-cover:has(img) .game-fallback { position: absolute; }
.game-cover img { position: absolute; inset: 0; }
.game-kind { position: absolute; left: 12px; top: 12px; border-radius: 7px; padding: 5px 8px;
  background: rgba(6,19,25,.85); color: #e6f9f3; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.game-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.game-info h3 { font-size: 19px; letter-spacing: -.04em; margin-bottom: 0; }
.game-subtitle { color: var(--accent); font-size: 12px; font-weight: 660; }
.game-description { color: var(--muted); font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.game-tag { color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; font-size: 10px; }
.game-action { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 11px;
  color: var(--accent); font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; }
.state { background: var(--surface); border: 1px dashed var(--line); color: var(--muted);
  padding: 45px 22px; border-radius: 15px; text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 82px;
  padding: 24px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--text); }
.site-footer a { color: var(--accent); }
/* Administration */
.admin-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 44px 0 18px; }
.admin-hero h1 { font-size: clamp(32px,4.5vw,55px); margin: 8px 0 14px; }
.admin-status { padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-elevated);
  color: var(--muted); margin: 20px 0; }
.admin-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.panel { margin: 0; padding: clamp(20px,2.3vw,29px); border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface); }
.panel-header { display: flex; gap: 13px; align-items: center; }
.panel-symbol { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px;
  color: var(--accent); background: var(--surface-hi); font-size: 21px; font-weight: 700; }
.panel h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.panel .section-kicker { margin-bottom: 1px; }
.panel-description, .helper-text { color: var(--muted); font-size: 13px; margin: 13px 0 22px; }
.panel form { display: flex; flex-direction: column; gap: 15px; }
.panel label { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 13px; font-weight: 680; }
.panel input, .panel select, .panel textarea { width: 100%; min-height: 45px; padding: 10px 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; }
.panel textarea { min-height: 91px; resize: vertical; }
.panel input::placeholder, .panel textarea::placeholder { color: var(--muted); opacity: .8; }
.panel input[type="file"] { padding: 9px; }
.panel .check-line { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.5; font-weight: 500; }
.panel .check-line input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.panel .primary-button { align-self: flex-start; margin-top: 3px; }
.collection-panel { margin-top: 20px; }
.entries { margin-top: 20px; }
.entry { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry > div:first-child { min-width: 0; }
.entry strong { font-size: 15px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 12px; margin-top: 4px; }
.action { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.action button { border: 1px solid var(--line); color: var(--text); border-radius: 9px;
  min-height: 38px; padding: 8px 10px; background: var(--bg-elevated); font-size: 12px; font-weight: 650; }
.action button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; padding: 16px 0; }
  .primary-nav { order: 3; width: 100%; }
  .header-actions { margin-left: auto; }
  .hero { gap: 20px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 540px); }
  /* Mobile information architecture: brand, controls, then primary navigation. */
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 15px 0 10px;
  }
  .brand { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    order: initial;
    width: 100%;
    margin-right: 0;
    padding: 0 0 3px;
    gap: 7px;
  }
  .nav-link { min-height: 42px; display: inline-flex; align-items: center; }
  .theme-control { flex: 0 0 auto; }
  .theme-control span { display: none; }
  .theme-control select { width: 89px; max-width: 89px; min-height: 40px; padding: 6px; font-size: 12px; }
  .session-tools { flex-wrap: nowrap; gap: 7px; min-width: 0; }
  .user-pill {
    min-width: 0;
    max-width: 170px;
    padding: 7px 9px;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.25;
    font-size: 11px;
  }
  .text-button { min-height: 40px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }

  .site-header { gap: 10px; }
  .brand-copy strong { font-size: 17px; }
  .hero { grid-template-columns: 1fr; margin-top: 26px; gap: 20px; margin-bottom: 48px; }
  .hero-copy { min-height: 0; padding: 20px 0; }
  .hero h1 { font-size: clamp(41px, 11vw, 63px); }
  .spotlight { min-height: 300px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .library-toolbar { margin-top: 17px; align-items: stretch; }
  .search-field { flex-basis: 100%; max-width: none; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .filter-button { flex: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .game-info { padding: 12px; }
  .game-info h3 { font-size: 16px; }
  .game-description { -webkit-line-clamp: 2; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-columns { grid-template-columns: 1fr; }
  .entry { align-items: flex-start; flex-direction: column; }
  .action { justify-content: flex-start; }
  .site-footer { flex-direction: column; margin-top: 48px; }
}
@media (max-width: 400px) {
  .game-grid { grid-template-columns: 1fr; }
  .theme-control span { display: none; }
  .user-pill { max-width: 190px; }
  .header-actions { gap: 5px; width: 100%; justify-content: space-between; }
  .user-pill { max-width: 138px; padding: 7px; }
  .text-button { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
