/* High Noon Society - Website
   Klar, ruhig, viel Raum: Systemschrift fuer Fliesstext, EB Garamond fuer Ueberschriften, Gold als einzige Akzentfarbe. */
@font-face { font-family: 'HNS Garamond'; src: url('../fonts/garamond-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HNS Garamond'; src: url('../fonts/garamond-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'HNS Rye'; src: url('../fonts/rye.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #0a0806; --bg-2: #110d0a; --surface: #17120e; --surface-2: #1e1813; --line: rgba(255, 233, 196, .09); --line-2: rgba(255, 233, 196, .16);
  --text: #f3ebde; --muted: #a99c87; --faint: #74695a; --gold: #d8b268; --gold-2: #f0d79d; --red: #c4392f; --green: #6fbf7e;
  --radius: 22px; --radius-s: 14px; --max: 1180px;
  --serif: 'HNS Garamond', 'EB Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(216, 178, 104, .35); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 104px); }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: var(--muted); max-width: 760px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px; display: flex; align-items: center;
  background: rgba(10, 8, 6, .62); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 8, 6, .8); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: 'HNS Rye', var(--serif); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); width: 40px; height: 40px; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* ---------- Knoepfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--gold); color: #1a1208; }
.btn.primary:hover { background: var(--gold-2); }
.btn.ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.small { height: 34px; padding: 0 16px; font-size: 13px; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.discord:hover { background: #6d78f5; }
.btn svg { width: 18px; height: 18px; }
[data-discord][aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.btn.discord[aria-disabled="true"]:hover { background: #5865f2; }
footer [data-discord][aria-disabled="true"]:hover { color: inherit; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 132px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(ellipse at 50% 20%, rgba(216, 150, 70, .22), rgba(10, 8, 6, 0) 60%); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--gold-2); background: rgba(216, 178, 104, .08); border: 1px solid rgba(216, 178, 104, .28); margin-bottom: 26px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e8a33c; box-shadow: 0 0 0 0 rgba(232, 163, 60, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 60, .55); } 70% { box-shadow: 0 0 0 10px rgba(232, 163, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 163, 60, 0); } }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin: 0 auto 34px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-img { margin: 64px auto 0; width: min(1320px, calc(100% - 32px)); border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.hero-img img { width: 100%; height: auto; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.hero-img:hover img { transform: scale(1.035); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 40px auto 0; width: min(920px, calc(100% - 48px)); border: 1px solid var(--line); }
.stats div { background: var(--bg-2); padding: 22px 18px; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--text); line-height: 1.1; font-variant-numeric: lining-nums; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- Abschnitte ---------- */
section { padding: 140px 0; position: relative; }
section.tight { padding: 90px 0; }
.sec-head { margin-bottom: 64px; }
.sec-head h2 { max-width: 20ch; }
.sec-head.center h2 { margin-left: auto; margin-right: auto; }
.sec-head .lead { margin-top: 20px; }
.band { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.statement { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 56px); line-height: 1.18; max-width: 22ch; margin: 0 auto; text-align: center; }
.statement .hl { color: var(--gold); }

/* Bento-Raster */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; overflow: hidden;
  min-height: 260px; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(216, 178, 104, .1); color: var(--gold); border: 1px solid rgba(216, 178, 104, .22); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; }
.tile ul { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.tile li { padding: 6px 0; border-top: 1px solid var(--line); }
.tile li:first-child { border-top: 0; }
.tile.w2 { grid-column: span 2; } .tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
.tile.feature { min-height: 420px; justify-content: flex-end; }
.tile.feature .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; opacity: .75;
  transition: transform 1.2s var(--ease), opacity .4s; }
.tile.feature:hover .bg { transform: scale(1.04); opacity: .9; }
.tile.feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 11, 8, .97) 22%, rgba(14, 11, 8, .55) 55%, rgba(14, 11, 8, .05) 100%); z-index: 1; }
.tile.feature > *:not(.bg) { position: relative; z-index: 2; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold-2); background: rgba(216, 178, 104, .1);
  border: 1px solid rgba(216, 178, 104, .24); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; align-self: flex-start; }

/* Galerie */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 24px 24px; margin: 0 -24px;
  scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(780px, 82vw); scroll-snap-align: center; }
.shot .frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot p { margin: 14px 4px 0; color: var(--muted); font-size: 15px; }
.shot p b { color: var(--text); font-weight: 600; }
.gal-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.gal-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.gal-nav button:hover { border-color: var(--gold); }

/* ---------- Live-Bereich ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 14px var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.live-note { font-size: 13px; color: var(--faint); margin: -14px 0 22px; display: flex; align-items: center; gap: 8px; }
.live-note .ld { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live-note.demo .ld { background: #e8a33c; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 280px; }
.list { display: grid; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.row { background: var(--surface); padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline; }
.row h4 { margin: 0; font: 600 18px var(--serif); }
.row .meta { color: var(--faint); font-size: 13px; }
.row .val { font-family: var(--serif); font-size: 20px; color: var(--gold-2); white-space: nowrap; font-variant-numeric: lining-nums; }
.row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }
.news { columns: 2; column-gap: 34px; padding: 22px 24px; }
.news article { break-inside: avoid; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.news .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.news h4 { font: 600 22px/1.2 var(--serif); margin: 6px 0 8px; }
.news p { margin: 0; color: var(--muted); font-size: 15px; }
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 12px; }
.town { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.town h4 { margin: 0 0 4px; font: 600 21px var(--serif); }
.town .st { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.bar { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.bar i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--c, var(--gold)); border-radius: 6px; }
.bar b { font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 60px 20px; text-align: center; color: var(--faint); }

/* ---------- Testphase / Fahrplan ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: ph; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.phase .n { font: 600 14px var(--sans); color: var(--faint); letter-spacing: .08em; }
.phase h3 { margin: 10px 0 10px; font-size: 24px; }
.phase p { margin: 0; color: var(--muted); font-size: 15px; }
.phase.done .n { color: var(--green); }
.phase.now { border-color: rgba(216, 178, 104, .5); box-shadow: 0 0 0 1px rgba(216, 178, 104, .25) inset, 0 30px 80px -50px rgba(216, 178, 104, .5); }
.phase.now .n { color: var(--gold); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font: 600 21px var(--serif); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 14px 0 0; }

/* CTA */
.cta { text-align: center; border-radius: 32px; padding: 90px 30px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(216, 150, 70, .2), rgba(23, 18, 14, 0) 60%), var(--surface); }
.cta h2 { margin: 0 auto 18px; max-width: 18ch; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Footer */
footer { padding: 56px 0 70px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .small { margin-top: 26px; max-width: 760px; line-height: 1.55; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .dot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Formular (Bewerbung) ---------- */
.page { padding: 130px 0 100px; }
.page h1 { font-size: clamp(42px, 6vw, 76px); margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 44px 0 40px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; color: var(--muted); font-size: 15px; }
.step b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.step.on { border-color: rgba(216, 178, 104, .5); }
.step.ok b::after { content: ' \2713'; color: var(--green); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.card + .card { margin-top: 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field small { color: var(--faint); font-size: 13px; }
.field input, .field select, .field textarea { font: 16px var(--sans); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 15px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 178, 104, .14); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.counter { font-variant-numeric: tabular-nums; }
.counter.ok { color: var(--green); }
.notice { border-radius: var(--radius-s); padding: 16px 18px; font-size: 15px; border: 1px solid; margin-bottom: 22px; }
.notice.info { background: rgba(216, 178, 104, .07); border-color: rgba(216, 178, 104, .3); color: var(--gold-2); }
.notice.err { background: rgba(196, 57, 47, .1); border-color: rgba(196, 57, 47, .45); color: #f2b4ad; }
.notice.ok { background: rgba(111, 191, 126, .1); border-color: rgba(111, 191, 126, .4); color: #bfe8c7; }
.who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.who .av { width: 38px; height: 38px; border-radius: 50%; background: #5865f2; display: grid; place-items: center; color: #fff; font-weight: 700; }
.prose { max-width: 800px; }
.prose h2 { font-size: 32px; margin: 46px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.w2, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.w6, .tile.feature { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .news { columns: 1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 96px 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open { height: auto; padding-bottom: 18px; align-items: flex-start; }
  .nav.open .wrap { flex-wrap: wrap; padding-top: 10px; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; gap: 14px; margin: 14px 0 6px; }
  .nav.open .nav-cta { display: flex; order: 4; }
  .bento, .timeline, .form, .steps { grid-template-columns: 1fr; }
  .tile.w6, .tile.feature { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 24px; }
  .row { grid-template-columns: 1fr; }
}

/* ---------- Handbuch (Seiten unter /handbuch/, erzeugt von tools/website/build.mjs) ---------- */
.nav-links a[aria-current] { color: var(--text); }
.hb-search { display: flex; gap: 10px; max-width: 620px; margin: 34px auto 0; }
.hb-search.left { margin: 0 0 28px; }
.hb-search input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 16px var(--sans); outline: none; }
.hb-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 178, 104, .14); }
.hb-search .btn { height: 48px; }
.hb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hb-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); font: 600 15px var(--sans); }
.hb-tabs a:hover { border-color: var(--gold); color: var(--gold-2); text-decoration: none; }
.hb-page { padding: 110px 0 90px; }
.hb-doc { display: flex; flex-wrap: wrap; gap: 30px 48px; align-items: flex-start; }
.hb-side { flex: 0 0 230px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.hb-side .g { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 18px 0 6px; padding: 0 14px; }
.hb-side .g:first-child { margin-top: 0; }
.hb-side a { display: flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 15px; }
.hb-side a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.hb-side a.on { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.hb-main { flex: 1 1 520px; min-width: 0; max-width: 860px; }
.hb-main h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.hb-main h2 { scroll-margin-top: 84px; }
.hb-main h3 { font-size: 23px; margin: 30px 0 10px; }
.hb-main h3 small, .hb-rec summary small { font: 400 13px var(--sans); color: var(--faint); letter-spacing: 0; }
.hb-main .lead { max-width: none; }
.hb-main a { text-decoration: underline; text-decoration-color: rgba(240, 215, 157, .4); text-underline-offset: 3px; }
.hb-main a.hb-job, .hb-main a.hb-rowlink, .hb-main .hb-crumb a { text-decoration: none; }
.hb-crumb { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.hb-crumb a { color: var(--muted); }
.hb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; margin: 28px 0 8px; }
.hb-facts div { background: var(--bg-2); padding: 16px 18px; }
.hb-facts span { display: block; font-size: 13px; color: var(--muted); }
.hb-facts b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: lining-nums; }
.hb-facts b span { display: inline; font-size: inherit; color: inherit; }
.hb-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0 8px; }
.hb-job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 20px 22px; color: inherit; display: block; transition: border-color .3s; }
.hb-job:hover { border-color: var(--line-2); text-decoration: none; }
.hb-job h3 { margin: 0 0 6px; font-size: 22px; color: var(--text); }
.hb-job p { margin: 0; font-size: 14px; }
.hb-st { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 12px; }
.hb-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.hb-st.free i { background: var(--green); }
.hb-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); margin: 14px 0; }
.hb-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hb-table th { text-align: left; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; background: var(--bg-2); }
.hb-table td { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.hb-table td:first-child { white-space: nowrap; color: var(--text); }
kbd, .prose code { font: 600 13px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--gold-2); background: rgba(216, 178, 104, .08); border: 1px solid rgba(216, 178, 104, .22); border-radius: 7px; padding: 2px 7px; }
.hb-rec { border-bottom: 1px solid var(--line); padding: 12px 0; }
.hb-rec summary { cursor: pointer; font: 600 17px var(--serif); color: var(--text); }
.hb-rec p { margin: 8px 0 0; font-size: 15px; }
.hb-rowlink { color: inherit; display: block; }
.hb-rowlink:hover { text-decoration: none; }
a.hb-rowlink:hover .row { background: var(--surface-2); }
.hb-rowlink.soon { opacity: .55; }
.hb-rowlink .h4 { margin: 0; font: 600 18px var(--serif); color: var(--text); }
.hb-toc-panel { min-height: 0; }
.note { font-size: 13px; color: var(--faint); }
@media (max-width: 860px) {
  .hb-page { padding: 90px 0 70px; }
  .hb-side { position: static; flex: 1 1 100%; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0 0 6px; }
  .hb-side .g { flex: 1 1 100%; margin: 10px 0 2px; padding: 0; }
  .hb-side a { border: 1px solid var(--line); min-height: 34px; padding: 0 12px; font-size: 14px; }
  .hb-search { flex-wrap: wrap; }
}

/* Startseite: das Titelbild liegt gedaempft hinter der Ueberschrift (vorher als Kasten darunter) */
.hero { padding-bottom: 76px; isolation: isolate; }
.hero::before { display: block; content: ''; position: absolute; inset: 0; height: auto; z-index: -2; opacity: .30; filter: blur(2px) saturate(.85);
  background: url('../img/hero.jpg') center 12% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, .25) 30%, rgba(10, 8, 6, .70) 72%, var(--bg) 100%); }
.hero h1, .hero .lead { text-shadow: 0 2px 24px rgba(0, 0, 0, .75); }
.hero .lead { color: #d3c7b2; }
.hero .hb-search input { background: rgba(23, 18, 14, .88); }
.hero .hb-tabs a, .hero .btn.ghost { background: rgba(10, 8, 6, .55); }
.hero .stats { margin-top: 56px; }

/* Handbuch: geschriebene Seiten */
.hb-next { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.hb-bsp { border-left: 2px solid rgba(216, 178, 104, .5); padding: 4px 0 4px 16px; font-size: 15px; }
.hb-main .tag { margin: 0 6px 0 0; vertical-align: 1px; }
.hb-dl { margin: 12px 0; }
.hb-dl dt { font: 600 19px var(--serif); color: var(--text); margin-top: 18px; }
.hb-dl dd { margin: 4px 0 0; color: var(--muted); }
.hb-faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.hb-faq summary { cursor: pointer; list-style: none; font: 600 20px var(--serif); color: var(--text); display: flex; justify-content: space-between; gap: 20px; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: '+'; color: var(--gold); font: 300 24px/1 var(--sans); transition: transform .3s var(--ease); }
.hb-faq[open] summary::after { transform: rotate(45deg); }
.hb-faq p { margin: 10px 0 0; }
.hb-fig { margin: 26px 0 8px; }
.hb-fig a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); background: #000; }
.hb-fig img { width: 100%; height: auto; }
.hb-fig figcaption { margin: 12px 4px 0; color: var(--muted); font-size: 14px; }
.hb-main.wide { max-width: 1060px; }

footer .partner { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; }
footer .partner span { color: var(--faint); }
