/* LN55 Studio – Website (Designrichtung v2, 29.09.2026): „Vom Sternenhimmel an den Spieltisch“.
   Eine durchgehende Nachtszene: Himmel → Nebel → Spielzimmer → Tischplatte.
   Nur eigene Dateien, keine Inline-Stile (CSP ohne unsafe-inline). Animiert werden nur transform und opacity.
   Stimmungsbilder: KI-erzeugt, neutral; App-Bilder: echtes Material (siehe Lizenzen & Quellen). */

@font-face { font-family: "Grenze Gotisch"; src: url("../fonts/GrenzeGotisch-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Comfortaa"; src: url("../fonts/Comfortaa-VF.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Pixel Operator"; src: url("../fonts/PixelOperator8.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0a1426; --ink: #0d0906; --wood: #22150d; --ember: #f2a24a; --candle: #ffcf7a;
  --gold: #e2b24c; --gold-hi: #ffe29a; --parchment: #eadbb9; --ink-text: #2b1b10;
  --text: #f2e8d5; --muted: #d2c3a6; --soft: #e6dcc6;
  --display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: var(--body); font-size: 1.12rem; line-height: 1.6; background: var(--ink); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: .18em; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 900px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); color: var(--gold-hi); text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 28px rgba(242,162,74,.25); }
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .72rem 1.35rem; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; line-height: 1.2; border: 0; cursor: pointer; font-family: var(--body); }
.btn.gold { color: #22160a; background: linear-gradient(180deg, #ffe7a6, #e2b24c 55%, #b9832b); box-shadow: 0 0 0 1px #6e4a14, inset 0 1px 0 rgba(255,255,255,.6), 0 8px 22px rgba(0,0,0,.45), 0 0 26px rgba(242,162,74,.25); }
.btn.gold:hover { color: #22160a; filter: brightness(1.08); }
.btn.ghost { color: var(--gold-hi); border: 1px solid rgba(226,178,76,.6); background: rgba(13,9,6,.62); }
.btn.ghost:hover { background: rgba(226,178,76,.14); }
.btn.big { font-size: 1.12rem; padding: .9rem 1.6rem; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: .6rem 1rem; background: var(--gold); color: #1c1207; font-weight: 700; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #1c1207; }

/* ---------- Kopfzeile ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 30; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; padding: 14px 20px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mk { width: 40px; filter: drop-shadow(0 0 10px rgba(226,178,76,.45)); }
.brand .wm { height: 24px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.7)); }
.links { display: flex; gap: 24px; }
.links a, .menu nav a { text-decoration: none; color: #f3ead7; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.links a:hover, .links a[aria-current="page"], .menu nav a[aria-current="page"] { color: var(--gold-hi); }
.links a[aria-current="page"] { text-decoration: underline; text-decoration-color: rgba(226,178,76,.7); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.building-tag { font-size: .82rem; color: var(--gold-hi); border: 1px solid rgba(226,178,76,.5); border-radius: 999px; padding: 3px 12px; background: rgba(10,20,38,.7); white-space: nowrap; }
.lang-switch { font-size: .86rem; font-weight: 700; text-decoration: none; color: var(--gold-hi); border: 1px solid rgba(226,178,76,.5); border-radius: 6px; padding: 3px 9px; background: rgba(13,9,6,.6); }
.motion-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #efe4cc; background: rgba(13,9,6,.6); border: 1px solid rgba(226,178,76,.35); border-radius: 999px; padding: 3px 10px 3px 6px; cursor: pointer; white-space: nowrap; }
.motion-switch input { appearance: none; width: 28px; height: 16px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(226,178,76,.6); position: relative; cursor: pointer; flex: none; }
.motion-switch input::after { content: ""; position: absolute; left: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #f5e7c4; transition: transform .2s; }
.motion-switch input:checked { background: var(--gold); }
.motion-switch input:checked::after { transform: translateX(12px); background: #2b1b10; }
.motion-switch:has(input:focus-visible) { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.menu { display: none; position: relative; z-index: 40; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--gold-hi); border: 1px solid rgba(226,178,76,.5); border-radius: 6px; padding: 3px 10px; background: rgba(13,9,6,.7); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; }
.menu[open] summary::after { content: " ▴"; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: rgba(18,11,7,.97); box-shadow: 0 0 0 1px rgba(226,178,76,.45), 0 18px 30px rgba(0,0,0,.6); }
.menu nav a { padding: 6px 8px; border-radius: 4px; }
@media (max-width: 900px) {
  .links { display: none; }
  .menu { display: block; margin-left: auto; }
  .header-tools { order: 3; width: 100%; }
}
@media (max-width: 520px) { .nav { padding: 12px 14px; row-gap: 8px; } .header-tools { gap: 7px; } .brand .wm { height: 20px; } }

/* ---------- Himmel (Startbild und Seitenkopf) ---------- */
.hero, .page-top { position: relative; isolation: isolate; text-align: center; overflow-x: clip; }
.hero { min-height: 104svh; display: grid; place-items: center; padding: 110px 0 16vh; }
.page-top { min-height: clamp(360px, 52vh, 520px); display: grid; align-items: center; padding: 120px 0 15vh; }
.sky-clip { position: absolute; inset: 0 0 -22vh; overflow: hidden; z-index: -1; }
.page-top .sky-clip { inset: 0 0 -12vh; }
.layer { position: absolute; pointer-events: none; }
.sky { inset: -2%; background: url("../img/hero-sky-960.webp") center 35% / cover no-repeat; animation: sky-zoom 60s ease-in-out infinite alternate; }
@keyframes sky-zoom { to { transform: scale(1.06); } }
.glow { inset: 0; background: url("../img/hero-glow-800.webp") center / 60% auto repeat-x; mix-blend-mode: screen; opacity: .05; animation: glow 9s ease-in-out infinite;
  -webkit-mask: radial-gradient(ellipse 30% 40% at 50% 42%, transparent 55%, #000 100%); mask: radial-gradient(ellipse 30% 40% at 50% 42%, transparent 55%, #000 100%); }
@keyframes glow { 0%, 100% { opacity: .05; } 50% { opacity: .4; } }
.stars { inset: 0; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff7e0; box-shadow: 0 0 6px 2px rgba(255,236,190,.55); animation: twinkle 4s ease-in-out infinite; }
.stars i:nth-child(3n) { animation-duration: 5.5s; background: #d8f1ff; }
.stars i:nth-child(3n+1) { animation-duration: 3.2s; width: 2px; height: 2px; }
.stars i:nth-child(1) { left: 6%; top: 12%; } .stars i:nth-child(2) { left: 14%; top: 24%; animation-delay: -1.1s; }
.stars i:nth-child(3) { left: 21%; top: 9%; animation-delay: -2.3s; } .stars i:nth-child(4) { left: 28%; top: 31%; animation-delay: -.6s; }
.stars i:nth-child(5) { left: 34%; top: 16%; animation-delay: -3.1s; } .stars i:nth-child(6) { left: 44%; top: 21%; animation-delay: -2.7s; }
.stars i:nth-child(7) { left: 57%; top: 11%; animation-delay: -.3s; } .stars i:nth-child(8) { left: 63%; top: 26%; animation-delay: -1.4s; }
.stars i:nth-child(9) { left: 69%; top: 14%; animation-delay: -3.6s; } .stars i:nth-child(10) { left: 74%; top: 34%; animation-delay: -2.1s; }
.stars i:nth-child(11) { left: 80%; top: 8%; animation-delay: -.9s; } .stars i:nth-child(12) { left: 86%; top: 20%; animation-delay: -2.9s; }
.stars i:nth-child(13) { left: 92%; top: 30%; animation-delay: -1.6s; } .stars i:nth-child(14) { left: 10%; top: 40%; animation-delay: -2.5s; }
.stars i:nth-child(15) { left: 89%; top: 43%; animation-delay: -.4s; } .stars i:nth-child(16) { left: 50%; top: 6%; animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.shoot { top: 14%; left: 0; width: 240px; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; transform: translateX(-30vw) rotate(-12deg); animation: shoot 13s linear infinite 3s; }
.shoot.two { top: 26%; width: 170px; animation-duration: 19s; animation-delay: 11s; }
@keyframes shoot { 0% { opacity: 0; transform: translateX(-30vw) rotate(-12deg); } 2% { opacity: 1; } 9% { opacity: 0; transform: translateX(115vw) rotate(-12deg); } 100% { opacity: 0; transform: translateX(115vw) rotate(-12deg); } }
.clouds-back { inset: -4% -12% 10%; background: url("../img/hero-clouds-960.webp") center 55% / cover no-repeat; animation: clouds 42s ease-in-out infinite alternate; }
@keyframes clouds { from { transform: translateX(-3.5%); } to { transform: translateX(3.5%); } }
.mountains { left: -6%; right: -6%; bottom: 20vh; height: max(20vh, calc(112vw * 347 / 1535)); background: url("../img/hero-mountains-800.webp") center bottom / auto 100% repeat-x; }
.page-top .mountains { bottom: 10vh; height: max(14vh, calc(90vw * 347 / 1535)); }
.descent { left: 0; right: 0; bottom: 0; height: 21vh; background: linear-gradient(180deg, #0e1a2b 0%, #120f12 60%, var(--ink) 100%); }
.page-top .descent { height: 11vh; }
.fog { left: -30%; width: 160%; height: clamp(20vh, calc(160vw * 724 / 2172), 46vh); background: url("../img/hero-fog-900.webp") center / auto 100% repeat-x; opacity: 0; animation: fog 32s ease-in-out infinite; }
.fog.one { bottom: 12vh; } .fog.two { bottom: 4vh; animation-delay: -16s; } .fog.three { bottom: -8vh; animation-duration: 40s; animation-delay: -7s; filter: sepia(.5) brightness(.75); }
.page-top .fog { height: clamp(14vh, calc(120vw * 724 / 2172), 30vh); } .page-top .fog.one { bottom: 6vh; } .page-top .fog.two { bottom: -2vh; }
@keyframes fog { 0% { transform: translateX(-8%); opacity: 0; } 20% { opacity: .85; } 70% { opacity: .55; } 100% { transform: translateX(14%) scale(1.08); opacity: 0; } }
@media (min-width: 900px) {
  .sky { background-image: url("../img/hero-sky-1672.webp"); }
  .glow { background-image: url("../img/hero-glow-1536.webp"); }
  .clouds-back { background-image: url("../img/hero-clouds-1672.webp"); }
  .mountains { background-image: url("../img/hero-mountains-1535.webp"); }
  .fog { background-image: url("../img/hero-fog-1600.webp"); }
}
.hero-content { position: relative; z-index: 2; padding: 0 16px; }
.emblem { position: relative; width: min(30vh, 52vw); margin: 0 auto; perspective: 900px; }
.halo { position: absolute; left: 50%; top: 46%; width: 160%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(226,178,76,.38), rgba(226,178,76,.08) 45%, transparent 70%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
.coin { position: relative; transform-style: preserve-3d; animation: coin 10s ease-in-out infinite 1.5s; }
@keyframes coin { 0%, 84% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.coin img { width: 100%; filter: drop-shadow(0 0 18px rgba(226,178,76,.4)); }
.glint { position: absolute; inset: 0; overflow: hidden; mix-blend-mode: soft-light; pointer-events: none;
  -webkit-mask: url("../img/emblem-mark-360.webp") center / contain no-repeat; mask: url("../img/emblem-mark-360.webp") center / contain no-repeat; }
.glint::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; background: linear-gradient(115deg, transparent 10%, rgba(255,250,230,.85) 50%, transparent 90%); transform: translateX(0); animation: shine 10s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 40% { transform: translateX(0); } 70%, 100% { transform: translateX(300%); } }
.hero h1 { margin: 1rem auto 0; width: min(560px, 80vw); }
.hero h1 .wordmark { width: 100%; filter: drop-shadow(0 3px 2px rgba(20,12,2,.8)) drop-shadow(0 0 26px rgba(10,20,38,.9)); }
.hero .claim { margin: .6rem auto 0; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; color: var(--gold-hi); text-shadow: 0 2px 10px rgba(5,10,20,.95), 0 0 30px rgba(5,10,20,.9); }
.hero .sub { margin: .5rem auto 0; max-width: 36rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #f1f2ec; text-shadow: 0 1px 10px rgba(5,10,20,.95), 0 0 30px rgba(5,10,20,.9); }
.hero .cta, .notfound .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.page-top-content { position: relative; z-index: 2; }
/* Schleier hinter Text über hellen Wolken (Lesbarkeit, gemessen per Pixelkontrast in tests/browser.mjs) */
.hero-copy, .page-top-content, .room-intro { isolation: isolate; }
.hero-copy { position: relative; padding: .4rem 0 .2rem; }
.hero-copy::before, .page-top-content::before, .room-intro::before { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6,10,20,.86) 0%, rgba(6,10,20,.72) 42%, rgba(6,10,20,.32) 64%, transparent 76%); }
.hero-copy::before { inset: -26% -18% -30%; }
.page-top-content::before { inset: -30% -8% -38%; }
.room-intro::before { inset: -35% 10% -45%; background: radial-gradient(ellipse at center, rgba(13,9,6,.85) 0%, rgba(13,9,6,.6) 50%, transparent 76%); }
.page-top h1 .brand-herolegend { font-size: min(1em, 9vw); }
.page-top h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--gold-hi); text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 34px rgba(5,10,20,.95); }
.page-top .lead { max-width: 44rem; margin: 1rem auto 0; font-size: clamp(1.1rem, 2vw, 1.28rem); color: #f1f2ec; text-shadow: 0 1px 10px rgba(5,10,20,.95), 0 0 24px rgba(5,10,20,.9); }
.page-top .kind { margin: 0 0 .6rem; font-size: .95rem; letter-spacing: .05em; color: #efe0bd; text-shadow: 0 1px 8px rgba(0,0,0,.9); }

/* ---------- Spielzimmer ---------- */
.room { position: relative; margin-top: -2vh; z-index: 1; overflow-x: clip; }
.room-intro { position: relative; z-index: 3; text-align: center; padding: 0 20px; }
.room-intro p { max-width: 38rem; margin: 1rem auto 0; color: var(--muted); font-size: 1.2rem; }
.stage { position: relative; margin-top: -4vh; aspect-ratio: 3 / 2; width: 100%; overflow: hidden; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); }
.fx { position: absolute; pointer-events: none; }
.flame { width: 7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,140,.55), rgba(255,170,70,.18) 40%, transparent 70%); mix-blend-mode: screen; animation: flicker 2.4s steps(1, end) infinite; }
.flame.f1 { left: 49.7%; top: 21.7%; } .flame.f2 { left: 97.1%; top: 38.9%; width: 8%; animation-duration: 3.1s; } .flame.f3 { left: 18.9%; top: 16.1%; width: 11%; }
@keyframes flicker { 0% { opacity: .9; transform: scale(1); } 12% { opacity: .65; transform: scale(.94); } 25% { opacity: 1; transform: scale(1.04); } 41% { opacity: .75; transform: scale(1); } 58% { opacity: .95; transform: scale(.98); } 77% { opacity: .7; transform: scale(1.03); } }
.orb { width: 4.2%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(160,210,255,.9), rgba(90,150,255,.35) 35%, transparent 70%); mix-blend-mode: screen; animation: orb 3.6s ease-in-out infinite; }
.orb.o1 { left: 56.4%; top: 34.4%; }
@keyframes orb { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.25); } }
.steam { width: 12%; aspect-ratio: 1024 / 1536; translate: -50% -100%; background: url("../img/fx-steam-200.webp") center / contain no-repeat; mix-blend-mode: screen; transform-origin: 50% 100%; opacity: 0; animation: steam 6s ease-in-out infinite; }
.steam.s1 { left: 86%; top: 44%; } .steam.s2 { left: 87.6%; top: 44%; animation-delay: -3s; }
@media (min-width: 900px) { .steam { background-image: url("../img/fx-steam-400.webp"); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(18%) scaleX(.9); } 25% { opacity: .75; } 100% { opacity: 0; transform: translateY(-14%) scaleX(1.12) skewX(-6deg); } }
.win-star { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(210,230,255,.7); animation: twinkle 3.4s ease-in-out infinite; }
.win-star.w1 { left: 79%; top: 4%; } .win-star.w2 { left: 85.5%; top: 11%; animation-delay: -1.2s; } .win-star.w3 { left: 91.5%; top: 6%; animation-delay: -2.1s; } .win-star.w4 { left: 82%; top: 17%; animation-delay: -.6s; }

/* ---------- Tischplatte ---------- */
.table { position: relative; clip-path: inset(0); overflow-x: clip; }
.page-home .table { margin-top: -26vh; padding-top: 26vh; }
/* Unter dem Seitenkopf blendet die Tischplatte weich ein, statt mit harter Kante zu beginnen. */
.page-top + .table { margin-top: -14vh; padding-top: 10vh; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14vh); mask-image: linear-gradient(180deg, transparent 0, #000 14vh); }
.table-bg { position: fixed; inset: 0; z-index: -1; background: url("../img/stage-table-800.webp") center / cover no-repeat; }
@media (min-width: 900px) { .table-bg { background-image: url("../img/stage-table-1536.webp"); } }
.table-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 22% 18%, rgba(255,190,110,.18), transparent 55%), radial-gradient(ellipse at 80% 85%, rgba(255,170,90,.1), transparent 50%); animation: warm 5s ease-in-out infinite alternate; }
.table-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(8,5,3,.35) 30%, rgba(8,5,3,.8) 100%); }
@keyframes warm { 0% { opacity: .75; } 40% { opacity: 1; } 60% { opacity: .85; } 100% { opacity: 1; } }
.table > section { position: relative; padding: 70px 0 80px; }
.table-edge { height: 140px; background: linear-gradient(180deg, transparent, #0b0705); }
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto; }
.sec-head p { color: var(--muted); margin: .9rem auto 0; font-size: 1.18rem; text-shadow: 0 1px 8px rgba(0,0,0,.8); }

/* ---------- Spielkarten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin-top: 54px; align-items: start; }
@media (max-width: 980px) { .cards { grid-template-columns: minmax(0, 480px); justify-content: center; gap: 56px; } }
.card { position: relative; padding: 26px 24px; border-radius: 10px; transform: rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,210,140,.10), transparent 60%), linear-gradient(170deg, #2d1d12, #1a110a 70%);
  box-shadow: 0 0 0 1px rgba(226,178,76,.55), 0 0 0 5px #120b06, 0 0 0 6px rgba(226,178,76,.35), 0 26px 40px rgba(0,0,0,.6), 0 6px 12px rgba(0,0,0,.5); }
.cards .card:hover, .cards .card:focus-within { transform: rotate(0deg) translateY(-8px); box-shadow: 0 0 0 1px rgba(255,226,154,.8), 0 0 0 5px #120b06, 0 0 0 6px rgba(226,178,76,.55), 0 40px 60px rgba(0,0,0,.65), 0 0 50px rgba(242,162,74,.18); }
.corner { position: absolute; width: 58px; height: 58px; background: url("../img/prop-corner-120.webp") center / contain no-repeat; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.corner.tl { left: -14px; top: -14px; } .corner.tr { right: -14px; top: -14px; transform: scaleX(-1); }
.corner.bl { left: -14px; bottom: -14px; transform: scaleY(-1); } .corner.br { right: -14px; bottom: -14px; transform: scale(-1, -1); }
.card .window { position: relative; height: 330px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; padding: 14px 10px; box-shadow: inset 0 0 0 1px rgba(226,178,76,.45), inset 0 0 40px rgba(0,0,0,.6); background: var(--glow); }
.card .kind { display: block; margin-top: 18px; font-size: .86rem; color: var(--muted); letter-spacing: .04em; }
.card h3 { margin-top: .2rem; font-size: 2.6rem; color: var(--gold-hi); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card p { margin: .6rem 0 0; color: var(--soft); }
.card .actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.card .src { display: block; margin-top: 14px; font-size: .78rem; color: #b8a584; }
.pet { --r: -2.2deg; --glow: linear-gradient(180deg, #403f7f, #4b4688 55%, #574f93); }
.pet .window .motif { height: 302px; width: auto; max-width: none; border-radius: 12px; border: 4px solid #0b0806; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.brand-pettapp { font-family: "Comfortaa", sans-serif; font-weight: 700; letter-spacing: -.055em; color: #f1dfc4; }
.card h3.brand-pettapp { font-size: 2.5rem; color: #f1dfc4; }
.brand-pettapp span { color: #a7c7b2; }
.brand-luckyday { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
.card h3.brand-luckyday { font-size: 2.2rem; }
.lucky { --r: 1.4deg; margin-top: 34px; --glow: radial-gradient(ellipse at 50% 30%, #1d2c4f 0%, #111a33 60%, #0a0f1f 100%); }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 10px; width: 100%; }
.tools li { width: 25%; display: grid; justify-items: center; gap: 3px; text-align: center; font-size: .74rem; line-height: 1.15; color: #f6e8c6; }
.tools img { width: min(54px, 80%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.legend { --r: -1deg; margin-top: 10px; --glow: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 60%, #3d5a1c, #0d130a 75%); }
.legend .window .motif { max-height: 302px; width: auto; max-width: 100%; image-rendering: pixelated; border: 4px solid #0b0806; border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.brand-herolegend { font-family: "Pixel Operator", monospace; color: #c6e04a; letter-spacing: .02em; }
.card h3.brand-herolegend { font-size: 1.9rem; color: #c6e04a; }
.d20 { position: absolute; width: 104px; right: -30px; top: -38px; z-index: 2; filter: drop-shadow(0 12px 10px rgba(0,0,0,.6)); animation: roll 9s ease-in-out infinite; }
@keyframes roll { 0%, 72%, 100% { transform: rotate(0) translateY(0); } 78% { transform: rotate(-28deg) translateY(-16px); } 86% { transform: rotate(14deg) translateY(0); } 92% { transform: rotate(-4deg) translateY(0); } }

/* ---------- Im Aufbau ---------- */
.prop { position: absolute; pointer-events: none; z-index: 2; filter: drop-shadow(0 18px 16px rgba(0,0,0,.65)); }
.prop.dice { width: clamp(150px, 18vw, 260px); left: -2vw; top: -60px; transform: rotate(-8deg); }
.prop.candle { width: clamp(110px, 12vw, 180px); right: 2vw; top: -150px; }
.prop.candle .glow { position: absolute; left: 50%; top: 9%; width: 260%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,120,.42), rgba(255,160,70,.12) 40%, transparent 68%); mix-blend-mode: screen; animation: flicker 2.8s steps(1, end) infinite; }
@media (max-width: 760px) { .prop.dice { width: 130px; top: -40px; } .prop.candle { width: 90px; top: -110px; } }
.note { position: relative; max-width: 470px; margin: 0 auto; transform: rotate(-3deg); filter: drop-shadow(0 20px 18px rgba(0,0,0,.6)); }
.note > img:first-child { width: 100%; }
.note .seal { position: absolute; left: 48.6%; top: 11.1%; width: 10%; translate: -50% -50%; opacity: .9; mix-blend-mode: soft-light; filter: contrast(1.3) drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.note .ink { position: absolute; left: 16%; right: 16%; top: 26%; color: var(--ink-text); text-align: center; }
.note .ink h2 { font-size: clamp(2rem, 4vw, 2.7rem); color: #3a1f10; text-shadow: none; }
.note .ink p { margin: .8rem 0 0; font-size: 1.08rem; line-height: 1.5; }
@media (max-width: 420px) { .note .ink { top: 22%; } .note .ink p { font-size: .98rem; } }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.minis { position: relative; }
.minis img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 26px 18px rgba(0,0,0,.7)); }
.orb.o2 { left: 8.9%; top: 12.1%; width: 5%; }
.plate { --r: .8deg; padding: 38px 40px 34px; }
.plate h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: .6rem; }
.plate p { color: var(--soft); }
.sig { font-family: var(--display); font-size: 2rem; color: var(--gold); margin-top: .6rem; }
@media (max-width: 520px) { .plate { padding: 30px 22px 26px; } }

/* ---------- Hinter den Kulissen ---------- */
.polas { display: flex; justify-content: center; gap: 30px; margin-top: 48px; flex-wrap: wrap; }
.pola { width: 220px; margin: 0; padding: 12px 12px 14px; background: #efe6d3; border-radius: 3px; transform: rotate(var(--r)); box-shadow: 0 18px 26px rgba(0,0,0,.55); transition: transform .4s; }
.pola figcaption { margin-top: 8px; font-size: .78rem; color: #3b2a1a; line-height: 1.3; }
.pola:hover { transform: rotate(0) scale(1.03); }
.pola:nth-child(1) { --r: -4deg; } .pola:nth-child(2) { --r: 2deg; margin-top: 24px; } .pola:nth-child(3) { --r: -1.5deg; }
.behind .center { margin-top: 34px; }

/* ---------- App-Seiten ---------- */
.feature-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feature { --r: 0deg; }
.feature h3 { font-size: 1.9rem; color: var(--gold-hi); }
.features h2, .tool-list h2, .gallery h2, .app-privacy-section h2, .credits h2 { text-align: center; }
.tool-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 28px; }
.tool-grid li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: rgba(17,26,51,.82); box-shadow: 0 0 0 1px rgba(226,178,76,.35), 0 12px 20px rgba(0,0,0,.45); }
.tool-grid img { width: 64px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.tool-grid h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; color: #f6e8c6; }
.tool-grid p { margin: .2rem 0 0; font-size: .98rem; color: var(--soft); }
.tool-list .src, .gallery figcaption { text-align: center; color: #c4b294; font-size: .9rem; margin-top: 1rem; }
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 36px; }
.gallery-grid figure { margin: 0; max-width: 440px; }
.gallery-grid figure.shot-phone { max-width: 250px; }
.gallery-grid figure.shot-phone img { border-radius: 22px; border-width: 6px; }
.gallery-grid:has(.shot-phone) { display: grid; grid-template-columns: repeat(4, minmax(0, 230px)); justify-content: center; gap: 40px; }
.gallery-grid .shot-phone:nth-child(even) { margin-top: 30px; }
@media (max-width: 900px) { .gallery-grid:has(.shot-phone) { grid-template-columns: repeat(2, minmax(0, 220px)); gap: 22px 18px; } .gallery-grid .shot-phone:nth-child(even) { margin-top: 0; } }
.app-privacy .addr { font-style: normal; }
.app-privacy .doc-title { font-weight: 700; }
/* Feinschliff Claude Design (Block G): Kopf der App-Seiten zweispaltig mit echtem App-Material rechts. */
.game-top { text-align: left; }
.game-top-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.game-top .page-top-content .lead { margin-left: 0; }
.game-top .page-top-content::before { inset: -24% -10% -30% -14%; }
.game-top .cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 0; }
.game-top h1 .brand-pettapp { font-size: clamp(3.6rem, 8vw, 6.4rem); letter-spacing: -.055em; }
.game-top h1 .brand-herolegend { font-size: clamp(2.2rem, 4.6vw, 4rem); overflow-wrap: anywhere; }
.head-card { justify-self: center; width: min(100%, 380px); margin: 0; --r: 2deg; }
.head-card.lucky { --r: 1.4deg; }
.head-card.legend { width: min(100%, 440px); --r: -1deg; }
.head-card .window { height: auto; min-height: 280px; }
.head-card.pet .window .motif { height: auto; width: min(100%, 300px); }
.head-card.legend .window .motif { max-height: none; width: 100%; height: auto; }
.head-card .src { text-align: center; }
@media (max-width: 860px) {
  .game-top { text-align: center; }
  .game-top-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .game-top .page-top-content .lead { margin-left: auto; }
  .game-top .cta { justify-content: center; }
  .head-card { width: min(100%, 320px); }
}
.app-privacy-box { margin-top: 1.4rem; border-radius: 10px; background: rgba(234,219,185,.96); color: var(--ink-text); box-shadow: 0 18px 30px rgba(0,0,0,.55); }
.app-privacy-box > summary { cursor: pointer; padding: 18px 26px; min-height: 44px; box-sizing: border-box; font-weight: 700; font-size: 1.1rem; color: #3a1f10; }
.app-privacy-box > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.app-privacy-box .app-privacy { margin-top: 0; padding-top: 4px; background: none; box-shadow: none; }
.gallery-grid img { border-radius: 8px; border: 4px solid #0b0806; box-shadow: 0 0 0 1px rgba(226,178,76,.45), 0 18px 30px rgba(0,0,0,.6); }
.page-game .gallery-grid img[src*="herolegend"] { image-rendering: pixelated; }
.app-privacy { margin-top: 1.4rem; padding: 26px 30px; border-radius: 10px; background: rgba(234,219,185,.95); color: var(--ink-text); font-size: 1rem; }
.app-privacy a { color: #6b3d0c; }
.app-privacy h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; color: #3a1f10; margin-top: 1rem; }
.lead-small, .app-privacy-section > .wrap > p, .credits p { color: var(--soft); text-align: center; }
.download-section { padding-top: 20px; }

/* ---------- Downloads ---------- */
.download-box { position: relative; margin: 0 0 46px; padding: 30px 34px; border-radius: 10px; background: linear-gradient(170deg, #2d1d12, #1a110a 70%); box-shadow: 0 0 0 1px rgba(226,178,76,.55), 0 0 0 5px #120b06, 0 0 0 6px rgba(226,178,76,.35), 0 26px 40px rgba(0,0,0,.6); }
.download-box h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.download-box h2.brand-herolegend { font-size: clamp(1.5rem, 3vw, 2rem); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 20px 0 0; }
.facts div { margin: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; color: #c9b58f; }
.facts dd { margin: .15rem 0 0; color: var(--text); }
.facts .build { color: #c9b58f; font-size: .9em; }
.hash { display: block; overflow-wrap: anywhere; color: #f5e3b3; }
.download-box .help { display: block; font-size: .95rem; color: var(--soft); margin: .4rem 0 0; }
.download-action { margin: 22px 0 6px; }
.privacy-link { margin: .8rem 0 0; }

/* ---------- Kontakt ---------- */
.contact-page .plate { margin-bottom: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 18px; }
.form-grid label { display: grid; gap: 6px; font-weight: 500; color: var(--text); }
.form-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field-note { font-weight: 400; font-size: .86rem; color: #c9b58f; }
input:not([type="checkbox"]), textarea { width: 100%; font: inherit; font-size: 1rem; color: #1c130b; background: #f6eedc; border: 1px solid #8a6a3a; border-radius: 6px; padding: .6rem .7rem; }
textarea { resize: vertical; min-height: 9rem; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .95rem; color: var(--soft); margin: 18px 0 0; }
.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.form-status { margin: 0; color: var(--gold-hi); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Rechtstexte und Lizenzen ---------- */
.legal-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 1.6rem 0 .4rem; }
.legal-copy h2:first-of-type { margin-top: .6rem; }
.legal-copy p, .legal-copy li { color: var(--soft); }
.legal-copy .address { font-size: 1.12rem; color: var(--text); }
.legal-note { font-size: .95rem; color: #d7c7a4; border-left: 3px solid var(--gold); padding-left: .8rem; }
.legal-toc { font-size: .95rem; color: #c9b58f; }
.legal-stand { font-size: .95rem; color: #c9b58f; margin-top: 1.4rem; }
.lic-group { margin-top: 1.6rem; }
.lic-group h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.lic-group p, .lic-group li { color: var(--soft); }
.lic-group .note { font-size: .92rem; color: #c9b58f; }
.lic-files { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .88rem; }
.lic-files li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(226,178,76,.18); }
.lic-files code { overflow-wrap: anywhere; color: #f5e3b3; }
@media (max-width: 700px) { .lic-files li { grid-template-columns: 1fr; gap: 2px; } }
details > summary { cursor: pointer; color: var(--gold-hi); }

/* ---------- 404 ---------- */
.notfound { position: relative; padding: 110px 0 60px; min-height: 90svh; background: radial-gradient(ellipse at 60% 30%, #1b3140 0%, #0f1a24 55%, var(--ink) 100%); text-align: center; }
.sky404 { position: relative; height: clamp(220px, 40vh, 380px); }
.lantern { position: absolute; left: 50%; top: 4%; width: min(420px, 70vw); translate: -50% 0; transform-origin: 57% 20%; animation: lantern 9s ease-in-out infinite; }
@keyframes lantern { 0%, 100% { transform: translateY(4%) rotate(-3deg); } 50% { transform: translateY(-6%) rotate(3deg); } }
.lantern .flame { left: 56.8%; top: 54.6%; width: 16%; background: radial-gradient(circle, rgba(255,210,120,.8) 0%, rgba(255,180,80,.25) 40%, transparent 70%); animation-duration: 3s; }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 8px 3px rgba(255,220,140,.7); opacity: 0; animation: spark 4s ease-out infinite; }
.spark.k1 { left: 42%; top: 66%; } .spark.k2 { left: 44%; top: 70%; animation-delay: -1.3s; } .spark.k3 { left: 40%; top: 62%; animation-delay: -2.6s; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-140px, 60px) scale(.3); } }
.notfound .code { font-family: var(--display); font-size: 4rem; color: var(--gold); margin: 0; line-height: 1; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold-hi); }

/* ---------- Fußzeile ---------- */
.site-footer { position: relative; padding: 70px 0 44px; background: linear-gradient(180deg, #0b0705, #070403); color: var(--muted); overflow: hidden; }
.watermark { position: absolute; left: 50%; bottom: -12%; width: min(620px, 90vw); translate: -50% 0; opacity: .07; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #ffb45c; box-shadow: 0 0 8px 2px rgba(255,150,60,.7); opacity: 0; animation: ember 7s linear infinite; }
.embers i:nth-child(1) { left: 12%; --dx: 30px; } .embers i:nth-child(2) { left: 27%; --dx: -20px; animation-delay: -2s; } .embers i:nth-child(3) { left: 41%; --dx: 15px; animation-delay: -4.5s; }
.embers i:nth-child(4) { left: 58%; --dx: -35px; animation-delay: -1s; } .embers i:nth-child(5) { left: 71%; --dx: 25px; animation-delay: -3.2s; } .embers i:nth-child(6) { left: 86%; --dx: -10px; animation-delay: -5.4s; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 20px), -320px); } }
.foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: #eadfc8; }
.foot nav a:hover { color: var(--gold-hi); text-decoration: underline; }
.ki, .free, .tester-mark { position: relative; font-size: .9rem; max-width: 60rem; margin: 18px 0 0; color: #cdbd9c; }
.free { margin-top: 6px; }
.tester-mark { display: inline-block; padding: 2px 10px; border: 1px dashed rgba(226,178,76,.6); border-radius: 4px; color: var(--gold-hi); }

/* ---------- Tiefenwirkung nur mit nativer Unterstützung ---------- */
@supports (animation-timeline: view()) {
  .hero-content { animation: lift linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
  @keyframes lift { to { opacity: 0; transform: translateY(-12vh) scale(.94); } }
  .stage > img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes drift { from { transform: translateY(-4%) scale(1.08); } to { transform: translateY(4%) scale(1.08); } }
  .minis { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  @keyframes rise { from { transform: translateY(40px); } to { transform: none; } }
}

/* ---------- Bewegung aus: Systemeinstellung oder Schalter in der Kopfzeile (WCAG 2.2.2) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .fog { opacity: .6; } .glow { opacity: .3; } .stars i { opacity: .7; } .steam { opacity: .4; } .spark, .shoot, .embers i { opacity: 0; }
}
html:has(#motion-off:checked) *, html:has(#motion-off:checked) *::before, html:has(#motion-off:checked) *::after { animation: none !important; transition: none !important; }
html:has(#motion-off:checked) { scroll-behavior: auto; }
html:has(#motion-off:checked) .fog { opacity: .6; }
html:has(#motion-off:checked) .glow { opacity: .3; }
html:has(#motion-off:checked) .stars i { opacity: .7; }
html:has(#motion-off:checked) .steam { opacity: .4; }
