/* =========================================================================
   legal.css
   Styles für die rechtlichen Seiten (Impressum / Datenschutz).
   Glassmorphism auf einem farbigen Hintergrund, responsive via Grid/Flexbox.
   ========================================================================= */

/* ---- Reset / Grundlagen -------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --accent: #ff416c;
    --accent-2: #ff4b2b;
    --text: #f3f3f5;
    --text-muted: #b9bcc7;
    --max-width: 860px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    /* Farbverlauf als Hintergrund für die Glas-Optik */
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 65, 108, 0.35), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(80, 120, 255, 0.30), transparent 40%),
        linear-gradient(135deg, #1b1d2a, #0d0f17);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* ---- Kopfzeile ----------------------------------------------------------- */
.site-header {
    padding: 32px 20px 8px;
    text-align: center;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-header .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.site-header .brand span {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Haupt-Container (Grid) ---------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 20px;
    flex: 1 1 auto; /* schiebt den Footer nach unten */
}

/* ---- Glas-Karte ---------------------------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 32px;
}

.glass-card h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 8px;
}

.glass-card h2 {
    font-size: 1.2rem;
    margin: 28px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--glass-border);
}

.glass-card p,
.glass-card li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.glass-card a {
    color: var(--accent);
    text-decoration: none;
}

.glass-card a:hover {
    text-decoration: underline;
}

.glass-card ul {
    padding-left: 20px;
}

/* Platzhalter-Hinweis hervorheben */
.placeholder-note {
    font-size: 0.85rem;
    color: #ffd479;
    background: rgba(255, 212, 121, 0.10);
    border: 1px dashed rgba(255, 212, 121, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
}

/* ---- Video-Platzhalter (Anleitung) -------------------------------------- */
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 14px,
            transparent 14px,
            transparent 28px),
        linear-gradient(135deg, #20222f, #14161f);
    display: grid;
    place-items: center;
    margin: 18px 0 26px;
}

.video-frame__play {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 0 28px rgba(255, 65, 108, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-frame__play:hover {
    transform: scale(1.08);
}

.video-frame__hint {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Schritt-Liste ------------------------------------------------------- */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 16px;
}

.steps li {
    position: relative;
    padding: 18px 20px 18px 64px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gradient);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.steps li strong {
    color: var(--text);
}

/* ---- Zurück-Link --------------------------------------------------------- */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
    margin-top: auto;
    padding: 24px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.30);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 10px;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
}

/* ---- Responsiv ----------------------------------------------------------- */
@media (max-width: 600px) {
    .glass-card {
        padding: 22px;
        border-radius: 16px;
    }

    .site-header .brand {
        font-size: 1.2rem;
    }
}
