
:root {
  --nacht: #06100a;
  --wald: #0d2015;
  --tanne: #143724;
  --smaragd: #225d3b;
  --gold-dunkel: #76500e;
  --gold: #c9982e;
  --gold-mittel: #e2bd61;
  --gold-hell: #fff1bc;
  --elfenbein: #f7f1e3;
  --text: #e4e8df;
  --muted: #b9c4b6;
  --line: rgba(226, 189, 97, .33);
  --card: rgba(11, 33, 21, .88);
  --radius: 22px;
  --shadow: 0 22px 60px rgba(0,0,0,.38);
  --width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -5%, rgba(67,130,83,.28), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(201,152,46,.12), transparent 30rem),
    linear-gradient(145deg, #040a07, var(--nacht) 42%, #10271a);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cg font-family='serif' text-anchor='middle' fill='%23f7d981' fill-opacity='.15' stroke='%23745112' stroke-opacity='.18' stroke-width='.33' paint-order='stroke fill'%3E%3Ctext x='76' y='110' font-size='118'%3E%E2%9A%9C%3C/text%3E%3Ctext x='205' y='255' font-size='132'%3E%E2%9A%9C%3C/text%3E%3C/g%3E%3C/svg%3E") center/280px 280px repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 2px, transparent 2px 13px),
    linear-gradient(90deg, rgba(0,0,0,.14), rgba(255,255,255,.025) 10%, rgba(0,0,0,.11) 20%, rgba(255,255,255,.02) 30%, rgba(0,0,0,.11) 40%, rgba(255,255,255,.02) 50%, rgba(0,0,0,.11) 60%, rgba(255,255,255,.02) 70%, rgba(0,0,0,.11) 80%, rgba(255,255,255,.025) 90%, rgba(0,0,0,.14));
  mix-blend-mode: screen;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .85rem 1rem;
  color: #181108;
  background: var(--gold-hell);
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--width));
  margin-inline: auto;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(4,12,8,.9);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 850;
  letter-spacing: .15em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .93rem;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold-hell); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 86% 8%, rgba(226,189,97,.13), transparent 24rem),
    linear-gradient(180deg, rgba(24,68,42,.62), rgba(7,20,13,.54));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, rgba(0,0,0,.15), rgba(255,255,255,.025) 12%, rgba(0,0,0,.1) 24%, rgba(255,255,255,.025) 36%, rgba(0,0,0,.1) 48%, rgba(255,255,255,.025) 60%, rgba(0,0,0,.1) 72%, rgba(255,255,255,.025) 84%, rgba(0,0,0,.15));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .42rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-hell);
  background: rgba(226,189,97,.07);
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

h1, h2, h3, .brand, .gold-text {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0 0 .7rem;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.hero-lead {
  max-width: 820px;
  margin: 0 0 1.25rem;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: #e0e7dc;
}

.hero-quote {
  margin: 0 0 1.65rem;
  color: var(--gold-mittel);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 750;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.button.primary {
  color: #211704;
  border-color: #f1d17f;
  background: linear-gradient(180deg, #fff5cc 0%, #efd06f 24%, #bd831b 50%, #ffe7a0 76%, #a86b0f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px rgba(201,152,46,.2);
}
.button.secondary {
  color: var(--gold-hell);
  background: linear-gradient(180deg, rgba(40,90,57,.68), rgba(12,31,20,.9));
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }

.hero-emblem {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
}
.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,189,97,.18), transparent 65%);
  box-shadow: inset 0 0 65px rgba(226,189,97,.08), 0 0 70px rgba(226,189,97,.08);
}
.hero-emblem img {
  position: relative;
  width: min(78%, 220px);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(226,189,97,.2));
}

.layout {
  position: relative;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 1.15rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  background: rgba(7,23,14,.88);
  box-shadow: var(--shadow);
}
.toc strong {
  display: block;
  margin-bottom: .7rem;
  color: var(--gold-hell);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}
.toc a {
  display: block;
  padding: .31rem .15rem;
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
}
.toc a:hover,
.toc a:focus-visible { color: var(--gold-hell); }

.content { min-width: 0; }

.notice,
.board-card,
.rules-section,
.feedback {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 0%, rgba(226,189,97,.1), transparent 25rem),
    linear-gradient(145deg, rgba(31,78,49,.44), rgba(8,25,16,.92));
  box-shadow: var(--shadow);
}

.notice {
  border-color: var(--line);
  background:
    radial-gradient(circle at 90% 0%, rgba(226,189,97,.16), transparent 22rem),
    linear-gradient(145deg, rgba(42,91,57,.58), rgba(10,28,18,.94));
}
.notice h2,
.board-card h2,
.feedback h2,
.rules-section h2 {
  margin-top: 0;
}

.eyebrow {
  display: block;
  margin-bottom: .55rem;
  color: var(--gold-mittel);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: .85rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}
h3 {
  margin: 1.45rem 0 .55rem;
  color: var(--gold-hell);
  font-size: 1.35rem;
}

p { margin-top: 0; }
li + li { margin-top: .35rem; }

.gold-text,
h1, h2, .brand {
  color: var(--gold-hell);
  text-shadow: 0 1px 0 rgba(255,255,255,.2), 0 7px 18px rgba(0,0,0,.28);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, h2, .brand, .gold-text {
    background: linear-gradient(180deg, #fff7d8 0%, #f6d976 22%, #bd841a 43%, #ffeaa5 64%, #cb9429 78%, #fff1be 90%, #98620e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

.quick-grid,
.orientation-grid,
.feedback-grid {
  display: grid;
  gap: 1rem;
}
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feedback-grid { grid-template-columns: 1fr 1fr; }

.quick {
  padding: 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.035);
}
.quick strong {
  display: block;
  color: var(--gold-hell);
  font-size: 1.1rem;
}

.board-frame {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3,12,7,.5);
}
.board-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 1px dashed rgba(226,189,97,.45);
  border-radius: 14px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(55,110,70,.25), transparent 55%),
    repeating-linear-gradient(60deg, rgba(255,255,255,.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.025) 0 1px, transparent 1px 28px);
}
.board-placeholder strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold-hell);
  font-size: 1.25rem;
}
.board-placeholder p { max-width: 760px; margin: 0; color: var(--muted); }

.orientation-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1rem;
}
.orientation {
  padding: .85rem .55rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 850;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.orientation small {
  display: block;
  margin-top: .2rem;
  font-weight: 650;
  color: rgba(255,255,255,.82);
}
.blue { background: #2268b8; }
.green { background: #267a45; }
.orange { background: #b96821; }
.purple { background: #71429e; }
.yellow { color: #171308; background: #d6b62e; }
.red { background: #a93232; }

.rules-section { scroll-margin-top: 90px; }
.rules-section > p:last-child,
.rules-section > ul:last-child,
.rules-section > ol:last-child { margin-bottom: 0; }

.rule-note {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(226,189,97,.065);
}
.rule-example {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.rule-example strong { color: var(--gold-hell); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0,0,0,.14);
}
th, td {
  padding: .72rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--gold-hell);
  background: rgba(226,189,97,.08);
}
tr:last-child td { border-bottom: 0; }

.feedback {
  border-color: var(--line);
}
.feedback ul { margin-bottom: 0; }

footer {
  padding: 2.1rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aab5a7;
  background: rgba(3,10,6,.84);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a { color: var(--muted); }

.print-only { display: none; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem { min-height: 190px; }
  .hero-emblem img { width: 170px; }
  .layout { grid-template-columns: 1fr; }
  .toc {
    position: static;
    max-height: none;
    columns: 2;
  }
  .toc strong { column-span: all; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .orientation-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 660px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: .9rem 0;
  }
  .nav-links { justify-content: flex-start; }
  .hero { padding: 3.5rem 0 3rem; }
  .quick-grid,
  .feedback-grid,
  .orientation-grid,
  .diagram-grid { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .button { width: 100%; }
  th, td { padding: .6rem; }
}

@media print {
  body {
    color: #111;
    background: #fff;
    font-size: 10.5pt;
  }
  body::before,
  header.site-header,
  .hero-emblem,
  .toc,
  .actions,
  footer { display: none !important; }
  .hero {
    padding: 0 0 1.2rem;
    color: #111;
    background: #fff;
    border-bottom: 2px solid #222;
  }
  .hero::before { display: none; }
  .hero-grid { display: block; }
  h1, h2, h3, .gold-text {
    color: #111 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
  }
  .layout { display: block; padding: 1rem 0; }
  .notice,
  .board-card,
  .rules-section,
  .feedback {
    break-inside: avoid;
    color: #111;
    background: #fff;
    border: 1px solid #bbb;
    box-shadow: none;
  }
  .rules-section { break-inside: auto; }
  table { break-inside: avoid; }
  .print-only { display: block; }
}


.diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}
.diagram-card {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}
.diagram-card h3 { margin-top: 0; }
.diagram-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border: 1px dashed rgba(226,189,97,.42);
  border-radius: 13px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(54,111,71,.25), transparent 56%),
    repeating-linear-gradient(60deg, rgba(255,255,255,.025) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.025) 0 1px, transparent 1px 24px);
}
.diagram-placeholder strong {
  display: block;
  color: var(--gold-hell);
  margin-bottom: .4rem;
}
.diagram-placeholder p {
  margin: 0;
  color: var(--muted);
}
.diagram-legend {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
