/* =================================== */
/* Impressum Styling (aligned to DSGVO) */
/* =================================== */

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    background: #0f1920;
    color: var(--text-800);
    line-height: 1.6;
}

.legal-page {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(0,150,215,0.18), transparent 32%),
                radial-gradient(circle at 80% 0%, rgba(255,255,255,0.08), transparent 30%),
                linear-gradient(180deg, #0b1a22, #0f1f2a 40%, #0c171f);
}

.legal-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(12,22,31,0.65), rgba(12,22,31,0.85)), url('/scr/strandspaziergang_2560_q78.jpg');
    background-size: cover;
    background-position: 68% center; /* Paar steht rechts der Bildmitte */
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

/* .material-symbols-outlined icon style is defined globally in global.css */

.legal-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 96px;
    padding: 32px 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: calc(var(--header-height, 56px) + 16px);
}

.legal-anchor {
    position: relative;
    top: -120px;
    height: 1px;
    width: 1px;
    display: block;
}

.legal-hero {
    color: var(--text-900);
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.92));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow-md);
    padding: clamp(22px, 4vw, 32px);
    display: grid;
    gap: 18px;
}

.legal-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0,150,215,0.12);
    border-radius: var(--radius-pill, 999px);
    color: var(--brand-accent-700);
    font-weight: 700;
    letter-spacing: 0.2px;
    width: fit-content;
}

.legal-hero__titles h1 {
    margin: 4px 0 6px;
    color: var(--text-900);
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.legal-lead {
    margin: 0;
    color: var(--text-700);
    font-size: 1.05rem;
    max-width: 720px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15,35,45,0.06);
    border: 1px solid rgba(15,35,45,0.12);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-800);
}

.meta-link { color: var(--brand-accent-700); text-decoration: none; }
.meta-link:hover { text-decoration: underline; }

.legal-hero__support {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-chip {
    padding: 10px 14px;
    background: #0f232b;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15,35,45,0.16);
}

.legal-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.legal-card {
    background: var(--bg-elev-1, rgba(255,255,255,0.9));
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--shadow-sm);
    color: var(--text-900);
}

.legal-card h2,
.legal-card h3 { margin-top: 0; color: var(--text-900); }

.legal-card--toc {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,150,215,0.22);
    box-shadow: var(--shadow-md);
}

.toc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.toc-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--brand-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 24px rgba(0,150,215,0.28);
    letter-spacing: 0.1px;
}

.toc-pill:hover {
    background: var(--brand-accent-600);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,150,215,0.32);
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.legal-block {
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-900);
}

.block-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.block-kicker {
    display: inline-flex;
    padding: 6px 10px;
    background: rgba(0,150,215,0.08);
    color: var(--brand-accent-700);
    border-radius: 10px;
    font-weight: 700;
    width: fit-content;
}

.legal-block h2 {
    margin: 0;
    color: var(--text-900);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.legal-block p {
    line-height: 1.7;
    color: var(--text-700);
    margin: 0 0 10px;
}

.legal-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.legal-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-800);
}

.legal-bullets li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-accent);
    position: absolute;
    left: 0;
    top: 8px;
    box-shadow: 0 0 0 6px rgba(0,150,215,0.10);
}

.legal-bullets--sub {
    margin: 6px 0 0;
    padding-left: 8px;
}

.legal-bullets--sub li {
    font-size: 0.93em;
    margin-bottom: 4px;
    color: var(--text-700);
}

.legal-bullets--sub li::before {
    width: 6px;
    height: 6px;
    top: 9px;
    background: rgba(0,150,215,0.55);
    box-shadow: none;
}

.legal-note {
    background: rgba(15,35,45,0.04);
    border-left: 4px solid var(--brand-accent);
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-700);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-800);
}

.contact-list--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.contact-link {
    color: var(--brand-accent-700);
    font-weight: 700;
    text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.legal-block strong { color: var(--brand-accent-700); }

.scroll_to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15,35,45,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.support_popup {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

.support_popup_content {
    background: var(--bg-elev-1);
    color: var(--text-900);
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
    min-width: 280px;
    max-width: 90vw;
    text-align: center;
    position: relative;
}

.support_popup_close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 1.5em;
    cursor: pointer;
}

.support_popup_actions {
    margin-top: 1.5em;
    display: flex;
    gap: 1em;
    justify-content: center;
}

.support_popup_btn {
    background: var(--brand-accent);
    color: #fff;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.support_popup_btn:hover { background: var(--brand-accent-600); }

@media (max-width: 720px) {
    .legal-hero { padding: 1.5rem; }
    .legal-card,
    .legal-block { padding: 18px; }
    .legal-meta { flex-direction: column; }
    .legal-main { padding: 0 18px 90px; }
}
