/* Gilde – Core 0.7.2: kompakte Cookie-Leiste und eingebettete Rechtliches-Einstellungen. */
.gdp-consent-panel,
.gdp-consent-panel * {
    box-sizing: border-box;
}

.gdp-consent-panel {
    color: #24322c;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    opacity: 1;
    visibility: visible;
}

.gdp-consent-panel--banner {
    position: fixed;
    z-index: 2147483000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-height: min(74vh, 780px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #c9d3ce;
    border-top: 5px solid #1f4d3a;
    border-radius: 10px;
    box-shadow: 0 18px 54px rgba(19, 43, 33, .24);
}

.gdp-consent-panel--page {
    position: relative;
    width: 100%;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #c9d3ce;
    border-top: 5px solid #1f4d3a;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(19, 43, 33, .08);
}

.gdp-consent-panel__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 22px 24px 20px;
}

.gdp-consent-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.gdp-consent-kicker {
    display: block;
    margin-bottom: 5px;
    color: #1f4d3a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gdp-consent-panel h2 {
    margin: 0 0 7px;
    color: #123a2c;
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.2;
}

.gdp-consent-panel p {
    margin: 0;
    color: #46544e;
}

.gdp-consent-cancel {
    flex: 0 0 auto;
    color: #1f4d3a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gdp-consent-notice {
    margin: 0 0 16px !important;
    padding: 10px 12px;
    border-radius: 6px;
}

.gdp-consent-notice--success {
    color: #19442f !important;
    background: #edf6f1;
    border: 1px solid #b9d8c7;
}

.gdp-consent-notice--error {
    color: #7a2020 !important;
    background: #fff1f1;
    border: 1px solid #e1b4b4;
}

.gdp-consent-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gdp-consent-group {
    min-width: 0;
    margin: 0;
    padding: 14px;
    background: #f7f9f8;
    border: 1px solid #d8dfdc;
    border-radius: 8px;
}

.gdp-consent-group legend {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    color: #173f30;
    font-size: 16px;
    font-weight: 700;
}

.gdp-consent-group legend small {
    margin-left: 10px;
    color: #68766f;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.gdp-consent-group__description {
    min-height: 66px;
    margin: 0 0 12px !important;
    font-size: 13px;
}

.gdp-consent-items {
    display: grid;
    gap: 9px;
}

.gdp-consent-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 9px;
    align-items: start;
    margin: 0;
    padding: 10px;
    color: #24322c;
    background: #fff;
    border: 1px solid #dce3e0;
    border-radius: 6px;
    cursor: pointer;
}

.gdp-consent-item--required {
    cursor: default;
}

.gdp-consent-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #1f4d3a;
}

.gdp-consent-item__body {
    display: grid;
    gap: 4px;
}

.gdp-consent-item__body strong {
    color: #173f30;
    font-size: 14px;
}

.gdp-consent-item__body > span:not(.gdp-consent-item__meta) {
    color: #4c5a54;
    font-size: 12px;
}

.gdp-consent-item__meta {
    color: #6a7771;
    font-size: 10.5px;
    overflow-wrap: anywhere;
}

.gdp-consent-explanation {
    margin: 14px 0 12px !important;
    font-size: 12px;
}

.gdp-consent-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gdp-consent-actions button {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    color: #173f30;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    background: #fff;
    border: 1px solid #1f4d3a;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
}

.gdp-consent-actions button:hover,
.gdp-consent-actions button:focus-visible {
    color: #fff;
    background: #1f4d3a;
    outline: 2px solid #b8c9c1;
    outline-offset: 2px;
}

.gdp-consent-page--disabled {
    margin: 24px 0;
    padding: 20px;
    color: #24322c;
    background: #fff8e6;
    border: 1px solid #d9c48d;
    border-left: 5px solid #927124;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .gdp-consent-groups {
        grid-template-columns: 1fr;
    }

    .gdp-consent-group__description {
        min-height: 0;
    }

    .gdp-consent-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .gdp-consent-panel--banner {
        right: 7px;
        bottom: 7px;
        left: 7px;
        max-height: 86vh;
        border-radius: 8px;
    }

    .gdp-consent-panel__inner {
        padding: 17px 14px 14px;
    }

    .gdp-consent-panel__head {
        display: block;
    }

    .gdp-consent-cancel {
        display: inline-block;
        margin-top: 10px;
    }

    .gdp-consent-actions {
        grid-template-columns: 1fr;
    }
}

/* 0.7.1: kompakte, nativ einklappbare Detailansicht. */
.gdp-consent-details {
    margin: 0 0 14px;
    border: 1px solid #cfd9d4;
    border-radius: 7px;
    background: #f7f9f8;
}

.gdp-consent-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 46px;
    padding: 10px 14px;
    color: #173f30;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.gdp-consent-details summary::-webkit-details-marker {
    display: none;
}

.gdp-consent-details summary::after {
    content: "▾";
    flex: 0 0 auto;
    color: #1f4d3a;
    font-size: 16px;
    transition: transform .15s ease;
}

.gdp-consent-details[open] summary::after {
    transform: rotate(180deg);
}

.gdp-consent-details summary:hover,
.gdp-consent-details summary:focus-visible {
    background: #edf3f0;
    outline: 2px solid #b8c9c1;
    outline-offset: 2px;
}

.gdp-consent-details summary small {
    margin-left: auto;
    color: #68766f;
    font-size: 11px;
    font-weight: 600;
}

.gdp-consent-details__body {
    padding: 14px;
    border-top: 1px solid #d8dfdc;
}

.gdp-consent-panel--banner .gdp-consent-panel__inner {
    padding-top: 17px;
    padding-bottom: 16px;
}

.gdp-consent-panel--banner .gdp-consent-panel__head {
    margin-bottom: 12px;
}

.gdp-consent-panel--banner .gdp-consent-panel__head p {
    max-width: 1000px;
}

.gdp-consent-panel--banner .gdp-consent-actions {
    margin-top: 0;
}

@media (max-width: 620px) {
    .gdp-consent-details summary {
        align-items: flex-start;
        gap: 8px;
    }

    .gdp-consent-details summary small {
        display: none;
    }
}

/* Eingebettete Darstellung innerhalb des bestehenden Rechtliches-Registers. */
.gdp-consent-page--embedded {
    margin: 0;
}

.gdp-consent-panel--embedded {
    position: relative;
    width: 100%;
    margin: 0;
    color: #24322c;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.gdp-consent-panel--embedded .gdp-consent-panel__inner {
    width: 100%;
    padding: 0;
}

.gdp-consent-panel--embedded .gdp-consent-panel__head {
    margin-bottom: 16px;
}

.gdp-consent-panel--embedded .gdp-consent-details {
    margin-top: 0;
}
