/* ==========================================================================
   Mockup 2 – „Abenteurergilde“
   Pergament auf dem Tavernentisch, Leder, Wachs und Tinte.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--parch: #F2E3C2;
	--parch-light: #F8EDD3;
	--parch-deep: #E3CB98;
	--parch-edge: #B98F4E;
	--ink: #2B1D12;
	--ink-soft: #57412D;
	--leather: #5C3A21;
	--leather-dark: #3B2414;
	--leather-deep: #2A190D;
	--wood: #2B1B0F;
	--wax: #9E2A22;
	--wax-dark: #7A1E18;
	--gold: #C8922C;
	--gold-light: #E8C06A;
	--forest: #2E6A4C;
	--mana: #2B5DAA;

	/* Rubrikfarben (Rahmen, Siegel – immer mit Rubriknamen) */
	--c-pc: #B9771F;
	--c-mmorpg: #6B3A8F;
	--c-browser: #2B5DAA;
	--c-mobile: #2E6A4C;
	--c-klassiker: #9E2A22;
	--c-reviews: #C8922C;
	--c-news: #C8922C;

	--f-head: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
	--f-body: "Alegreya", Georgia, "Times New Roman", serif;

	--header-h: 72px;
	--radius: 6px;
	--shadow-paper: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px -18px rgba(20, 8, 0, .75), 0 4px 10px rgba(20, 8, 0, .35);

	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .24 0 0 0 0 .09 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .16' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .05 0 0 0 0 .01 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	--flourish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cpath d='M2 12h86M152 12h86' stroke='%239E2A22' stroke-width='1.6'/%3E%3Cpath d='M88 12c8-9 18-9 22 0-4 9-14 9-22 0Zm64 0c-8-9-18-9-22 0 4 9 14 9 22 0Z' fill='none' stroke='%239E2A22' stroke-width='1.6'/%3E%3Cpath d='M120 3l7 9-7 9-7-9Z' fill='%23C8922C'/%3E%3C/svg%3E");
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font: 400 1.125rem/1.7 var(--f-body);
	color: var(--ink);
	background-color: var(--wood);
	background-image:
		radial-gradient(ellipse at 50% 0%, rgba(255, 170, 80, .14), transparent 60%),
		var(--grain),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 240px),
		linear-gradient(#3a2414, #24160b);
	background-attachment: fixed;
	text-rendering: optimizeLegibility;
}
img, svg, canvas, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--wax); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--wax-dark); text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; background: var(--parch); color: var(--ink); padding: 12px 18px; border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow-paper); }
.skip-link:focus { top: 12px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--wax); outline-offset: 3px; border-radius: 3px; }
.site-header :focus-visible, .sheet :focus-visible, .tavern :focus-visible, .hero :focus-visible, .dicetable :focus-visible, .sheet-fab:focus-visible, .toasts :focus-visible { outline-color: var(--gold-light); }
main { display: block; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
	--b: var(--leather);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .55em 1.3em;
	font: 700 1.05rem/1.1 var(--f-body);
	color: var(--parch-light); background: var(--b);
	border: 2px solid var(--gold); border-radius: 999px;
	box-shadow: 0 0 0 3px rgba(43, 29, 18, .35), 0 8px 18px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover { color: #fff; transform: translateY(-1px); background: color-mix(in srgb, var(--b) 85%, #000); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--seal { --b: var(--wax); background: radial-gradient(circle at 35% 30%, #c8443a, var(--wax) 55%, var(--wax-dark)); }
.btn--seal:hover { background: radial-gradient(circle at 35% 30%, #b83a31, var(--wax-dark) 65%); }
.btn--ghost { --b: rgba(43, 29, 18, .72); backdrop-filter: blur(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--parch); cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background:
		var(--noise),
		linear-gradient(180deg, #5c3a21, #432815);
	border-bottom: 3px solid var(--leather-deep);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
}
.site-header::after { /* Naht */
	content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; border-bottom: 2px dashed rgba(232, 192, 106, .45); pointer-events: none;
}
.site-header__bar { display: flex; align-items: center; gap: 24px; max-width: 1480px; margin: 0 auto; min-height: var(--header-h); padding: 8px 24px 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--parch-light); text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand__seal { width: 44px; height: 50px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.brand__name { font: 700 1.5rem/1 var(--f-head); letter-spacing: .01em; }
.brand__dash { color: var(--gold-light); }
.brand__tld { font-size: .7em; color: var(--gold-light); }

.mainnav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.mainnav__head, .mainnav__tools .tool span { }
.mainnav__head { display: none; }
.mainnav__list { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 0 2px; list-style: none; margin: 0; padding: 0; }
.mainnav__list a {
	position: relative; display: block; padding: 10px 9px; color: var(--parch-light); white-space: nowrap;
	font: 600 1rem/1.1 var(--f-body); text-decoration: none; border-radius: 4px;
}
.mainnav__list a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--rc, var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.mainnav__list a:hover, .mainnav__list a.is-active, .mainnav__list a[aria-current="page"] { color: #fff; background: rgba(0, 0, 0, .18); }
.mainnav__list a:hover::after, .mainnav__list a.is-active::after, .mainnav__list a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav__tools { display: flex; gap: 6px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(232, 192, 106, .45); border-radius: 999px; background: rgba(0, 0, 0, .2); color: var(--parch); cursor: pointer; font-size: .95rem; }
.tool svg { width: 20px; height: 20px; flex: none; }
.tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool[aria-pressed="true"] { background: var(--gold); color: var(--leather-deep); border-color: var(--gold-light); }
.tool:hover { border-color: var(--gold-light); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.dice-link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px;
	color: var(--leather-deep); background: linear-gradient(180deg, var(--gold-light), var(--gold)); border-radius: 999px;
	font-weight: 800; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 8px rgba(0, 0, 0, .4);
}
.dice-link svg { width: 30px; height: 30px; }
.dice-link:hover { color: var(--ink); filter: brightness(1.06); }
.menu-toggle { display: none; }

.readbar { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: rgba(0, 0, 0, .35); }
.readbar__fill { position: absolute; inset: 0 auto 0 0; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--wax), var(--gold)); }
.readbar__quill { position: absolute; top: -10px; left: calc(var(--p, 0) * 100% - 12px); width: 22px; height: 22px; color: var(--gold-light); filter: drop-shadow(0 1px 1px #000); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: grid; align-items: end; overflow: hidden; color: var(--parch-light); }
.hero--cat, .hero--single { min-height: min(62vh, 620px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 2, .15) 0%, rgba(20, 10, 2, 0) 30%, rgba(30, 18, 8, .55) 72%, #2b1b0f 100%), radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(20, 8, 0, .5)); pointer-events: none; }
.hero__inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 120px 32px 56px; display: grid; grid-template-columns: minmax(0, 800px) 1fr; align-items: end; gap: 24px; }
/* Mit Wirt: rechte Spalte nie schmaler als Wirt + Sprechblase (sonst wird die Blase bei 1200–1300 px zur schmalen Säule) */
@media (min-width: 1181px) { .hero__inner:has(.npc) { grid-template-columns: minmax(0, 800px) minmax(470px, 1fr); } }

/* Schriftrolle */
.scroll-banner {
	position: relative; color: var(--ink); padding: 34px 44px 30px;
	background: var(--noise), var(--fibers), radial-gradient(ellipse at 30% 20%, #fbf2dc, var(--parch) 55%, var(--parch-deep));
	border-radius: 4px; box-shadow: inset 0 0 50px rgba(150, 100, 40, .35), 0 30px 60px -20px rgba(0, 0, 0, .8);
	margin: 18px 0;
}
.scroll-banner::before, .scroll-banner::after { /* Holzstäbe */
	content: ""; position: absolute; left: -16px; right: -16px; height: 20px; border-radius: 10px;
	background: linear-gradient(180deg, #8a5a32, #5c3a21 45%, #3b2414); box-shadow: 0 4px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.scroll-banner::before { top: -12px; }
.scroll-banner::after { bottom: -12px; }
.scroll-banner h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 800; color: var(--ink); margin-bottom: .35em; }
.scroll-banner__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.scroll-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.scroll-banner__actions .btn--ghost { --b: var(--leather); }
.scroll-banner__crumb { font-size: 1rem; margin-bottom: .6em; color: var(--ink-soft); }
.scroll-banner__crumb a { color: var(--wax); }
.scroll-banner--cat h1, .scroll-banner--single h1 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.scroll-banner__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--ink-soft); font-style: italic; }

/* Wirt */
.npc { position: relative; margin: 0; justify-self: end; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.npc__img { width: clamp(200px, 22vw, 330px); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); margin-bottom: -56px; }
.npc__bubble {
	pointer-events: auto; order: -1; align-self: center; max-width: 330px; margin-right: -24px; margin-bottom: 120px;
	position: relative; padding: 16px 20px; background: var(--parch-light); color: var(--ink); border-radius: 18px;
	font-size: 1.05rem; line-height: 1.5; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .7); border: 2px solid var(--leather);
}
.npc__bubble::after { content: ""; position: absolute; right: -14px; bottom: 26px; width: 24px; height: 24px; background: var(--parch-light); border-right: 2px solid var(--leather); border-bottom: 2px solid var(--leather); transform: rotate(-45deg) skew(10deg, 10deg); }
.npc__name { display: block; font: 700 1.05rem/1.2 var(--f-head); color: var(--wax); margin-bottom: 4px; }
.npc__say { display: block; min-height: 4.5em; }
.npc--small .npc__img { width: clamp(160px, 16vw, 240px); }
.npc--small .npc__bubble { margin-bottom: 90px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; max-width: 1480px; margin: 0 auto; padding: 32px 32px 96px; align-items: start; }
.book { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.book > * { min-width: 0; }

/* ---------- Pergament-Seiten ---------- */
.page {
	position: relative; padding: clamp(24px, 4vw, 56px) clamp(22px, 4.6vw, 64px);
	background: var(--noise), var(--fibers), radial-gradient(ellipse at 20% 0%, #fbf3df, var(--parch) 45%, #ead6a8 100%);
	border-radius: 3px; box-shadow: inset 0 0 70px rgba(140, 90, 30, .32), var(--shadow-paper);
}
.page > *:last-child { margin-bottom: 0; }
.page h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--ink); text-align: center; margin-bottom: .2em; }
.page h2::after { content: ""; display: block; width: 240px; max-width: 70%; height: 24px; margin: .35em auto .2em; background: var(--flourish) center / contain no-repeat; }
.page h3 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); color: var(--ink); }
/* Text, Bilder und Videos nutzen dieselbe volle Breite der Pergamentseite (einheitliches Satzbild) */
.page p, .page ul, .page ol { max-width: none; }
.page ul, .page ol { padding-left: 1.3em; }
.page li::marker { color: var(--wax); }
.page img { border-radius: 3px; }
.page .aligncenter, .page img[width="100%"], .page img[width="90%"], .page img[width="80%"] { margin: 1.4em auto; width: 100%; max-width: 100%; box-shadow: 0 0 0 6px var(--parch-light), 0 0 0 7px var(--parch-edge), 0 14px 26px -12px rgba(0, 0, 0, .5); }
.page .alignright, .page img[align="right"] { float: right; margin: .3em 0 1em 1.6em; max-width: 44%; }
.page .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 44%; }
.page::after { content: ""; display: table; clear: both; }
.intro > p:first-of-type::first-letter, .chapter > h2 + p::first-letter, .article__body > p:first-of-type:not(:has(> img:first-child))::first-letter {
	/* Initiale in klarer Serifenschrift: Fraktur-E und -K lesen sich sonst wie „IE“ und „IK“ */
	float: left; font: 800 4.1em/.86 var(--f-body); color: var(--wax); margin: .06em .12em 0 0; padding: .06em .12em .02em;
	background: radial-gradient(circle, rgba(200, 146, 44, .25), transparent 70%); text-shadow: 1px 1px 0 var(--gold-light);
}
.intro { font-size: 1.18rem; }
.intro img { margin: 1.2em auto; box-shadow: 0 0 0 6px var(--parch-light), 0 0 0 7px var(--parch-edge), 0 14px 26px -12px rgba(0, 0, 0, .5); }
.ui-heading { }

/* ---------- Weltkarte ---------- */
.worldmap { position: relative; padding: 32px clamp(16px, 3vw, 40px) 40px; border-radius: 8px; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .1)); }
.worldmap__head { text-align: center; color: var(--parch-light); margin-bottom: 20px; }
.worldmap__head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--parch-light); text-shadow: 0 2px 6px #000; margin-bottom: .2em; }
.worldmap__head p { color: var(--parch); max-width: 56ch; margin: 0 auto; }
.worldmap__frame { position: relative; border-radius: 6px; padding: 14px; background: linear-gradient(135deg, #7a4f2b, #4a2e19 50%, #6d4526); box-shadow: inset 0 0 0 2px rgba(232, 192, 106, .6), 0 30px 60px -20px rgba(0, 0, 0, .9); }
.worldmap__img { width: 100%; border-radius: 3px; }
.worldmap__route { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); pointer-events: none; overflow: visible; }
.worldmap__route path { fill: none; stroke-linecap: round; }
.worldmap__route .route-base { stroke: rgba(158, 42, 34, .55); stroke-width: 4; stroke-dasharray: 2 12; }
.worldmap__route .route-draw { stroke: var(--wax); stroke-width: 3; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)); }
.worldmap__pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 14px; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%); }
.pin a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); }
.pin__seal {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	font: 800 1.3rem/1 var(--f-head); color: #fff;
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rc) 70%, #fff), var(--rc) 55%, color-mix(in srgb, var(--rc) 70%, #000));
	box-shadow: 0 0 0 3px var(--parch-light), 0 6px 12px rgba(0, 0, 0, .55);
	transition: transform .2s ease;
}
.pin__label { display: grid; text-align: center; padding: 5px 10px 6px; background: var(--parch-light); border: 1.5px solid var(--leather); border-radius: 8px; line-height: 1.2; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .55); white-space: nowrap; }
.pin__label strong { font: 700 1.02rem/1.1 var(--f-head); }
.pin__label span { font-size: .85rem; color: var(--ink-soft); }
.pin a:hover .pin__seal, .pin a:focus-visible .pin__seal { transform: scale(1.12) rotate(-6deg); }
.pin a:hover .pin__label { border-color: var(--wax); }

/* ---------- Würfeltisch ---------- */
/* Ein Spieltisch: Holzrahmen (Rahmen + Messingleiste), darin durchgehender Filz.
   Links liegt ein Pergament mit Regeln und Ergebnis, rechts rollt der Würfel. */
.dicetable {
	position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); align-items: stretch;
	min-height: 560px; padding: 34px; border-radius: 18px; color: var(--ink);
	background:
		radial-gradient(ellipse 60% 70% at 68% 48%, rgba(120, 200, 140, .22), transparent 70%),
		radial-gradient(ellipse at 12% 10%, rgba(255, 190, 100, .16), transparent 45%),
		var(--noise),
		radial-gradient(ellipse at 60% 50%, #2f6a45, #1d4630 55%, #0f2a1b);
	box-shadow:
		inset 0 0 0 18px #4a2e19, inset 0 0 0 19px #2a190d, inset 0 0 0 22px rgba(232, 192, 106, .55), inset 0 0 0 23px #2a190d,
		inset 0 0 70px 26px rgba(0, 0, 0, .55), 0 30px 60px -24px rgba(0, 0, 0, .9);
}
/* Messing-Ecken des Rahmens */
.dicetable::before, .dicetable::after { content: ""; position: absolute; z-index: 2; width: 46px; height: 46px; pointer-events: none; background: radial-gradient(circle at 35% 35%, #ffe9a8, var(--gold) 55%, #6e4a10); clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 28%, 28% 100%, 0 100%); }
.dicetable::before { top: 6px; left: 6px; }
.dicetable::after { right: 6px; bottom: 6px; rotate: 180deg; }
.dicetable__panel {
	position: relative; z-index: 1; display: flex; flex-direction: column; margin: 8px 0 8px 8px; padding: 28px 26px 22px;
	border-radius: 4px; rotate: -.8deg;
	background: var(--noise), var(--fibers), radial-gradient(ellipse at 30% 0%, #fdf6e4, var(--parch) 55%, #e6d2a4);
	box-shadow: inset 0 0 40px rgba(140, 90, 30, .32), 0 22px 34px -14px rgba(0, 0, 0, .85), 0 4px 8px rgba(0, 0, 0, .4);
}
.dicetable h2 { font-size: clamp(2rem, 3vw, 2.6rem); color: var(--ink); margin-bottom: .3em; }
.dicetable__lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.5; }
.dicetable__filter { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.dicetable__filter legend { width: 100%; margin-bottom: 8px; font-style: italic; color: var(--ink-soft); }
.dicetable__filter label { position: relative; cursor: pointer; }
.dicetable__filter input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dicetable__filter span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 5px 13px; border-radius: 999px; border: 1.5px solid var(--parch-edge); background: rgba(255, 250, 236, .55); color: var(--ink); font-weight: 600; }
.dicetable__filter span::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--rc, var(--gold)); }
.dicetable__filter span small { font-size: .82em; color: var(--ink-soft); }
.dicetable__filter input:checked + span { background: var(--leather); color: var(--parch-light); border-color: var(--leather); box-shadow: inset 0 -3px 0 var(--rc, var(--gold)); }
.dicetable__filter input:checked + span small { color: var(--parch-deep); }
.dicetable__filter input:focus-visible + span { outline: 3px solid var(--wax); outline-offset: 2px; }
.dicetable__roll { align-self: flex-start; }
.dicetable__stage { position: relative; min-height: 360px; margin: -6px -6px -6px 0; cursor: pointer; }
.dicetable__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dicetable__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-light); }
.dicetable__fallback svg { width: min(46%, 260px); height: auto; color: #d24a3f; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .6)); }
.dicetable__fallback span { position: absolute; font: 800 2.6rem/1 var(--f-body); color: #fff; text-shadow: 0 2px 3px #000; }
.dicetable.has-webgl .dicetable__fallback { display: none; }
.dicetable__hint { position: absolute; right: 26px; bottom: 22px; margin: 0; font-size: .9rem; font-style: italic; color: rgba(242, 227, 194, .82); text-shadow: 0 1px 2px #000; }
.dicetable__result { margin-top: 18px; min-height: 132px; display: grid; }
.dicetable__wait, .dicetable__rolling { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 14px; border: 1.5px dashed var(--parch-edge); border-radius: 10px; color: var(--ink-soft); font-style: italic; text-align: center; }
.dicetable__wait svg { width: 22px; height: 22px; color: var(--wax); flex: none; }
.roll-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 10px; background: var(--parch-light); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--parch-edge), 0 10px 20px -12px rgba(0, 0, 0, .6); }
.roll-card__num { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; font: 800 2.2rem/1 var(--f-head); color: #fff; background: radial-gradient(circle at 35% 30%, #d0453a, var(--wax) 60%, var(--wax-dark)); box-shadow: 0 0 0 3px var(--gold); }
.roll-card--crit .roll-card__num { background: radial-gradient(circle at 35% 30%, #fff2b8, var(--gold) 60%, #8a5f12); color: var(--ink); }
.roll-card__text p { margin: 0 0 .3em; color: var(--ink); line-height: 1.35; }
.roll-card__verdict { font: 700 1.2rem/1.2 var(--f-head); color: var(--wax) !important; }
.roll-card__game { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.roll-card__game img { width: 84px; height: 56px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 2px var(--parch-edge); }
.roll-card__game a { font: 700 1.25rem/1.15 var(--f-head); }
.roll-card__game small { display: block; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Regionen (Rubriken) ---------- */
.region { display: grid; gap: 28px; }
.region__banner { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 21 / 8; min-height: 260px; box-shadow: 0 0 0 4px #4a2e19, 0 0 0 6px rgba(232, 192, 106, .6), 0 30px 60px -24px rgba(0, 0, 0, .9); }
.region__img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.region__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 10, 2, .55), transparent 55%), linear-gradient(0deg, rgba(20, 10, 2, .45), transparent 50%); }
.region__plate {
	position: absolute; z-index: 1; left: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px); max-width: min(560px, 80%);
	padding: 18px 24px 16px; color: var(--ink);
	background: var(--noise), radial-gradient(ellipse at 30% 20%, #fbf2dc, var(--parch) 60%, var(--parch-deep));
	border-radius: 4px; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .8); border-top: 6px solid var(--rc);
}
.region__plate h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin: .1em 0 .2em; }
.region__stage { margin: 0; font-style: italic; color: var(--ink-soft); }
.region__count { margin: 0; font-weight: 700; color: var(--ink-soft); }
.region__intro { font-size: 1.12rem; }
.region__intro img[src*="trennlinie"] { display: none; }
.items { display: grid; gap: 30px; }

/* ---------- Gegenstandskarte (Spiel) ---------- */
.item {
	position: relative; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); grid-template-areas: "art head" "art body" "stats stats" "actions actions";
	gap: 4px 28px; padding: 26px 28px 22px;
	background: var(--noise), radial-gradient(ellipse at 10% 0%, #fdf6e4, var(--parch-light) 50%, #efdfba);
	border: 2px solid color-mix(in srgb, var(--rc) 75%, #000);
	border-radius: 6px;
	box-shadow: inset 0 0 0 5px var(--parch-light), inset 0 0 0 7px color-mix(in srgb, var(--rc) 55%, transparent), inset 0 0 40px rgba(140, 90, 30, .2), var(--shadow-paper);
}
.item::before, .item::after { /* Eckbeschläge */
	content: ""; position: absolute; width: 34px; height: 34px; background: var(--rc);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M0 0h34v6H10c-2 0-4 2-4 4v24H0Z'/%3E%3Ccircle cx='14' cy='14' r='3.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M0 0h34v6H10c-2 0-4 2-4 4v24H0Z'/%3E%3Ccircle cx='14' cy='14' r='3.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.item::before { top: -2px; left: -2px; }
.item::after { bottom: -2px; right: -2px; transform: rotate(180deg); }
.item__head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 1.5px solid rgba(87, 65, 45, .3); padding-bottom: 8px; margin-bottom: 10px; }
.item__head h4 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); margin: 0; color: var(--ink); }
.item__type { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-style: italic; color: var(--ink-soft); }
.item__type::before { content: ""; width: 12px; height: 12px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 0 2px var(--parch-light), 0 0 0 3px var(--rc); }
.item__art { grid-area: art; align-self: start; margin-top: 4px; }
.item__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 4px var(--parch-light), 0 0 0 6px color-mix(in srgb, var(--rc) 70%, #000), 0 16px 26px -12px rgba(0, 0, 0, .6); }
.item--app .item__art { display: grid; place-items: center; padding: 22px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 35%, var(--parch-light)), color-mix(in srgb, var(--rc) 15%, var(--parch))); }
.item--app .item__art img { width: 160px; aspect-ratio: 1; border-radius: 28%; box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .55), 0 0 0 3px var(--parch-light); }
.item__body { grid-area: body; }
.item__body p { margin-bottom: .8em; }
.item__stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 10px 0 0; padding: 12px 16px; border-radius: 6px; background: rgba(227, 203, 152, .45); border: 1px dashed rgba(87, 65, 45, .45); }
.item__stats > div { display: grid; gap: 2px; }
.item__stats dt { font-style: italic; color: var(--ink-soft); font-size: .95rem; }
.item__stats dd { margin: 0; font-weight: 700; }
.item__stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store-btn, .web-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 8px; background: var(--ink); color: var(--parch-light); text-decoration: none; font-weight: 700; font-size: .98rem; }
.store-btn svg, .web-link svg { width: 18px; height: 18px; flex: none; }
.store-btn:hover, .web-link:hover { color: #fff; background: var(--wax); }
.web-link { background: transparent; color: var(--wax); padding-left: 0; min-height: 32px; }
.web-link:hover { background: transparent; color: var(--wax-dark); text-decoration: underline; }
.item__actions { grid-area: actions; display: flex; justify-content: flex-end; margin-top: 12px; }
.pack-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--leather); background: transparent; color: var(--leather); cursor: pointer; font-weight: 700; }
.pack-btn svg { width: 20px; height: 20px; }
.pack-btn:hover { background: rgba(92, 58, 33, .1); }
.pack-btn[aria-pressed="true"] { background: var(--leather); color: var(--parch-light); }
.item__seal {
	position: absolute; top: -14px; right: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px;
	color: #fff; font: 700 .95rem/1 var(--f-head); letter-spacing: .02em;
	background: radial-gradient(circle at 30% 30%, #c8443a, var(--wax) 60%, var(--wax-dark)); border-radius: 999px;
	box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .25) inset;
	transform: rotate(-4deg); visibility: hidden;
}
.item__seal svg { width: 16px; height: 16px; }
.item.is-found .item__seal { visibility: visible; }

/* ---------- Klassenwahl (Arten) & Chroniken (Serien) ---------- */
.class-grid, .chronicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.class-card, .chronicle-card { display: flex; flex-direction: column; background: var(--parch-light); border: 1.5px solid var(--parch-edge); border-radius: 8px; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(40, 20, 5, .7); }
.class-card__art, .chronicle-card__art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 3px solid var(--gold); }
.class-card__art img, .chronicle-card__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; margin: 0; max-width: none; float: none; }
.class-card__body, .chronicle-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
/* Gleich große Karten: Höhe setzt das Skript (--card-h), zu lange Texte werden ausgeblendet */
.card-text.is-sized { height: var(--card-h); overflow: hidden; }
.card-text.is-clamped { -webkit-mask-image: linear-gradient(#000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(#000 calc(100% - 4.5em), transparent); }
.card-text.is-open { height: auto; -webkit-mask-image: none; mask-image: none; }
.readmore { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 10px; padding: 6px 16px; border: 1.5px solid var(--leather); border-radius: 999px; background: transparent; color: var(--leather); font-weight: 700; cursor: pointer; }
.readmore::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.readmore[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.readmore:hover { background: var(--leather); color: var(--parch-light); }
.readmore[hidden] { display: none; }
.class-card__body h3, .chronicle-card__body h3 { font-size: 1.7rem; margin-bottom: .35em; }
.class-card__body p, .chronicle-card__body p { font-size: 1.04rem; }
.class-card[data-has-video] { grid-column: 1 / -1; }
.chronicle-card { background: linear-gradient(180deg, var(--parch-light), #efdfba); }
.chronicle-card__art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 40px rgba(60, 30, 5, .5); }
.chapter--wissen img, .chapter--payment img { box-shadow: 0 0 0 6px var(--parch-light), 0 0 0 7px var(--parch-edge), 0 14px 26px -12px rgba(0, 0, 0, .5); }
.chapter--payment img { float: right; max-width: 44%; margin: .4em 0 1em 1.6em; }

/* ---------- YouTube (Zwei-Klick) ---------- */
.rkn-video {
	position: relative; margin: 1.6em 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; isolation: isolate;
	background-color: #1b120a; background-position: center; background-size: cover; background-repeat: no-repeat;
	box-shadow: 0 0 0 6px #4a2e19, 0 0 0 8px rgba(232, 192, 106, .65), 0 24px 40px -18px rgba(0, 0, 0, .8);
}
.rkn-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(20, 10, 2, .25), rgba(20, 10, 2, .85)); }
.rkn-video__inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 18px; text-align: center; color: var(--parch-light); }
.rkn-video__button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 22px 8px 12px; border: 2px solid var(--gold-light); border-radius: 999px; background: radial-gradient(circle at 35% 30%, #c8443a, var(--wax) 60%, var(--wax-dark)); color: #fff; font: 700 1.15rem/1 var(--f-body); cursor: pointer; box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .8); }
.rkn-video__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--parch-light); position: relative; }
.rkn-video__icon::after { content: ""; position: absolute; left: 13px; top: 9px; border-left: 12px solid var(--wax); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.rkn-video__button:hover { filter: brightness(1.1); }
.rkn-video__note { margin: 0; max-width: 52ch; font-size: .92rem; line-height: 1.45; color: var(--parch); text-shadow: 0 1px 2px #000; }
.rkn-video__note a { color: var(--gold-light); }
.rkn-video.is-loaded { background: #000; }
.rkn-video.is-loaded::before { display: none; }
.rkn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Charakterbogen ---------- */
.sheet { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); display: flex; }
.sheet__inner {
	position: relative; width: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
	padding: 20px 20px 24px; color: var(--parch);
	background: var(--noise), radial-gradient(ellipse at 30% 0%, #6e472a, var(--leather) 45%, #3f2715);
	border-radius: 12px; box-shadow: inset 0 0 0 2px #2a190d, inset 0 0 30px rgba(0, 0, 0, .55), 0 26px 50px -22px rgba(0, 0, 0, .9);
}
.sheet__inner::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(232, 192, 106, .38); border-radius: 8px; pointer-events: none; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet__title { font-size: 1.7rem; margin: 0; color: var(--parch-light); }
.sheet__close { display: none; }
.sheet__hint { font-size: .95rem; font-style: italic; color: var(--parch-deep); margin-bottom: 12px; }
.regionwin { position: relative; margin: 0 0 14px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 8; box-shadow: 0 0 0 2px var(--gold), 0 10px 18px -8px rgba(0, 0, 0, .8); }
.regionwin__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.regionwin__imgs img.is-on { opacity: 1; }
.regionwin figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; background: linear-gradient(0deg, rgba(20, 10, 2, .9), transparent); line-height: 1.2; }
.regionwin figcaption span { display: block; font-size: .8rem; font-style: italic; color: var(--parch-deep); }
.regionwin figcaption strong { font: 700 1.2rem/1.1 var(--f-head); color: #fff; }
.sheet__tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 2px solid rgba(232, 192, 106, .35); }
.sheet__tabs button { flex: 1; min-height: 42px; padding: 6px 8px; border: 0; border-radius: 8px 8px 0 0; background: rgba(0, 0, 0, .2); color: var(--parch); cursor: pointer; font-weight: 700; }
.sheet__tabs button[aria-selected="true"] { background: var(--parch-light); color: var(--ink); }
.sheet__panel[hidden] { display: none; }
.hero-card { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.hero-card__avatar { width: 62px; height: 62px; padding: 8px; border-radius: 50%; color: var(--gold-light); background: radial-gradient(circle, #4a2e19, #2a190d); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(0, 0, 0, .3); }
.hero-card__rank { margin: 0; font: 700 1.45rem/1.1 var(--f-head); color: var(--parch-light); }
.hero-card__level { margin: 0; color: var(--parch-deep); }
.hero-card__level strong { color: var(--gold-light); font-size: 1.2rem; }
.meter { margin-bottom: 12px; }
.meter__label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 4px; color: var(--parch); }
.meter__track { position: relative; height: 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .1); overflow: hidden; }
.meter__track--small { height: 10px; }
.meter__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v, 0)); border-radius: inherit; background: linear-gradient(90deg, #a06a17, var(--gold-light)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.meter--hp .meter__fill { background: linear-gradient(90deg, #6e1712, #d6463a); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.stats > div { padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(232, 192, 106, .25); }
.stats dt { font-size: .82rem; font-style: italic; color: var(--parch-deep); }
.stats dd { margin: 0; font: 700 1.25rem/1.2 var(--f-head); color: var(--parch-light); }
.dailyquest { padding: 12px 14px; margin: 0 0 14px; border-radius: 8px; background: var(--parch-light); color: var(--ink); box-shadow: inset 0 0 20px rgba(140, 90, 30, .3); }
.dailyquest__title { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin: 0 0 4px; color: var(--wax); }
.dailyquest__title svg { width: 20px; height: 20px; }
.dailyquest__text { margin: 0 0 8px; font-size: .98rem; line-height: 1.4; }
.dailyquest .meter__track { background: rgba(87, 65, 45, .25); }
.dailyquest__state { margin: 6px 0 0; font-size: .88rem; color: var(--ink-soft); }
.dailyquest.is-done { box-shadow: inset 0 0 0 2px var(--forest); }
.achievements__title { font-size: 1.3rem; color: var(--parch-light); margin: 0 0 8px; }
.achievements__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ach { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .35); color: rgba(242, 227, 194, .35); box-shadow: inset 0 0 0 1.5px rgba(232, 192, 106, .25); cursor: help; }
.ach svg { width: 55%; height: 55%; }
.ach.is-on { color: var(--leather-deep); background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold) 60%, #8a5f12); box-shadow: 0 0 0 2px var(--gold-light), 0 0 12px rgba(232, 192, 106, .55); }
.ach__tip { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 50%; width: 200px; transform: translateX(-50%); padding: 8px 10px; border-radius: 8px; background: var(--parch-light); color: var(--ink); font-size: .85rem; line-height: 1.35; box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .8); visibility: hidden; pointer-events: none; }
.ach__tip strong { display: block; font-family: var(--f-head); font-size: 1rem; color: var(--wax); }
.ach:hover .ach__tip, .ach:focus-visible .ach__tip { visibility: visible; }
.achievements__list .ach:nth-child(7n+1) .ach__tip { left: 0; transform: none; }
.achievements__list .ach:nth-child(7n) .ach__tip, .achievements__list .ach:nth-child(7n+6) .ach__tip { left: auto; right: 0; transform: none; }

/* Questlog */
.questlog, .questlog ol { list-style: none; margin: 0; padding: 0; }
.questlog a { display: flex; gap: 8px; align-items: flex-start; padding: 5px 6px; border-radius: 6px; color: var(--parch); text-decoration: none; line-height: 1.3; font-size: .97rem; }
.questlog a:hover { background: rgba(0, 0, 0, .25); color: #fff; }
.questlog a.is-current { background: var(--parch-light); color: var(--ink); }
.ql-check { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 4px; border: 1.5px solid rgba(232, 192, 106, .6); }
.ql-check svg { width: 13px; height: 13px; opacity: 0; color: var(--forest); }
.is-done > .ql-check, a.is-done .ql-check { background: var(--gold-light); border-color: var(--gold-light); }
a.is-done .ql-check svg { opacity: 1; color: var(--leather-deep); }
.ql-chapter > a { font: 700 1.1rem/1.2 var(--f-head); color: var(--parch-light); margin-top: 8px; }
.ql-chapter > ol { padding-left: 12px; border-left: 1.5px solid rgba(232, 192, 106, .25); margin-left: 8px; }
.ql-region details { border-radius: 6px; }
.ql-region summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; border-radius: 6px; font-weight: 700; color: var(--parch-light); list-style: none; }
.ql-region summary::-webkit-details-marker { display: none; }
.ql-region summary::before { content: "▸"; color: var(--gold-light); transition: transform .2s; }
.ql-region details[open] summary::before { transform: rotate(90deg); }
.ql-summary { flex: 1; border-left: 4px solid var(--rc); padding-left: 8px; }
.ql-count { font-size: .85rem; font-weight: 600; color: var(--parch-deep); }
.ql-region summary:hover { background: rgba(0, 0, 0, .25); }
.ql-region ol { padding-left: 14px; }
.questlog--flat .ql-l3 { padding-left: 14px; }

/* Rucksack */
.bag { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bag li { aspect-ratio: 1; border-radius: 8px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1.5px rgba(232, 192, 106, .25), inset 0 6px 10px rgba(0, 0, 0, .45); position: relative; overflow: hidden; }
.bag li.is-filled { box-shadow: inset 0 0 0 2px var(--gold); }
.bag a { position: absolute; inset: 0; display: block; }
.bag img { width: 100%; height: 100%; object-fit: cover; }
.bag a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4px 3px; font-size: .68rem; line-height: 1.1; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); text-align: center; }

/* Charakterbogen-Knopf (mobil) */
.sheet-fab { display: none; }
body.drawer-open .sheet-fab { visibility: hidden; }

/* ---------- Questbrett (Kategorie) ---------- */
.questboard { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 10px; background: var(--grain), linear-gradient(135deg, #6b4425, #4a2e19 60%, #5e3b20); box-shadow: inset 0 0 0 3px #2a190d, inset 0 0 0 6px rgba(232, 192, 106, .35), inset 0 0 50px rgba(0, 0, 0, .6), 0 30px 60px -24px rgba(0, 0, 0, .9); }
.questboard .ui-heading { color: var(--parch-light); text-align: center; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.questboard__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.questboard__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.notice { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; color: var(--ink); rotate: var(--rot, 0deg); background: var(--noise), radial-gradient(ellipse at 30% 10%, #fdf6e4, var(--parch) 60%, #e6d2a4); box-shadow: inset 0 0 30px rgba(140, 90, 30, .3), 0 18px 28px -14px rgba(0, 0, 0, .9); transition: rotate .25s ease, translate .25s ease; }
.notice:hover, .notice:focus-within { rotate: 0deg; translate: 0 -4px; }
.notice__pin { position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e86a5c, var(--wax) 60%, #4a0f0b); box-shadow: 0 4px 6px rgba(0, 0, 0, .6); z-index: 1; }
.notice__art { display: block; margin: 0 0 12px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 3px var(--parch-light), 0 0 0 4px var(--parch-edge); }
.notice__art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.notice__title { font-size: 1.45rem; margin: 0 0 .4em; }
.notice__title a { color: var(--ink); text-decoration: none; }
.notice__title a:hover { color: var(--wax); text-decoration: underline; }
.notice__excerpt { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.notice__more { align-self: flex-start; font-weight: 700; }
.notice--small .notice__title { font-size: 1.2rem; }
.cat-intro { font-size: 1.15rem; }
.cat-intro > p:first-of-type::first-letter { float: left; font: 800 4em/.86 var(--f-body); color: var(--wax); margin: .06em .12em 0 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; color: var(--parch); }
.pager__seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 800 1.4rem/1 var(--f-head); color: var(--ink); background: var(--parch-light); text-decoration: none; box-shadow: 0 6px 12px rgba(0, 0, 0, .6); }
.pager__seal[aria-current] { color: #fff; background: radial-gradient(circle at 35% 30%, #c8443a, var(--wax) 60%, var(--wax-dark)); box-shadow: 0 0 0 3px var(--gold), 0 6px 12px rgba(0, 0, 0, .6); }
.pager__next { color: var(--parch-light); font-weight: 700; }
.pager__next:hover { color: #fff; }
.pager__info { width: 100%; text-align: center; margin: 4px 0 0; font-style: italic; }

/* ---------- Beitrag (Review, News) ---------- */
.article { font-size: 1.15rem; counter-reset: kapitel; }

/* Steckbrief am Anfang: Beitragsbild als Gegenstandskarte, Fakten, Sprungmarken */
.dossier {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
	margin: 0 0 clamp(26px, 3.5vw, 40px); padding: clamp(16px, 2vw, 24px);
	border-radius: 10px; background: var(--noise), radial-gradient(ellipse at 10% 0%, #fdf6e4, var(--parch-light) 55%, #efdfba);
	box-shadow: inset 0 0 0 4px var(--parch-light), inset 0 0 0 6px color-mix(in srgb, var(--rc) 70%, #000), inset 0 0 40px rgba(140, 90, 30, .22), 0 18px 30px -18px rgba(40, 20, 5, .8);
}
.dossier::before, .dossier::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--rc); pointer-events: none; }
.dossier::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.dossier::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.dossier__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 4px var(--parch-light), 0 0 0 6px color-mix(in srgb, var(--rc) 70%, #000), 0 18px 28px -14px rgba(0, 0, 0, .7); }
.dossier__type { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.3rem/1.2 var(--f-head); color: var(--wax); }
.dossier__gem { width: 14px; height: 14px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 0 2px var(--parch-light), 0 0 0 3px var(--rc); }
.dossier__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.dossier__facts > div { padding: 8px 12px; border-radius: 8px; background: rgba(140, 90, 30, .1); border: 1px dashed rgba(122, 80, 30, .45); }
.dossier__facts dt { font-size: .85rem; font-style: italic; color: var(--ink-soft); }
.dossier__facts dd { margin: 0; font: 700 1.2rem/1.25 var(--f-head); color: var(--ink); }
.dossier__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dossier__actions .btn--ghost { --b: var(--leather); }
.dossier:not(:has(.dossier__art)) { grid-template-columns: 1fr; }

/* Inhalt im Artikel (Handy/Tablet), auf dem Desktop übernimmt die Seitenleiste */
.article-toc { display: none; margin: 0 0 28px; border-radius: 8px; background: rgba(140, 90, 30, .1); border: 1.5px solid var(--parch-edge); }
.article-toc summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font: 700 1.25rem/1.2 var(--f-head); color: var(--ink); }
.article-toc summary span { font: italic 400 .95rem var(--f-body); color: var(--ink-soft); }
.article-toc ol { list-style: none; margin: 0; padding: 0 16px 14px; }
.article-toc li { margin: 0; }
.article-toc .ql-l3 { padding-left: 18px; }
.article-toc a { display: block; padding: 7px 0; border-top: 1px dashed rgba(122, 80, 30, .3); color: var(--ink); text-decoration: none; }
.article-toc a b { color: var(--wax); font-weight: 700; }

/* Fließtext */
.article__body > p:first-of-type { font-size: 1.12em; }
.article__body h2 { position: relative; text-align: left; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.5em 0 .5em; counter-increment: kapitel; }
.article__body h2::before { content: "Kapitel " counter(kapitel); display: block; margin-bottom: .25em; font: italic 600 1rem/1 var(--f-body); letter-spacing: .02em; color: var(--wax); }
.article__body h2::after { margin-left: 0; }
.article__body h3 { display: flex; align-items: center; gap: 12px; margin: 1.4em 0 .5em; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.article__body h3::before { content: ""; flex: none; width: 12px; height: 12px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 2px var(--parch-light), 0 0 0 3px var(--wax); }
.article__body .alignleft { float: left; width: min(44%, 320px); margin: .35em 1.6em 1em 0; box-shadow: 0 0 0 5px var(--parch-light), 0 0 0 6px var(--parch-edge), 0 14px 24px -12px rgba(0, 0, 0, .55); }
.article__body .alignright { float: right; width: min(44%, 320px); margin: .35em 0 1em 1.6em; box-shadow: 0 0 0 5px var(--parch-light), 0 0 0 6px var(--parch-edge), 0 14px 24px -12px rgba(0, 0, 0, .55); }
.article__body .rkn-video { margin: 1.6em 0; }
.article__body::after { content: ""; display: table; clear: both; }

/* Fazit als versiegelter Kasten */
.verdict {
	position: relative; clear: both; margin: 2.2em 0 .4em; padding: clamp(26px, 3.5vw, 40px) clamp(20px, 3vw, 36px) clamp(20px, 3vw, 30px);
	border-radius: 10px; background: var(--noise), radial-gradient(ellipse at 50% 0%, #fffaf0, #f6e9cc 60%, #ecd8ad);
	box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--parch-light), inset 0 0 0 7px var(--parch-edge), 0 20px 34px -18px rgba(40, 20, 5, .85);
}
.verdict__seal {
	position: absolute; top: -26px; right: clamp(16px, 4vw, 40px); display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
	font: 700 1.05rem/1 var(--f-head); color: #fbe9c4; rotate: -8deg;
	background: radial-gradient(circle at 35% 30%, #c8443a, var(--wax) 60%, var(--wax-dark));
	box-shadow: 0 0 0 4px rgba(122, 30, 24, .35), inset 0 0 0 3px rgba(255, 220, 170, .35), 0 10px 18px rgba(0, 0, 0, .45);
}
.verdict h2 { margin-top: 0; padding-right: 90px; }
.verdict h2::before { content: "Kapitel " counter(kapitel) " · Abschluss"; }
.verdict > p:last-child { margin-bottom: 0; }

/* Weiterreisen: älterer / neuerer Beitrag + Übersicht */
.journey { padding: clamp(22px, 3vw, 34px); border-radius: 10px; background: var(--grain), linear-gradient(135deg, #6b4425, #4a2e19 60%, #5e3b20); box-shadow: inset 0 0 0 3px #2a190d, inset 0 0 0 6px rgba(232, 192, 106, .35), inset 0 0 50px rgba(0, 0, 0, .6), 0 30px 60px -24px rgba(0, 0, 0, .9); }
.journey__heading { color: var(--parch-light); text-align: center; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .7em; }
.journey__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .5fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.journey__card { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px; border-radius: 8px; color: var(--ink); text-decoration: none; background: var(--noise), radial-gradient(ellipse at 30% 10%, #fdf6e4, var(--parch) 60%, #e6d2a4); box-shadow: inset 0 0 30px rgba(140, 90, 30, .3), 0 18px 28px -14px rgba(0, 0, 0, .9); transition: translate .25s ease; }
a.journey__card:hover, a.journey__card:focus-visible { translate: 0 -4px; color: var(--ink); }
.journey__card--next { text-align: right; }
.journey__dir { font-weight: 700; color: var(--wax); }
.journey__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 3px var(--parch-light), 0 0 0 4px var(--parch-edge); }
.journey__title { font: 700 1.3rem/1.2 var(--f-head); }
.journey__date { font-size: .92rem; font-style: italic; color: var(--ink-soft); }
.journey__card--empty { justify-content: center; text-align: center; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 2px rgba(232, 192, 106, .3); }
.journey__card--empty .journey__dir { color: var(--parch); font-weight: 400; font-style: italic; }
.journey__hub { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 18px 10px; border-radius: 50%; aspect-ratio: 1; align-self: center; text-align: center; text-decoration: none; color: #fbe9c4; background: radial-gradient(circle at 35% 30%, #c8443a, var(--wax) 60%, var(--wax-dark)); box-shadow: 0 0 0 4px var(--gold), 0 0 0 8px rgba(0, 0, 0, .25), 0 16px 26px rgba(0, 0, 0, .6); transition: scale .25s ease; }
.journey__hub:hover, .journey__hub:focus-visible { scale: 1.05; color: #fff; }
.journey__hub svg { width: 30px; height: 30px; }
.journey__hub span { font: 700 1.2rem/1.1 var(--f-head); }
.journey__hub small { font-size: .85rem; }

/* Beitragsliste in der Seitenleiste */
.postlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.postlist a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; color: var(--parch); text-decoration: none; }
.postlist a:hover { background: rgba(0, 0, 0, .25); color: #fff; }
.postlist a.is-current { background: var(--parch-light); color: var(--ink); box-shadow: inset 4px 0 0 var(--wax); }
.postlist img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(232, 192, 106, .5); }
.postlist__text { display: grid; line-height: 1.25; }
.postlist__title { font-size: .95rem; font-weight: 700; }
.postlist__date { font-size: .8rem; font-style: italic; opacity: .85; }
.postlist__all { display: inline-block; margin-top: 4px; color: var(--gold-light); font-weight: 700; }
.postlist__all:hover { color: #fff; }
.sheet__tabs--four button { padding-inline: 4px; font-size: .92rem; }
.ql-text { display: grid; }
.ql-num { font-size: .78rem; font-style: italic; color: var(--gold-light); }
.questlog a.is-current .ql-num { color: var(--wax); }
.questlog--flat .ql-l2 > a { font-weight: 700; margin-top: 4px; }
.pager__prev { order: -1; }

/* ---------- Footer: Taverne ---------- */
.tavern { position: relative; isolation: isolate; color: var(--parch-light); overflow: hidden; background: var(--grain), linear-gradient(180deg, #2b1b0f, #170d06); }
.tavern__scene { position: absolute; inset: 0 0 auto 0; height: min(84vh, 820px); z-index: -1; }
.tavern__img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.tavern__glow { position: absolute; left: 0; top: 0; width: 420px; height: 360px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 170, 70, .7), rgba(255, 120, 30, .25) 45%, rgba(255, 120, 30, 0) 70%); mix-blend-mode: screen; pointer-events: none; }
.tavern__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tavern__shade { position: absolute; inset: 0; background: linear-gradient(180deg, #2b1b0f 0%, rgba(22, 12, 5, .3) 16%, rgba(22, 12, 5, .12) 50%, rgba(23, 13, 6, .7) 80%, #1f1309 100%), linear-gradient(90deg, rgba(20, 10, 2, .65), transparent 45%); }
.tavern__content { max-width: 1440px; margin: 0 auto; padding: clamp(110px, 12vw, 190px) 32px 40px; display: grid; gap: 34px; }
.tavern__welcome { margin-bottom: clamp(120px, 18vw, 300px); }
.tavern__welcome { max-width: 640px; }
.tavern__kicker { font-style: italic; color: var(--gold-light); margin: 0 0 4px; font-size: 1.1rem; }
.tavern__title { font: 800 clamp(2.4rem, 5vw, 4.4rem)/1.02 var(--f-head); margin: 0 0 .25em; text-shadow: 0 4px 18px rgba(0, 0, 0, .9); }
.tavern__lead { font-size: 1.2rem; color: var(--parch); text-shadow: 0 2px 8px #000; max-width: 46ch; }
.board {
	display: grid; grid-template-columns: 1fr 1.25fr 1.25fr .9fr; gap: 26px; align-items: start; padding: 34px 30px 30px;
	background: var(--grain), linear-gradient(135deg, #6b4425, #4a2e19 60%, #5e3b20); border-radius: 10px;
	box-shadow: inset 0 0 0 3px #2a190d, inset 0 0 0 7px rgba(232, 192, 106, .35), inset 0 0 50px rgba(0, 0, 0, .55), 0 40px 80px -30px rgba(0, 0, 0, 1);
}
.note { position: relative; padding: 22px 18px 16px; color: var(--ink); rotate: var(--rot); background: var(--noise), radial-gradient(ellipse at 30% 10%, #fdf6e4, var(--parch) 60%, #e6d2a4); box-shadow: inset 0 0 26px rgba(140, 90, 30, .3), 0 16px 26px -12px rgba(0, 0, 0, .9); transition: rotate .3s ease, translate .3s ease; }
.note:hover, .note:focus-within { rotate: 0deg; translate: 0 -3px; }
.note__pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4d27a, var(--gold) 60%, #6e4a0e); box-shadow: 0 4px 6px rgba(0, 0, 0, .6); }
.note__title { font-size: 1.45rem; margin: 0 0 8px; color: var(--wax); border-bottom: 1.5px solid rgba(87, 65, 45, .3); padding-bottom: 4px; }
.note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.note a { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.note a span { font-weight: 400; font-style: italic; color: var(--ink-soft); white-space: nowrap; font-size: .92rem; }
.note a:hover { color: var(--wax); text-decoration: underline; }
.note a[style] { border-left: 4px solid var(--rc); padding-left: 8px; }
.note--news a { display: block; }
.tavern__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tavern__actions .btn--ghost { --b: rgba(20, 10, 2, .75); }
.tavern__legal { margin: 0; color: var(--parch-deep); font-size: .95rem; }

/* ---------- Meldungen (Erfolge) ---------- */
.toasts { position: fixed; z-index: 200; right: 18px; top: calc(var(--header-h) + 14px); display: grid; gap: 10px; pointer-events: none; width: min(360px, calc(100vw - 36px)); }
.toast { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 12px; color: var(--parch-light); background: var(--noise), linear-gradient(135deg, #6e472a, #3f2715); box-shadow: 0 0 0 2px var(--gold), 0 20px 40px -12px rgba(0, 0, 0, .9); }
.toast__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--leather-deep); background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold) 60%, #8a5f12); }
.toast__icon svg { width: 28px; height: 28px; }
.toast p { margin: 0; line-height: 1.3; }
.toast__kind { font-size: .85rem; font-style: italic; color: var(--gold-light); }
.toast__name { font: 700 1.25rem/1.15 var(--f-head); }
.toast__desc { font-size: .92rem; color: var(--parch); }

/* ---------- Dialog ---------- */
.confirm { max-width: 460px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.confirm::backdrop { background: rgba(20, 10, 2, .7); backdrop-filter: blur(3px); }
.confirm form { padding: 28px 28px 22px; background: var(--noise), radial-gradient(ellipse at 30% 10%, #fdf6e4, var(--parch) 60%, #e6d2a4); border-radius: 10px; box-shadow: 0 0 0 3px var(--leather), 0 30px 60px rgba(0, 0, 0, .8); }
.confirm h2 { font-size: 1.9rem; color: var(--wax); }
.confirm__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.confirm .btn--ghost { --b: var(--leather); }

/* ---------- Feder-Mauszeiger auf Pergament ---------- */
@media (pointer: fine) {
	html:not(.reduce-fx) .page, html:not(.reduce-fx) .item { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M27 2C17 4 9 12 6 24l-3 6 2 1 3-5c3-2 7-3 10-7-3 0-4 0-6-1 4-1 7-3 9-6-2 0-4 0-5-1 4-2 7-5 11-9Z' fill='%232B1D12' stroke='%23F8EDD3' stroke-width='1.2'/%3E%3C/svg%3E") 3 29, auto; }
	html:not(.reduce-fx) .page a, html:not(.reduce-fx) .item a, html:not(.reduce-fx) .item button { cursor: pointer; }
}

/* ---------- Seitenwechsel (View Transitions) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: page-out .45s cubic-bezier(.4, 0, .2, 1) both; transform-origin: left center; }
	::view-transition-new(root) { animation: page-in .45s cubic-bezier(.4, 0, .2, 1) both; transform-origin: right center; }
}
@keyframes page-out { to { opacity: 0; transform: perspective(1400px) rotateY(-18deg) translateX(-4%); filter: brightness(.6); } }
@keyframes page-in { from { opacity: 0; transform: perspective(1400px) rotateY(14deg) translateX(4%); filter: brightness(.7); } }

/* ---------- Reduzierte Bewegung / Effekte aus ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html.reduce-fx *, html.reduce-fx *::before, html.reduce-fx *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
html.reduce-fx .tavern__sparks { display: none; }
html.reduce-fx .notice, html.reduce-fx .note { rotate: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1320px) {
	.mainnav__list a { padding-inline: 8px; font-size: .98rem; }
	.brand__name { font-size: 1.35rem; }
	.board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
	.layout { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding-inline: 20px; }
	.item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body" "stats" "actions"; }
	.item__art { max-width: 520px; }
	.item--app .item__art { max-width: none; }
	.questboard__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.questboard__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dicetable { grid-template-columns: 1fr; min-height: 0; }
	.dicetable__panel { margin: 8px 8px 0; rotate: -.5deg; }
	.dicetable__stage { min-height: 0; aspect-ratio: 16 / 10; margin: 6px -6px -6px; }
	.hero__inner { grid-template-columns: 1fr; }
	.npc { justify-self: end; }
}
@media (max-width: 1240px) {
	.menu-toggle { display: inline-grid; }
	.site-header__bar { justify-content: space-between; }
	.mainnav {
		position: fixed; z-index: 120; inset: 0 0 0 auto; width: min(380px, 88vw); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px;
		padding: 18px 20px 28px; overflow-y: auto;
		background: var(--noise), linear-gradient(180deg, #5c3a21, #3b2414);
		box-shadow: -20px 0 50px rgba(0, 0, 0, .7);
		transform: translateX(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
	}
	.mainnav.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
	.mainnav__head { display: flex; justify-content: space-between; align-items: center; }
	.mainnav__title { font: 700 1.6rem/1 var(--f-head); color: var(--parch-light); }
	.mainnav__list { flex-direction: column; flex-wrap: nowrap; }
	.mainnav__list a { font-size: 1.2rem; padding: 14px 12px; border-left: 4px solid var(--rc, var(--gold)); background: rgba(0, 0, 0, .18); }
	.mainnav__list a::after { display: none; }
	.mainnav__tools { flex-direction: column; }
	.mainnav__tools .tool { width: auto; height: auto; justify-content: flex-start; padding: 8px 14px; min-height: 46px; }
	.mainnav__tools .tool__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	/* unter dem Header (z 50, dessen Menü-Schublade darin liegt), über dem Inhalt */
	.nav-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(10, 5, 0, .6); }
}
@media (max-width: 1060px) {
	:root { --header-h: 64px; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sheet { position: fixed; z-index: 130; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); max-height: none; transform: translateX(-105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s; }
	.sheet.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
	.sheet__inner { border-radius: 0 12px 12px 0; }
	.sheet__close { display: inline-grid; }
	.sheet-fab {
		position: fixed; z-index: 90; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 18px 6px 6px;
		border: 2px solid var(--gold); border-radius: 999px; color: var(--parch-light); cursor: pointer;
		background: var(--noise), linear-gradient(135deg, #6e472a, #3f2715); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .9);
	}
	.sheet-fab__ring { position: absolute; left: 6px; top: 50%; width: 44px; height: 44px; margin-top: -22px; transform: rotate(-90deg); }
	.sheet-fab__ring circle { fill: none; stroke: rgba(0, 0, 0, .4); stroke-width: 4; }
	.sheet-fab__ring .sheet-fab__arc { stroke: var(--gold-light); stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--xp, 0)); stroke-linecap: round; transition: stroke-dashoffset .6s; }
	.sheet-fab__lvl { position: relative; display: grid; place-items: center; width: 44px; height: 44px; font: 800 1.25rem/1 var(--f-head); color: var(--gold-light); }
	.sheet-fab__label { font-weight: 700; }
	.board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-toc { display: block; }
}
@media (max-width: 900px) {
	.dossier { grid-template-columns: 1fr; }
	.journey__grid { grid-template-columns: 1fr 1fr; }
	.journey__hub { grid-column: 1 / -1; grid-row: 2; aspect-ratio: auto; border-radius: 999px; padding: 12px 22px; grid-auto-flow: column; gap: 10px; justify-self: center; }
	.journey__hub small { display: none; }
}
@media (max-width: 760px) {
	body { font-size: 1.06rem; }
	.brand__name { font-size: 1.15rem; }
	.brand__seal { width: 36px; height: 41px; }
	.site-header__bar { gap: 10px; padding: 6px 12px 10px; }
	.dice-link { padding: 4px; }
	.dice-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hero { min-height: 0; }
	.hero__inner { padding: 70px 16px 24px; }
	.scroll-banner { padding: 24px 20px 20px; }
	.scroll-banner__lead { font-size: 1.05rem; }
	.npc { justify-self: stretch; justify-content: flex-end; }
	.npc__img { width: 150px; margin-bottom: -24px; }
	.npc__bubble { max-width: none; flex: 1; margin-bottom: 70px; margin-right: -10px; font-size: .98rem; }
	.layout { padding: 20px 12px 100px; }
	.book { gap: 28px; }
	.page { padding: 26px 20px; }
	.page .alignright, .page .alignleft, .chapter--payment img { float: none; margin: 1em auto; max-width: 100%; }
	.article__body .alignleft, .article__body .alignright { float: none; width: 100%; margin: .4em 0 1.2em; }
	.dossier__facts { grid-template-columns: 1fr 1fr; }
	.journey__grid { grid-template-columns: 1fr; }
	.journey__card--next { text-align: left; }
	.verdict h2 { padding-right: 70px; }
	.verdict__seal { width: 62px; height: 62px; top: -20px; font-size: .95rem; }
	.region__banner { aspect-ratio: 4 / 3; min-height: 0; }
	.region__plate { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 16px; }
	.item { padding: 22px 16px 16px; }
	.item__seal { right: 14px; }
	.class-grid, .chronicle-grid { grid-template-columns: 1fr; }
	.questboard__grid, .questboard__grid--four { grid-template-columns: 1fr; }
	.pin__label { display: none; }
	.pin__seal { width: 34px; height: 34px; font-size: 1rem; }
	.worldmap__frame { padding: 8px; }
	.worldmap__pins, .worldmap__route { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
	.worldmap .worldmap__legend { display: grid; }
	.board { grid-template-columns: 1fr; padding: 26px 16px 20px; }
	.tavern__content { padding: 90px 14px 100px; }
	.dicetable { padding: 20px 16px; border-radius: 14px; box-shadow: inset 0 0 0 10px #4a2e19, inset 0 0 0 11px #2a190d, inset 0 0 0 13px rgba(232, 192, 106, .55), inset 0 0 50px 16px rgba(0, 0, 0, .55), 0 24px 40px -20px rgba(0, 0, 0, .9); }
	.dicetable::before, .dicetable::after { width: 30px; height: 30px; }
	.dicetable__panel { margin: 4px 4px 0; padding: 22px 18px 18px; rotate: none; }
	.dicetable__stage { order: -1; aspect-ratio: 4 / 3; margin: -2px -2px 4px; }
	.dicetable__result { min-height: 118px; }
	.dicetable__hint { right: 14px; bottom: 8px; font-size: .82rem; }
	.roll-card { grid-template-columns: auto 1fr; gap: 10px 14px; padding: 12px; }
	.roll-card__num { width: 54px; height: 54px; font-size: 1.6rem; }
	.roll-card__game { grid-column: 1 / -1; }
	.roll-card__game img { width: 72px; height: 48px; }
	.roll-card__game a { font-size: 1.12rem; }
	.toasts { top: calc(var(--header-h) + 8px); right: 10px; width: min(320px, calc(100vw - 20px)); gap: 6px; }
	.toast { grid-template-columns: 36px 1fr; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 10px; }
	.toast__icon { width: 36px; height: 36px; }
	.toast__icon svg { width: 20px; height: 20px; }
	.toast__name { font-size: 1.05rem; }
	.toast__desc { font-size: .85rem; }
	.toast__kind { font-size: .78rem; }
}
.worldmap__legend { display: none; list-style: none; margin: 14px 0 0; padding: 0; gap: 8px; }
.worldmap__legend a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--parch-light); color: var(--ink); text-decoration: none; font-weight: 700; border-left: 6px solid var(--rc); }
.worldmap__legend a span { margin-left: auto; font-weight: 400; font-style: italic; color: var(--ink-soft); }
.worldmap__legend b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rc); color: #fff; font-family: var(--f-head); }

@media print {
	.site-header, .sheet, .sheet-fab, .tavern, .dicetable, .worldmap, .toasts { display: none !important; }
	body { background: #fff; }
	.page, .item { box-shadow: none; background: #fff; }
}
