/* RollBerry Sounds, Produktseite (www.rollberry.app/sounds/). Gestaltung aus der App selbst, „Graphit & Messing“
   (BardBerry: src/renderer/styles/rollberry-tokens.css): warme Graphitflächen, Pergamenttext und Farben mit fester
   Bedeutung. Messing = was der Tisch hört, Eis = privates Vorhören, Glut = Dramatik, Beere = „Alles stumm“.
   Effekte gibt es nur im Kopf, wie auf dem Startbildschirm der App: aufsteigende Glut und Klangringe um das Logo. Bei
   reduzierter Bewegung steht beides still.
   Keine negativen Zeichenabstände, keine mit der Fensterbreite skalierenden Schriftgrößen. */

@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Regular.ba711a3085.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Medium.5660f8a658.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-SemiBold.f78048030e.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/IBMPlexSans-Bold.fa7130d854.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-Regular.ba204497f1.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #121110;
  --panel: #181715;
  --raised: #211f1c;
  --line: #2c2925;
  --line-strong: #3e3a34;
  --text: #f3eee6;
  --text-2: #cbc3b7;
  --text-3: #a39a8d;
  --brass: #edb54e;
  --brass-text: #f2c063;
  --brass-ink: #1e1606;
  --ember: #f07c3e;
  --ember-text: #ffa06b;
  --ice: #80c8e4;
  --berry: #c4313a;
  --berry-text: #ff8f86;
  --focus: #f7eedc;
  --cream: #f4ead6;
  --cream-hover: #fff8ea;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  /* Stufen nach dem Verhältnis 1,25 auf 17 px Grundschrift */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --radius: 12px;
  --gutter: 16px;
  --section: 72px;
}
@media (min-width: 760px) { :root { --gutter: 32px; --section: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-base)/1.6 var(--sans); font-kerning: normal; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brass-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass); color: var(--brass-ink); }
.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; }

.wrap { width: 100%; max-width: calc(1160px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* Schmale Abschnitte bleiben an derselben linken Kante wie alles andere; nur die Zeilen werden kürzer. */
.narrow > * { max-width: 46rem; }
.nowrap { white-space: nowrap; }

.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; }

kbd { display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--raised); color: var(--text); font: 400 0.84em/1.5 var(--mono); text-align: center; white-space: nowrap; }
.plus { margin: 0 0.25em; color: var(--text-3); }
/* Eine Taste bricht nie; die ganze Folge bleibt erst ab mittlerer Breite in einer Zeile (bei 320 px passt sie nicht). */
.keys kbd { white-space: nowrap; }
@media (min-width: 560px) { .keys { white-space: nowrap; } }

/* Kopf */
.top { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; font-size: var(--fs-lg); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.top-nav { display: none; margin-left: auto; gap: 28px; }
.top-nav a, .lang { color: var(--text-2); font-weight: 500; text-decoration: none; }
.top-nav a:hover, .lang:hover { color: var(--text); }
.lang { margin-left: auto; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); }
@media (min-width: 760px) { .top-nav { display: flex; } .lang { margin-left: 0; } }

/* Kopfbereich mit Glut: Herdlicht unter dem Bild, aufsteigende Funken. Rein dekorativ (aria-hidden). */
.hero { position: relative; overflow: hidden; padding: 56px 0 var(--section); isolation: isolate; }
.hearth { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 100%, rgba(240, 124, 62, 0.30), rgba(240, 124, 62, 0) 72%),
    radial-gradient(38% 30% at 50% 100%, rgba(237, 181, 78, 0.22), rgba(237, 181, 78, 0) 70%);
  /* The glow fades out before the section ends, so no hard edge meets the next section. */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); }
.ember { position: absolute; bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember-text); box-shadow: 0 0 8px 2px rgba(240, 124, 62, 0.65); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ember { animation: rise 9s linear infinite; }
  @keyframes rise {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.9; }
    60% { opacity: 0.55; }
    100% { transform: translate3d(var(--drift, 18px), -70vh, 0) scale(0.4); opacity: 0; }
  }
}
.ember:nth-child(1) { left: 8%; animation-duration: 11s; animation-delay: -2s; --drift: 26px; }
.ember:nth-child(2) { left: 17%; animation-duration: 8.5s; animation-delay: -6s; --drift: -14px; }
.ember:nth-child(3) { left: 24%; animation-duration: 12s; animation-delay: -9s; --drift: 30px; width: 3px; height: 3px; }
.ember:nth-child(4) { left: 33%; animation-duration: 9.5s; animation-delay: -1s; --drift: -22px; }
.ember:nth-child(5) { left: 41%; animation-duration: 10.5s; animation-delay: -4s; --drift: 12px; width: 5px; height: 5px; }
.ember:nth-child(6) { left: 47%; animation-duration: 8s; animation-delay: -7.5s; --drift: -30px; width: 3px; height: 3px; }
.ember:nth-child(7) { left: 53%; animation-duration: 11.5s; animation-delay: -3s; --drift: 20px; }
.ember:nth-child(8) { left: 58%; animation-duration: 9s; animation-delay: -10s; --drift: -12px; width: 5px; height: 5px; }
.ember:nth-child(9) { left: 64%; animation-duration: 12.5s; animation-delay: -5s; --drift: 28px; width: 3px; height: 3px; }
.ember:nth-child(10) { left: 71%; animation-duration: 10s; animation-delay: -8s; --drift: -24px; }
.ember:nth-child(11) { left: 78%; animation-duration: 8.8s; animation-delay: -0.5s; --drift: 16px; }
.ember:nth-child(12) { left: 85%; animation-duration: 11s; animation-delay: -6.5s; --drift: -18px; width: 3px; height: 3px; }
.ember:nth-child(13) { left: 91%; animation-duration: 9.8s; animation-delay: -3.5s; --drift: 22px; }
.ember:nth-child(14) { left: 38%; animation-duration: 13s; animation-delay: -11s; --drift: -8px; width: 2px; height: 2px; }

.hero-text { max-width: 44rem; }
h1 { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.08; max-width: 22ch; text-wrap: balance; }
.lead { margin-top: 24px; font-size: var(--fs-lg); line-height: 1.55; color: var(--text-2); max-width: 38rem; }
/* Narrow: stacked rows. From 640px: one row of three; the columns may shrink but never wrap onto a new line. */
.facts { display: grid; margin-top: 32px; }
.facts li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; border-top: 0; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, max-content)); }
  .facts li, .facts li:first-child { padding: 2px 24px 2px 0; margin-right: 24px; border-top: 0; border-right: 1px solid var(--line-strong); }
  .facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
}
.facts strong { font-weight: 600; }
.facts span { color: var(--text-3); font-size: var(--fs-sm); }
.hero-note { margin-top: 24px; color: var(--text-2); font-size: var(--fs-sm); }
/* Download bei itch.io: der einzige Knopf der Seite, hell wie „Start“ auf dem Startbildschirm der App. Bewusst nicht
   Messing, denn Messing heißt hier „was der Tisch hört“. */
.get { display: grid; justify-items: start; gap: 12px; margin-top: 32px; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; background: var(--cream); color: var(--ground); font-weight: 600; text-decoration: none; box-shadow: 0 12px 32px -14px rgba(240, 124, 62, 0.6); }
.cta:hover { background: var(--cream-hover); color: var(--ground); }
.cta-icon { flex: none; width: 20px; height: 20px; }
.get-note { max-width: 34rem; color: var(--text-3); font-size: var(--fs-sm); }
.hero-shot { margin-top: 56px; }
.hero-shot .frame { box-shadow: 0 40px 80px -32px rgba(240, 124, 62, 0.45), 0 24px 48px -24px #000; }
@media (min-width: 760px) { h1 { font-size: var(--fs-4xl); } .hero { padding-top: 88px; } .hero-shot { margin-top: 72px; } }

/* Emblem neben der Überschrift (ab 1024 px): das Logo der App im Herdlicht wie auf ihrem Startbildschirm. Ringe in
   Messing breiten sich aus wie Klang; Messing heißt auch hier „was der Tisch hört“. Rein dekorativ (aria-hidden).
   Ohne Bewegung stehen drei Ringe still in festen Abständen. */
.emblem { display: none; }
@media (min-width: 1024px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); column-gap: 48px; align-items: center; }
  .hero-shot { grid-column: 1 / -1; }
  .emblem { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, 26rem); aspect-ratio: 1; }
}
.emblem picture { position: relative; width: 66%; }
.emblem img { width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(240, 124, 62, 0.42)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.halo { position: absolute; inset: -16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 124, 62, 0.26), rgba(237, 181, 78, 0.10) 50%, rgba(237, 181, 78, 0) 100%); }
.waves { position: absolute; inset: 0; }
.waves span { position: absolute; inset: 0; border: 1.5px solid var(--brass); border-radius: 50%; box-shadow: 0 0 18px -4px rgba(237, 181, 78, 0.5), inset 0 0 18px -4px rgba(237, 181, 78, 0.35); }
.waves span:nth-child(1) { transform: scale(0.76); opacity: 0.55; }
.waves span:nth-child(2) { transform: scale(0.88); opacity: 0.32; }
.waves span:nth-child(3) { transform: scale(1); opacity: 0.16; }
@media (prefers-reduced-motion: no-preference) {
  .waves span { animation: resonate 7.2s cubic-bezier(0.25, 0.6, 0.35, 1) infinite both; }
  .waves span:nth-child(2) { animation-delay: -2.4s; }
  .waves span:nth-child(3) { animation-delay: -4.8s; }
  .halo { animation: glow 5s ease-in-out infinite alternate; }
  @keyframes resonate {
    0% { transform: scale(0.7); opacity: 0; }
    12% { opacity: 0.75; }
    100% { transform: scale(1.06); opacity: 0; }
  }
  @keyframes glow { from { opacity: 0.75; } to { opacity: 1; } }
}

/* Bildschirmfotos */
.shot { min-width: 0; }
.frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: 0 24px 48px -24px #000; }
.frame img { width: 100%; }
.shot figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.shot-meta { color: var(--text-3); }

/* Abschnitte */
section { scroll-margin-top: 16px; }
.intro, .flow, .features, .news, .faq, .specs { padding: var(--section) 0; }
.intro { padding-top: 0; }
h2 { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.15; text-wrap: balance; }
@media (min-width: 760px) { h2 { font-size: var(--fs-3xl); } }
h3 { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.intro p { margin-top: 20px; font-size: var(--fs-lg); line-height: 1.55; color: var(--text-2); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.55; }

/* Ablauf: eine echte Reihenfolge, darum nummeriert */
.flow { border-top: 1px solid var(--line); }
.steps { display: grid; gap: 64px; }
.step { display: grid; gap: 24px; align-items: center; }
.step-n { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 16px; border: 1px solid rgba(237, 181, 78, 0.5); border-radius: 50%; color: var(--brass-text); font-weight: 600; }
.step-text p { margin-top: 10px; color: var(--text-2); max-width: 34rem; }
@media (min-width: 1024px) {
  .steps { gap: 96px; }
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .step:nth-child(even) .step-text { order: 2; }
}
.demo-note { margin-top: 56px; max-width: 46rem; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--text-3); font-size: var(--fs-sm); }

/* Farbsprache: die Farben der App mit ihrer Bedeutung */
.signals { padding: var(--section) 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signals-in { display: grid; gap: 48px; align-items: start; }
.signals-text > p { margin-top: 16px; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.55; max-width: 34rem; }
.signal-list { display: grid; gap: 28px 40px; }
.signal { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.signal p { margin-top: 4px; color: var(--text-2); }
.pad { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--raised); border: 1px solid; }
.pad svg { width: 24px; height: 24px; }
.signal-brass .pad { color: var(--brass); border-color: rgba(237, 181, 78, 0.55); box-shadow: 0 0 22px -6px rgba(237, 181, 78, 0.55); }
.signal-ice .pad { color: var(--ice); border-color: rgba(128, 200, 228, 0.55); box-shadow: 0 0 22px -6px rgba(128, 200, 228, 0.5); }
.signal-ember .pad { color: var(--ember); border-color: rgba(240, 124, 62, 0.6); box-shadow: 0 0 22px -6px rgba(240, 124, 62, 0.6); }
.signal-berry .pad { color: var(--berry-text); border-color: rgba(196, 49, 58, 0.7); box-shadow: 0 0 22px -6px rgba(196, 49, 58, 0.6); }
.signal-brass h3 { color: var(--brass-text); }
.signal-ice h3 { color: var(--ice); }
.signal-ember h3 { color: var(--ember-text); }
.signal-berry h3 { color: var(--berry-text); }
/* Two signals per row only where a column holds the key sequence of „Alles stumm“; it may break between keys. */
.signal .keys { white-space: normal; }
@media (min-width: 640px) { .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .signals-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } .signal-list { grid-template-columns: minmax(0, 1fr); padding-top: 8px; } }
@media (min-width: 1240px) { .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Funktionen: Liste mit Linien statt Kartenstapel */
.feature-grid { display: grid; gap: 0 48px; }
.feature { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.feature p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features-shot { margin-top: 48px; }

/* Lokal */
.local { padding: var(--section) 0; border-top: 1px solid var(--line); }
.local-in { display: grid; gap: 32px; }
.local-in p { margin-top: 16px; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.55; max-width: 36rem; }
.local-points { display: grid; gap: 12px; align-content: start; }
.local-points li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; }
.local-points li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px rgba(237, 181, 78, 0.7); }
@media (min-width: 1024px) { .local-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; } }

/* Formate und Systeme */
.specs { border-top: 1px solid var(--line); }
.specs-in { display: grid; gap: 56px; }
.specs h2 { font-size: var(--fs-xl); }
.specs p { margin-top: 16px; color: var(--text-2); max-width: 36rem; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.formats li { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); font-size: var(--fs-sm); font-weight: 500; }
.systems { margin-top: 20px; }
.systems div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.systems div:last-child { border-bottom: 1px solid var(--line); }
.systems dt { font-weight: 600; }
.systems dd { color: var(--text-2); }
.specs .specs-get { margin-top: 20px; }
@media (min-width: 760px) { .systems div { grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .specs-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }

/* Zuletzt neu */
.news { border-top: 1px solid var(--line); }
.releases { display: grid; gap: 40px; }
.release { display: grid; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.release header { display: flex; align-items: baseline; gap: 16px; }
.release h3 { color: var(--brass-text); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.release header p { color: var(--text-3); font-size: var(--fs-sm); }
.release ul { display: grid; gap: 10px; align-content: start; max-width: 40rem; }
.release li { position: relative; padding-left: 20px; color: var(--text-2); }
.release li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
@media (min-width: 1024px) {
  .release.has-shot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 56px; }
  .release.has-shot .release-shot { grid-column: 2; grid-row: 1 / span 2; }
}

/* Fragen */
.faq { border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: var(--fs-lg); line-height: 1.35; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 1.5rem; color: var(--brass-text); font-weight: 400; text-align: center; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { color: var(--brass-text); }
.faq details p { padding: 0 0 24px; color: var(--text-2); max-width: 42rem; }

/* Fuß */
.foot { padding: 56px 0 40px; background: var(--panel); border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 32px; }
.foot-brand p { margin-top: 12px; color: var(--text-2); font-size: var(--fs-sm); max-width: 32rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-content: start; }
.foot-nav a { color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.foot-small { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); }
@media (min-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr) auto; } .foot-small { grid-column: 1 / -1; } }

/* Fehlerseite */
.not-found main { min-height: 100vh; display: grid; align-content: center; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.not-found h1 { font-size: var(--fs-2xl); }
.not-found p { color: var(--text-2); }
.nf-logo { width: 96px; height: 96px; }
.not-found .nf-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; font-size: var(--fs-sm, 0.875rem); }
.not-found .nf-legal a { color: var(--text-2); }

@media print {
  .hearth, .skip, .top-nav, .lang { display: none !important; }
  body { background: #fff; color: #000; }
  .frame { box-shadow: none; }
}
