/* ==========================================================================
   Schnapp – Landingpage
   Design orientiert sich an den Spiel-Assets (Dschungel-Theme, Holz-Buttons,
   Kartenfarben blau/grün/rot/gelb, handgemaltes Logo, AdigianaUI-Schrift)
   ========================================================================== */

@font-face {
    font-family: 'AdigianaUI';
    src: url('../assets/fonts/AdigianaUI.ttf') format('truetype');
    font-display: swap;
}

:root {
    --jungle-dark: #17352a;
    --jungle-mid: #2f6b4f;
    --jungle-green: #5c9a3c;
    --jungle-light: #c7dd5e;
    --sunlight: #fff7d6;
    --gold: #ffde59;
    --orange: #f7931e;
    --orange-deep: #f15a24;
    --wood: #8b5a2b;
    --wood-dark: #5c3a1a;
    --card-blue: #90a4f0;
    --card-green: #6fbf5c;
    --card-red: #e2564f;
    --card-yellow: #f2cf4a;
    --ink: #1c2b20;
    --paper: #fbf7ea;

    --font-display: 'Baloo 2', 'AdigianaUI', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn-wood {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(420px, 92vw);
    aspect-ratio: 726 / 201;
    padding: 0 20px;
    border: none;
    cursor: pointer;
    background: url('../assets/button-plank.png') center / 100% 100% no-repeat;
    font-family: var(--font-display);
    font-size: 3.35rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, .5);
    -webkit-text-stroke: 1px #2b1608;
    text-decoration: none;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35));
    transition: transform .15s ease;
}

.btn-wood:hover,
.btn-wood:focus-visible {
    transform: scale(1.05);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid var(--jungle-light);
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    background: rgba(23, 53, 42, .35);
    transition: background .15s ease, transform .15s ease;
}

.btn-outline:hover {
    background: rgba(23, 53, 42, .6);
    transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: linear-gradient(180deg, rgba(15, 38, 28, .92), rgba(15, 38, 28, .75));
    backdrop-filter: blur(6px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    height: 34px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--sunlight);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    opacity: .9;
}

.main-nav a:hover {
    opacity: 1;
    text-decoration: underline wavy var(--gold) 2px;
    text-underline-offset: 6px;
}

.main-nav a.cta {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--orange);
    color: #2b1608;
    opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92vh;
    color: var(--sunlight);
    background: linear-gradient(180deg, #2f6b57 0%, #4c8a4a 35%, #7fa93a 65%, #cbe06a 100%),
                url('../assets/bg-jungle.png') center 12% / cover no-repeat;
    background-blend-mode: multiply;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 90px;
}

.hero-logo {
    width: min(420px, 78%);
    margin: 0 auto 18px;
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35));
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.2vw, 2.6rem);
    color: var(--gold);
    text-shadow: 0 3px 0 #3b1e07, 0 6px 18px rgba(0, 0, 0, .4);
    margin: 0 0 18px;
    max-width: 640px;
    margin-inline: auto;
    overflow-wrap: break-word;
}

.hero p.lead {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 1.15rem;
    color: var(--sunlight);
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 222, 89, .16);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.hero-cards {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

.hero-cards img {
    width: 92px;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}

.hero-cards img:not(:first-child) {
    margin-left: -28px;
}

.hero-cards a:nth-child(1) img { transform: rotate(-14deg) translateY(6px); }
.hero-cards a:nth-child(2) img { transform: rotate(-5deg) translateY(-6px); z-index: 2; position: relative; }
.hero-cards a:nth-child(3) img { transform: rotate(5deg) translateY(-10px); z-index: 3; position: relative; }
.hero-cards a:nth-child(4) img { transform: rotate(14deg) translateY(6px); }

.hero-cards a:hover img {
    transform: translateY(-14px) scale(1.06);
    z-index: 5;
}

/* ---------- Sections ---------- */

section {
    padding: 90px 0;
}

.section-light {
    background: var(--paper);
}

.section-dark {
    background: linear-gradient(180deg, var(--jungle-dark), var(--jungle-mid));
    color: var(--sunlight);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
    color: var(--orange-deep);
    background: rgba(247, 147, 30, .12);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.section-dark .eyebrow {
    color: var(--gold);
    background: rgba(255, 222, 89, .12);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 0 0 14px;
    color: var(--jungle-dark);
}

.section-dark h2 {
    color: var(--gold);
}

.section-intro {
    max-width: 620px;
    margin-bottom: 48px;
}

.section-intro p {
    font-size: 1.05rem;
    opacity: .85;
}

/* ---------- Feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 14px 30px rgba(23, 53, 42, .08);
    border-top: 6px solid var(--card-blue);
    transition: transform .2s ease;
}

.feature-card:nth-child(2) { border-top-color: var(--card-green); }
.feature-card:nth-child(3) { border-top-color: var(--card-red); }
.feature-card:nth-child(4) { border-top-color: var(--card-yellow); }

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jungle-light);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: #444;
    font-size: .96rem;
}

/* ---------- How to play ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 54px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--orange);
    color: #2b1608;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

.step h3 {
    font-family: var(--font-display);
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    color: rgba(255, 247, 214, .85);
    font-size: .96rem;
}

/* ---------- Combo strip ---------- */

.combo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.combo-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 2px dashed var(--orange);
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--wood-dark);
}

.combo-chip img {
    width: 22px;
    height: 22px;
}

/* ---------- Final CTA ---------- */

.cta-final {
    text-align: center;
    background: radial-gradient(circle at 50% -10%, var(--jungle-green), var(--jungle-dark) 70%);
    color: var(--sunlight);
    padding: 100px 0;
}

.cta-final h2 {
    color: var(--gold);
}

.cta-final p {
    max-width: 480px;
    margin: 0 auto 34px;
    opacity: .9;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--jungle-dark);
    color: rgba(255, 247, 214, .75);
    padding: 40px 0 30px;
    font-size: .9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 247, 214, .85);
}

.footer-links a:hover {
    color: var(--gold);
}

/* ---------- Legal pages ---------- */

.legal-hero {
    background: linear-gradient(180deg, var(--jungle-dark), var(--jungle-mid));
    color: var(--sunlight);
    padding: 70px 0 50px;
    text-align: center;
}

.legal-hero h1 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0;
}

.legal-body {
    padding: 60px 0 100px;
}

.legal-panel {
    background: #fff;
    border-radius: 24px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 20px 50px rgba(23, 53, 42, .1);
    max-width: 820px;
    margin: -60px auto 0;
    position: relative;
    z-index: 2;
}

.legal-panel h2 {
    font-size: 1.25rem;
    margin-top: 2.2em;
}

.legal-panel h2:first-child {
    margin-top: 0;
}

.legal-panel h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 1.6em 0 .4em;
    color: var(--wood-dark);
}

.legal-panel p,
.legal-panel li {
    color: #333;
    font-size: .98rem;
}

.legal-panel ul {
    padding-left: 1.2em;
}

.legal-panel a {
    color: var(--orange-deep);
    font-weight: 700;
    text-decoration: none;
}

.legal-panel a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--jungle-dark);
}

/* ---------- Nav toggle (mobile) ---------- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--sunlight);
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 6%;
        background: var(--jungle-dark);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .hero-cards img {
        width: 68px;
    }

    .legal-panel {
        margin-top: -40px;
    }
}
