/* =====================================================
   Rechtsseiten (Impressum, Datenschutz, AGB) – Fix
   ===================================================== */

.subpage-hero {
    padding-top: 120px; /* Header (64px) + Extra-Abstand */
    padding-bottom: 60px;
    background: var(--color-black, #0a0a0a);
    color: var(--color-white, #ffffff);
    text-align: center;
}

.subpage-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.subpage-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
}

.subpage-content {
    padding: 80px 0;
    background: var(--color-white, #ffffff);
}

.subpage-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-black, #0a0a0a);
}

.subpage-content h3 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-black, #0a0a0a);
}

.subpage-content p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--color-mid, #555);
}

.subpage-content strong {
    font-weight: 600;
    color: var(--color-black, #0a0a0a);
}

.subpage-content a {
    color: var(--color-black, #0a0a0a);
    text-decoration: underline;
}

.subpage-content a:hover {
    text-decoration: none;
}

/* =====================================================
   Datenschutz – spezifische Styles
   ===================================================== */

.legal-container {
    max-width: 860px;
}

/* Inhaltsverzeichnis */
.legal-toc {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
}
.legal-toc h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.legal-toc ol {
    margin: 0;
    padding-left: 20px;
}
.legal-toc li {
    margin: 6px 0;
}
.legal-toc a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.legal-toc a:hover {
    color: #e8894a !important;
}

/* Sektionen */
.legal-section {
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}
.legal-section:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Abschnittsnummer */
.legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0a0a0a;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}
.legal-section h2 {
    display: flex;
    align-items: center;
    font-size: 1.4rem !important;
    margin-top: 0 !important;
}

/* Adressbox */
.legal-address {
    background: #f8f8f8;
    border-left: 3px solid #e8894a;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

/* Hinweis-Box */
.legal-hint {
    background: #fff8e6;
    border: 1px solid #ffd580;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem !important;
    color: #7a5a00 !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.legal-hint i { margin-top: 2px; flex-shrink: 0; }

/* Listen */
.legal-section ul, .legal-section ol {
    padding-left: 24px;
    margin: 12px 0 16px;
}
.legal-section li {
    margin: 6px 0;
    line-height: 1.7;
    color: #555;
    font-size: 0.95rem;
}

/* Cookie-Kategorien in Datenschutz */
.cookie-category {
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 16px 0;
    overflow: hidden;
}
.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fafafa;
    flex-wrap: wrap;
}
.cookie-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-necessary  { background: #e8f5e9; color: #2e7d32; }
.badge-functional { background: #e3f2fd; color: #1565c0; }
.badge-analytics  { background: #fff3e0; color: #e65100; }
.cookie-always {
    margin-left: auto;
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: 600;
}
.cookie-category p {
    padding: 0 18px;
    margin: 12px 0 !important;
    font-size: 0.88rem !important;
}
.cookie-table {
    width: calc(100% - 36px);
    margin: 0 18px 14px;
    border-collapse: collapse;
    font-size: 0.83rem;
}
.cookie-table th {
    background: #f0f0f0;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
}
.cookie-table td {
    padding: 8px 12px;
    border-top: 1px solid #eee;
    color: #555;
    vertical-align: top;
}

/* Button Cookie-Einstellungen öffnen */
.btn-cookie-settings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    margin: 8px 0;
}
.btn-cookie-settings:hover { background: #e8894a; }

/* Rechte-Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.right-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
}
.right-item i {
    font-size: 1.3rem;
    color: #e8894a;
    margin-bottom: 10px;
    display: block;
}
.right-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 8px;
}
.right-item p {
    font-size: 0.82rem !important;
    color: #666;
    line-height: 1.5;
    margin: 0 !important;
}

/* Footer-Links */
.legal-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 32px 0 0;
    border-top: 1px solid #eee;
    margin-top: 48px;
}
.legal-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a0a0a !important;
    text-decoration: none !important;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s;
}
.legal-footer-links a:hover { background: #eee; }

/* Mobile Anpassung */
@media (max-width: 768px) {
    .subpage-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .subpage-hero h1 {
        font-size: 2rem;
    }

    .subpage-content {
        padding: 60px 0;
    }
    .rights-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cookie-table { width: 100%; margin: 0 0 14px; }
    .legal-footer-links { gap: 12px; }
}

@media (max-width: 480px) {
    .rights-grid { grid-template-columns: 1fr; }
    .legal-section h2 { font-size: 1.2rem !important; }
}
