/* cookieconsent.css
   Eigenständiges Modul, analog zu ladebalken/loadingoverlay.css.
   Einbindung: <link rel="stylesheet" href=".../cookieconsent/cookieconsent.css">
*/

/* Ganzflächiger Hintergrund, blockiert Interaktion mit der restlichen Seite */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cc-overlay.cc-visible {
    display: flex;
}

/* Verhindert Scrollen der Seite dahinter, wird per JS auf <body> gesetzt */
body.cc-locked {
    overflow: hidden;
}

.cc-banner {
    position: relative;
    z-index: 100000;
    background: #ffffff;
    color: #222222;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    padding: 20px 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cc-banner__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.cc-banner__text {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.cc-banner__text a {
    color: #0056a3;
    text-decoration: underline;
}

.cc-banner__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.cc-category {
    min-width: 200px;
    font-size: 13px;
    flex: 1 1 auto;
}

.cc-category__row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.cc-category input[type="checkbox"] {
    margin-top: 3px;
}

.cc-category label {
    cursor: pointer;
}

.cc-category small {
    display: block;
    color: #666;
    font-weight: normal;
}

.cc-details {
    margin: 6px 0 0 22px;
}

.cc-details summary {
    cursor: pointer;
    color: #0056a3;
    font-size: 12px;
    text-decoration: underline;
}

.cc-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
}

.cc-cookie-table th,
.cc-cookie-table td {
    text-align: left;
    padding: 4px 6px;
    border-bottom: 1px solid #eee;
}

.cc-cookie-table th {
    color: #555;
    font-weight: 600;
}

.cc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc-btn {
    border: none;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 13px;
    cursor: pointer;
}

.cc-btn--primary {
    background: #0056a3;
    color: #fff;
}

.cc-btn--primary:hover {
    background: #00417d;
}

.cc-btn--secondary {
    background: #0056a3;
    color: #fff;
}

.cc-btn--secondary:hover {
    background: #00417d;
}

.cc-btn--link {
    background: transparent;
    color: #0056a3;
    text-decoration: underline;
    padding: 9px 4px;
}

/* Kleiner "Cookie-Einstellungen" Button, dauerhaft sichtbar, um Auswahl später zu ändern */
.cc-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99998;
    background: #0056a3;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: none;
}

.cc-reopen.cc-visible {
    display: block;
}

@media (max-width: 600px) {
    .cc-category {
        min-width: 100%;
    }
}
