/* ------------------------------------------------------------------
   Whitecliffe - cookie banner styles
   Copied from whitecliffe.de (wp-content/themes/WhitecliffeGermany/
   cookie-consent.css) so both hosts look the same. Keep in sync.
   The footer legal links at the end are local to these pages.
   ------------------------------------------------------------------ */
#whitecliffe-cookie-banner,
#whitecliffe-cookie-dialog {
    --wc-cookie-gold: #d59d10;
    --wc-cookie-gold-light: #f0c65a;
    --wc-cookie-black: #0a0a0a;
    --wc-cookie-white: #fff;
    box-sizing: border-box;
    color: var(--wc-cookie-white);
    font-family: inherit;
}

#whitecliffe-cookie-banner[hidden],
#whitecliffe-cookie-dialog[hidden],
#whitecliffe-cookie-backdrop[hidden] {
    display: none;
}

#whitecliffe-cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100002;
    width: min(460px, calc(100vw - 32px));
    padding: 28px;
    background: var(--wc-cookie-black);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .42);
}

.whitecliffe-cookie-title {
    margin: 0 0 14px;
    color: var(--wc-cookie-white);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
}

.whitecliffe-cookie-copy {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    line-height: 1.55;
}

.whitecliffe-cookie-copy a {
    color: var(--wc-cookie-gold);
    text-decoration: underline;
}

.whitecliffe-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.whitecliffe-cookie-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid rgba(240, 198, 90, .8);
    border-radius: 6px;
    background: transparent;
    color: var(--wc-cookie-white);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.whitecliffe-cookie-button:hover {
    transform: translateY(-1px);
}

.whitecliffe-cookie-settings {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.whitecliffe-cookie-button:hover,
.whitecliffe-cookie-button:focus-visible,
.whitecliffe-cookie-settings:focus-visible {
    background: var(--wc-cookie-gold);
    border-color: var(--wc-cookie-gold);
    color: var(--wc-cookie-black);
    outline: none;
}

.whitecliffe-cookie-button--primary {
    background: var(--wc-cookie-gold);
    color: var(--wc-cookie-black);
}

#whitecliffe-cookie-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, .68);
}

#whitecliffe-cookie-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100003;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 32px;
    transform: translate(-50%, -50%);
    background: var(--wc-cookie-black);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

.whitecliffe-cookie-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.whitecliffe-cookie-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: var(--wc-cookie-white);
    font-size: 1.3rem;
    cursor: pointer;
}

.whitecliffe-cookie-close:hover,
.whitecliffe-cookie-close:focus-visible {
    border-color: var(--wc-cookie-gold);
    color: var(--wc-cookie-gold);
}

.whitecliffe-cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.whitecliffe-cookie-option strong {
    display: block;
    margin-bottom: 6px;
}

.whitecliffe-cookie-option span {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    line-height: 1.45;
}

.whitecliffe-cookie-switch {
    position: relative;
    width: 48px;
    height: 28px;
    margin-top: 3px;
}

.whitecliffe-cookie-switch input {
    width: 1px;
    height: 1px;
    opacity: 0;
}

.whitecliffe-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #666;
    cursor: pointer;
}

.whitecliffe-cookie-switch span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: '';
    transition: transform .2s ease;
}

.whitecliffe-cookie-switch input:checked + span {
    background: var(--wc-cookie-gold);
}

.whitecliffe-cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.whitecliffe-cookie-switch input:focus-visible + span {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whitecliffe-cookie-lock {
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Provider details inside the preferences dialog. Local to these
   pages (not in whitecliffe.de's cookie-consent.css).
   ------------------------------------------------------------------ */
/* YouTube notice, shown before a video loads (wc-consent.js). */
#whitecliffe-video-notice {
    --wc-cookie-gold: #d59d10;
    --wc-cookie-gold-light: #f0c65a;
    --wc-cookie-black: #0a0a0a;
    --wc-cookie-white: #fff;
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100003;
    width: min(460px, calc(100vw - 32px));
    padding: 28px;
    transform: translate(-50%, -50%);
    background: var(--wc-cookie-black);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
    color: var(--wc-cookie-white);
    font-family: inherit;
}

#whitecliffe-video-notice[hidden] {
    display: none;
}

@media (max-width: 600px) {
    #whitecliffe-video-notice {
        top: auto;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 22px 20px 20px;
        transform: translateX(-50%);
    }

    #whitecliffe-video-notice .whitecliffe-cookie-button {
        grid-column: auto;
    }
}

/* Wider than whitecliffe.de's 560px so the cookie tables fit. */
@media (min-width: 601px) {
    #whitecliffe-cookie-dialog {
        width: min(660px, calc(100vw - 32px));
    }
}

.whitecliffe-cookie-option--info {
    grid-template-columns: 1fr;
}

.whitecliffe-cookie-vendors {
    grid-column: 1 / -1;
    min-width: 0;
}

.whitecliffe-cookie-vendors summary,
.whitecliffe-cookie-vendor summary {
    cursor: pointer;
    list-style: none;
}

.whitecliffe-cookie-vendors summary::-webkit-details-marker,
.whitecliffe-cookie-vendor summary::-webkit-details-marker {
    display: none;
}

.whitecliffe-cookie-vendors > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wc-cookie-gold-light);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.whitecliffe-cookie-vendors > summary::after,
.whitecliffe-cookie-vendor > summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.whitecliffe-cookie-vendors[open] > summary::after,
.whitecliffe-cookie-vendor[open] > summary::after {
    transform: translateY(2px) rotate(225deg);
}

.whitecliffe-cookie-vendors > summary:focus-visible,
.whitecliffe-cookie-vendor > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whitecliffe-cookie-vendor {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
}

.whitecliffe-cookie-vendor > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    color: var(--wc-cookie-white);
    font-size: .88rem;
    font-weight: 700;
}

.whitecliffe-cookie-vendor > summary:hover {
    color: var(--wc-cookie-gold-light);
}

.whitecliffe-cookie-vendor dl {
    margin: 0;
    padding: 2px 14px 14px;
    font-size: .8rem;
    line-height: 1.5;
}

.whitecliffe-cookie-vendor dt {
    margin-top: 10px;
    color: var(--wc-cookie-white);
    font-weight: 700;
}

.whitecliffe-cookie-vendor dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .72);
    overflow-wrap: anywhere;
}

.whitecliffe-cookie-vendor dd p {
    margin: 6px 0 0;
}

.whitecliffe-cookie-vendor a {
    color: var(--wc-cookie-gold);
    text-decoration: underline;
}

.whitecliffe-cookie-table {
    width: 100%;
    margin-top: 4px;
    border-collapse: collapse;
    font-size: .76rem;
}

.whitecliffe-cookie-table th,
.whitecliffe-cookie-table td {
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    text-align: left;
    vertical-align: top;
}

.whitecliffe-cookie-table th {
    color: rgba(255, 255, 255, .55);
    font-weight: 700;
    white-space: nowrap;
}

.whitecliffe-cookie-table td:nth-child(2) {
    white-space: nowrap;
}

.whitecliffe-cookie-table code {
    color: var(--wc-cookie-white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95em;
    white-space: nowrap;
}

@media (max-width: 600px) {
    /* Each cookie becomes a small card: name, then lifetime and description. */
    .whitecliffe-cookie-table thead {
        display: none;
    }

    .whitecliffe-cookie-table,
    .whitecliffe-cookie-table tbody,
    .whitecliffe-cookie-table tr,
    .whitecliffe-cookie-table td {
        display: block;
    }

    .whitecliffe-cookie-table tr {
        padding: 6px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .whitecliffe-cookie-table td {
        padding: 1px 0;
        border: 0;
        white-space: normal;
    }

    .whitecliffe-cookie-table td:nth-child(2)::before {
        content: attr(data-label) ': ';
        color: rgba(255, 255, 255, .55);
    }
}

@media (max-width: 600px) {
    #whitecliffe-cookie-banner {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 22px 20px 20px;
        border-radius: 14px;
    }

    #whitecliffe-cookie-dialog {
        top: auto;
        bottom: 0;
        left: 50%;
        width: calc(100vw - 16px);
        max-height: 90vh;
        padding: 24px 20px 28px;
        transform: translateX(-50%);
        border-radius: 14px 14px 0 0;
    }

    .whitecliffe-cookie-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
        min-width: 0;
    }

    .whitecliffe-cookie-actions .whitecliffe-cookie-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #whitecliffe-cookie-banner .whitecliffe-cookie-button--primary,
    #whitecliffe-cookie-banner .whitecliffe-cookie-button:last-child,
    #whitecliffe-cookie-dialog .whitecliffe-cookie-button--primary,
    #whitecliffe-cookie-dialog .whitecliffe-cookie-button:last-child {
        grid-column: 1 / -1;
    }

    .whitecliffe-cookie-option {
        gap: 12px;
        padding: 16px 0;
    }

    .whitecliffe-cookie-option span {
        font-size: .85rem;
    }
}

/* Footer legal links (Imprint / Privacy / Cookie settings) */
.wc-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-legal-links a,
.wc-legal-links button {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.wc-legal-links a:hover,
.wc-legal-links a:focus-visible,
.wc-legal-links button:hover,
.wc-legal-links button:focus-visible {
    color: #d59d10;
}
