/* ==========================================================================
   legal.css - Einheitliches Velvet-Noir Design für AGB, Datenschutz, Impressum & Widerruf
   ========================================================================== */

:root {
        --vs-bg: #08080b;
        --vs-surface: #121218;
        --vs-surface-2: #181822;
        --vs-input: #0d0d13;
        --vs-crimson: #cc0000;
        --vs-crimson-dark: #7a000d;
        --vs-gold: #f5d77f;
        --vs-gold-soft: rgba(245, 215, 127, 0.42);
        --vs-emerald: #4cd97b;
        --vs-border: rgba(255, 255, 255, 0.08);
        --vs-text: #d6d6de;
        --vs-muted: #9393a3;
    }

    *, *::before, *::after { box-sizing: border-box; }

    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        min-height: 100vh !important;
        background-color: var(--vs-bg);
        background-image:
            radial-gradient(ellipse 90% 45% at 50% 0%, rgba(165, 0, 22, 0.24), transparent 70%),
            radial-gradient(circle at 85% 32%, rgba(245, 215, 127, 0.045), transparent 50%);
        color: var(--vs-text);
        display: flex;
        flex-direction: column;
    }

    .top-nav { position: relative !important; z-index: 500 !important; flex-shrink: 0; }
    .site-footer { position: relative !important; z-index: 10 !important; margin-top: auto; flex-shrink: 0; }

    button, a, label {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation;
    }
    button:focus:not(:focus-visible), a:focus:not(:focus-visible) {
        outline: none !important;
    }

    /* === HAUPT-SHELL === */
    .vs-legal-shell {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        padding: 18px 14px 76px 14px;
        flex: 1 0 auto;
    }

    /* === VELVET-NOIR KARTE === */
    .vs-legal-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        background: linear-gradient(180deg, var(--vs-surface-2) 0%, var(--vs-surface) 100%);
        border: 1px solid rgba(245, 215, 127, 0.26);
        border-top: 3px solid var(--vs-crimson);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.68);
    }

    /* Kompakter Cinema-Hero im Kopf der Karte */
    .vs-legal-hero {
        position: relative;
        text-align: center;
        padding: 28px 20px 24px 20px;
        background:
            linear-gradient(180deg, rgba(14, 10, 16, 0.72) 0%, rgba(24, 24, 34, 0.98) 100%),
            url("../img/cards/library_hero_banner.jpg") center/cover no-repeat;
        border-bottom: 1px solid rgba(245, 215, 127, 0.18);
    }
    .vs-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 999px;
        background: rgba(245, 215, 127, 0.1);
        border: 1px solid rgba(245, 215, 127, 0.4);
        color: var(--vs-gold);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }
    .vs-legal-hero h1 {
        font-family: var(--font-heading, "Playfair Display", Georgia, serif);
        font-size: clamp(1.6rem, 5.2vw, 2.2rem);
        color: #fff;
        margin: 0 0 6px 0;
        line-height: 1.2;
        font-weight: 600;
    }
    .vs-legal-hero h1 span { color: var(--vs-gold); }
    .vs-legal-hero p {
        margin: 0 auto;
        max-width: 560px;
        font-size: 0.88rem;
        line-height: 1.55;
        color: #c2c2d0;
    }

    /* Text-Inhalt */
    .vs-legal-body {
        padding: 24px 18px 28px 18px;
        line-height: 1.72;
        text-align: left;
    }
    @media (min-width: 640px) {
        .vs-legal-body { padding: 32px 36px 36px 36px; }
    }

    .vs-legal-body h2 {
        font-family: var(--font-heading, "Playfair Display", Georgia, serif);
        color: var(--vs-gold);
        font-size: clamp(1.18rem, 4vw, 1.4rem);
        margin: 2rem 0 0.8rem 0;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid rgba(245, 215, 127, 0.2);
        line-height: 1.3;
    }
    .vs-legal-body h2:first-of-type { margin-top: 0; }
    .vs-legal-body h3 {
        font-family: var(--font-heading, "Playfair Display", Georgia, serif);
        color: #fff;
        font-size: 1.1rem;
        margin: 1.4rem 0 0.5rem 0;
    }
    .vs-legal-body p,
    .vs-legal-body li {
        color: var(--vs-text);
        font-size: 0.93rem;
        margin: 0 0 0.95rem 0;
    }
    .vs-legal-body ul {
        padding-left: 1.25rem;
        margin: 0 0 1.1rem 0;
    }
    .vs-legal-body li { margin-bottom: 0.45rem; }
    .vs-legal-body strong { color: #fff; }
    .vs-legal-body code {
        background: rgba(245, 215, 127, 0.1);
        border: 1px solid rgba(245, 215, 127, 0.25);
        color: var(--vs-gold);
        padding: 1px 6px;
        border-radius: 5px;
        font-size: 0.85em;
    }
    .vs-legal-body a {
        color: var(--vs-gold);
        text-decoration: underline;
    }

    /* Highlight-Boxen (z.B. Sicherheitshinweis in AGB / Schnellkontakt im Impressum) */
    .vs-highlight-box {
        background: rgba(204, 0, 0, 0.09);
        border: 1px solid rgba(204, 0, 0, 0.32);
        border-left: 3px solid var(--vs-crimson);
        padding: 16px 18px;
        margin: 1.4rem 0;
        border-radius: 12px;
    }
    .vs-contact-box {
        background: var(--vs-input);
        border: 1px solid rgba(245, 215, 127, 0.26);
        border-left: 3px solid var(--vs-gold);
        padding: 20px 18px;
        margin: 1.5rem 0 2rem 0;
        border-radius: 12px;
    }
    @media (min-width: 640px) {
        .vs-contact-box { padding: 24px 24px; }
    }

    /* Formulare im Impressum */
    .vs-form-group { margin-bottom: 15px; }
    .vs-form-label {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--vs-gold);
        font-weight: 700;
        margin: 0 0 6px 0;
    }
    .vs-input,
    .vs-select,
    .vs-textarea {
        width: 100%;
        padding: 13px 14px;
        background: #161620;
        border: 1px solid #323242;
        border-radius: 10px;
        color: #fff;
        font-family: var(--font-body, "Montserrat", system-ui, sans-serif);
        font-size: 0.94rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .vs-input:focus,
    .vs-select:focus,
    .vs-textarea:focus {
        outline: none;
        border-color: var(--vs-gold);
        box-shadow: 0 0 0 3px rgba(245, 215, 127, 0.12);
    }
    .vs-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
    .vs-select option { background: #14141d; color: #fff; }

    /* Alerts */
    .vs-alert {
        padding: 13px 15px;
        border-radius: 10px;
        margin-bottom: 16px;
        font-size: 0.88rem;
        line-height: 1.55;
    }
    .vs-alert a { color: #fff; text-decoration: underline; }
    .vs-alert-error {
        background: rgba(204, 0, 0, 0.16);
        border: 1px solid rgba(255, 77, 77, 0.52);
        border-left: 3px solid #ff4d4d;
        color: #ffd2d2;
    }
    .vs-alert-success {
        background: rgba(76, 217, 123, 0.12);
        border: 1px solid rgba(76, 217, 123, 0.45);
        border-left: 3px solid var(--vs-emerald);
        color: #dffae8;
    }

    /* Buttons */
    .vs-btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: linear-gradient(135deg, var(--vs-crimson) 0%, var(--vs-crimson-dark) 100%);
        color: #fff !important;
        border: 1px solid var(--vs-gold);
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 0.88rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(204, 0, 0, 0.36);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Footer-Links am Ende der Rechtstexte */
    .vs-legal-footer-nav {
        margin-top: 2rem;
        padding-top: 1.4rem;
        border-top: 1px solid var(--vs-border);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
        font-size: 0.82rem;
    }
    .vs-legal-footer-nav a {
        color: #bdbdca;
        text-decoration: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .vs-legal-body a:hover { color: #fff; }
        .vs-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(245, 215, 127, 0.28);
        }
        .vs-legal-footer-nav a:hover { color: var(--vs-gold); text-decoration: underline; }
    }

/* Muster-Widerrufsformular Box (widerruf.php) */
.vs-form-box {
    background: var(--vs-input);
    border: 1px dashed rgba(245, 215, 127, 0.35);
    padding: 18px 20px;
    margin: 1.4rem 0;
    border-radius: 12px;
}
