/* =========================================================
   Design Tokens
   ========================================================= */
:root {
    --navy-900: #0E1F3A;
    --navy-700: #163765;
    --navy-600: #1E4B8A;
    --navy-100: #DCE5F1;
    --orange-600: #E07A1F;
    --orange-500: #F09333;
    --orange-100: #FCE7D1;
    --creme-50: #FBF7EE;
    --creme-100: #F4EEDF;
    --creme-200: #E8DDC4;
    --creme-300: #C9BBA0;
    --paper: #FFFFFF;
    --tinte-900: #1B1812;
    --tinte-700: #3A3327;
    --tinte-500: #6B604E;
    --tinte-300: #9A8E78;
    --bg: var(--creme-50);
    --bg-soft: var(--creme-100);
    --fg: var(--tinte-900);
    --fg-2: var(--tinte-700);
    --fg-muted: var(--tinte-500);
    --border: var(--creme-200);
    --border-strong: var(--creme-300);
    --primary: var(--navy-600);
    --accent: var(--orange-600);
    --accent-hover: #C26618;
    --accent-soft: var(--orange-100);
    --success: #2A7A3D;
    --success-soft: #E2EDE3;
    --warning: #8A6B1F;
    --danger: #A8261C;
    --danger-soft: #F2DED9;
    --font-display: 'Bricolage Grotesque', 'Helvetica Neue', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-hand: 'Caveat', 'Bradley Hand', cursive;
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-30: 1.875rem;
    --fs-36: 2.25rem;
    --fs-48: 3rem;
    --fs-64: 4rem;
    --fs-80: 5rem;
    --lh-tight: 1.05;
    --lh-snug: 1.2;
    --lh-base: 1.55;
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 36px;
    --r-pill: 999px;
    --sh-1: 0 1px 2px rgba(14, 31, 58, 0.06), 0 1px 1px rgba(14, 31, 58, 0.04);
    --sh-2: 0 4px 12px rgba(14, 31, 58, 0.10), 0 2px 4px rgba(14, 31, 58, 0.06);
    --sh-3: 0 12px 28px rgba(14, 31, 58, 0.14), 0 4px 8px rgba(14, 31, 58, 0.08);
    --sh-pop: 0 18px 40px rgba(30, 75, 138, 0.22), 0 6px 12px rgba(14, 31, 58, 0.10);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 140ms;
    --dur-base: 220ms;
    --dur-slow: 420ms;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--creme-50);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: var(--fs-16);
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

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

::selection {
    background: var(--orange-100);
    color: var(--navy-900);
}

.page {
    max-width: 1280px;
    margin: 0 auto;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    background: var(--creme-50);
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav .brand img {
    width: 46px;
    height: 46px;
}

.nav .brand .name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--navy-900);
    line-height: 1;
}

.nav .brand .sub {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 3px;
}

.nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul a {
    color: var(--fg);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--dur-fast);
}

.nav ul a:hover {
    color: var(--navy-700);
}

.nav .nav-cta {
    background: var(--navy-600);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: var(--sh-1);
    transition: background var(--dur-base), transform var(--dur-fast);
}

.nav .nav-cta:hover {
    background: var(--navy-700);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav .menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--fg);
    cursor: pointer;
}

.nav .menu-toggle svg {
    width: 28px;
    height: 28px;
}

/* =========================================================
   FOOTER (simple legal bar — used on subpages)
   ========================================================= */
.footer {
    background: var(--navy-900);
    color: #FBF7EE;
    padding: 36px 40px;
}

.footer .legal-bar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(251, 247, 238, 0.55);
    flex-wrap: wrap;
    gap: 12px;
}

.footer .legal-bar a {
    color: rgba(251, 247, 238, 0.55);
    text-decoration: none;
}

.footer .legal-bar a:hover {
    color: var(--orange-500);
}

/* =========================================================
   LEGAL CONTENT (shared across agb, impressum, datenschutz)
   ========================================================= */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 40px 96px;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 34px;
    font-size: clamp(28px, 4vw, 44px);
    color: var(--navy-900);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.legal-content .lead {
    color: var(--fg-muted);
    font-size: 16px;
    margin: 0 0 40px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--navy-900);
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy-900);
    margin: 28px 0 8px;
}

.legal-content p,
.legal-content li {
    color: var(--fg-2);
    line-height: 1.65;
    margin: 0 0 12px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
}

.legal-content a {
    color: var(--navy-600);
}

.legal-content a:hover {
    color: var(--navy-900);
}

/* =========================================================
   RESPONSIVE (shared)
   ========================================================= */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav .brand img {
        width: 36px;
        height: 36px;
    }

    .nav .brand .name {
        font-size: 15px;
    }

    .nav .brand .sub {
        font-size: 8px;
    }

    .nav .nav-cta {
        padding: 10px 16px;
        font-size: 13px;
    }

    .nav ul {
        display: none;
    }

    .nav ul.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--creme-50);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
        z-index: 49;
        box-shadow: var(--sh-2);
    }

    .nav .menu-toggle {
        display: block;
        order: 3;
    }

    .legal-content {
        padding: 40px 20px 64px;
    }

    .footer {
        padding: 24px 20px;
    }
}

/* Screen-reader only (SEO helper) */
.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;
}
