#notice-cookie-block {
    visibility: hidden; /* Banner anfangs unsichtbar */
    width: 80%; /* Banner nimmt nur 80% der Bildschirmbreite ein */
    max-width: 800px; /* Maximale Breite, damit es nicht zu breit wird */
    margin: 0 auto; /* Zentriert das Banner horizontal */
    padding: 20px; /* Abstände innerhalb des Banners */
    position: fixed; /* Fixiert das Banner auf der Seite */
    bottom: 20px; /* Abstand vom unteren Rand des Bildschirms */
    left: 50%; /* Zentriert das Banner horizontal */
    transform: translateX(-50%); /* Stellt sicher, dass das Banner mittig ist */
    background-color: #fff; /* Hintergrundfarbe (falls nicht gesetzt) */
    border: 1px solid #ccc; /* Rand um das Banner */
    border-radius: 8px; /* Ecken abrunden */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schatten für einen leicht erhöhten Effekt */
    z-index: 9999; /* Sicherstellen, dass das Banner über anderem Inhalt liegt */
    transition: visibility 0s 0.3s, opacity 0.3s ease-in-out; /* Übergang für smoothes Einblenden */
    opacity: 0; /* Standardmäßig unsichtbar */
}

#notice-cookie-block.visible {
    visibility: visible; /* Sichtbar machen */
    opacity: 1; /* Banner einblenden */
    transition: visibility 0s, opacity 0.3s ease-in-out; /* Schneller Übergang beim Einblenden */
}

#notice-cookie-block .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-icon {
    position: absolute;
    left: -30px;       /* über den Rand hinaus */
    top: 50%;           /* vertikal mittig */
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #fff;  /* Kreis-Hintergrund */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 36px;
    height: 36px;
}

#cookie-fingerprint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;

    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cookie-fingerprint.visible {
    opacity: 1;
    pointer-events: auto;
}

#cookie-fingerprint svg {
    width: 24px;
    height: 24px;
    color: #000;
}

#cookie-fingerprint:hover {
    transform: scale(1.05);
}

.cookie-text {
    margin-left: 20px;      /* Platz zum Text */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cookie-links {
    margin-top: 32px;
    font-size: 0.9em;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.cookie-actions button {
    margin-left: 10px;
}

.cookie-text,
.cookie-links {
    text-align: left;
}

#notice-cookie-block .cookie-text {
    align-items: flex-start;
}

.cookie-text h2 {
    margin: 0 0 8px 0;
}

#cookie-config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 0; /* Overlay selbst kein Padding nötig */
    z-index: 9999;

    overflow: hidden; /* Overlay scrollt nicht */
}

#cookie-config-modal .modal-content {
    width: 95%;
    max-width: 700px;

    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    box-sizing: border-box; /* wichtig, damit Padding in max-height einbezogen wird */
    
    /* Scrollbereich */
    max-height: calc(100vh - 60px); /* 60px Abstand oben + unten Puffer */
    overflow-y: auto;
    padding-bottom: 60px; /* Abstand am unteren Rand des Scrollbereichs */
}


html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
}

.switch {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 15px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1979C3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.service {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-info p {
    margin-bottom: 20px;
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.service-more {
    display: inline-block;
    margin: 6px 0 10px;
    font-size: 0.9em;
    color: #1979C3;
    cursor: pointer;
    text-decoration: underline;
}

.service-details {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 3px solid #e0e0e0;
    font-size: 0.9em;
    color: #444;
}

.service-details p {
    margin-bottom: 8px;
}
