/*
 * Nordic Transport Group - Datenschutz Styling
 * Zusätzliche Styles für Datenschutzerklärung
 */

/* ===== Table of Contents Box ===== */
.toc-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #7BBDE9;
    border-radius: 15px;
    padding: 2rem;
}

.toc-box h3 {
    color: #0A1F44;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
    margin: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.toc-list li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #7BBDE9;
    font-size: 1.1rem;
}

.toc-list a {
    color: #0A1F44;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.toc-list a:hover {
    color: #7BBDE9;
    transform: translateX(5px);
}

/* ===== Privacy Sections ===== */
.privacy-section {
    scroll-margin-top: 100px; /* Für Anker-Navigation unter fixierter Navbar */
}

.privacy-section h2 {
    color: #0A1F44;
    font-size: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #7BBDE9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7BBDE9 0%, #0A1F44 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.5rem;
}

.privacy-section h5 {
    color: #0A1F44;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ===== Content Boxes ===== */
.content-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

/* ===== Contact Info ===== */
.contact-info {
    background: white;
    border-left: 4px solid #7BBDE9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info a {
    color: #7BBDE9;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: #0A1F44;
    text-decoration: underline;
}

/* ===== Data Lists ===== */
.data-list {
    list-style: none;
    padding-left: 0;
}

.data-list li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.data-list li:last-child {
    border-bottom: none;
}

.data-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #7BBDE9;
    font-size: 1.1rem;
}

/* ===== Legal Basis Items ===== */
.legal-basis-item {
    background: white;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.legal-basis-item h6 {
    color: #0A1F44;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.legal-basis-item p {
    margin: 0;
    color: #6E747A;
}

/* ===== Purpose Grid ===== */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.purpose-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.purpose-item:hover {
    border-color: #7BBDE9;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 189, 233, 0.2);
}

.purpose-item i {
    font-size: 2.5rem;
    color: #7BBDE9;
    margin-bottom: 1rem;
}

.purpose-item h6 {
    color: #0A1F44;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.purpose-item p {
    margin: 0;
    color: #6E747A;
    font-size: 0.9rem;
}

/* ===== Rights Grid ===== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.right-item {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 2px solid #7BBDE9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: linear-gradient(135deg, #7BBDE9 0%, #0A1F44 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 189, 233, 0.3);
}

.right-item:hover i,
.right-item:hover h6,
.right-item:hover p {
    color: white !important;
}

.right-item i {
    font-size: 2.5rem;
    color: #7BBDE9;
    margin-bottom: 1rem;
}

.right-item h6 {
    color: #0A1F44;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.right-item p {
    margin: 0;
    color: #6E747A;
    font-size: 0.85rem;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 12px;
}

.alert-heading {
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section-number {
        min-width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .purpose-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }

    .toc-box {
        padding: 1.5rem;
    }

    .content-box {
        padding: 1.5rem;
    }
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .page-header {
        display: none;
    }

    .content-box,
    .legal-basis-item,
    .purpose-item,
    .right-item {
        break-inside: avoid;
    }

    .privacy-section {
        page-break-inside: avoid;
    }
}
