/* RollBerry Tools (tools.rollberry.app) · Gestaltung nach dem VTT-Designsystem (src/vtt-site/vtt.css).
   Schriften sind die eigenen OFL-Kopien der Website (/site/fonts/FONT-NOTICES.txt). */
@font-face { font-family: Inter; src: url('fonts/inter-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Bricolage; src: url('fonts/bricolage-grotesque-500-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Bricolage; src: url('fonts/bricolage-grotesque-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
/* Gewicht 800 setzt nur die Wortmarke; die Teilmenge enthält nur deren Buchstaben. */
@font-face { font-family: Bricolage; src: url('fonts/bricolage-grotesque-800-brand.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0020, U+0042, U+0045, U+004C, U+004F, U+0052, U+0059, U+0065, U+006C, U+006F, U+0072, U+0079; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-500-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0907; --surface: #17120d; --surface-1: #120f0c; --surface-2: #1a1511; --band: #0f0c0a;
  --ink: #f6efe4; --muted: #c3b8a6; --subtle: #a89a86; --dim: #8a7e6e;
  --berry: #ec5a4b; --berry-deep: #d0302a; --amber: #f2a14e; --leaf: #8fb36b;
  --accent: var(--berry); --focus: var(--amber);
  --hairline: rgb(246 239 228 / .08); --divider: rgb(246 239 228 / .14); --line: rgb(246 239 228 / .22);
  --radius-s: 8px; --radius: 14px; --radius-l: 22px;
  --wrap: 1200px; --gutter: 32px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: Bricolage, var(--font);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1); --fast: .18s;
  --shot-shadow: 0 0 0 1px rgb(246 239 228 / .09), 0 40px 100px -40px rgb(0 0 0 / .9);
  --float-shadow: 0 0 0 1px rgb(246 239 228 / .12), 0 30px 80px -24px rgb(0 0 0 / .95);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; }
p { color: var(--muted); }
[hidden] { display: none !important; }
/* Der Lichtschein hinter der Bühne darf seitlich nicht scrollen lassen. */
main { overflow-x: clip; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 16px; z-index: 50; padding: 12px 20px; background: var(--ink); color: var(--bg); font-weight: 600; transform: translateY(calc(-100% - 24px)); }
.skip:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--accent); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
.label { color: var(--accent); font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px 56px; align-items: end; }
.section { padding-block: 104px; border-top: 1px solid var(--hairline); }

/* Kopf */
.header { position: sticky; top: 0; z-index: 20; background: #110e0b; border-bottom: 1px solid var(--hairline); }
@supports (backdrop-filter: blur(1px)) { .header { background: rgb(11 9 7 / .86); backdrop-filter: blur(16px) saturate(1.2); } }
.header-inner { position: relative; display: flex; align-items: center; gap: 12px 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font: 800 18px/1 var(--display); letter-spacing: .025em; text-transform: uppercase; }
.brand-tag { padding: 4px 8px; border: 1px solid rgb(236 90 75 / .45); border-radius: 6px; color: var(--accent); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
/* Beta-Abzeichen: Bernstein wie der Beta-Chip auf rollberry.app. */
.beta { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid rgb(242 161 78 / .5); border-radius: 999px; background: rgb(242 161 78 / .1); color: #ffc58e; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.beta::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; color: var(--muted); transition: color var(--fast); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.pill-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); transition: border-color var(--fast), background-color var(--fast); }
.pill-link:hover { border-color: var(--ink); background: rgb(246 239 228 / .06); }
.menu { display: none; flex: none; margin-left: auto; }
.menu summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0 4px 12px; cursor: pointer; list-style: none; font-size: 14px; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { color: var(--accent); font-size: 24px; line-height: 1; transition: transform var(--fast); }
.menu[open] summary span { transform: rotate(45deg); }
.menu nav { position: absolute; top: calc(100% + 1px); right: 0; width: min(360px, 100%); padding: 12px 24px; background: #17120e; border: 1px solid var(--divider); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 40px #0008; }
.menu nav a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 0; }
.menu nav a + a { border-top: 1px solid var(--hairline); }
.menu nav a:hover { color: var(--accent); }

/* Werkzeugleiste der Tool-Seiten */
.switcher { border-top: 1px solid rgb(246 239 228 / .06); }
.switcher-list { display: flex; gap: 8px; margin: 0 auto; padding: 10px 0; overflow-x: auto; scrollbar-width: none; list-style: none; }
.switcher-list::-webkit-scrollbar { display: none; }
.switcher-list li { flex: none; display: flex; }
.switcher-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--divider); border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap; transition: border-color var(--fast), color var(--fast); }
.switcher-list a:hover { border-color: rgb(246 239 228 / .5); color: var(--ink); }
.switcher-list a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #2a1a10; font-weight: 600; }
.switcher-list .sep { width: 1px; margin: 6px 6px; background: var(--divider); }

/* Knöpfe */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 600 15px/1.4 var(--font); text-align: center; transition: background-color var(--fast), border-color var(--fast), color var(--fast); }
.button-primary { background: var(--ink); color: #2a1a10; }
.button-primary:hover { background: #ffd9a8; }
.button-secondary { border: 1px solid var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); }
.button .arrow { font: 400 18px/1 var(--font); }
.status { margin-top: 18px; color: var(--subtle); font-size: 14px; }
.status .beta { margin-right: 8px; vertical-align: 1px; }
.status .sep { padding-inline: 4px; }

/* Hero */
.hero { padding-top: clamp(24px, 5vh, 48px); }
.hero h1 { max-width: 12ch; font-size: clamp(44px, min(6vw, 10.5vh), 92px); line-height: .95; letter-spacing: -.045em; }
.hero-side { padding-bottom: 6px; }
.hero-side .lead { max-width: 480px; }
.stage { position: relative; isolation: isolate; width: min(1320px, calc(100% - 40px)); margin: clamp(32px, 6vh, 56px) auto 0; }
.stage::before { content: ""; position: absolute; inset: 6% -4% -6%; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 50% 42%, rgb(242 161 78 / .14), rgb(208 48 42 / .08) 45%, transparent 75%); }
.shot { overflow: hidden; border-radius: var(--radius); background: var(--surface-1); box-shadow: var(--shot-shadow); }
.shot img { width: 100%; }
.stage-main { position: relative; z-index: 1; width: min(880px, 100%); margin-inline: auto; }
.stage-float { position: absolute; z-index: 2; box-shadow: var(--float-shadow); }
.stage-dice { left: 0; bottom: 72px; width: 300px; }
.stage-lookup { right: 0; top: 120px; width: 420px; }
.plate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; width: min(880px, calc(100% - 2 * var(--gutter))); margin: 18px auto 0; color: var(--subtle); font-size: 13px; line-height: 1.5; }
.plate .label { font-size: 11px; }

/* Aussage und Eigenschaften */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin-top: 64px; }
.fact { padding-top: 24px; border-top: 1px solid var(--divider); }
.fact .label { margin-bottom: 10px; }
.fact h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }

/* Einblick */
.spot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 72px; align-items: center; margin-top: 104px; }
.spot:first-of-type { margin-top: 72px; }
.spot .label { margin-bottom: 14px; }
.spot h3 { margin-bottom: 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.spot-shot { height: 560px; }
.spot-shot img { height: 100%; object-fit: cover; object-position: top left; }
.dash-list { display: grid; gap: 10px; margin-top: 24px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.dash-list li { display: flex; gap: 12px; }
.dash-list li::before { content: "–"; color: var(--accent); }
.spot-link { display: inline-flex; margin-top: 24px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.spot-link:hover { color: var(--ink); }

/* Werkzeugübersicht */
.group { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 2.25fr); gap: 24px 56px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--divider); }
.group:first-of-type { margin-top: 72px; }
.group h3 { margin-bottom: 8px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.group > div > p { color: var(--subtle); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; padding: 0; list-style: none; }
.cards > li { display: flex; }
.cards > li.wide { grid-column: 1 / -1; }
.card { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); transition: border-color var(--fast), background-color var(--fast); }
.card:hover { border-color: rgb(246 239 228 / .28); background: var(--surface); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(236 90 75 / .12); color: var(--berry); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tone-spielen .icon { background: rgb(242 161 78 / .12); color: var(--amber); }
.tone-nachschlagen .icon { background: rgb(143 179 107 / .14); color: var(--leaf); }
.card-number { color: var(--dim); font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.card-title { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.card-text { max-width: 60ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card-go { margin-top: auto; font-size: 14px; font-weight: 600; transition: color var(--fast); }
.card:hover .card-go { color: var(--accent); }

/* Zusammenspiel */
.band { background: var(--band); }
.flows { display: grid; gap: 12px; margin-top: 64px; padding: 0; list-style: none; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 24px; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); }
.flow-from { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color var(--fast); }
a.chip:hover { border-color: var(--ink); }
.chip-to { background: var(--ink); border-color: var(--ink); color: #2a1a10; }
a.chip-to:hover { background: #ffd9a8; border-color: #ffd9a8; }
.flow-step { display: flex; flex: 1 1 160px; align-items: center; gap: 10px; color: var(--subtle); font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.flow-step::before { content: ""; flex: 1; height: 1px; background: rgb(236 90 75 / .5); }
.flow-step::after { content: "→"; color: var(--accent); font: 400 16px/1 var(--font); }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; margin-top: 64px; }
.stats > div { padding-block: 24px; border-top: 1px solid var(--divider); }
.stats dt { color: var(--subtle); font-size: 14px; }
.stats dd { margin-top: 6px; font: 600 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* Fragen */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 56px; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); transition: transform var(--fast); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; }

/* RollBerry VTT */
.vtt-card { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: clamp(32px, 5vw, 64px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-l); }
.vtt-card img { width: 112px; height: 112px; object-fit: contain; }
.vtt-card > div { flex: 1 1 360px; }
.vtt-card .label { margin-bottom: 12px; }
.vtt-card h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.vtt-card p { max-width: 56ch; }

/* Tool-Seite */
.tool-page { --tool-width: 1200px; }
.tool-intro { width: min(var(--tool-width), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 48px 0 32px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 56px; }
.tool-intro > div { flex: 1 1 480px; }
.tool-intro .eyebrow { margin-bottom: 14px; }
.tool-intro h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.04em; }
.tool-intro .lead { max-width: 60ch; margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; color: var(--subtle); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tags li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--divider); border-radius: var(--radius-s); }
.tags .tag-beta { border-color: rgb(242 161 78 / .5); color: #ffc58e; }
.tags .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.tool-stage { width: min(var(--tool-width), calc(100% - 32px)); margin: 0 auto; padding-bottom: 72px; }
.tool-stage noscript p { padding: 24px; border: 1px solid var(--divider); border-radius: var(--radius); }
.guide-inner { width: min(var(--tool-width), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.guide .eyebrow { margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 32px; padding: 0; list-style: none; counter-reset: none; }
.steps li { padding: 24px 0; border-top: 1px solid var(--divider); }
.steps .label { margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.steps p:not(.label) { font-size: 15px; line-height: 1.65; }
.tips { margin-top: 32px; padding: 24px 28px; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius); }
.tips h3 { font-size: 18px; letter-spacing: -.01em; }
.tips .dash-list { margin-top: 12px; }
.related .eyebrow { margin-bottom: 24px; }
.related .card { padding: 24px; gap: 10px; }
.related .card-title { font-size: 20px; }

/* Die Tools im Farbschema der Website */
rb-wuerfel, rb-kampf, rb-person, rb-schauplatz, rb-loot, rb-inventar, rb-vorbereitung, rb-nachschlagen, rb-ersteller, rb-charakter {
  --rb-font: var(--font); --rb-mono: var(--mono);
  --rb-bg: #120f0c; --rb-surface: #1a1511; --rb-border: #3b3128; --rb-text: #f6efe4; --rb-muted: #c3b8a6;
  --rb-accent: #ec5a4b; --rb-accent-text: #1b0d09; --rb-accent-soft: #3a1d17;
  --rb-success: #8fb36b; --rb-danger: #ff8a7a; --rb-radius: 14px;
  display: block; min-height: 480px; box-shadow: 0 0 0 1px var(--hairline);
}

/* Hinweis auf Übergaben an andere Tools */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: min(440px, calc(100% - 32px)); padding: 16px 18px; background: #1e1813; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px -20px #000; color: var(--ink); font-size: 14px; line-height: 1.5; }
.toast p { flex: 1 1 220px; color: var(--ink); }
.toast a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.toast button { min-width: 44px; min-height: 44px; margin: -8px -8px -8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 20px; cursor: pointer; }

/* Fuß */
.footer { border-top: 1px solid var(--hairline); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 56px; padding-top: 56px; }
.footer-top > div { max-width: 420px; }
.footer-top > div p { margin-top: 16px; color: var(--subtle); font-size: 14px; }
.attribution { max-width: 520px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 40px; padding: 24px 0 40px; border-top: 1px solid var(--hairline); }
.footer-bottom small { color: var(--dim); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer-bottom nav a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .stage-float { display: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .split, .faq, .group { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .menu { display: block; }
  .section { padding-block: 72px; }
  .spot-shot { height: 440px; }
}
@media (max-width: 560px) {
  .spot-shot { height: 380px; }
}
@media (max-width: 480px) {
  /* Schmal steht die Marke in zwei Zeilen neben dem Logo, damit „Tools“ und Beta sichtbar bleiben. */
  .header-inner { column-gap: 16px; }
  .brand { display: inline-grid; grid-template: "logo name name" auto "logo tag beta" auto / auto auto auto; justify-content: start; align-items: center; gap: 5px 6px; }
  .brand img { grid-area: logo; margin-right: 4px; }
  .brand-name { grid-area: name; }
  .brand-tag { grid-area: tag; justify-self: start; }
  .brand .beta { grid-area: beta; justify-self: start; }
  .brand .beta::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* Gedruckt wird nur das Tool selbst. */
@media print {
  body { background: #fff; color: #000; }
  .header, .tool-intro, .related, .footer, .toast, .skip { display: none !important; }
  .tool-stage { width: auto; padding: 0; }
}
