.youtubevideo.youtube-consent {
    isolation: isolate;
    display: grid;
}

.youtubevideo.youtube-consent > .videoWrapper,
.youtubevideo.youtube-consent > .youtubevideo-gdpr-overlay {
    grid-area: 1 / 1;
    min-width: 0;
}

.youtubevideo.youtube-consent .youtube-consent-controls {
    grid-area: 2 / 1;
    padding: .5rem 0;
    color: #202020;
}

.youtube-consent-controls .youtube-consent-revoke {
    min-height: 44px;
    padding: .5rem 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.youtubevideo.youtube-consent .youtube-consent-revoke-hint {
    margin: .5rem 0 0;
    font-size: .875rem;
    line-height: 1.6;
}

.youtube-consent-revoke-hint a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* Let the card determine the height instead of squeezing it into a video ratio. */
.youtubevideo.youtube-consent.is-consent-open > .videoWrapper {
    visibility: hidden;
    padding-bottom: 0 !important;
}

.youtubevideo.youtube-consent .youtubevideo-gdpr-overlay {
    position: relative;
    inset: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    background: #fff;
    color: #202020;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.youtubevideo.youtube-consent [hidden] {
    display: none !important;
}

.youtubevideo.youtube-consent .youtubevideo-gdpr-text {
    position: static;
    box-sizing: border-box;
    width: 100%;
    max-width: 38rem;
    padding: 0;
    transform: none;
    font-size: inherit;
}

body #inhalt .youtubevideo.youtube-consent .youtube-consent-title {
    margin: 0 0 .75rem;
    padding: 0;
    color: #202020;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.youtubevideo.youtube-consent .youtubevideo-gdpr-note {
    max-width: none;
    margin: 0 0 .75rem;
    line-height: inherit;
}

.youtubevideo.youtube-consent .youtube-consent-privacy {
    margin: 0 0 1.5rem;
}

.youtubevideo.youtube-consent .youtube-consent-privacy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.youtubevideo.youtube-consent .youtube-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.youtubevideo.youtube-consent .youtubevideo-gdpr-button {
    box-sizing: border-box;
    min-height: 48px;
    margin: 0;
    padding: .75rem 1.125rem;
    border: 1px solid #727272;
    border-radius: 6px;
    background: #fff;
    color: #202020;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.youtubevideo.youtube-consent .youtube-consent-once {
    border-color: var(--orange, #f7a600);
    background: var(--orange, #f7a600);
}

.youtubevideo.youtube-consent .youtube-consent-once:hover {
    border-color: #df9600;
    background: #df9600;
    color: #202020;
}

.youtubevideo.youtube-consent .youtube-consent-all:hover {
    background: #f0f0f0;
    color: #202020;
}

.youtubevideo.youtube-consent .youtube-consent-remember {
    margin: .875rem 0 .5rem;
    font-size: .875rem;
    line-height: 1.5;
    color: #555;
}

.youtubevideo.youtube-consent .youtubevideo-gdpr-cancel {
    position: static;
    display: inline-block;
    min-height: 44px;
    padding: .5rem 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.youtubevideo.youtube-consent :is(button, a):focus-visible {
    outline: 3px solid #202020;
    outline-offset: 4px;
}

.youtubevideo.youtube-consent .coverimage-click:focus-visible {
    outline-color: #fff;
    outline-offset: -5px;
    box-shadow: inset 0 0 0 8px #202020;
}

.youtubevideo.youtube-consent .youtube-consent-error {
    margin: .75rem 0;
    color: #9c1e1e;
}

.youtubevideo.youtube-consent.small .youtube-consent-actions {
    flex-direction: column;
}

.youtubevideo.youtube-consent.small .youtubevideo-gdpr-button {
    width: 100%;
}

body.kontrast .youtubevideo.youtube-consent .youtubevideo-gdpr-overlay {
    border: 2px solid #202020;
}

body.kontrast .youtubevideo.youtube-consent .youtube-consent-once {
    background: #202020;
    border-color: #202020;
    color: #fff;
}

#footer .youtube-settings {
    box-sizing: border-box;
    max-width: 38rem;
    margin: 0 auto 1rem;
    color: #202020;
    font-size: 1rem;
    line-height: 1.6;
}

#footer .youtube-settings > summary {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 0 auto;
    padding: .5rem 0;
    box-sizing: border-box;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

#footer .youtube-settings-content {
    padding: 1.25rem;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

#footer .youtube-settings-content p {
    margin: 0 0 .875rem;
    overflow-wrap: anywhere;
}

#footer .youtube-settings-content p:last-child {
    margin-bottom: 0;
}

#footer .youtube-settings-revoke {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    margin-bottom: .875rem;
    padding: .75rem 1.125rem;
    border: 1px solid #727272;
    border-radius: 6px;
    background: #fff;
    color: #202020;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

#footer .youtube-settings-revoke:hover {
    background: #f0f0f0;
}

#footer .youtube-settings [hidden] {
    display: none !important;
}

#footer .youtube-settings :is(summary, button, [tabindex]):focus-visible {
    outline: 3px solid #202020;
    outline-offset: 4px;
}

[data-youtube-revoke-error] {
    color: #9c1e1e;
}

body.kontrast #footer .youtube-settings-content {
    border: 2px solid #202020;
}
