/* Eingebettete Inhalte ohne Datenübertragung vor dem Klick:
   YouTube (templates/_youtube.html.twig) und Kartenbild auf der Kontaktseite */

.YouTubeConsent {
    position: relative;
    width: 100%;
    margin: 0 auto 1.25rem;
    background: #990033;
    border-radius: 3px;
    overflow: hidden;
    color: #fff;
}

/* Seitenverhältnis fest, damit der Platz schon vor dem Laden stimmt */
.YouTubeConsent--quer {
    max-width: 50rem;
    aspect-ratio: 16 / 9;
}

.YouTubeConsent--hoch {
    max-width: 315px;
    aspect-ratio: 9 / 16;
}

.YouTubeConsent__inner,
.YouTubeConsent__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.YouTubeConsent__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #990033 0%, #6d0024 100%);
}

.YouTubeConsent__play {
    width: 76px;
    height: 54px;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.YouTubeConsent__play svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    opacity: 0.92;
}

.YouTubeConsent__play svg path + path {
    fill: #990033;
}

.YouTubeConsent__play:hover,
.YouTubeConsent__play:focus {
    transform: scale(1.08);
    background: none;
}

.YouTubeConsent__play:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.YouTubeConsent__title {
    margin: 0 0 0.5rem;
    font-weight: bold;
    font-size: 1.05rem;
    color: #fff;
}

.YouTubeConsent__text {
    max-width: 30rem;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.YouTubeConsent__text a {
    color: #fff;
    text-decoration: underline;
}

.YouTubeConsent.is-playing {
    background: #000;
}

/* Kartenbild auf der Kontaktseite */

.ContactMap {
    display: inline-block;
    max-width: 100%;
}

.ContactMap img {
    display: block;
    width: 640px;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}
