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

:root {
    --blue:       #009FE3;
    --blue-dark:  #0077B6;
    --blue-light: #E8F6FD;
    --navy:       #1A1F36;
    --gray:       #6B7280;
    --gray-light: #F3F4F6;
    --white:      #FFFFFF;
    --radius:     8px;
    --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy);
    background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── Accessibility: Fokus-Stile für Tastaturnavigation ─── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ─── TOP BAR ─── */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    padding: 8px 0;
}
.topbar .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--blue); }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-links { display: flex; gap: 20px; }

/* ─── HEADER ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,159,227,.35); text-decoration: none; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ─── PAGE HERO ─── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0d2d50 55%, #004e8c 100%);
    color: white;
    padding: 64px 0;
}
.page-hero-inner { display: flex; align-items: center; gap: 16px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,.6); margin-top: 8px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ─── TOC (Datenschutz) ─── */
.toc {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
}
.toc h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { padding-left: 20px; }
.toc ol li { margin-bottom: 6px; }
.toc ol li a { font-size: 14px; color: var(--navy); }
.toc ol li a:hover { color: var(--blue); text-decoration: none; }

/* ─── CONTENT ─── */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 56px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-light);
    scroll-margin-top: 100px;
}

.legal-content h2:first-child,
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 10px;
}

.legal-content p { color: #374151; margin-bottom: 14px; }

.legal-content ul, .legal-content ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-content ul li, .legal-content ol li { color: #374151; margin-bottom: 6px; }

.info-box {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
}
.info-box p { margin: 0; color: var(--navy); font-size: 15px; }

/* ─── FOOTER ─── */
footer { background: #0f1628; color: rgba(255,255,255,.55); font-size: 14px; padding: 40px 0 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--blue); }

.footer-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
}
.footer-mini img { height: 34px; filter: brightness(0) invert(1); opacity: .7; }

/* ─── MOBILE NAV ─── */
.mobile-nav { display: none; flex-direction: column; position: fixed; inset: 0; background: white; z-index: 200; padding: 24px; gap: 8px; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-header img { height: 36px; }
.close-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid rgba(0,0,0,.1); background: none; cursor: pointer; font-size: 20px; }
.mobile-nav a { display: block; padding: 14px 16px; font-size: 16px; font-weight: 500; color: var(--navy); border-radius: var(--radius); transition: var(--transition); text-decoration: none; }
.mobile-nav a:hover { background: var(--blue-light); color: var(--blue); }
.mobile-nav .btn-primary { margin-top: 16px; justify-content: center; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-links, nav .btn-primary { display: none; }
    .burger { display: flex; }
}
@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-mini { flex-direction: column; align-items: flex-start; }
}

/* ─── PRINT ─── */
@media print {
    .topbar, header, .mobile-nav, footer { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .legal-content { padding: 20px 0; }
}
