@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #120d36; --bg2: #1d1660; --ink: #f6f3ff; --soft: #c9c2f2; --line: rgba(255, 255, 255, .14);
  --card: rgba(255, 255, 255, .07); --accent: #ffc928; --accent-ink: #3a1c00; --link: #ffd75e;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.t-snugs { --bg: #fff3ea; --bg2: #ffe1cf; --ink: #3b2a33; --soft: #7a6470; --line: rgba(59, 42, 51, .14); --card: rgba(255, 255, 255, .72); --accent: #5fc58f; --accent-ink: #0f3a24; --link: #c2577a; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 0%, var(--bg2) 0%, var(--bg) 70%) fixed; color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, .brand, .btn, .pill { font-family: Fredoka, var(--body); }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; line-height: 1.2; margin: 2.2em 0 .6em; font-weight: 600; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; font-weight: 600; }
p, li { max-width: 68ch; }
.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

/* Kopf */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .85rem; }
.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current] { background: var(--card); color: var(--ink); }

/* Startseite */
.hero { padding: 40px 0 10px; text-align: center; }
.hero p { margin: 0 auto; color: var(--soft); font-size: 1.15rem; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding: 40px 0 70px; }
.game { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; border-radius: 28px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); isolation: isolate; transition: transform .25s ease; }
.game:hover { transform: translateY(-4px); }
.game > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.game:hover > img.bg { transform: scale(1.04); }
.game::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 6, 30, .88) 100%); }
.game .body { padding: 26px; }
.game .icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.game h2 { margin: 12px 0 4px; font-size: 2rem; }
.game p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); font-size: .85rem; font-weight: 600; }

/* Spieleseite */
.stage { position: relative; overflow: hidden; isolation: isolate; padding: 30px 0 60px; }
.stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.stage::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 13, 54, .15) 0%, var(--bg) 100%); }
.t-snugs .stage::after { background: linear-gradient(180deg, rgba(255, 243, 234, 0) 0%, rgba(255, 243, 234, .55) 60%, var(--bg) 100%); }
.stage .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 460px; }
.stage .logo { width: min(100%, 460px); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .25)); }
.stage .appicon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.stage h1 { margin-top: .3em; }
.stage .lead { font-size: 1.2rem; font-weight: 500; }
.t-rokkit .stage .lead, .t-rokkit .stage h1 { text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: none; border: 1px solid var(--line); backdrop-filter: blur(6px); }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.feat li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.feat b { display: block; font-family: Fredoka, var(--body); font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; }
.feat span { color: var(--soft); font-size: .97rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: .6em 0 .2em; color: var(--soft); }
.contact { margin: 30px 0 70px; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.contact p { margin: .3em 0; }

/* Rechtstexte */
.legal { padding: 20px 0 70px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink); opacity: .92; }
.legal .meta { color: var(--soft); }
.legal address { font-style: normal; }

/* Fuß */
footer { margin-top: auto; border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--soft); font-size: .92rem; }
footer .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--soft); }
footer span { margin-right: auto; }

@media (max-width: 760px) {
  .stage .wrap { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .stage .btns { justify-content: center; }
  .stage .lead { margin-inline: auto; }
  .stage { padding-top: 10px; }
  .game { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) { .game, .game > img.bg { transition: none; } }
.game .art { position: absolute; top: 26px; left: 50%; translate: -50% 0; width: min(62%, 300px); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .3)); transition: transform .4s ease; }
.game:hover .art { transform: rotate(-2deg) scale(1.03); }
