/* Riedmair Wechsel-Raster: Bild + Textbox, abwechselnd, alle Zeilen gleich hoch */
.rewr-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rewr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Bildseite abwechselnd */
.rewr-row--image-right .rewr-media { order: 2; }
.rewr-row--image-right .rewr-box   { order: 1; }

.rewr-media {
    position: relative;
    overflow: hidden;
    min-height: 416px;
    background: #eee;
}

.rewr-media .rewr-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

.rewr-box {
    display: flex;
    align-items: center;
    min-height: 416px;
    padding: 40px 48px;
    box-sizing: border-box;
    text-align: left;
}

.rewr-inner {
    width: 100%;
}

.rewr-eyebrow {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #BD985E;
    margin: 0 0 14px;
}

.rewr-title {
    font-family: Roboto, sans-serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.1;
    color: #5C462B;
    margin: 0 0 22px;
    padding: 0;
}

.rewr-text,
.rewr-text p {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #5C462B;
}

.rewr-text > :last-child { margin-bottom: 0; }
.rewr-text { margin: 0 0 26px; }

.rewr-btn-wrap { margin: 0; }

.rewr-btn {
    display: inline-block;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    padding: 14px 20px;
    border: 1px solid #5C462B;
    border-radius: 3px;
    background: #5C462B;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.rewr-btn:hover,
.rewr-btn:focus {
    background: #fff;
    color: #5C462B;
    text-decoration: none;
}

/* Tablet: etwas kompakter */
@media (max-width: 1024px) {
    .rewr-box { padding: 28px 32px; }
    .rewr-title { font-size: 30px; }
}

/* Handy: untereinander (Bild oben, dann Text) */
@media (max-width: 767px) {
    .rewr-row { grid-template-columns: 1fr; }
    .rewr-box { min-height: 0; padding: 28px 24px; }
    .rewr-title { font-size: 26px; }

    .rewr-mobile-image-first .rewr-row--image-right .rewr-media { order: 1; }
    .rewr-mobile-image-first .rewr-row--image-right .rewr-box   { order: 2; }
}

/* Schneeflocken-Overlay (pro Bild aktivierbar) */
.rewr-snow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.rewr-snow i {
    position: absolute;
    top: -5%;
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, .95), 0 0 3px rgba(0, 0, 0, .28);
    will-change: top, transform;
    animation:
        rewr-snow-fall var(--rewr-d, 10s) linear var(--rewr-dl, 0s) infinite,
        rewr-snow-sway calc(var(--rewr-d, 10s) / 3) ease-in-out var(--rewr-dl, 0s) infinite alternate;
}

@keyframes rewr-snow-fall {
    from { top: -5%; }
    to   { top: 105%; }
}

@keyframes rewr-snow-sway {
    from { transform: translateX(calc(var(--rewr-sw, 15px) * -1)); }
    to   { transform: translateX(var(--rewr-sw, 15px)); }
}

@media (prefers-reduced-motion: reduce) {
    .rewr-snow { display: none; }
}
