/* Ergänzungen zum Original-Layout (Rebuild 2026).
 * theme.css und custom.css sind die Original-Stylesheets der alten Seite. Hier steht nur, was früher
 * jQuery/UIkit/Widgetkit per JavaScript erledigt haben, sowie die neuen Platzhalter für Karte und Belegungsplan. */

/* Hintergrundbild füllt das Fenster (früher per Script gesetzt) */
html {
    background-size: cover;
}

/* Im Original war die Navigation doppelt verschachtelt (2 x margin-top: -2px) */
.tm-navbar {
    margin-top: -4px;
}

/* ------------------------------------------------------------------ Slideshow (Ferienwohnungen) */
.uk-slideshow {
    aspect-ratio: 3 / 2;
    min-height: 300px;
}

.uk-slideshow > li {
    height: 100%;
    transition: opacity .5s linear;
}

.uk-slideshow > li > img {
    visibility: visible;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uk-thumbnav > * > * > img {
    display: block;
}

/* ------------------------------------------------------------------ Slider (Unser Haus, Frühstücksraum) */
.uk-slider {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.uk-slider > * {
    position: relative;
    flex: 0 0 100%;
}

/* ------------------------------------------------------------------ Lightbox (Bildergalerie) */
.uk-modal-dialog-lightbox {
    width: auto;
    max-width: none;
    display: table;
    background: #ffffff;
}

.uk-modal-dialog-lightbox .lightbox-media img {
    display: block;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
    width: auto;
    height: auto;
}

.uk-touch .uk-modal-dialog-lightbox .uk-slidenav {
    display: block;
}

.uk-modal-dialog-lightbox .uk-modal-caption {
    bottom: auto;
    top: 100%;
    margin: 6px 0 0 0;
}

.uk-modal-dialog video {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ Tooltip */
.uk-tooltip {
    display: block;
    pointer-events: none;
}

.uk-tooltip-top:after {
    left: 50%;
    margin-left: -5px;
}

/* ------------------------------------------------------------------ Gleich hohe Kästen (früher data-uk-grid-match) */
.blog-aktivitaeten .uk-grid-match > * > .uk-article,
.blog-aktivitaeten .aktivitaeten-box {
    height: 100%;
}

.freizeit-teaser > * > .aktivitaeten-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.freizeit-teaser .aktivitaeten-height {
    flex: 1;
}

.freizeit-teaser .bild img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    margin-bottom: 5px;
}

/* ------------------------------------------------------------------ Belegungsplan (Traum-Ferienwohnungen, erst nach Klick) */
.tfw-calendar > p {
    margin-bottom: 0;
}

.tfw-calendar .belegungsplan-button {
    max-width: 420px;
}

.tfw-calendar.is-loaded {
    min-height: 200px;
}

/* ------------------------------------------------------------------ Karte (Anfahrt) */
.map-consent {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f2efe9;
}

.map-consent > img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.map-consent iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent-bar {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-consent-bar a {
    font-family: 'Montserrat', sans-serif;
    padding: 6px 14px;
    background-color: #7f192f;
    color: white;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.map-consent-bar a:hover {
    font-weight: bold;
    color: white;
}

.map-consent-bar i {
    margin-right: 5px;
}

.anfahrtsskizze {
    margin-top: 20px;
}

/* ------------------------------------------------------------------ Kontakt / Rechtliches */
.buchung-liste {
    margin-left: 20px;
}

.todo-hinweis {
    background: #ffe58a;
    padding: 0 3px;
}

/* ------------------------------------------------------------------ Barrierefreiheit */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7f192f;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        transition: none;
    }

    .uk-animation-shake,
    .uk-animation-fade {
        animation: none;
    }
}
