/* Dwarfmasters – gemeinsames Design für alle Seiten
 * Zwei Farbwelten: dm (Dwarfmasters) und ks (Kampagne "Der Splitter des Ewigen").
 */
@import url('/fonts/fonts.css?v=2b8c1ea');

:root, [data-welt="dm"] {
  --bg: #12201c; --bg-2: #182b26; --bg-3: #0c1714;
  --text: #ece3d0; --text-2: #b9b09d; --linie: rgba(236,227,208,.14);
  --akzent: #f1b355; --akzent-text: #1c1712; --zweit: #8e2f3c; --moos: #3e5a4c;
  --papier: #ece3d0; --papier-text: #1c1712;
  --max: 1240px;
}
[data-welt="ks"] {
  --bg: #110f18; --bg-2: #19151f; --bg-3: #0b0a10;
  --text: #d6d0e2; --text-2: #9c95ab; --linie: rgba(214,208,226,.14);
  --akzent: #c22d38; --akzent-text: #fff; --zweit: #6b4f96; --moos: #6b4f96;
  --papier: #d6d0e2; --papier-text: #110f18;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 'Karla', system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.knopf { display: inline-block; padding: 14px 24px; border-radius: 3px; background: var(--akzent); color: var(--akzent-text); font: 700 1rem/1.2 'Karla', sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.knopf:hover { filter: brightness(1.08); }
.knopf.leise { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text-2); }
.knopf.leise:hover { box-shadow: inset 0 0 0 1.5px var(--akzent); color: var(--akzent); filter: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 700; text-underline-offset: 4px; }

section { padding: 104px 0; }
.kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.kopf h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.kopf p { margin: 0; color: var(--text-2); max-width: 46ch; }

[data-welt="dm"] .nur-ks, [data-welt="ks"] .nur-dm { display: none !important; }

/* ---------- Navigation ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); }
.nav .wrap { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 26px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.2rem; margin-right: auto; }
.marke img { width: 42px; height: 42px; object-fit: contain; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--akzent); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links .zur-kampagne { color: #e8a0a8; }
.menu-knopf { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 3px; padding: 8px 12px; font: 700 .95rem 'Karla', sans-serif; cursor: pointer; }

/* Schalter zwischen den Welten */
.schalter { display: inline-flex; align-items: center; gap: 10px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 14px 5px 5px; color: #fff; font: 700 .92rem/1 'Karla', sans-serif; cursor: pointer; }
.schalter .spur { position: relative; width: 52px; height: 28px; border-radius: 999px; background: #3e5a4c; transition: background .2s; }
.schalter .spur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #f1b355; transition: transform .25s cubic-bezier(.3,1.4,.6,1), background .2s; }
.schalter[aria-checked="true"] .spur { background: #6b4f96; }
.schalter[aria-checked="true"] .spur::after { transform: translateX(24px); background: #e0414d; box-shadow: 0 0 10px #e0414d; }

/* Roter Blitz */
.blitz { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0; }
.blitz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blitz .glut { fill: none; stroke: #ff2b3a; stroke-width: 14; filter: blur(6px); }
.blitz .kern { fill: none; stroke: #fff6f6; stroke-width: 3.5; }
.blitz .licht { position: absolute; inset: 0; background: radial-gradient(ellipse at var(--bx, 50%) 40%, #fff 0%, #ff4a57 35%, #7a0f19 75%, #2a0508 100%); opacity: 0; }
.blitz.an { animation: blitz-an .75s ease-out forwards; }
.blitz.an .licht { animation: licht .75s ease-out forwards; }
.blitz.an path { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: zucken .12s linear forwards; }
@keyframes blitz-an { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes zucken { to { stroke-dashoffset: 0; } }
@keyframes licht { 0% { opacity: 0; } 14% { opacity: .95; } 22% { opacity: .55; } 30% { opacity: .9; } 100% { opacity: 0; } }
body.bebt { animation: beben .3s linear; }
@keyframes beben { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(3px, -3px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(2px, 2px); } }

/* ---------- Kopf der Unterseiten ---------- */
.seiten-kopf { position: relative; padding: 170px 0 72px; background: var(--bg-3) center / cover no-repeat; }
.seiten-kopf.mit-bild { min-height: 62svh; display: flex; align-items: flex-end; }
.seiten-kopf.mit-bild::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(18,32,28,.7) 40%, rgba(18,32,28,.35) 100%); }
.seiten-kopf .wrap { position: relative; width: 100%; }
.seiten-kopf h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 800; font-variation-settings: 'opsz' 144; max-width: 14ch; }
.seiten-kopf p { max-width: 54ch; font-size: 1.18rem; margin: 18px 0 0; }
.seiten-kopf .knoepfe { margin-top: 28px; }

/* ---------- Karten, Listen ---------- */
.karten-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.linie-karte { border-top: 2px solid var(--akzent); padding-top: 18px; }
.linie-karte h3 { font-size: 1.45rem; margin-bottom: 8px; }
.linie-karte p { margin: 0 0 10px; color: var(--text-2); }
.con { border-left: 3px solid var(--moos); padding: 4px 0 4px 20px; }
.con.vorbei { opacity: .55; }
.con h3 { font-size: 1.4rem; margin-bottom: 4px; }
.con .wann { color: var(--akzent); font-weight: 700; margin-bottom: 8px; }
.con p { margin: 0; color: var(--text-2); }

.papier { background: var(--papier); color: var(--papier-text); }
.papier .knopf { background: var(--zweit); color: #fff; }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 8px; }
.galerie button { position: relative; padding: 0; border: 0; background: var(--bg-3); cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.galerie button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.galerie button:hover img { transform: scale(1.04); filter: brightness(1.08); }
.galerie button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.galerie button:nth-child(6) { grid-column: span 2; }
.galerie .mehr::after { content: attr(data-mehr); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,23,20,.72); color: var(--text); font: 700 1.6rem 'Fraunces', serif; }

/* Lightbox */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,10,9,.96); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox figure { margin: 0; position: absolute; inset: 64px 72px 72px; display: grid; place-items: center; }
.lightbox figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .lb-kopf { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; gap: 16px; }
.lightbox .lb-titel { font-family: 'Fraunces', serif; font-size: 1.15rem; }
.lightbox .lb-zahl { color: #b9b09d; margin-left: 12px; font-family: 'Karla', sans-serif; font-size: .95rem; }
.lightbox button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox .lb-zurueck, .lightbox .lb-weiter { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-zurueck { left: 14px; } .lightbox .lb-weiter { right: 14px; }
.lightbox .lb-leiste { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; overflow-x: auto; padding: 0 16px; }
.lightbox .lb-leiste img { width: 56px; height: 40px; object-fit: cover; opacity: .45; cursor: pointer; border-radius: 2px; flex: none; }
.lightbox .lb-leiste img.aktiv { opacity: 1; outline: 2px solid #f1b355; }

/* ---------- Fuß ---------- */
footer { padding: 56px 0 64px; background: var(--bg-3); color: var(--text-2); font-size: .95rem; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer h4 { margin: 0 0 10px; font: 600 1.05rem 'Fraunces', serif; color: var(--text); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer p { margin: 0 0 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--akzent); }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 760px; overflow-wrap: anywhere; }
.rechtstext h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p, .rechtstext li { color: var(--text-2); }
.rechtstext a { color: var(--text); }
.rechtstext ul { padding-left: 1.2em; }

@media (max-width: 960px) {
  .menu-knopf { display: block; }
  .nav-links { display: none; }
  .nav.offen .nav-links { display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: var(--bg-3); font-size: 1.6rem; font-family: 'Fraunces', serif; }
  .schalter .text { display: none; }
  .kopf, footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  .karten-3 { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .galerie button:nth-child(6) { grid-column: auto; }
  .lightbox figure { inset: 64px 8px 70px; }
  .lightbox .lb-zurueck, .lightbox .lb-weiter { top: auto; bottom: 64px; transform: none; }
  section { padding: 72px 0; }
  .seiten-kopf { padding-top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blitz.an { animation: blitz-an .3s ease-out forwards; }
  .blitz.an .licht { animation: none; opacity: .6; }
  .blitz svg { display: none; }
  body.bebt { animation: none; }
  .galerie button img { transition: none; }
}

@media (max-width: 520px) {
  .nav:has(.schalter) .marke-text { display: none; }
  .nav .wrap { gap: 14px; }
}
