/* Cookieman-Theme "kronberg" – Optik wie das frühere sg_cookie_optin-Banner, Farben wie static/src/srccss/default.scss */
.cookieman {
    --cookieman-highlight: #7b1b38;
    --cookieman-bg-light: #ab9e74;
    --cookieman-text: #373737;

    width: calc(100vw - 2rem);
    max-width: 500px;
    max-height: 95vh;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: var(--cookieman-text);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    overflow: auto;
}

.cookieman::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.cookieman__inner {
    padding: 10px 20px 20px;
}

.cookieman .cookieman__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    color: var(--cookieman-text);
}

.cookieman__intro {
    margin: 0 0 16px;
}

.cookieman a {
    color: inherit;
    text-decoration: none;
}

.cookieman a:hover,
.cookieman a:focus-visible {
    text-decoration: underline;
}

/* Kategorien in einer Zeile (globale form/label-Styles der Site neutralisieren) */
.cookieman form {
    margin: 0;
    padding: 0;
}

.cookieman .cookieman__choice {
    font-size: 14px;
    font-style: normal;
}

.cookieman__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 16px;
}

.cookieman__choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cookieman__choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--cookieman-highlight);
    cursor: pointer;
}

.cookieman__choice input:disabled {
    cursor: default;
}

/* Buttons untereinander, volle Breite */
.cookieman__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookieman .cookieman__button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 3px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

.cookieman .cookieman__button--primary,
.cookieman .cookieman__button--primary:hover {
    background-color: var(--cookieman-highlight);
}

.cookieman .cookieman__button--secondary,
.cookieman .cookieman__button--secondary:hover {
    background-color: var(--cookieman-bg-light);
}

.cookieman .cookieman__button--tertiary,
.cookieman .cookieman__button--tertiary:hover {
    border: 1px solid var(--cookieman-bg-light);
    background-color: #fff;
    color: var(--cookieman-text);
}

.cookieman__button:focus-visible {
    outline: 2px solid var(--cookieman-text);
    outline-offset: 2px;
}

/* Weitere Informationen */
.cookieman__info {
    margin-top: 10px;
}

.cookieman__info > summary {
    display: block;
    padding: 4px 0;
    text-align: center;
    cursor: pointer;
}

.cookieman__info > summary::-webkit-details-marker {
    display: none;
}

.cookieman__info > summary:hover {
    text-decoration: underline;
}

.cookieman__group {
    margin-top: 12px;
}

.cookieman .cookieman__group-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    color: var(--cookieman-text);
}

.cookieman__group p {
    margin: 0 0 8px;
}

.cookieman__table {
    overflow-x: auto;
}

.cookieman__table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.cookieman__table th,
.cookieman__table td {
    padding: 3px 6px 3px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.cookieman__footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--cookieman-text);
    text-align: right;
}

/* Platzhalter für externe Inhalte (EXT:cookie_consent, data-cookieman-gate) */
.cookieman-gate-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 16rem;
    height: 100%;
    padding: 2rem;
    background: #fff;
    color: #3d3d3d;
    text-align: center;
}

.cookieman-gate-placeholder p {
    max-width: 32rem;
    margin: 0;
}

.cookieman-gate-placeholder button {
    padding: 0.5rem 2.5rem;
    border: 0;
    border-radius: 1.5rem;
    background-color: #7b1b38;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
