/* Skat-Stammtisch public website.
   Look: light and airy "classic card club" – ivory/cream paper, deep baize green for headings and two feature bands,
   brass gold for primary buttons and accents, card red for ♥ ♦. Self-hosted fonts: Fraunces (headings), Inter (text).
   Dark mode via prefers-color-scheme (baize-deep background, cream text, gold accents). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", "Noto Serif", serif;

  --green: #17392e;
  --green-deep: #0c241c;
  --green-lamp: #245540;
  --brass: #d9a648;
  --brass-light: #f3d08a;
  --brass-deep: #8f6420;
  --on-brass: #241a08;
  --suit-red-fixed: #b3262e;

  --bg: #fbf9f3;
  --bg-alt: #f3f0e7;
  --surface: #ffffff;
  --text: #1e2a24;
  --heading: #17392e;
  --muted: #5b6156;
  --line: #d6cfbd;
  --divider: #e5dfd0;
  --link: #1d6047;
  --accent-text: #8f6420;
  --brass-tint: #f8ecd2;
  --green-tint: #e6eee9;
  --suit-red: #b3262e;
  --suit-dark: #1f2a24;
  --shadow: 0 1px 2px rgb(23 57 46 / .06), 0 6px 20px rgb(23 57 46 / .07);
  --shadow-hover: 0 2px 4px rgb(23 57 46 / .08), 0 14px 32px rgb(23 57 46 / .12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c241c;
    --bg-alt: #0f2b22;
    --surface: #133429;
    --text: #ece7da;
    --heading: #f3f0e7;
    --muted: #b8b5a6;
    --line: #2d5444;
    --divider: #234838;
    --link: #f3d08a;
    --accent-text: #f3d08a;
    --brass-tint: #2b3a22;
    --green-tint: #1a3f32;
    --suit-red: #ff8f8f;
    --suit-dark: #ece7da;
    --shadow: 0 1px 2px rgb(0 0 0 / .25), 0 6px 20px rgb(0 0 0 / .2);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / .3), 0 14px 32px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 650; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; 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: -60px; z-index: 100; background: var(--brass); color: var(--on-brass); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.suit { width: .95em; height: .95em; vertical-align: -.12em; fill: var(--suit-dark); flex: none; }
.suit-h, .suit-d { fill: var(--suit-red); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.15em; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--heading);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn-green { background: var(--green); border-color: var(--green); color: #fbf9f3; }
.btn-green:hover { background: var(--green-lamp); border-color: var(--green-lamp); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-outline-light { background: transparent; border-color: rgb(243 240 231 / .55); color: #fbf9f3; }
.btn-outline-light:hover { background: rgb(243 240 231 / .1); border-color: #f3f0e7; }
.btn-sm { min-height: 38px; padding: .45em .95em; font-size: .93rem; }
.btn-lg { min-height: 52px; padding: .8em 1.5em; font-size: 1.06rem; }
@media (prefers-color-scheme: dark) {
  .btn-green { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
  .btn-green:hover { background: var(--brass-light); border-color: var(--brass-light); }
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 249 243 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--divider);
}
@media (prefers-color-scheme: dark) { .site-header { background: rgb(12 36 28 / .92); } }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); flex: none; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.wordmark { font: 650 1.4rem/1 var(--font-head); letter-spacing: -.01em; color: var(--heading); }
.wordmark span { color: var(--accent-text); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav > a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem;
  padding: 8px 12px; border-radius: 8px; position: relative;
}
.site-nav > a:hover { background: var(--bg-alt); }
.site-nav > a[aria-current="page"] { color: var(--heading); font-weight: 650; }
.site-nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brass); border-radius: 2px;
}
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 8px; font-size: .85rem; font-weight: 600; }
.lang > * { padding: 3px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--heading); background: var(--bg-alt); }
.lang .lang-cur { background: var(--green); color: #fbf9f3; }
@media (prefers-color-scheme: dark) { .lang .lang-cur { background: var(--brass); color: var(--on-brass); } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--heading); cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.nav-open .menu-btn .icon-open { display: none; }
.nav-open .menu-btn .icon-close { display: block; }

@media (max-width: 899px) {
  .header-row { gap: 12px; }
  .js .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--divider);
    box-shadow: 0 16px 30px rgb(23 57 46 / .12);
  }
  .js .nav-open .site-nav { display: flex; }
  .js .site-nav > a { padding: 12px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--divider); border-radius: 0; }
  .js .site-nav > a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .js .site-nav .lang { align-self: flex-start; margin: 14px 0 0; }
  html:not(.js) .header-row { flex-wrap: wrap; padding: 8px 20px; }
  html:not(.js) .site-nav { flex-wrap: wrap; order: 3; width: 100%; margin: 0; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1.2rem; }
  .header-actions .btn-sm { padding: .45em .75em; font-size: .88rem; }
  .container { padding: 0 16px; }
}

/* ------------------------------------------------------------------ home: bands */
.band { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.band-ivory { background: var(--bg); }
.band-cream { background: var(--bg-alt); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.band-green {
  background:
    radial-gradient(ellipse 60% 70% at 70% 30%, rgb(58 120 92 / .55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 90%, rgb(36 85 64 / .6), transparent 70%),
    var(--green);
  color: #ece7da;
}
.band-green h1, .band-green h2, .band-green h3 { color: #fbf9f3; }
.band-green a:not(.btn) { color: var(--brass-light); }
.band-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.band-head h2 { margin-bottom: .35em; }
.band-intro { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em; margin: 0 0 .7em;
  font: 650 .8rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brass); }
.band-head .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--brass); }
.band-actions { text-align: center; margin: clamp(28px, 4vw, 40px) 0 0; }
.narrow { max-width: 820px; }

/* hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.08; margin-bottom: .45em; font-weight: 600; }
.hero-sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 34em; color: #dcd6c6; margin-bottom: 1.6em; }
.pill {
  display: inline-flex; align-items: center; gap: .35em; margin: 0 0 1.4em; padding: 6px 14px 6px 10px;
  border: 1px solid rgb(217 166 72 / .55); border-radius: 999px; background: rgb(12 36 28 / .35);
  color: var(--brass-light); font-size: .88rem; font-weight: 600;
}
.pill .suit { fill: #f3f0e7; }
.pill .suit-h { fill: #ff9a9a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-login { margin: 1.1em 0 0; color: #cfc9b8; }
.hero-login a { font-weight: 600; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 22px 0 0; margin: 26px 0 0; border-top: 1px solid rgb(217 166 72 / .3); font-size: .95rem; color: #dcd6c6; }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: .4em; }
.trust .icon { color: var(--brass); }
.hero-art { display: flex; justify-content: center; }
.card-fan { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 28px rgb(0 0 0 / .28)); }

/* feature grid */
.feature-grid, .mode-grid, .fact-grid, .role-grid, .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .mode-card, .fact, .step, .role-card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0;
}
.feature-card { padding: 26px 24px 22px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover, .mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feature-card h3 { margin: 16px 0 6px; font-size: 1.25rem; }
.feature-card p { color: var(--muted); margin: 0 0 12px; }
.feature-icon, .mode-icon, .step-icon, .role-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px; background: var(--brass-tint); color: var(--brass-deep);
}
@media (prefers-color-scheme: dark) { .feature-icon, .mode-icon, .step-icon, .role-icon { color: var(--brass-light); } }
.feature-icon .icon, .mode-icon .icon, .step-icon .icon, .role-icon .icon { width: 26px; height: 26px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; font-size: .95rem; }
.more:hover { text-decoration: underline; }
.more .icon { width: 1em; height: 1em; transition: transform .15s ease; }
.more:hover .icon { transform: translateX(3px); }

/* steps */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; position: relative; }
.step { padding: 30px 24px 24px; position: relative; display: flex; flex-direction: column; }
.step-num {
  position: absolute; top: -18px; left: 24px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brass); color: var(--on-brass);
  font: 700 1.1rem/1 var(--font-head); box-shadow: 0 0 0 5px var(--bg-alt);
}
.step-icon { background: var(--green-tint); color: var(--green); margin-top: 6px; }
@media (prefers-color-scheme: dark) { .step-icon { color: var(--brass-light); } }
.step h3 { margin: 14px 0 6px; }
.step p { color: var(--muted); margin: 0 0 14px; }

/* facts */
.fact-grid { grid-template-columns: repeat(4, 1fr); }
.fact { padding: 24px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.fact-big { font: 600 3rem/1 var(--font-head); color: var(--heading); }
.fact-title { font-weight: 700; margin: 10px 0 4px; color: var(--accent-text); text-transform: uppercase; font-size: .82rem; letter-spacing: .1em; }
.fact-text { color: var(--muted); font-size: .97rem; }
.fact-suit { position: absolute; right: 14px; top: 12px; opacity: .15; }
.fact-suit .suit { width: 56px; height: 56px; }

/* game modes */
.mode-grid { grid-template-columns: repeat(3, 1fr); }
.mode-card { padding: 22px 22px 20px; transition: transform .18s ease, box-shadow .18s ease; }
.mode-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.mode-top h3 { margin: 0; }
.mode-icon { width: 42px; height: 42px; border-radius: 12px; }
.mode-card p { color: var(--muted); margin: 0; }
.ranks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ranks li { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 9px 3px 5px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--divider); }
.rank-dot { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .7), transparent 45%), var(--rank); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }

/* help teaser */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-text h2 { margin-bottom: .5em; }
.checks { list-style: none; padding: 0; margin: 0 0 1.6em; }
.checks li { display: flex; gap: .55em; align-items: flex-start; }
.checks .icon { color: var(--brass-deep); margin-top: .2em; }
@media (prefers-color-scheme: dark) { .checks .icon { color: var(--brass); } }

/* browser frame for screenshots */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.browser-lg { box-shadow: var(--shadow-hover); transform: rotate(-1deg); }
.browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--divider); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar i:first-child { background: #e0857f; }
.browser-bar i:nth-child(2) { background: var(--brass); }
.browser-bar i:nth-child(3) { background: #7fb393; }
.browser img { width: 100%; }

/* accordions */
.accordion { display: grid; gap: 10px; }
.accordion details { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgb(23 57 46 / .05); }
.accordion details[open] { border-color: var(--line); }
.accordion summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; color: var(--heading); border-radius: var(--radius-sm);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--brass-deep); border-bottom: 2px solid var(--brass-deep); transform: rotate(45deg);
  transition: transform .2s ease;
}
@media (prefers-color-scheme: dark) { .accordion summary::after { border-color: var(--brass); } }
.accordion details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.accordion summary:hover { background: var(--bg-alt); }
.answer { padding: 0 20px 6px; max-width: 70ch; }

/* call to action */
.cta-band { text-align: center; border: 0; }
.cta-inner { max-width: 760px; }
.cta-inner p { font-size: 1.12rem; color: #dcd6c6; margin-bottom: 1.6em; }
.cta-deco { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.cta-deco .suit { width: 22px; height: 22px; fill: var(--brass-light); opacity: .85; }

/* ------------------------------------------------------------------ inner pages */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--divider);
  padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 52px);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { max-width: 22ch; }
.page-head .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; margin: 0; }
.page-head .eyebrow .icon { width: 1.3em; height: 1.3em; }
.page-head .eyebrow:has(.icon)::before { display: none; }
.page-head-deco { position: absolute; right: max(20px, calc(50% - 560px)); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; opacity: .1; }
.page-head-deco .suit { width: 64px; height: 64px; }
.back { margin: 0 0 1em; font-size: .95rem; }
.back a { text-decoration: none; font-weight: 600; }
.back a:hover { text-decoration: underline; }

.page-body { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(56px, 8vw, 88px); }
.page-body.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.page-body.is-wide { --container: 1280px; max-width: 1280px; }
.page-main { min-width: 0; display: grid; gap: 22px; }
.page-main > * { margin: 0; }
.page-pre:empty { display: none; }
.page-pre > :last-child { margin-bottom: 0; }

.toc-col { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.toc { border-left: 2px solid var(--divider); padding-left: 2px; }
.toc summary { cursor: pointer; font: 700 .78rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); padding: 4px 14px 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 14px; margin-left: -4px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.toc a:hover { color: var(--heading); background: var(--bg-alt); }
.toc a.is-active { color: var(--heading); border-left-color: var(--brass); font-weight: 600; }
@media (min-width: 960px) { .toc summary { pointer-events: none; } }

@media (max-width: 959px) {
  .page-body.has-toc { display: block; }
  .toc-col { position: static; max-height: none; margin-bottom: 22px; }
  .toc { border: 1px solid var(--divider); border-radius: var(--radius-sm); background: var(--surface); padding: 0; }
  .toc summary { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
  .toc[open] summary::after { content: "–"; }
  .toc ol { padding: 0 6px 10px 10px; }
  .toc a { margin: 0; }
}

/* content blocks */
.block {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow);
}
.block.plain { background: none; border: 0; box-shadow: none; padding: 0; }
.block > h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); display: flex; align-items: baseline; gap: .5em; padding-bottom: .5em; border-bottom: 1px solid var(--divider); }
.block > h2::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--brass); transform: rotate(45deg) translateY(-2px); border-radius: 1px; }
.block:has(.sec-num) > h2::before { display: none; }
.block > :last-child { margin-bottom: 0; }
.block p, .block ul, .block ol, .block dl, .page-pre p { max-width: 70ch; }
.block .role-grid, .block .value-row, .block .jack-row, .block .callouts { max-width: none; }
.block h3 { font-size: 1.15rem; }
.block > h2 + h3 { margin-top: .4em; }
.sec-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--brass); color: var(--on-brass); font: 700 1rem/1 var(--font-body); flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.note, .placeholder {
  display: flex; gap: .7em; align-items: flex-start;
  background: var(--brass-tint); border: 1px solid rgb(217 166 72 / .45); border-radius: var(--radius-sm);
  padding: 14px 18px; max-width: 70ch;
}
.note .icon { color: var(--brass-deep); margin-top: .15em; }
@media (prefers-color-scheme: dark) { .note .icon { color: var(--brass); } }
.page-pre:has(.placeholder) { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.placeholder { font-weight: 600; }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--divider); border-radius: var(--radius-sm); max-width: 560px; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--divider); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-alt); color: var(--heading); font-weight: 650; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
tr:nth-child(odd) td { background: color-mix(in srgb, var(--bg-alt) 45%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
td .suit { width: 1.15em; height: 1.15em; }

/* Was ist Skat? – visual elements */
.value-row, .jack-row, .chips { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 12px; }
.mini-card {
  margin: 0; width: 104px; min-height: 132px; padding: 10px 10px 12px; border-radius: 10px;
  background: #fffdf7; color: #1f2a24; border: 1px solid #d6cfbd; box-shadow: 0 2px 6px rgb(23 57 46 / .1);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  transition: transform .15s ease;
}
.mini-card:hover { transform: translateY(-3px) rotate(-1.5deg); }
.mc-rank { font: 650 1.9rem/1.1 var(--font-head); color: var(--green); }
.mc-name { font-size: .86rem; color: #5b6156; line-height: 1.3; }
.mc-val { font: 700 1.25rem/1 var(--font-body); color: var(--brass-deep); }
.mc-val small { font: 600 .68rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; }
.jack-row { counter-reset: jack; }
.mini-card.jack { min-height: 118px; justify-content: center; gap: 10px; position: relative; }
.mini-card.jack .suit { width: 40px; height: 40px; fill: #1f2a24; }
.mini-card.jack .suit-h, .mini-card.jack .suit-d { fill: #b3262e; }
.mini-card.jack span { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.mini-card.jack::before { counter-increment: jack; content: counter(jack); position: absolute; top: 6px; left: 8px; font: 700 .75rem/1 var(--font-body); color: #8f6420; }
.chips li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--green-tint); color: var(--heading); font-weight: 650; font-variant-numeric: tabular-nums; font-size: .95rem; }
.chips { gap: 8px; }
.formula {
  font: 600 clamp(1.05rem, 1rem + .4vw, 1.25rem)/1.4 var(--font-head); color: var(--heading);
  background: var(--green-tint); border-left: 4px solid var(--brass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
}
.example {
  background: var(--brass-tint); border: 1px solid rgb(217 166 72 / .45); border-radius: var(--radius-sm);
  padding: 4px 22px 8px; margin: 1.4em 0; max-width: 70ch;
}
.example h3 { margin-top: .9em; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; max-width: none !important; margin: 0; }
.glossary > div, .def-grid > div { background: var(--bg-alt); border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 12px 16px; }
.glossary dt, .def-grid dt { font-weight: 700; color: var(--heading); font-family: var(--font-head); font-size: 1.05rem; }
.glossary dd, .def-grid dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ help guide */
.role-grid { grid-template-columns: repeat(3, 1fr); }
.role-grid-main { grid-template-columns: repeat(2, 1fr); }
.role-grid > li { margin: 0; display: flex; }
.role-card {
  display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 26px 24px 22px;
  text-decoration: none; color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--brass); text-decoration: none; }
.role-grid-main .role-icon { width: 56px; height: 56px; background: var(--green); color: var(--brass-light); }
.role-title { font: 600 1.35rem/1.25 var(--font-head); color: var(--heading); margin-top: 8px; }
.role-text { color: var(--muted); font-size: .97rem; }
.role-meta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--link); font-size: .93rem; }
.role-meta .icon { width: 1em; height: 1em; transition: transform .15s ease; }
.role-card:hover .role-meta .icon { transform: translateX(3px); }

.guide-search { position: relative; max-width: 560px; }
.guide-search > .icon { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.guide-search input {
  width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
}
.guide-search input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgb(217 166 72 / .3); }
.guide-search p { margin: 6px 0 0 16px; }
.guide-search p:empty { display: none; }
.section-intro { font-size: 1.05rem; }

.shot { margin: 1.4em 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.shot.is-tall { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.shot-link { display: block; cursor: zoom-in; }
.shot-link img { transition: opacity .15s ease; }
.shot-link:hover img { opacity: .92; }
.shot figcaption { min-width: 0; }
.shot-hint { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.callouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: none; }
.callouts li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 12px; background: var(--bg-alt); border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.5; }
.marker { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #c62828; color: #fff; display: grid; place-items: center; font: 700 .82rem/1 var(--font-body); margin-top: -1px; }
.howto { background: var(--green-tint); border-radius: var(--radius-sm); padding: 4px 20px 10px; margin: 1.2em 0; }
.howto h3 { margin-top: .9em; }
.steps-list { padding-left: 1.4em; }
.steps-list li::marker { font-weight: 700; color: var(--accent-text); }
.def-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; max-width: none !important; }
.def-problems > div { background: var(--brass-tint); border-color: rgb(217 166 72 / .4); }
.to-top { text-align: right; font-size: .9rem; }
.to-top a { text-decoration: none; }
.block.guide-section[hidden] { display: none; }

@media (max-width: 1099px) {
  .shot, .shot.is-tall { grid-template-columns: 1fr; }
  .shot.is-tall .browser { max-width: 340px; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgb(12 36 28 / .85); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox button { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brass); color: var(--on-brass); cursor: pointer; display: grid; place-items: center; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--divider); padding: 56px 0 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 14px 0 0; }
.footer-brand .no-money { white-space: nowrap; display: inline-flex; gap: .5em; align-items: center; color: var(--heading); font-weight: 600; background: var(--surface); border: 1px solid var(--divider); padding: 6px 12px; border-radius: 999px; }
.footer-brand .no-money .icon { color: var(--brass-deep); }
@media (prefers-color-scheme: dark) { .footer-brand .no-money .icon { color: var(--brass); } }
.site-footer h2 { font: 700 .78rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 6px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; }
.site-footer li { margin: 0 0 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--link); text-decoration: underline; }
.site-footer .lang { margin: 4px 0 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 999px) {
  .feature-grid, .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 799px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .card-fan { max-width: 270px; margin: -10px 0 -20px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .page-head-deco { display: none; }
}
@media (max-width: 599px) {
  body { font-size: 16px; }
  .feature-grid, .mode-grid, .role-grid, .role-grid-main { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 16px; }
  .feature-card .feature-icon { grid-row: span 3; width: 44px; height: 44px; }
  .feature-card h3 { margin: 0 0 2px; font-size: 1.12rem; }
  .feature-card p { margin: 0 0 6px; font-size: .95rem; }
  .feature-card .more { grid-column: 2; }
  .mode-card { padding: 16px; }
  .mode-card p { font-size: .95rem; }
  .step { padding: 26px 16px 18px; }
  .band { padding: 52px 0; }
  .fact-grid { gap: 12px; }
  .fact { padding: 18px 16px; }
  .fact-big { font-size: 2.3rem; }
  .hero-actions .btn { width: 100%; }
  .band-head { text-align: left; }
  .band-head .eyebrow::after { display: none; }
  .band-actions { text-align: left; }
  .mini-card { width: calc(33.33% - 8px); min-height: 112px; }
  .value-row, .jack-row { gap: 8px; }
  .mini-card.jack { width: calc(50% - 4px); min-height: 96px; }
  .block { padding: 20px 16px; border-radius: 12px; }
  th, td { padding: 9px 12px; }
  .callouts li { font-size: .93rem; }
  .cta-band { text-align: left; }
  .cta-deco { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .toc-col, .guide-search { display: none; }
  .block { box-shadow: none; break-inside: avoid; }
}

/* App download page (Jarwis 2026-11-25) */
.app-dl { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; align-items: start; }
.app-qr { margin: 0; padding: 1rem; text-align: center; border: 1px solid rgba(0,0,0,.12); border-radius: 16px; background: #fbf9f3; }
.app-qr img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.app-qr figcaption { font-size: .85rem; opacity: .75; margin: .4rem 0 1rem; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
@media (max-width: 720px) { .app-dl { grid-template-columns: 1fr; } .app-qr { max-width: 300px; } }
/* longer brand name "Skat-Stammtisch": keep the header on one line on small phones */
@media (max-width: 480px) {
  .wordmark { font-size: 1.02rem; }
  .header-row { gap: 8px; }
  .header-actions .btn-sm { padding-inline: 12px; white-space: nowrap; }
}
@media (max-width: 360px) { .header-actions .btn-brass { display: none; } }
.app-dl h3 { margin-top: 0; }
