/* ===== Fonts (self-hosted — no Google Fonts CDN, see spec §10 DSGVO) ===== */
@font-face {
    font-family: "Manrope";
    src: url("/vendor/fonts/Manrope-Variable.woff2") format("woff2-variations"), url("/vendor/fonts/Manrope-Variable.woff2") format("woff2");
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/vendor/fonts/Inter-Variable.woff2") format("woff2-variations"), url("/vendor/fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

/* ===== Design tokens (design handoff: design_handoff_travelinfo_map) ===== */
:root {
    --ink: oklch(0.24 0.02 75);
    --bg: oklch(0.975 0.008 80);
    --bg-raised: #ffffff;
    --border: rgba(40, 35, 30, 0.09);
    --border-strong: rgba(40, 35, 30, 0.15);

    --accent-teal: oklch(0.62 0.11 210);
    --accent-terracotta: oklch(0.66 0.13 40);
    --accent-amber: oklch(0.75 0.14 75);
    --hero-gradient: linear-gradient(120deg, oklch(0.32 0.05 220), oklch(0.4 0.06 200));

    --font-heading: "Manrope", Arial, sans-serif;
    --font-body: "Inter", Arial, sans-serif;

    --radius-pill: 100px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-panel: -8px 0 24px rgba(0, 0, 0, 0.1);
    --shadow-pin: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; margin: 0; letter-spacing: -0.01em; }
a { color: inherit; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(40, 35, 30, 0.18); border-radius: 8px; }

/* ===== Shared components ===== */
.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font: 700 14px/1 "Manrope", sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.pill-button.primary-ink { background: var(--ink); color: #fff; }
.pill-button.primary-teal { background: var(--accent-teal); color: #fff; }
.pill-button.primary-terracotta { background: var(--accent-terracotta); color: #fff; }
.pill-button.outline { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); }

/* ===== Auth nav (Anmelden/Abmelden, shared by landing + map headers) ===== */
.auth-nav-form { display: flex; align-items: center; gap: 10px; }
.auth-nav-btn { white-space: nowrap; }

/* ===== Login modal (shared overlay, opened by any [data-login-trigger]) ===== */
.login-modal-backdrop {
    position: fixed; inset: 0; z-index: 2000; background: rgba(20, 20, 19, 0.45);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-modal-backdrop.hidden { display: none; }
.login-modal-card { position: relative; }
.login-modal-card .modal-close-btn {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(40, 35, 30, 0.06); cursor: pointer; font: 600 14px sans-serif;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--ink);
    font: 600 13.5px/1 "Inter", sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.chip.active { border-color: var(--accent-teal); background: color-mix(in oklch, var(--accent-teal) 14%, white); }
.chip.active.terracotta { border-color: var(--accent-terracotta); background: color-mix(in oklch, var(--accent-terracotta) 14%, white); }

.badge-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font: 700 12px/1 "Inter", sans-serif;
    color: var(--accent-teal);
    background: color-mix(in oklch, var(--accent-teal) 12%, white);
}

.striped-placeholder {
    background: repeating-linear-gradient(135deg, rgba(40, 35, 30, 0.06), rgba(40, 35, 30, 0.06) 10px, rgba(40, 35, 30, 0.02) 10px, rgba(40, 35, 30, 0.02) 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}
.placeholder-label {
    font: 500 13px/1.5 ui-monospace, monospace;
    color: rgba(40, 35, 30, 0.4);
    padding: 0 24px;
}

.flash { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 16px; font: 500 14px/1.5 "Inter", sans-serif; }
.flash-error { background: color-mix(in oklch, red 10%, white); color: #b3261e; }
.flash-success { background: color-mix(in oklch, var(--accent-teal) 12%, white); color: var(--accent-teal); }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px; }
.auth-card .brand { display: block; text-align: center; margin-bottom: 24px; text-decoration: none; }
.brand-logo { height: 39px; width: auto; }
.auth-card h1 { font-size: 20px; margin-bottom: 8px; }
.auth-card p.hint { font: 400 14px/1.5 "Inter", sans-serif; color: rgba(40, 35, 30, 0.6); margin: 0 0 20px; }
.auth-card label { display: block; font: 600 13px "Inter", sans-serif; margin-bottom: 16px; }
.auth-card input[type="email"] {
    display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: var(--radius-md);
    border: 1px solid var(--border-strong); font: 400 15px "Inter", sans-serif;
}
.auth-card .pill-button { width: 100%; margin-top: 4px; }

.account-shell { max-width: 640px; margin: 0 auto; padding: 48px 24px; }
.account-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.account-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.account-section h2 { font-size: 16px; margin-bottom: 14px; }
.account-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font: 400 14px "Inter", sans-serif; }
.account-row:last-child { border-bottom: none; }
.account-empty { color: rgba(40, 35, 30, 0.5); font: 400 14px "Inter", sans-serif; }

.legal-shell { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-brand { display: block; margin-bottom: 24px; }
.legal-brand .brand-logo { height: 32px; width: auto; }
.legal-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 48px 40px; }
.legal-card h1 { font-size: 26px; margin-bottom: 4px; }
.legal-card .legal-meta { font: 400 13px "Inter", sans-serif; color: rgba(40, 35, 30, 0.5); margin: 0 0 32px; }
.legal-card h2 { font-size: 18px; margin: 32px 0 12px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card h3 { font-size: 15px; margin: 20px 0 8px; }
.legal-card p { font: 400 15px/1.7 "Inter", sans-serif; color: var(--ink); margin: 0 0 14px; }
.legal-card ul, .legal-card ol { font: 400 15px/1.7 "Inter", sans-serif; color: var(--ink); margin: 0 0 14px; padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--accent-teal); }
.legal-crosslinks { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.legal-crosslinks a { font: 500 13px "Inter", sans-serif; color: rgba(40, 35, 30, 0.6); text-decoration: none; }
.legal-crosslinks a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
    .legal-card { padding: 32px 20px; }
}
