:root {
    --privacy-highlight: rgba(208, 197, 126, 0.15);
    --privacy-card-bg: rgba(255, 255, 255, 0.03);
    --privacy-border: rgba(255, 255, 255, 0.1);
}

/* Privacy Hero Section */
.privacy-hero {
    padding: 120px 0 60px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('/api/placeholder/800/800') center/cover no-repeat;
    opacity: 0.03;
    z-index: 0;
}

.privacy-label {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--privacy-highlight);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.privacy-title {
    font-size: 2.8rem;
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.privacy-title span {
    color: var(--accent-color);
    position: relative;
}

.privacy-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: 5px;
    left: 0;
    background-color: var(--privacy-highlight);
    z-index: -1;
}

.privacy-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 auto 30px;
    line-height: 1.6;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Privacy Content Section */
.privacy-content {
    padding: 60px 0 120px;
    background-color: var(--primary-color);
    position: relative;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    position: relative;
}

/* Sticky Navigation */
.privacy-nav {
    position: relative;
}

.nav-inner {
    position: sticky;
    top: 100px;
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--privacy-border);
}

.privacy-nav h3 {
    font-size: 1.2rem;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--privacy-border);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--privacy-highlight);
    color: var(--text-color);
}

.nav-links a:hover i, .nav-links a.active i {
    opacity: 1;
}

.privacy-certificate {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--privacy-highlight);
    border-radius: 10px;
    margin-top: 30px;
}

.certificate-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: rgba(208, 197, 126, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.certificate-text p {
    font-size: 0.85rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Main Content */
.privacy-main {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.privacy-section {
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 12px;
    background: var(--privacy-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.privacy-card {
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--privacy-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Accordion Styling */
.privacy-accordion {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background-color: var(--privacy-card-bg);
    border: 1px solid var(--privacy-border);
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.privacy-accordion:hover {
    background-color: var(--privacy-highlight);
}

.privacy-accordion i {
    transition: transform 0.3s ease;
}

.privacy-accordion.active i {
    transform: rotate(180deg);
}

.accordion-content {
    background-color: var(--privacy-card-bg);
    border-radius: 10px;
    padding: 20px;
    margin: -5px 0 15px;
    display: none;
}

.privacy-accordion.active + .accordion-content {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Privacy Lists */
.privacy-list {
    padding-left: 20px;
    margin: 15px 0;
}

.privacy-list li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-info {
    background-color: var(--privacy-card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

/* Data Types Grid */
.data-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.data-type-item {
    background-color: var(--privacy-card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.data-type-item:hover {
    background-color: var(--privacy-highlight);
    transform: translateY(-5px);
}

.data-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(208, 197, 126, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 0 auto 15px;
}

.data-type-item h4 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.data-type-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Cookie Controls */
.cookie-control {
    background-color: var(--privacy-highlight);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-info h4 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.cookie-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-color);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-save-cookies {
    margin-top: 10px;
    align-self: flex-end;
}

/* Cookie Types */
.cookie-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-type {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--privacy-border);
}

.cookie-type h5 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--text-color);
}

.cookie-type p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cookie-tag.essential {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.cookie-tag.optional {
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

/* Rights Section */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.right-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: var(--privacy-card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.right-item:hover {
    background-color: var(--privacy-highlight);
    transform: translateY(-5px);
}

.right-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background-color: rgba(208, 197, 126, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.right-content h4 {
    font-size: 1.1rem;
    margin: 0 0 5px;
}

.right-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rights-request {
    background-color: var(--privacy-highlight);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.rights-request h4 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.rights-request p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Tool Details */
.tool-details {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.tool-info {
    flex: 1;
}

.tool-data {
    margin-top: 15px;
}

.tool-data h5 {
    font-size: 0.95rem;
    margin: 0 0 10px;
}

.tool-control {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-text {
    font-weight: 600;
}

.tool-status.active .status-text {
    color: #4CAF50;
}

.tool-status.inactive .status-text {
    color: #FF9800;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-person {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: var(--privacy-card-bg);
    border-radius: 10px;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 15px;
    border-left: 2px solid var(--accent-color);
}

.contact-form-container h4 {
    margin: 0 0 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background-color: var(--privacy-card-bg);
    border: 1px solid var(--privacy-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.form-check input {
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Security Measures */
.security-measures {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.security-measure {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--privacy-highlight);
    border-radius: 20px;
    font-size: 0.9rem;
}

.security-measure i {
    color: var(--accent-color);
}

/* Privacy Help Button */
.privacy-help {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-help span {
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.btn-help:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-help:hover span {
    opacity: 1;
    width: 150px;
    margin-left: 8px;
}

/* Hilfsdialog Styles */
.privacy-help-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--privacy-border);
}

.dialog-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.dialog-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.dialog-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
}

.help-section {
    margin-bottom: 20px;
}

.help-section h4 {
    margin: 0 0 10px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.help-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dialog-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--privacy-border);
}

.privacy-help-dialog.visible {
    opacity: 1;
}

.privacy-help-dialog.visible .dialog-content {
    transform: translateY(0);
}

/* Fade-In Animationen */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(208, 197, 126, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--privacy-border);
}

.btn-ghost:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .privacy-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .privacy-nav {
        order: -1; /* Ändert die Reihenfolge, sodass die Navigation zuerst erscheint */
        margin-bottom: 30px;
    }
    
    .nav-inner {
        position: relative;
        top: auto;
        padding: 20px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .nav-links li {
        margin-bottom: 0;
    }
    
    .nav-links a {
        padding: 8px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .privacy-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: 80px 0 40px;
    }
    
    .privacy-content {
        padding: 40px 0 100px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .privacy-card {
        padding: 20px;
    }
    
    .privacy-title {
        font-size: 1.8rem;
    }
    
    .data-types-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .tool-control {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .privacy-hero {
        padding: 60px 0 30px;
    }
    
    .privacy-title {
        font-size: 1.6rem;
    }
    
    .privacy-description {
        font-size: 1rem;
    }
    
    .data-types-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-accordion {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .privacy-card {
        padding: 15px;
    }
    
    .contact-person {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .btn-help {
        padding: 10px;
    }
    
    .btn-help i {
        margin: 0;
    }
    
    .btn-help:hover span {
        width: 0;
        opacity: 0;
    }
    
    .dialog-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .dialog-body {
        padding: 15px;
        max-height: calc(90vh - 130px);
    }
    
    .help-section h4 {
        font-size: 1rem;
    }
    
    .help-section p {
        font-size: 0.9rem;
    }
}
