/* =====================================================================
   Black Bridge Roleplay – Website
   Baut auf bb_design auf (tokens.css, components.css, fonts.css).
   Nur var(--bb-…) Tokens, keine eigenen Hex-Werte.
   ===================================================================== */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bb-kohle-950) url("../img/kohle-textur.jpg") repeat;
  background-size: 320px;
  color: var(--bb-text);
  font-family: var(--bb-font-body);
  font-size: 17px;
  line-height: var(--bb-leading-normal);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--bb-messing-300); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bb-messing-200); }
[data-bb-theme="papier"] a { color: var(--bb-highlight); }
:focus-visible { outline: 2px solid var(--bb-focus); outline-offset: 3px; }

.sprung { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--bb-accent); color: var(--bb-accent-text); padding: 8px 16px; }
.sprung:focus { left: 16px; top: 16px; }

.breite { width: min(1120px, 100% - 32px); margin-inline: auto; }
.breite--schmal { width: min(860px, 100% - 32px); margin-inline: auto; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: var(--bb-z-panel);
  background: linear-gradient(180deg, rgba(20,21,22,.97), rgba(27,28,30,.94));
  border-bottom: 1px solid var(--bb-border-strong);
  box-shadow: 0 1px 0 rgba(196,164,106,.12), var(--bb-shadow-1);
}
.kopf__innen { display: flex; align-items: center; gap: var(--bb-space-4); min-height: 68px; }
.marke { display: flex; align-items: center; gap: var(--bb-space-3); text-decoration: none; color: var(--bb-heading); flex: 0 0 auto; }
.marke img { width: 46px; height: 46px; }
.marke span { font-family: var(--bb-font-display); font-size: 21px; letter-spacing: .02em; line-height: 1; }
.marke small { display: block; font-family: var(--bb-font-label); font-size: 13px; color: var(--bb-text-muted); letter-spacing: var(--bb-tracking-caps); margin-top: 4px; }

.menue { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.menue a {
  font-family: var(--bb-font-label); font-size: 16px; letter-spacing: var(--bb-tracking-caps);
  color: var(--bb-text-muted); text-decoration: none; padding: 8px 11px; border-bottom: 2px solid transparent;
  transition: color var(--bb-dur) var(--bb-ease), border-color var(--bb-dur) var(--bb-ease);
}
.menue a:hover { color: var(--bb-heading); }
.menue a[aria-current="page"] { color: var(--bb-heading); border-bottom-color: var(--bb-accent); }
.menue .menue__laden { color: var(--bb-messing-300); }
.menue-knopf { display: none; margin-left: auto; background: none; border: 1px solid var(--bb-border-strong); color: var(--bb-heading);
  font-family: var(--bb-font-label); font-size: 16px; padding: 6px 12px; border-radius: var(--bb-radius-sm); cursor: pointer; }

@media (max-width: 1020px) {
  .menue-knopf { display: inline-flex; align-items: center; gap: 8px; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bb-kohle-900); border-bottom: 1px solid var(--bb-border-strong); padding: 8px 16px 16px; box-shadow: var(--bb-shadow-2); }
  .menue.is-offen { display: flex; }
  .menue a { padding: 12px 4px; border-bottom: 1px solid var(--bb-border); font-size: 18px; }
  .menue a[aria-current="page"] { border-bottom-color: var(--bb-border); color: var(--bb-accent); }
}

/* ---------- Bühne (Startseite) ---------- */
.buehne { position: relative; min-height: calc(100svh - 68px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.buehne__video, .buehne__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.buehne::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(20,21,22,.35) 0%, rgba(20,21,22,.75) 70%, rgba(20,21,22,.95) 100%),
    linear-gradient(180deg, rgba(20,21,22,.3), rgba(20,21,22,.1) 40%, var(--bb-kohle-950) 100%); }
.buehne__inhalt { text-align: center; padding: var(--bb-space-8) 16px; max-width: 900px; }
.buehne__logo { width: clamp(150px, 26vw, 240px); margin: 0 auto var(--bb-space-4); filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.buehne h1 { font-family: var(--bb-font-display); font-weight: 400; color: var(--bb-heading); margin: 0;
  font-size: clamp(36px, 7vw, 76px); line-height: 1.05; text-shadow: 0 3px 18px rgba(0,0,0,.7); }
.buehne__zeile { font-family: var(--bb-font-heading); font-style: italic; font-size: clamp(19px, 2.4vw, 26px); color: var(--bb-creme-200); margin: var(--bb-space-3) 0 var(--bb-space-5); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.buehne__knoepfe { display: flex; flex-wrap: wrap; gap: var(--bb-space-3); justify-content: center; }
.buehne .bb-btn { min-height: 46px; padding: 0 22px; font-size: 18px; }
.buehne__ton { position: absolute; right: 16px; bottom: 16px; }

.stand { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--bb-space-5);
  background: rgba(20,21,22,.72); border: 1px solid var(--bb-border); padding: 8px 16px; border-radius: var(--bb-radius-sm);
  font-family: var(--bb-font-label); letter-spacing: var(--bb-tracking-caps); color: var(--bb-text-muted); font-size: 15px; }
.stand__punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--bb-text-faint); box-shadow: 0 0 0 3px rgba(138,129,112,.2); }
.stand[data-stand="offen"] .stand__punkt { background: var(--bb-success); box-shadow: 0 0 0 3px var(--bb-success-soft); }
.stand[data-stand="bald"] .stand__punkt { background: var(--bb-warning); box-shadow: 0 0 0 3px var(--bb-warning-soft); }
.stand strong { color: var(--bb-heading); font-weight: 400; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--bb-space-8) 0; }
.abschnitt--eng { padding: var(--bb-space-7) 0; }
.titel { font-family: var(--bb-font-display); font-weight: 400; color: var(--bb-heading); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; text-align: center; margin: 0; }
.untertitel { text-align: center; color: var(--bb-text-muted); font-style: italic; font-size: 19px; margin: var(--bb-space-2) auto 0; max-width: 680px; }
.trenner { height: 24px; max-width: 320px; margin: var(--bb-space-4) auto var(--bb-space-6);
  background: url("../img/ornament-trenner-messing.svg") center / contain no-repeat; }
[data-bb-theme="papier"] .trenner { background-image: url("../img/ornament-trenner-tinte.svg"); }

/* Seitenkopf mit Bild (Unterseiten) */
.seitenkopf { position: relative; padding: clamp(64px, 12vw, 128px) 0 clamp(40px, 7vw, 72px); text-align: center; isolation: isolate; overflow: hidden; }
.seitenkopf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.seitenkopf::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,21,22,.55), rgba(20,21,22,.7) 55%, var(--bb-kohle-950)); }
.seitenkopf h1 { font-family: var(--bb-font-display); font-weight: 400; font-size: clamp(36px, 6vw, 64px); color: var(--bb-heading); margin: 0; line-height: 1.05; text-shadow: 0 3px 16px rgba(0,0,0,.7); }
.seitenkopf p { font-style: italic; font-size: clamp(18px, 2.2vw, 22px); color: var(--bb-creme-200); margin: var(--bb-space-3) auto 0; max-width: 720px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }

/* Karten-Raster */
.raster { display: grid; gap: var(--bb-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.karte { position: relative; background: linear-gradient(180deg, var(--bb-surface), var(--bb-kohle-900)); border: 1px solid var(--bb-border);
  box-shadow: var(--bb-inset-ring), var(--bb-shadow-1); border-radius: var(--bb-radius-md); padding: var(--bb-space-5); }
.karte::before, .karte::after { content: ""; position: absolute; width: 34px; height: 34px; pointer-events: none; opacity: .9; }
.karte::before { top: 5px; left: 5px; background: url("../img/ornament-ecke-messing-tl.svg") center / contain no-repeat; }
.karte::after { bottom: 5px; right: 5px; background: url("../img/ornament-ecke-messing-br.svg") center / contain no-repeat; }
.karte h3 { font-family: var(--bb-font-heading); font-size: 23px; color: var(--bb-heading); margin: var(--bb-space-2) 0 var(--bb-space-2); }
.karte p { margin: 0; color: var(--bb-text); }
.karte__marke { font-family: var(--bb-font-label); letter-spacing: var(--bb-tracking-caps); color: var(--bb-accent); font-size: 15px; }
.karte--bild { padding: 0; overflow: hidden; }
.karte--bild img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--bb-border); }
.karte--bild .karte__text { padding: var(--bb-space-5); }

/* Zwei Spalten Text + Bild */
.zweier { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--bb-space-7); align-items: center; }
.zweier--um { grid-template-columns: .9fr 1.1fr; }
.zweier--um > :first-child { order: 2; }
@media (max-width: 820px) { .zweier, .zweier--um { grid-template-columns: 1fr; gap: var(--bb-space-5); } .zweier--um > :first-child { order: 0; } }
.rahmenbild { border: 1px solid var(--bb-border-strong); padding: 6px; background: var(--bb-kohle-900); box-shadow: var(--bb-shadow-2); }
.rahmenbild img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fliess h2 { font-family: var(--bb-font-heading); font-size: clamp(26px, 3vw, 32px); color: var(--bb-heading); margin: 0 0 var(--bb-space-3); line-height: 1.2; }
.fliess p { margin: 0 0 var(--bb-space-4); }

/* ---------- Papier-Bogen (Regelwerk, Zeitung, Welt) ---------- */
.bogen {
  position: relative; color: var(--bb-text);
  background: url("../img/papier-kachel.webp") center top / 520px repeat;
  box-shadow: inset 0 0 70px rgba(110, 62, 24, .55), inset 0 0 18px rgba(80, 40, 15, .5);
  /* gerissener Rand: Alpha aus pergament.webp (Chrome/Edge/Safari, sonst gerade Kante) */
  -webkit-mask-box-image: url("../img/pergament.webp") 70 / 36px round;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.6));
  padding: clamp(48px, 7vw, 96px) clamp(26px, 7vw, 100px);
}
.bogen::before { content: ""; position: absolute; inset: clamp(10px, 2vw, 22px); pointer-events: none;
  border: 3px double var(--bb-border-strong); opacity: .75; }
.bogen__ecke { position: absolute; width: clamp(40px, 7vw, 72px); height: clamp(40px, 7vw, 72px); pointer-events: none; }
.bogen__ecke--tl { top: clamp(4px, 1vw, 12px); left: clamp(4px, 1vw, 12px); background: url("../img/ornament-ecke-tinte-tl.svg") center / contain no-repeat; }
.bogen__ecke--tr { top: clamp(4px, 1vw, 12px); right: clamp(4px, 1vw, 12px); background: url("../img/ornament-ecke-tinte-tr.svg") center / contain no-repeat; }
.bogen__ecke--bl { bottom: clamp(4px, 1vw, 12px); left: clamp(4px, 1vw, 12px); background: url("../img/ornament-ecke-tinte-bl.svg") center / contain no-repeat; }
.bogen__ecke--br { bottom: clamp(4px, 1vw, 12px); right: clamp(4px, 1vw, 12px); background: url("../img/ornament-ecke-tinte-br.svg") center / contain no-repeat; }
.bogen h1, .bogen h2, .bogen h3 { color: var(--bb-heading); }
.bogen__kopf { text-align: center; }
.bogen__kopf .oberzeile { font-family: var(--bb-font-label); letter-spacing: .12em; font-size: 15px; color: var(--bb-text-muted); }
.bogen__kopf h1 { font-family: var(--bb-font-display); font-weight: 400; font-size: clamp(32px, 6vw, 60px); line-height: 1.05; margin: 6px 0; }
.bogen__kopf .unterzeile { font-style: italic; color: var(--bb-text-muted); }
.doppellinie { border: 0; height: 6px; margin: var(--bb-space-4) 0; border-top: 1px solid var(--bb-border-strong); border-bottom: 2px solid var(--bb-border-strong); }
.bogen p, .bogen li { text-wrap: pretty; }
.blocksatz { text-align: justify; hyphens: auto; }
@media (max-width: 600px) { .blocksatz { text-align: left; } }
.unterschrift { font-family: var(--bb-font-script); font-size: 40px; line-height: 1; color: var(--bb-heading); }

/* Regelwerk */
.regel-inhalt { columns: 2 260px; column-gap: var(--bb-space-6); margin: var(--bb-space-4) 0; padding: 0; list-style: none; }
.regel-inhalt li { break-inside: avoid; padding: 3px 0; border-bottom: 1px dotted var(--bb-border); }
.regel-inhalt a { color: var(--bb-text); text-decoration: none; }
.regel-inhalt a:hover { color: var(--bb-highlight); }
.regel-inhalt b { font-family: var(--bb-font-label); font-weight: 400; color: var(--bb-text-muted); margin-right: 6px; }
.paragraf { margin-top: var(--bb-space-7); scroll-margin-top: 90px; }
.paragraf h2 { font-family: var(--bb-font-heading); font-size: clamp(24px, 3vw, 30px); margin: 0 0 var(--bb-space-2); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.paragraf h2 .nr { font-family: var(--bb-font-display); font-weight: 400; color: var(--bb-highlight); font-size: .9em; }
.paragraf ol { padding-left: 1.6em; margin: var(--bb-space-2) 0 0; }
.paragraf li { margin-bottom: var(--bb-space-2); }
.paragraf li::marker { font-family: var(--bb-font-heading); font-weight: 700; color: var(--bb-text-muted); }
.begriff { font-family: var(--bb-font-label); letter-spacing: .03em; }
.suche { display: flex; gap: var(--bb-space-2); max-width: 480px; margin: var(--bb-space-4) auto 0; }
.suche input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 10px 12px; background: rgba(243,228,195,.45);
  border: 1px solid var(--bb-border-strong); color: var(--bb-text); border-radius: var(--bb-radius-sm); }
.suche input::placeholder { color: var(--bb-text-faint); }
.treffer-leer { text-align: center; font-style: italic; color: var(--bb-text-muted); margin-top: var(--bb-space-5); }
mark { background: rgba(144,65,44,.22); color: inherit; padding: 0 2px; }
.entwurf-hinweis { border: 1px dashed var(--bb-border-strong); padding: var(--bb-space-3) var(--bb-space-4); margin: var(--bb-space-5) 0 0; font-style: italic; }

/* Zeitung */
.zeitung__spalten { columns: 2 300px; column-gap: var(--bb-space-6); column-rule: 1px solid var(--bb-border); }
.artikel { break-inside: avoid; margin-bottom: var(--bb-space-6); }
.artikel h2 { font-family: var(--bb-font-heading); font-size: 26px; line-height: 1.15; margin: 0 0 4px; text-align: center; }
.artikel .datum { display: block; text-align: center; font-family: var(--bb-font-label); color: var(--bb-text-muted); font-size: 14px; letter-spacing: .08em; margin-bottom: var(--bb-space-2); }
.artikel p:first-of-type::first-letter { font-family: var(--bb-font-display); float: left; font-size: 52px; line-height: .9; padding: 4px 8px 0 0; color: var(--bb-heading); }

/* Handbuch */
.schritte { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--bb-space-4); }
.schritte > li { counter-increment: s; position: relative; padding-left: 64px; }
.schritte > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--bb-font-display); font-size: 22px; color: var(--bb-accent-text); background: var(--bb-accent); border-radius: 50%; box-shadow: var(--bb-inset-ring); }
.schritte h3 { margin: 6px 0 4px; font-family: var(--bb-font-heading); font-size: 22px; color: var(--bb-heading); }
.schritte p { margin: 0; }
.tasten { width: 100%; border-collapse: collapse; }
.tasten th, .tasten td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bb-border); vertical-align: top; }
.tasten th { font-family: var(--bb-font-label); font-weight: 400; color: var(--bb-text-muted); letter-spacing: var(--bb-tracking-caps); }
.taste { display: inline-block; min-width: 28px; padding: 1px 8px; text-align: center; font-family: var(--bb-font-label); color: var(--bb-heading);
  border: 1px solid var(--bb-border-strong); border-bottom-width: 3px; border-radius: 3px; background: var(--bb-surface-2); white-space: nowrap; }
code { font-family: var(--bb-font-mono); font-size: .9em; background: var(--bb-surface-2); border: 1px solid var(--bb-border); padding: 1px 6px; border-radius: 2px; color: var(--bb-heading); word-break: break-word; }
details { border: 1px solid var(--bb-border); background: var(--bb-surface); border-radius: var(--bb-radius-md); margin-bottom: var(--bb-space-2); }
summary { cursor: pointer; padding: 14px 18px; font-family: var(--bb-font-heading); font-weight: 700; font-size: 19px; color: var(--bb-heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--bb-font-display); color: var(--bb-accent); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 18px 16px; }
details > div p { margin: 0 0 8px; }

/* Ohne Funktion / Hinweis */
.ohne-funktion { display: inline-block; font-family: var(--bb-font-label); font-size: 13px; letter-spacing: var(--bb-tracking-caps);
  color: var(--bb-warning); border: 1px solid var(--bb-warning); padding: 0 8px; border-radius: var(--bb-radius-pill); vertical-align: middle; }
[data-bb-theme="papier"] .ohne-funktion { color: var(--bb-highlight); border-color: var(--bb-highlight); }
.platzhalter { background: var(--bb-warning-soft); border-left: 3px solid var(--bb-warning); padding: 2px 8px; font-style: italic; }

/* Team */
.steckbrief { text-align: center; }
.steckbrief__bild { width: 120px; height: 120px; margin: 4px auto var(--bb-space-3); border-radius: 50%; border: 2px solid var(--bb-border-strong);
  background: var(--bb-kohle-700) center / cover; display: grid; place-items: center; font-family: var(--bb-font-display); font-size: 44px; color: var(--bb-accent); }

/* Laden */
.laden-grundsatz { display: grid; gap: var(--bb-space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: var(--bb-space-5); }

/* Aufruf-Band */
.band { text-align: center; padding: var(--bb-space-7) 16px; border-block: 1px solid var(--bb-border-strong);
  background: linear-gradient(180deg, rgba(37,38,40,.9), rgba(27,28,30,.95)); }
.band h2 { font-family: var(--bb-font-display); font-weight: 400; font-size: clamp(28px, 4vw, 42px); color: var(--bb-heading); margin: 0 0 var(--bb-space-2); }
.band p { color: var(--bb-text-muted); margin: 0 auto var(--bb-space-5); max-width: 620px; font-size: 19px; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--bb-border-strong); background: rgba(20,21,22,.96); padding: var(--bb-space-7) 0 var(--bb-space-5); font-size: 15px; color: var(--bb-text-muted); }
.fuss__raster { display: grid; gap: var(--bb-space-6); grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .fuss__raster { grid-template-columns: 1fr; } }
.fuss h4 { font-family: var(--bb-font-label); font-weight: 400; letter-spacing: var(--bb-tracking-caps); color: var(--bb-heading); font-size: 17px; margin: 0 0 var(--bb-space-2); }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { padding: 3px 0; }
.fuss a { color: var(--bb-text-muted); text-decoration: none; }
.fuss a:hover { color: var(--bb-heading); }
.fuss__marke { display: flex; gap: var(--bb-space-3); align-items: center; margin-bottom: var(--bb-space-3); }
.fuss__marke img { width: 56px; }
.fuss__marke span { font-family: var(--bb-font-display); font-size: 22px; color: var(--bb-heading); }
.fuss__klein { border-top: 1px solid var(--bb-border); margin-top: var(--bb-space-6); padding-top: var(--bb-space-4); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bb-space-3); }

/* Knöpfe etwas größer für die Website */
.bb-btn { font-size: 17px; min-height: 42px; padding: 0 18px; text-decoration: none; }
.bb-btn--secondary { color: var(--bb-heading); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
