/* Gemeinsame Styles für Impressum & Datenschutz – im Look der index.html */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #0f181d;
    color: #fff;
    overflow-x: hidden;
}

.main-wrapper {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.8s cubic-bezier(0.77, 0, 0.18, 1) both;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.card {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* ---------- KOPFBEREICH (wie linke Brand-Seite) ---------- */
.brand-top {
    background: #41505647;
    background-image: url('IFP_0042.jpg');
    background-size: cover;
    background-position: center 30%;
    background-blend-mode: overlay;
    padding: 32px 38px 30px;
    position: relative;
    overflow: hidden;
}

.brand-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(65, 80, 86, 0.45) 60%,
            rgba(255, 255, 255, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.brand-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            #ffffff 0px, #ffffff 20px,
            transparent 20px, transparent 30px);
    animation: trackMove 1.8s linear infinite;
    opacity: 0.3;
    z-index: 2;
}

@keyframes trackMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 0; }
}

.brand-top > * { position: relative; z-index: 2; }

.brand-top .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-top img { height: 64px; width: auto; display: block; }

.back-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.back-link:hover { background: rgba(255, 255, 255, 0.22); transform: translateX(-3px); }

.brand-top h1 {
    margin-top: 26px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-top .sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    border-left: 3px solid #ffffff;
    padding-left: 16px;
}

/* ---------- INHALT (wie rechte Content-Seite) ---------- */
.content {
    padding: 38px;
    color: #1e2a2f;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.content h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #415056;
    margin-bottom: 8px;
}

.content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2a2f;
    margin: 14px 0 4px;
}

.content p,
.content li {
    color: #3d4e55;
    line-height: 1.65;
    font-size: 0.95rem;
}

.content p + p { margin-top: 10px; }

.content ul { padding-left: 20px; margin-top: 6px; }

.content a { color: #1e2a2f; font-weight: 600; text-decoration-color: #b8c4ca; }
.content a:hover { color: #415056; }

.info-box {
    background: #f0f3f5;
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 6px solid #415056;
}

.info-box p { color: #2f4048; }
.info-box strong { color: #1e2a2f; }

.legal-footer {
    border-top: 1px solid #e9edf0;
    padding-top: 18px;
    font-size: 0.75rem;
    color: #8a9ba4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.legal-footer a { color: #8a9ba4; font-weight: 500; text-decoration: none; }
.legal-footer a:hover { color: #415056; }

@media (max-width: 600px) {
    .main-wrapper { padding: 12px; }
    .card { border-radius: 20px; }
    .brand-top { padding: 24px 22px; }
    .brand-top img { height: 48px; }
    .brand-top h1 { font-size: 1.9rem; }
    .content { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .main-wrapper, .brand-top::after { animation: none; }
}
