﻿@import url('../css/variables.css?v=2');

/* ── Legal-Page gemeinsame Stile ───────────────── */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #f8fafc;
    font-family: 'Montserrat', sans-serif;
    color: #334155;
}

/* ── Hero-Header ───────────────────────────────── */
.legal-hero {
    background: #0d2a5e;
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,119,182,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
    position: relative;
}

.legal-hero__back:hover {
    color: rgba(255,255,255,0.85);
}

.legal-hero__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--main-color);
    background: rgba(0,119,182,0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    position: relative;
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.65rem;
    position: relative;
}

.legal-hero__sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    position: relative;
}

/* ── Haupt-Content ─────────────────────────────── */
.legal-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

/* ── Info-Karten (Impressum Kurzinfo) ──────────── */
.legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.legal-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.legal-card__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(13,42,94,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d2a5e;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.legal-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.legal-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.legal-card__body span,
.legal-card__body a {
    font-size: 0.85rem;
    color: #334155;
    text-decoration: none;
    line-height: 1.6;
}

.legal-card__body a:hover {
    color: #0d2a5e;
}

/* ── Abschnitte ────────────────────────────────── */
.legal-section {
    margin-bottom: 2.25rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #0d2a5e;
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d2a5e;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-section h2 .legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    background: #0d2a5e;
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.legal-section p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 0.75rem;
}

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

.legal-section a {
    color: #0d2a5e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* ── Listen (Rechte) ───────────────────────────── */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-list li {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.legal-list li::before {
    content: '✓';
    color: #0d2a5e;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
    .legal-hero {
        padding: 4rem 1rem 2.5rem;
    }

    .legal-body {
        padding: 2.5rem 1rem 4rem;
    }

    .legal-section {
        padding: 1.25rem 1.25rem 1.25rem 1rem;
    }
}
