/* ------------------------------------------------------------------
   Cookie-Banner & Cookie-Einstellungen
   ------------------------------------------------------------------ */
.gg-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    padding: 0 1rem 1rem;
    pointer-events: none;
    font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}
.gg-consent[hidden] {
    display: none;
}
@media (min-width: 768px) {
    .gg-consent {
        inset: auto auto 1.5rem 1.5rem;
        padding: 0;
        max-width: 26rem;
    }
}

.gg-consent__box {
    pointer-events: auto;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 1.25rem;
    border: 1px solid rgba(205, 191, 174, 0.6);
    background: rgba(245, 240, 230, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 70px -30px rgba(46, 36, 28, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    padding: 1.5rem;
    color: #2E241C;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-consent.is-visible .gg-consent__box {
    opacity: 1;
    transform: none;
}
@media (min-width: 768px) {
    .gg-consent__box {
        padding: 1.75rem;
    }
    .gg-consent.is-expanded {
        max-width: 30rem;
    }
}

.gg-consent__eyebrow {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #798B4A;
}
.gg-consent__title {
    margin: 0.5rem 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 500;
    color: #2E241C;
}
.gg-consent__text {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #5B4636;
}
.gg-consent__text a {
    text-decoration: underline;
    text-decoration-color: #A4B07A;
    text-underline-offset: 3px;
}
.gg-consent__text a:hover {
    color: #798B4A;
}

/* Einstellungen */
.gg-consent__settings {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(205, 191, 174, 0.5);
}
.gg-consent__settings[hidden] {
    display: none;
}
.gg-consent__cat {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(205, 191, 174, 0.35);
}
.gg-consent__cat:last-child {
    border-bottom: 0;
}
.gg-consent__cat-text {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #5B4636;
}
.gg-consent__cat-cookies {
    margin: 0.3rem 0 0;
    font-size: 0.68rem;
    line-height: 1.5;
    color: rgba(91, 70, 54, 0.7);
}

/* Schalter */
.gg-consent__switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}
.gg-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.gg-consent__track {
    position: relative;
    flex: none;
    width: 2.5rem;
    height: 1.4rem;
    border-radius: 9999px;
    background: #CDBFAE;
    transition: background-color 0.25s;
}
.gg-consent__track::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #F5F0E6;
    box-shadow: 0 1px 2px rgba(46, 36, 28, 0.3);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-consent__switch input:checked + .gg-consent__track {
    background: #798B4A;
}
.gg-consent__switch input:checked + .gg-consent__track::after {
    transform: translateX(1.1rem);
}
.gg-consent__switch input:disabled + .gg-consent__track {
    background: #A4B07A;
    cursor: not-allowed;
}
.gg-consent__switch input:focus-visible + .gg-consent__track {
    outline: 2px solid #798B4A;
    outline-offset: 3px;
}
.gg-consent__label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2E241C;
}
.gg-consent__label small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(91, 70, 54, 0.75);
}

/* Buttons – Akzeptieren und Ablehnen gleichwertig */
.gg-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.gg-consent__btn {
    flex: 1 1 auto;
    border-radius: 9999px;
    padding: 0.85rem 1.25rem;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.gg-consent__btn[hidden] {
    display: none;
}
.gg-consent__btn--primary {
    border: 1px solid #F2C946;
    background: #F2C946;
    color: #2E241C;
}
.gg-consent__btn--primary:hover {
    border-color: #2E241C;
    background: #2E241C;
    color: #F2C946;
}
.gg-consent__btn--secondary {
    border: 1px solid #2E241C;
    background: transparent;
    color: #2E241C;
}
.gg-consent__btn--secondary:hover {
    background: #2E241C;
    color: #F5F0E6;
}
.gg-consent__link {
    flex: 1 1 100%;
    margin-top: 0.25rem;
    border: 0;
    background: none;
    padding: 0.25rem 0;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: #A4B07A;
    text-underline-offset: 4px;
    color: #5B4636;
    cursor: pointer;
}
.gg-consent__link:hover {
    color: #798B4A;
}

@media (prefers-reduced-motion: reduce) {
    .gg-consent__box,
    .gg-consent__track,
    .gg-consent__track::after {
        transition: none;
    }
}
