/* RollBerry, Produktübersicht (www.rollberry.app/overview/). Konzept „Der Spieltisch“: warmes Lampenlicht auf dunklem
   Tisch, Farben aus dem RollBerry-Logo (Erdbeere, W20-Bernstein, Blatt) und aus den Produkten selbst (Messing von
   Sounds, Pergament der Tools). Die sechs Produkte werden beim Laden wie Karten ausgeteilt; das ist der einzige Effekt
   und steht bei reduzierter Bewegung still. Desktop-Apps tragen eine Fensterleiste, Browser-Apps eine Adressleiste mit
   ihrer echten Adresse. Schriften der Website: Bricolage Grotesque und Inter (SIL OFL 1.1). */

@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque-700-latin.c3b8902fad.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque-800-latin.7a2763b42c.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400-latin.dd9193fe2f.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600-latin.0d94a5546f.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #120d0a;
  --surface: #1b1410;
  --surface-2: #241a14;
  --well: #0b0907;
  --line: #3b2c22;
  --line-soft: #2a1f18;
  --ink: #f6efe4;
  --muted: #cbbfae;
  --faint: #a69885;
  --berry: #ec5a4b;
  --amber: #f2a14e;
  --leaf: #8fb36b;
  --brass: #edb54e;
  --parchment: #efe1c3;
  --focus: #f6efe4;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --text: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --gutter: 20px;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { position: relative; margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); font-kerning: normal; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: #1e1206; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: 12px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--focus); color: var(--ground); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Der Tisch: matter Spieltisch-Filz ohne Richtung (feines SVG-Rauschen als eigene Datei, die Richtlinie erlaubt
   keine data:-Bilder), zum Rand hin Dämmerung und darüber eine Lampe, deren Licht auf dem Filz liegt. Rein dekorativ. */
.table { position: relative; isolation: isolate; overflow-x: clip; padding-bottom: 96px; background-color: #1a120d;
  background-image: url('../assets/table.affdc90e32.svg'); }
.table::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 8%, rgb(8 5 3 / 0.05), rgb(8 5 3 / 0.55) 62%, rgb(8 5 3 / 0.85)); }
.table::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none;
  background: linear-gradient(rgb(255 226 186 / 0.06), rgb(0 0 0 / 0.55)); }
.lamp { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1150px; pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 0%, rgba(242, 161, 78, 0.2), rgba(242, 161, 78, 0) 72%),
    radial-gradient(30% 34% at 50% 0%, rgba(236, 90, 75, 0.12), rgba(236, 90, 75, 0) 70%); }

.wrap { width: 100%; max-width: calc(1208px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Kopf */
.top { border-bottom: 1px solid var(--line-soft); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 800 1.1875rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 36px; height: 36px; }
.lang { margin-left: auto; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.lang:hover { color: var(--ink); border-color: var(--faint); }

/* Kopfbereich */
.hero { padding: 56px 0 8px; }
.hero h1 { font: 800 2.875rem/1.02 var(--display); text-wrap: balance; }
.lead { margin-top: 24px; max-width: 40rem; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.promise { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.promise li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.promise svg { flex: none; width: 20px; height: 20px; color: var(--leaf); stroke-width: 2.4; }
@media (min-width: 760px) {
  .hero { padding-top: 80px; }
  .hero h1 { font-size: 4.5rem; line-height: 1; }
  .lead { margin-top: 28px; font-size: 1.25rem; }
  .promise { margin-top: 28px; }
}
/* Wide screens: the headline in two lines across the table, text and promises side by side below it, so the cards
   are dealt within the first view. */
@media (min-width: 1100px) {
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 6.25rem; line-height: 0.98; }
  .hero-text { display: grid; grid-template-columns: minmax(0, 40rem) auto; justify-content: space-between; align-items: end; column-gap: 48px; margin-top: 32px; }
  .hero .lead { margin-top: 0; }
  .hero .promise { flex-direction: column; gap: 8px; margin-top: 0; padding-bottom: 4px; }
}

/* Zwei Reihen auf dem Tisch: Desktop-Apps und Browser-Apps */
.shelf { margin-top: 64px; }
.shelf + .shelf { margin-top: 56px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.shelf-head h2 { font: 700 1.625rem/1.15 var(--display); }
.shelf-head p { color: var(--muted); }
@media (min-width: 760px) {
  .shelf { margin-top: 72px; }
  .shelf + .shelf { margin-top: 64px; }
  .shelf-head { margin-bottom: 28px; }
  .shelf-head h2 { font-size: 1.875rem; }
}
.deck { display: grid; gap: 20px; }
@media (min-width: 640px) and (max-width: 979px) {
  .deck-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-3 .tile:last-child { grid-column: 1 / -1; }
}
/* Four browser apps: two by two from tablet width on, so every card keeps the width of a readable text column. */
@media (min-width: 640px) { .deck-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .deck { gap: 24px; }
  .deck-2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .deck-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Eine Karte je Produkt. Der Link liegt auf dem Namen und deckt die ganze Karte ab; Hover und Fokus zeigt die Karte. */
.tile { --accent: var(--berry); position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%); box-shadow: 0 34px 60px -44px #000; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s; }
.tile:hover, .tile:focus-within { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 44px 80px -46px #000, 0 26px 90px -56px var(--accent); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.card-link:hover { color: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 4px; }
.t-sounds { --accent: var(--brass); }
.t-maps { --accent: var(--leaf); }
.t-tokenmaker { --accent: var(--amber); }
.t-tools { --accent: var(--parchment); }
.t-autor { --accent: var(--berry); }

.frame { margin: 12px 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--well); }
.bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); color: var(--faint); font-size: 0.8125rem; white-space: nowrap; }
.bar svg { flex: none; width: 15px; height: 15px; }
.bar .app { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-weight: 600; }
.bar .kind { margin-left: auto; }
.bar .url { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 3px 12px; border-radius: 999px; background: #1c1510; color: var(--muted); }
.shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--well); }
.deck-3 .shot { aspect-ratio: 4 / 3; }
@media (min-width: 980px) { .deck-2 .shot { aspect-ratio: auto; height: 360px; } }
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; object-position: center top; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.t-vtt .shot img { object-position: center 40%; }
.tile:hover .shot img, .tile:focus-within .shot img { transform: scale(1.035); }

.body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
@media (min-width: 760px) { .body { padding: 22px 24px 24px; } }
.body h3 { font: 700 1.5rem/1.1 var(--display); }
@media (min-width: 760px) { .body h3 { font-size: 1.6875rem; } }
.role { color: var(--accent); font-weight: 600; }
.desc { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.meta li { padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; color: var(--ink); }
.go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; }
.go svg { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.35s; }
.tile:hover .go svg, .tile:focus-within .go svg { transform: translateX(4px); }

/* Austeilen beim Laden: jede Karte kommt vom Stapel unten in der Mitte, leicht gedreht, nacheinander. Nur mit
   „backwards“, damit Hover danach wieder wirkt; der Tisch schneidet seitlich ab, damit dabei nichts quer scrollt. */
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: deal 0.95s cubic-bezier(0.16, 0.84, 0.3, 1) backwards; }
  .d1 { --from: translate3d(22%, 190px, 0) rotate(-8deg); animation-delay: 0.2s; }
  .d2 { --from: translate3d(-30%, 210px, 0) rotate(7deg); animation-delay: 0.32s; }
  .d3 { --from: translate3d(70%, 170px, 0) rotate(-6deg); animation-delay: 0.44s; }
  .d4 { --from: translate3d(0, 200px, 0) rotate(5deg); animation-delay: 0.56s; }
  .d5 { --from: translate3d(-70%, 170px, 0) rotate(8deg); animation-delay: 0.68s; }
  .d6 { --from: translate3d(-40%, 150px, 0) rotate(-5deg); animation-delay: 0.8s; }
  @keyframes deal { from { opacity: 0; transform: var(--from) scale(0.93); } }
}

/* Fuß */
.foot { padding: 36px 0 44px; color: var(--faint); font-size: 0.875rem; }
.foot-in { display: grid; gap: 18px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .logo { width: 28px; height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.credits { max-width: 62rem; }
.credits a { color: var(--muted); }
@media (min-width: 760px) {
  .table { padding-bottom: 120px; }
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .credits { grid-column: 1 / -1; }
}

/* Fehlerseite */
.not-found main { padding: 96px var(--gutter); max-width: 40rem; }
.not-found .nf-logo { width: 96px; height: 96px; margin-bottom: 28px; }
.not-found h1 { font: 800 2.5rem/1.1 var(--display); margin-bottom: 16px; }
.not-found p { color: var(--muted); }
.not-found p + p { margin-top: 8px; }
.not-found .nf-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 32px; font-size: 0.875rem; }
.not-found .nf-legal a { color: var(--muted); }

@media print {
  .lamp, .skip, .lang { display: none !important; }
  .tile { animation: none !important; box-shadow: none; break-inside: avoid; }
}
