/**
 * Öffentlicher Site-Header – gleiche Optik wie index.php (Landing)
 */
:root {
    --bg: #070b14;
    --bg-card: #0f1623;
    --bg-card-hover: #151d2e;
    --primary: #3b82f6;
    --text: #f9fafb;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
}

body.public-legal-page {
    padding-top: 76px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.06), transparent 45%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.header-logo img.icon { height: 40px; width: auto; }
.header-logo img.text { height: 32px; width: auto; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--text); }

.header-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.header-menu-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.35);
}

.header-menu-btn .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
}

.header-menu-btn .bar::before,
.header-menu-btn .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.header-menu-btn .bar::before { top: -6px; }
.header-menu-btn .bar::after { top: 6px; }

.header-menu-btn[aria-expanded="true"] .bar { background: transparent; }
.header-menu-btn[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.header-menu-btn[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

/* Header: keine translateY-Hover-Animation (vermeidet sichtbaren Höhen-/Layout-Sprung) */
.header-nav .btn-primary {
    min-height: 44px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.2;
}

.header-nav .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: none;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

@media (max-width: 900px) {
    .header { padding: 0 20px; }
    .header-menu-btn { display: inline-flex; }
    .header-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 24px;
        background: rgba(11, 15, 26, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .header-nav.is-open { display: flex; }
    .header-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    }
    .header-nav a:last-child {
        margin-top: 8px;
        border-bottom: none;
        text-align: center;
        justify-content: center;
    }
    .header-nav .btn-primary {
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
    }
}

/* Rechtstexte unter dem gemeinsamen Header */
.public-legal-page main.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.public-legal-page h1 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.public-legal-page h2 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.public-legal-page h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
    color: var(--text);
    font-weight: 600;
}

.public-legal-page p,
.public-legal-page li {
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.public-legal-page ul,
.public-legal-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.public-legal-page .legal-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    line-height: 1.65;
}

.public-legal-page .legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.public-legal-page .legal-content a:hover {
    color: #93c5fd;
}

.public-legal-page .footer-links {
    margin-top: 40px;
}

.public-legal-page .footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin-right: 16px;
    font-weight: 500;
}

.public-legal-page .footer-links a:hover {
    text-decoration: underline;
}
