/* =============================================
   CollectMap — Main Stylesheet
   Premium location-based collecting platform
   ============================================= */

/* ----- Custom Properties ----- */
:root {
    /* Brand Colors */
    --color-green: #4A7C59;
    --color-green-light: #5A8C69;
    --color-green-dark: #3A6C49;
    --color-cream: #F5F0E8;
    --color-cream-dark: #E8E0D0;
    --color-terracotta: #C45B3E;
    --color-terracotta-light: #D46B4E;
    --color-terracotta-dark: #A84B2E;
    --color-navy: #1B2838;
    --color-navy-light: #2D3E50;
    --color-gold: #D4A853;
    --color-gold-light: #E4B863;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-bg: #FDFBF7;
    --color-surface: #FFFFFF;
    --color-border: #E5DDD0;
    --color-border-light: #F0EBE3;
    --color-text: #2C2420;
    --color-text-secondary: #6B5E52;
    --color-text-muted: #9B8E82;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    --leading-tight: 1.15;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(44, 36, 32, 0.04);
    --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 36, 32, 0.10);
    --shadow-xl: 0 16px 48px rgba(44, 36, 32, 0.12);
    --shadow-card: 0 2px 8px rgba(44, 36, 32, 0.06), 0 0 0 1px rgba(44, 36, 32, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --nav-height: 64px;
    --container-max: 1200px;
    --container-narrow: 800px;
}


/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}


/* ----- Language System ----- */
[data-lang-en] {
    display: none;
}

html[data-lang="en"] [data-lang-de] {
    display: none;
}

html[data-lang="en"] [data-lang-en] {
    display: inline;
}

/* Block-level bilingual elements */
p > [data-lang-de],
p > [data-lang-en],
h1 > [data-lang-de],
h1 > [data-lang-en],
h2 > [data-lang-de],
h2 > [data-lang-en],
h3 > [data-lang-de],
h3 > [data-lang-en] {
    display: none;
}

p > [data-lang-de],
h1 > [data-lang-de],
h2 > [data-lang-de],
h3 > [data-lang-de] {
    display: inline;
}

html[data-lang="en"] p > [data-lang-de],
html[data-lang="en"] h1 > [data-lang-de],
html[data-lang="en"] h2 > [data-lang-de],
html[data-lang="en"] h3 > [data-lang-de] {
    display: none;
}

html[data-lang="en"] p > [data-lang-en],
html[data-lang="en"] h1 > [data-lang-en],
html[data-lang="en"] h2 > [data-lang-en],
html[data-lang="en"] h3 > [data-lang-en] {
    display: inline;
}


/* ----- Layout ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main {
    min-height: calc(100vh - var(--nav-height));
}


/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-navy);
}

.section__title {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
    line-height: var(--leading-relaxed);
}

.section__action {
    text-align: center;
    margin-top: var(--space-3xl);
}

@media (min-width: 768px) {
    .section__title {
        font-size: var(--text-4xl);
    }
}


/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn--sm {
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
}

.btn--md {
    font-size: var(--text-base);
    padding: 0.7rem 1.5rem;
}

.btn--lg {
    font-size: var(--text-lg);
    padding: 0.875rem 2rem;
}

.btn--primary {
    background-color: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
}

.btn--primary:hover {
    background-color: var(--color-green-dark);
    border-color: var(--color-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-green);
    border-color: var(--color-green);
}

.btn--outline:hover {
    background-color: var(--color-green);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-text-secondary);
    background-color: var(--color-cream);
}


/* =============================================
   NAVIGATION
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.nav--scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: var(--space-lg);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-navy);
    flex-shrink: 0;
}

.nav__logo-icon {
    width: 28px;
    height: 28px;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    margin-left: auto;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-md);
}

.nav__links.open {
    display: flex;
}

.nav__link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-green);
}

.nav__actions {
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

.nav__lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.nav__lang-toggle:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

/* Desktop nav */
@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }

    .nav__links {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        gap: var(--space-xl);
        margin-left: var(--space-xl);
    }

    .nav__link {
        padding: 0;
        font-size: var(--text-sm);
    }

    .nav__actions {
        display: flex;
        margin-left: auto;
    }
}


/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + var(--space-5xl)) 0 var(--space-5xl);
    overflow: hidden;
    background-color: var(--color-bg);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__map-pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-navy);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .hero {
        padding: calc(var(--nav-height) + var(--space-5xl)) 0 var(--space-5xl);
    }

    .hero__title {
        font-size: var(--text-5xl);
    }

    .hero__subtitle {
        font-size: var(--text-xl);
    }
}


/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
    padding: var(--space-5xl) 0;
    background-color: var(--color-surface);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 960px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto var(--space-lg);
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
}

.step__icon svg {
    image-rendering: pixelated;
}

.step__number {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--color-green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.step__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.step__text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}


/* =============================================
   SET CARDS (Collectible Card Look)
   ============================================= */
.featured-sets {
    padding: var(--space-5xl) 0;
    background-color: var(--color-bg);
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.set-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: linear-gradient(
        135deg,
        var(--color-gold) 0%,
        var(--color-gold-light) 25%,
        var(--color-cream-dark) 50%,
        var(--color-gold-light) 75%,
        var(--color-gold) 100%
    );
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.set-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.set-card__inner {
    background-color: var(--color-surface);
    border-radius: calc(var(--radius-lg) - 2px);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.set-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.set-card__header svg {
    image-rendering: pixelated;
}

.set-card__name {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-navy);
}

.set-card__count {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.set-card__difficulty {
    display: flex;
    gap: 4px;
    margin-top: var(--space-xs);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    transition: background-color var(--transition-fast);
}

.dot--filled {
    background-color: var(--color-gold);
}

@media (min-width: 640px) {
    .sets-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .set-card__name {
        font-size: var(--text-lg);
    }
}

@media (min-width: 1024px) {
    .sets-grid {
        gap: var(--space-xl);
    }

    .set-card__inner {
        padding: var(--space-2xl) var(--space-xl);
    }
}


/* =============================================
   SOCIAL PROOF / STATS
   ============================================= */
.social-proof {
    padding: var(--space-5xl) 0;
    background-color: var(--color-green);
    color: var(--color-white);
}

.social-proof .section__title {
    color: var(--color-white);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.stat__icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.stat__icon svg {
    image-rendering: pixelated;
}

.stat__number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.stat__label {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* =============================================
   FEATURES GRID
   ============================================= */
.features {
    padding: var(--space-5xl) 0;
    background-color: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.feature {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    background-color: var(--color-bg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.feature:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.feature__icon svg {
    image-rendering: pixelated;
}

.feature__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.feature__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =============================================
   BOTTOM CTA
   ============================================= */
.cta-bottom {
    padding: var(--space-5xl) 0;
    background-color: var(--color-bg);
}

.cta-bottom__inner {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background-color: var(--color-cream);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.cta-bottom__title {
    font-size: var(--text-3xl);
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.cta-bottom__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .cta-bottom__inner {
        padding: var(--space-5xl) var(--space-3xl);
    }

    .cta-bottom__title {
        font-size: var(--text-4xl);
    }
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}


/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(44, 36, 32, 0.08);
    padding: var(--space-lg) 0;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
}

.cookie-banner__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.cookie-banner__text a {
    color: var(--color-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.steps .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.2s; }

.sets-grid .set-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.sets-grid .set-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.sets-grid .set-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.sets-grid .set-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.sets-grid .set-card.reveal:nth-child(6) { transition-delay: 0.25s; }

.stats-row .stat.reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-row .stat.reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-row .stat.reveal:nth-child(4) { transition-delay: 0.3s; }

.features-grid .feature.reveal:nth-child(2) { transition-delay: 0.05s; }
.features-grid .feature.reveal:nth-child(3) { transition-delay: 0.1s; }
.features-grid .feature.reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid .feature.reveal:nth-child(5) { transition-delay: 0.2s; }
.features-grid .feature.reveal:nth-child(6) { transition-delay: 0.25s; }


/* =============================================
   FORMS (Shared Components)
   ============================================= */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input--error {
    border-color: var(--color-terracotta);
}

.form-input--error:focus {
    box-shadow: 0 0 0 3px rgba(196, 91, 62, 0.12);
}

.form-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.form-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-green);
    cursor: pointer;
}

.form-checkbox__label a {
    color: var(--color-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-checkbox__label a:hover {
    color: var(--color-green-dark);
}


/* =============================================
   AUTH PAGES (Login / Register)
   ============================================= */
.auth-page {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-5xl);
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-card__title {
    font-size: var(--text-2xl);
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.auth-card__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.auth-card__submit {
    width: 100%;
    margin-top: var(--space-sm);
}

.auth-card__footer {
    margin-top: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.auth-card__link {
    font-size: var(--text-sm);
    color: var(--color-green);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.auth-card__link:hover {
    color: var(--color-green-dark);
}

.auth-card__alt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.auth-card__alt a {
    color: var(--color-green);
    font-weight: var(--weight-semibold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-card__alt a:hover {
    color: var(--color-green-dark);
}

.auth-alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.auth-alert[hidden] {
    display: none;
}

.auth-alert--error {
    background-color: rgba(196, 91, 62, 0.08);
    color: var(--color-terracotta-dark);
    border: 1px solid rgba(196, 91, 62, 0.2);
}

.auth-alert--success {
    background-color: rgba(74, 124, 89, 0.08);
    color: var(--color-green-dark);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

@media (min-width: 768px) {
    .auth-card {
        padding: var(--space-3xl);
    }
}


/* =============================================
   LEGAL PAGES (Impressum, Datenschutz, AGB)
   ============================================= */
.legal-page {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-5xl);
}

.legal-card {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.legal-card__title {
    font-size: var(--text-3xl);
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.legal-card__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.legal-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: var(--text-xl);
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.legal-section h3 {
    font-size: var(--text-base);
    color: var(--color-navy-light);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-section p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--color-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--color-green-dark);
}

.legal-list {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-list li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .legal-card {
        padding: var(--space-3xl) var(--space-4xl);
    }

    .legal-card__title {
        font-size: var(--text-4xl);
    }
}


/* =============================================
   BADGES (Shared Component)
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.2rem 0.6rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge--green {
    background-color: rgba(74, 124, 89, 0.1);
    color: var(--color-green);
}

.badge--gold {
    background-color: rgba(212, 168, 83, 0.12);
    color: var(--color-gold);
}

.badge--terracotta {
    background-color: rgba(196, 91, 62, 0.1);
    color: var(--color-terracotta);
}


/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pixel art rendering for all SVG icons */
svg[viewBox] {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Mobile auth links in hamburger menu */
.nav__mobile-auth {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--color-border-light, #eee);
    padding-top: 8px;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .nav__mobile-auth { display: flex; }
}
@media (min-width: 769px) {
    .nav__mobile-auth { display: none !important; }
}
