/* Booty Bay im Dschungel: dunkles Leder, Gold, Horde-Rot, Hafenlicht. Eigene Gestaltung, keine Blizzard-Grafiken. */
:root {
  --bg: #0f0907;
  --leder: #1c120d;
  --leder-2: #150d09;
  --stein: #2a2420;
  --gold: #e8b84a;
  --gold-hell: #fff0b8;
  --gold-dunkel: #8a5d17;
  --rot: #a3201a;
  --rot-dunkel: #5e0c10;
  --pergament: #efe3c8;
  --gedaempft: #c9b48f;
  --tuerkis: #3bd1b8;
  --radius: 6px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rauschen: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0; color: var(--pergament); font: 1rem/1.65 var(--sans);
  background: var(--bg) var(--rauschen);
  background-image: radial-gradient(ellipse at 50% 0, rgba(163,32,26,.18), transparent 60%), var(--rauschen);
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hell); }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Menüleiste ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; gap: .75rem; align-items: center; justify-content: space-between;
  padding: .35rem 16px; background: linear-gradient(#34281f, #1a110c) , var(--rauschen);
  border-bottom: 3px solid var(--gold); box-shadow: 0 2px 0 #000, 0 0 24px rgba(232,184,74,.25), 0 8px 18px rgba(0,0,0,.6);
}
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; overflow-x: auto; }
.menu a {
  display: block; padding: .5rem .85rem; color: var(--gold); text-decoration: none; white-space: nowrap;
  font-family: var(--serif); font-size: 1rem; letter-spacing: .04em; border-radius: var(--radius);
  text-shadow: 0 1px 0 #000; border: 1px solid transparent;
}
.menu a:hover { color: var(--gold-hell); border-color: var(--gold-dunkel); background: rgba(232,184,74,.1); }
.tone { display: flex; border: 2px solid var(--gold-dunkel); border-radius: 999px; overflow: hidden; flex: none; background: #120a07; }
.tone button { background: transparent; color: var(--gedaempft); border: 0; padding: .4rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; font-family: var(--serif); }
.tone button[aria-pressed="true"] { background: linear-gradient(var(--gold), var(--gold-dunkel)); color: #1a0f00; font-weight: 700; }

/* ---------- Hero: Hafen von Booty Bay ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 3rem 16px 7rem; min-height: min(86vh, 760px); display: flex; align-items: flex-start; justify-content: center; isolation: isolate; border-bottom: 4px solid var(--gold-dunkel); box-shadow: inset 0 0 180px 40px #000; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(circle, rgba(255,190,80,.95) 0 1.5px, transparent 2.5px) 0 0 / 310px 410px,
  radial-gradient(circle, rgba(255,120,40,.9) 0 1.2px, transparent 2.2px) 140px 90px / 230px 530px,
  radial-gradient(circle, rgba(255,230,150,.8) 0 1px, transparent 2px) 70px 220px / 410px 620px; opacity: .6; }
@media (prefers-reduced-motion: no-preference) { .hero::before { animation: glut 14s linear infinite; } }
@keyframes glut { to { background-position: 30px -410px, 140px -440px, 100px -620px; } }
.ruf { margin: 1.1rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: #ff8a6b; text-shadow: 0 2px 0 #000, 0 0 16px rgba(220,40,20,.9); letter-spacing: .08em; }
.szene { position: absolute; inset: 0; z-index: -2; background: #0c1a10 url("../assets/hero.jpg") center 60% / cover no-repeat, url("../assets/hafen.svg") center bottom / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-inhalt { position: relative; max-width: 46rem; padding-top: .5rem; }
.hero-inhalt::before { content: ""; position: absolute; z-index: -1; inset: 6rem -4rem -2rem; background: radial-gradient(ellipse at 50% 45%, rgba(8,14,8,.82) 0, rgba(8,14,8,.6) 45%, transparent 72%); pointer-events: none; }
.hero-logo { width: 170px; height: auto; filter: drop-shadow(0 0 22px rgba(255,170,60,.55)) drop-shadow(0 10px 18px rgba(0,0,0,.8)); }
h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 8vw, 4.6rem); line-height: 1.02; margin: .2rem 0 .6rem;
  letter-spacing: .02em; font-variant: small-caps; text-wrap: balance;
  background: linear-gradient(#fff6d0 0%, var(--gold) 48%, color-mix(in srgb, var(--gold) 50%, #000) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #5a3a0a) drop-shadow(0 4px 0 #000) drop-shadow(0 0 26px rgba(255,150,40,.45));
}
.slogan { font-family: var(--serif); font-size: 1.25rem; font-style: italic; max-width: 32rem; margin: .5rem auto; color: #fff3dc; text-shadow: 0 2px 6px #000, 0 0 14px #000; }
.meta { color: var(--pergament); font-size: .95rem; text-shadow: 0 1px 4px #000, 0 0 10px #000; }
.banner { position: absolute; top: -6px; width: clamp(70px, 9vw, 120px); height: auto; z-index: 0; filter: drop-shadow(0 8px 10px rgba(0,0,0,.7)); transform-origin: top center; }
.banner-l { left: 5%; } .banner-r { right: 5%; }
@media (max-width: 760px) { .banner { display: none; } .hero { padding-bottom: 5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .banner-l { animation: wehen 6s ease-in-out infinite; }
  .banner-r { animation: wehen 6s ease-in-out -3s infinite; }
}
@keyframes wehen { 0%,100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-block; color: #fff3dc; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
  padding: .8rem 1.8rem; margin: .6rem 0; border-radius: 4px; border: 2px solid var(--gold);
  background: linear-gradient(#c8302a 0%, var(--rot) 45%, var(--rot-dunkel) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.45), 0 0 0 2px #000, 0 6px 14px rgba(0,0,0,.6);
  text-shadow: 0 2px 0 #3a0508; cursor: pointer;
}
.btn:hover { color: #fff; filter: brightness(1.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 6px rgba(0,0,0,.4), 0 0 0 2px #000, 0 0 22px rgba(255,170,60,.55); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .45rem 1.1rem; font-size: .95rem; }
button.btn { font: inherit; font-family: var(--serif); font-weight: 700; }
.tag { background: var(--stein); color: var(--gedaempft); border: 1px solid #4a4038; border-radius: 4px; padding: .05rem .45rem; font-size: .75rem; }

/* ---------- Abschnitte als Tafeln ---------- */
main { max-width: 980px; margin: 0 auto; padding: 3.5rem 16px 3rem; display: grid; gap: 4.5rem; }
main > section { min-width: 0;
  position: relative; padding: 2.4rem clamp(1rem, 4vw, 2.25rem) 1.75rem; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 120px), var(--leder) var(--rauschen);
  border: 2px solid var(--gold-dunkel);
  box-shadow: inset 0 0 0 5px var(--leder-2), inset 0 0 0 6px rgba(232,184,74,.45), 0 0 0 3px #000, 0 18px 40px rgba(0,0,0,.65);
}
main > section::before, main > section::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold); pointer-events: none; }
main > section::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
main > section::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
h2, h3, h4 { font-family: var(--serif); line-height: 1.2; }
h2 {
  position: relative; width: fit-content; max-width: 92%; text-align: center; font-size: clamp(1.45rem, 4.4vw, 2.1rem); font-variant: small-caps; letter-spacing: .05em;
  margin: -4.1rem auto 1.6rem; padding: .35rem clamp(1.4rem, 5vw, 3rem); color: #ffe9a8; text-shadow: 0 2px 0 #000, 0 0 12px rgba(255,190,80,.5);
  border: 3px solid transparent; border-radius: 10px;
  background: linear-gradient(#8a1c16, #4a0a0d 60%, #2e0508) padding-box, linear-gradient(#fff0b8, var(--gold) 40%, var(--gold-dunkel)) border-box;
  box-shadow: 0 0 0 2px #000, inset 0 1px 0 rgba(255,255,255,.3), inset 0 -4px 8px rgba(0,0,0,.5), 0 10px 20px rgba(0,0,0,.7);
}
h2::before, h2::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; transform: rotate(45deg); background: radial-gradient(#fff0b8, var(--gold) 55%, var(--gold-dunkel)); border: 1px solid #000; }
h2::before { left: -8px; } h2::after { right: -8px; }
h3 { color: var(--gold); font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
h3::before { content: "◆ "; font-size: .65em; vertical-align: .2em; color: var(--rot); text-shadow: 0 0 0 #000; }
.hinweis, .meta { color: var(--gedaempft); font-size: .9rem; }
.hinweis.warn { border-left: 4px solid var(--gold); padding: .5rem .85rem; background: rgba(232,184,74,.09); color: var(--pergament); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Karten, Kästen ---------- */
.cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(16,16,34,.96), rgba(6,6,16,.97)); border: 2px solid #8c8c9c; border-radius: 6px; padding: .9rem 1rem; margin: 0;
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 8px 18px rgba(0,0,0,.6);
}
.card .hinweis { color: #b9b9c6; }
.box {
  margin: 1rem 0; padding: 1rem 1.2rem; color: #3a2410; border-radius: 4px; border: 2px solid #6b4a1e;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(120,80,20,.12)), #d9c18f;
  box-shadow: inset 0 0 28px rgba(110,70,20,.55), 0 0 0 2px #000, 0 8px 16px rgba(0,0,0,.55);
}
.box a:not(.btn) { color: #7a1410; } .box a:not(.btn):hover { color: #b3170f; }
.box h3 { color: #6e1410; } .box h3::before { color: #6e1410; }
.box .hinweis { color: #5f4220; }
.box legend { color: #6e1410; }
.box .melde.gut { color: #12602a; } .box .melde.schlecht { color: #9b1010; }
.box .spur { background: #5c4020; border-color: #3a2410; }
.box .abst-form fieldset, .box fieldset { border-color: #7a5a2a; }
figure.card { text-align: center; }
figure.card { color: #e8e8f0; }
figure.card img { border-radius: 50%; border: 3px solid var(--gold-dunkel); background: var(--leder-2); }

/* Klassenfarben (bekannte Spielkonvention) als Kartenkopf */
.klasse { --kf: var(--gold); border-top: 5px solid var(--kf); position: relative; overflow: hidden; }
.klasse::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; background: linear-gradient(color-mix(in srgb, var(--kf) 30%, transparent), transparent); pointer-events: none; }
.klasse h4 { color: var(--kf); position: relative; text-shadow: 0 1px 0 #000; }
.klasse[data-klasse="Druide"] { --kf: #ff7d0a; }
.klasse[data-klasse="Jäger"] { --kf: #abd473; }
.klasse[data-klasse="Magier"] { --kf: #69ccf0; }
.klasse[data-klasse="Paladin"] { --kf: #f58cba; }
.klasse[data-klasse="Priester"] { --kf: #f2f2f2; }
.klasse[data-klasse="Schurke"] { --kf: #fff569; }
.klasse[data-klasse="Schamane"] { --kf: #3a8cff; }
.klasse[data-klasse="Hexenmeister"] { --kf: #a99bdc; }
.klasse[data-klasse="Krieger"] { --kf: #c79c6e; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: var(--radius); border: 1px solid #5a4126; }
table.tab { width: 100%; border-collapse: collapse; background: #1a110c; min-width: 520px; }
.tab th, .tab td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid #3a2a1b; vertical-align: top; }
.tab th { background: linear-gradient(var(--rot), var(--rot-dunkel)); color: #fff3dc; font-family: var(--serif); letter-spacing: .03em; border-bottom: 2px solid var(--gold-dunkel); }
.tab tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.bis-gruppe { margin: 1.5rem 0; }
.bis-gruppe h3 { margin-bottom: .25rem; }

/* ---------- Abstimmungen, Formulare ---------- */
.abst { margin: 1rem 0; }
.abst h3 { margin-top: 0; }
.abst-form label { display: block; font-weight: 600; margin: .25rem 0; }
.abst-form .chk, .abst-form fieldset label { font-weight: 400; display: inline-flex; align-items: center; gap: .3rem; margin-right: 1rem; }
.abst-form input[type="text"], .abst-form select, .abst-form input[type="password"], .abst-form input[type="number"], .abst-form input[type="file"], .abst-form textarea {
  width: 100%; max-width: 24rem; padding: .55rem .7rem; background: #0e0806; color: var(--pergament); border: 1px solid var(--gold-dunkel); border-radius: 4px; font: inherit;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
}
.abst-form textarea { max-width: 100%; }
.abst-form fieldset { border: 1px solid #5a4126; border-radius: var(--radius); margin: .75rem 0; }
.abst-form legend { color: var(--gold); padding: 0 .4rem; font-family: var(--serif); }
.zeile { margin: .5rem 0; }
.zeile .kopf { display: flex; align-items: center; gap: .5rem; }
.spur { background: #0e0806; border: 1px solid #4a3822; border-radius: 999px; height: .75rem; overflow: hidden; }
.balken { display: block; height: 100%; background: linear-gradient(#fff0b8, var(--gold) 40%, var(--gold-dunkel)); }
.farbe { display: inline-block; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--pergament); vertical-align: middle; }
img.mini { border-radius: 8px; object-fit: cover; vertical-align: middle; border: 2px solid var(--gold-dunkel); }
.vorschau { max-width: 100%; height: auto; border: 2px solid var(--gold-dunkel); border-radius: 8px; background: var(--leder-2); }
.melde { margin: .5rem 0; min-height: 1.2em; }
.melde.gut { color: #8be8a8; }
.melde.schlecht { color: #ff9a9a; }

/* ---------- Fuß ---------- */
footer { max-width: 980px; margin: 0 auto; padding: 1.5rem 16px 3rem; color: var(--gedaempft); border-top: 3px double var(--gold-dunkel); }
footer h2 { margin: 1.2rem 0 .6rem; width: auto; max-width: none; text-align: left; font-size: 1.2rem; padding: .2rem .9rem; display: inline-block; }
footer h2::before, footer h2::after { display: none; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .tone { align-self: flex-start; }
  main > section::before, main > section::after { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
