/*
 * +============================================================================+
 * |    ____             __    __           ____                                |
 * |   | __ )   _   _   / _|  / _|  _   _  | __ )    ___    __ _   _ __         |
 * |   |  _ \  | | | | | |_  | |_  | | | | |  _ \   / _ \  / _` | | '__|        |
 * |   | |_) | | |_| | |  _| |  _| | |_| | | |_) | |  __/ | (_| | | |           |
 * |   |____/   \__,_| |_|   |_|    \__, | |____/   \___|  \__,_| |_|           |
 * |                                |___/                                       |
 * |                                                                            |
 * |   ()_()   Crafted with honey & code by BuffyBear                           |
 * |   (o.o)   https://www.buffybear.de/                                        |
 * +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 * |   Projekt : Pixily Website 1.0.0                                           |
 * |   (c) 2026 BuffyBear - https://www.buffybear.de/ - Alle Rechte vorbehalten |
 * +============================================================================+
 */

/* pixily.de – Gestaltung nach der Pixily-Markenvorgabe (Farben, Schriften, harte Pixel-Schatten). */

@font-face { font-family: 'Pixelify Sans'; font-weight: 500; font-display: swap; src: url('/fonts/pixelify-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url('/fonts/pixelify-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/fonts/nunito-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800.woff2') format('woff2'); }

:root {
  --ink: #241a3d;
  --ink-deep: #170f2b;
  --plum: #3b2a63;
  --plum-light: #4a3778;
  --bubblegum: #ff5fa2;
  --bubblegum-text: #ff8cbd;
  --mint: #3fe0c5;
  --sun: #ffcf40;
  --sky: #6ec8ff;
  --cream: #fff5e4;
  --cream-dim: #d9cfe8;
  --coral: #ff8a5c;
  --display: 'Pixelify Sans', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 5px 0 var(--ink-deep);
  --wrap: 1140px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.intro { color: var(--cream-dim); max-width: 46rem; font-size: 1.1rem; margin-bottom: 2rem; }
.lead { font-size: 1.2rem; color: var(--cream-dim); }
.lead strong { color: var(--cream); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: 700 1.1rem/1.1 var(--display);
  color: var(--ink); background: var(--cream);
  border: 3px solid var(--ink-deep); border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink-deep); }
.btn-play { background: var(--bubblegum); }
.btn-mint { background: var(--mint); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream-dim); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); background: var(--cream); box-shadow: none; }
.btn-big { min-height: 58px; font-size: 1.35rem; padding: .8rem 1.8rem; }
.btn-small { min-height: 44px; padding: .5rem 1rem; font-size: 1rem; }
.btn-choice { background: var(--cream); flex: 1 1 8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.5rem 0; }
.actions.center { justify-content: center; }
.link-arrow { font-weight: 800; }
.link-arrow::after { content: ' →'; }

.badge { display: inline-block; font: 700 .9rem/1 var(--display); padding: .45rem .7rem; border-radius: 8px; background: var(--plum); color: var(--cream); border: 2px solid var(--plum-light); }
.badge-mint { background: var(--mint); color: var(--ink); border-color: var(--ink-deep); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.kicker { font: 700 1rem/1 var(--display); color: var(--mint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }

/* ---------- Kopf ---------- */
.top { background: var(--ink-deep); border-bottom: 3px solid var(--plum); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 72px; flex-wrap: wrap; padding-block: .6rem; }
.brand { flex: none; display: block; }
.brand img { width: 150px; }
.menu { flex: 1; }
.menu ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--cream); text-decoration: none; font: 700 1.1rem/1 var(--display); padding: .85rem 0 .75rem; display: inline-block; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--bubblegum); color: var(--cream); }
@media (max-width: 640px) {
  .top { position: static; }
  .top-in { gap: .2rem 1rem; }
  .brand img { width: 100px; }
  .menu { order: 3; flex-basis: 100%; }
  .menu ul { gap: 0 1.2rem; }
  .top .btn-play { margin-left: auto; }
}

/* ---------- Bereiche ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding-top: 1rem; }
.section-alt { background: var(--plum); }
.card {
  background: var(--plum);
  border: 3px solid var(--ink-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--ink); }

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); background:
  radial-gradient(circle at 80% 30%, rgba(255, 95, 162, .18), transparent 45%),
  radial-gradient(circle at 10% 90%, rgba(63, 224, 197, .12), transparent 40%), var(--ink); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 .sub { display: block; font-size: .45em; color: var(--sun); margin-top: .4rem; }
.hero-art { position: relative; justify-self: center; }
.hero-cat { position: absolute; left: -80px; bottom: 20px; width: 192px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 0 var(--ink-deep)); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 2rem; }
  .hero-cat { left: -40px; bottom: 12px; width: 96px; }
  .phone-hero { width: min(64vw, 240px); }
}

.phone {
  margin: 0; width: min(100%, 290px);
  border: 6px solid var(--ink-deep); border-radius: 26px; overflow: hidden;
  background: var(--ink-deep); box-shadow: 0 8px 0 var(--ink-deep);
}
.phone img { width: 100%; }
.phone figcaption { font: 700 1rem/1 var(--display); text-align: center; padding: .7rem .5rem .55rem; color: var(--cream); }
.phone-hero { width: min(78vw, 300px); transform: rotate(2deg); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; justify-items: center; margin-bottom: 2.5rem; }
@media (max-width: 760px) {
  .shots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; justify-items: stretch; }
  .shots .phone { scroll-snap-align: center; width: 100%; }
}
.wide { margin: 0 0 1.5rem; border: 6px solid var(--ink-deep); border-radius: 18px; overflow: hidden; background: var(--ink-deep); box-shadow: 0 8px 0 var(--ink-deep); }
.wide figcaption { font: 700 1rem/1 var(--display); padding: .75rem 1rem; }
.wides { display: grid; gap: 1.5rem; }

/* Spiele-Karten */
.grid-games { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .grid-games { grid-template-columns: 1fr; } }
.game-card { display: grid; grid-template-columns: minmax(0, 220px) 1fr; overflow: hidden; }
.game-shot { display: block; position: relative; background: var(--ink-deep); min-height: 260px; overflow: hidden; }
.game-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.game-body { padding: 1.6rem 1.6rem .5rem; }
.game-body h3 { font-size: 2rem; margin-top: .9rem; }
.game-body h3 a { color: var(--cream); text-decoration: none; }
@media (max-width: 560px) {
  .game-card { grid-template-columns: 1fr; }
  .game-shot { min-height: 220px; }
}
.coming-card { padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; border-style: dashed; border-color: var(--plum-light); box-shadow: none; background: transparent; }
.coming-art { display: flex; gap: .3rem; margin-bottom: 1rem; opacity: .85; }
.coming-art img { width: 48px; }

/* Vorteile / Funktionen */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.features li { padding: 1.4rem; }
@media (max-width: 560px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .features li { padding: 1rem .9rem; }
  .features img { width: 32px; margin-bottom: .5rem; }
  .features h3 { font-size: 1.05rem; }
  .features p { font-size: .92rem; line-height: 1.5; }
}
.features img { width: 48px; margin-bottom: .8rem; }
.features h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.features p { margin: 0; color: var(--cream-dim); }

.cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.cats li { text-align: center; font: 700 1rem/1.2 var(--display); background: var(--plum); border: 3px solid var(--ink-deep); border-radius: var(--radius); padding: 1rem .5rem; box-shadow: var(--shadow); }
.cats img { width: 96px; margin: 0 auto .6rem; }

.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.facts div { background: var(--plum); border: 2px solid var(--plum-light); border-radius: 10px; padding: .45rem .75rem; }
.facts dt { font-size: .8rem; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 800; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .9rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; background: var(--mint); border: 2px solid var(--ink-deep); border-radius: 4px; }

.parents-teaser { display: flex; gap: 1.8rem; align-items: flex-start; padding: 2rem; }
.parents-teaser img { width: 64px; flex: none; }
@media (max-width: 560px) { .parents-teaser { flex-direction: column; padding: 1.4rem; } }

.cta-in { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.cta-in img { width: 96px; }
.cta-text { font: 800 1.3rem/1.4 var(--body); margin: 0; max-width: 32rem; }

/* Blog */
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-deep); }
.post-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.post-body { padding: 1.3rem 1.4rem .4rem; }
.post-body h3 a { color: var(--cream); text-decoration: none; }
.post-body h3 a:hover { color: var(--bubblegum-text); }
.meta { font-size: .95rem; color: var(--cream-dim); margin-bottom: .6rem; }
.post-hero { margin: 0 0 2rem; border: 4px solid var(--ink-deep); border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-deep); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.link-feed { font-weight: 700; }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.page-head h1 { margin-bottom: .4em; }

/* Fließtext */
.prose h2, .prose h3 { font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--bubblegum); }
.prose figure { margin: 1.5rem 0; }
.prose code { background: var(--plum); padding: .1rem .35rem; border-radius: 5px; font-size: .92em; }
.prose hr { border: 0; border-top: 3px dashed var(--plum-light); margin: 2rem 0; }
.note { background: var(--plum); border-left: 6px solid var(--sky); padding: 1rem 1.2rem .1rem; border-radius: 8px; margin: 1.5rem 0; }
.back { margin-top: 2.5rem; }

.placeholder { margin: 1.5rem 0 0; padding: .9rem 1.1rem; background: var(--sun); color: var(--ink); border: 3px solid var(--ink-deep); border-radius: 10px; font-weight: 700; }

/* FAQ */
.faq details { background: var(--ink); border: 3px solid var(--ink-deep); border-radius: 12px; margin-bottom: .9rem; box-shadow: 0 4px 0 var(--ink-deep); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font: 700 1.15rem/1.3 var(--display); list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: .8rem; font-size: 1.5rem; color: var(--bubblegum); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; color: var(--cream-dim); }

/* 404 */
.not-found img { width: 192px; margin: 0 auto 1.5rem; }

/* ---------- Fuß ---------- */
.foot-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.foot-credits { margin: .4rem 0 0; color: var(--cream-dim); }
.foot-credits a { color: var(--cream); font-weight: 700; }
.foot-about { margin: 0; color: var(--cream-dim); font-size: .92rem; max-width: 32rem; }
.foot-nav ul { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.foot-nav a { color: var(--cream); display: inline-block; padding: .55rem .1rem; }
.foot-small { align-self: stretch; margin: .6rem 0 0; padding-top: 1.2rem; border-top: 2px solid var(--plum); color: var(--cream-dim); font-size: .88rem; }
.foot-small a { color: inherit; }
.foot .studio-badge img { width: 220px; }
.foot { background: var(--ink-deep); border-top: 3px solid var(--plum); padding: 2.5rem 0; font-size: .98rem; }

/* BuffyBear Studio */
.studio-badge { display: block; flex: none; padding: .6rem .9rem; background: #f2eaff; border-radius: 8px; box-shadow: 4px 4px 0 var(--bubblegum); transition: transform .12s ease; }
.studio-badge:hover { transform: translateY(-3px); }
.studio-badge img { width: 180px; }
.studio { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; margin: 0 0 2.2rem; padding: 1.3rem 1.4rem; background: var(--plum); border-left: 6px solid var(--bubblegum); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink-deep); }
.studio .studio-badge img { width: 220px; }
.studio-text p { margin: 0; }
.studio-kicker { color: var(--bubblegum-text); font-size: .95rem; }
.studio-name { font: 700 1.5rem/1.3 var(--display); margin: .2rem 0 .4rem !important; }
.studio-url { font-weight: 700; font-size: 1.05rem; }

/* Einwilligung Statistik */
.consent {
  position: fixed; z-index: 20; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; max-width: 560px;
  background: var(--plum); border: 3px solid var(--ink-deep); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink-deep);
  padding: 1.2rem 1.3rem .4rem;
}
.consent h2 { font-size: 1.3rem; }
.consent p { font-size: .98rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.stats-settings { padding: 1.2rem 1.3rem .2rem; margin: 1.5rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .phone-hero { transform: none; }
}

/* Tabellen in Textseiten */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 3px solid var(--ink-deep); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 2px solid var(--plum); }
.table-wrap th { background: var(--plum); font-weight: 800; }
.table-wrap tr:last-child td { border-bottom: 0; }
