/*
 * Der Umschlag der Startseiten-Animation.
 *
 * overflow-x: clip haelt die Folien drin. Beim Wechsel schiebt
 * InitTeaserAnimation.js die gehende Folie auf translateX(-100%) und die
 * kommende auf +100% -- fuer die Dauer der Bewegung steht also eine ganze
 * Bildschirmbreite neben der Seite. Die Folien sind absolut positioniert und
 * haengen an diesem Umschlag (position: relative), von ihm aber bis zum
 * 2026-09-26 nicht beschnitten worden: sie reichten bis an den Rand des
 * Dokuments, und der Browser zeigte fuer die Dauer der Bewegung einen
 * waagerechten Rollbalken. Vom Auftraggeber gemeldet ("manchmal, temporaer"),
 * nachgemessen ueber documentElement.scrollWidth: bis zu einer vollen
 * Fensterbreite Ueberhang, in jeder Breite.
 *
 * **clip und nicht hidden:** hidden auf einer Achse zwingt die andere auf auto
 * und macht aus dem Umschlag einen Rollbereich -- das Glas neben der Flasche
 * steht bewusst ein Stueck unter seinem Kasten (bottom: -2%) und waere dann
 * abgeschnitten oder haette einen senkrechten Rollbalken erzeugt. clip
 * beschneidet nur waagerecht und erzeugt keinen Rollbereich.
 *
 * Der News-Schieber darunter hat dasselbe Verhalten, aber nicht dasselbe
 * Problem: .news-latest-view ist position: relative *und* overflow: hidden,
 * seine Folien sind also schon beschnitten.
 */
.teaser-animation .teaser-items {
    position: relative;
    z-index: 10;
    overflow-x: clip;
}

.teaser-animation .teaser-items .teaser-item {
    width: 100%;
    display:none;

}

.teaser-animation .teaser-items .teaser-item:first-child {
    display: block;
}

.teaser-animation .teaser-item .teaser-item-content {
    position: relative;
    max-width: 1200px;
    margin:0 auto;
}

.teaser-animation .teaser-item .teaser-item-bg,
.pagerBackgrounds .teaser-item-bg {
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:100%;
    display:block;
    z-index: 0;
}

.pagerBackgrounds .teaser-item-bg .teaser-item-bg-inner {
    display:none;
}

.teaser-animation .teaser-item .teaser-item-text,
.teaser-animation .teaser-item .teaser-item-link,
.teaser-animation .teaser-item .teaser-item-bottle {
    display:none;
}

.teaser-animation .teaser-item .teaser-item-bottle {
    height:0;
    width:0;
    overflow:hidden;
}

.big-headline {
    margin:60px 20px;
}

.big-headline h1,
.big-headline h2 {
    margin:6px 0;
    text-align: center;
}

.teaser-cycles {
    background:#212121;
    color:#ffffff;
    position: relative;
    z-index: 20;
}

.teaser-cycles-inner {
    max-width:1200px;
    margin:0 auto;
    padding:15px;
}

.teaser-cycles a {
    color:#ffffff;
    text-decoration:none;
    display: block;
}

.teaser-cycles .cycle-wrap .cycle-border {
    display:block;
    border:2px solid white;
    margin:10px 0;
    padding:10px;
}

.teaser-cycles .inline-block {
    display: block;
}

.teaser-cycles .icon {
    font-size: 40px;
    position:absolute;
    padding:3px 0 0 0;
    display: block;
    width: 70px;
    text-align: center;
}

.teaser-cycles .cycle-text {
    text-align: center;
    font-family: 'Black Jack';
    font-size: 26px;
    line-height: 1em;
    display: block;
    padding:15px 80px 5px 80px;
    white-space: nowrap;
}

.teaser-cycles a:hover .cycle-text,
.teaser-cycles a:hover .icon {
    color:#cc2650;
}

.teaser-cycles a:hover .cycle-wrap .cycle-border {
    border-color: #cc2650;
}

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {

}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
    .pagerBackgrounds .teaser-item-bg .teaser-item-bg-inner {
        position:absolute;
        left:0;
        bottom:0;
        width:100%;
        height:12%;
        background: black;
        display:block;
        z-index: 0;
    }

    .teaser-animation .teaser-item .teaser-item-bottle {
        position:absolute;
        top:3%;
        right:5%;
        height:89%;
        width: 10%;
        display:block;
        overflow: visible;
    }

    .teaser-animation .teaser-item .teaser-item-bottle img {
        position:absolute;
        height:100%;
        width:auto;
        left:0;
        bottom:0;
    }

    .teaser-animation .teaser-item .teaser-item-bottle .teaser-item-glass {
        position:absolute;
        bottom:-2%;
        left:-90%;
        height:65%;
        width: 100%;
        display:block;
    }

    .teaser-animation .teaser-item .teaser-item-text {
        display:block;
        position:absolute;
        top:8%;
        left:5%;
        width:60%;
        color:white;
    }

    .teaser-animation .teaser-item .teaser-item-text h1,
    .teaser-animation .teaser-item .teaser-item-text h2,
    .teaser-animation .teaser-item .teaser-item-text p {
        text-align: center;
        text-shadow: 1px 1px 3px #000000;
    }

    .teaser-animation .teaser-item .teaser-item-text div.special {
        margin: 30px 0 0;
        font-size:100px;
        line-height:0;
        position: relative;
        top:25px;
        font-family: 'Black Jack';
        text-align: center;
    }

    .teaser-animation .teaser-item .teaser-item-text p {
        margin:15px 0;
        line-height: 1.8em;
        font-size:16px;
        font-family: 'Laila Bold';
    }

    .teaser-animation .teaser-item .teaser-item-text p.special {
        font-size:35px;
        font-family: 'Black Jack';
    }

    .teaser-animation .teaser-item .teaser-item-text div.special,
    .teaser-animation .teaser-item .teaser-item-text p.special {
        color:#cc2751;
        text-shadow: 1px 1px 3px #ffffff;
    }

    .teaser-animation .teaser-item .teaser-item-link {
        display:block;
    }

    .teaser-animation .teaser-item .teaser-item-link p {
        position:absolute;
        margin:0;
        bottom:0;
        left:0;
        height:18%;
    }

    .teaser-animation .teaser-item .teaser-item-link p:before {
        content:" ";
        display:inline-block;
        height:100%;
        vertical-align:middle;
    }

    .teaser-animation .teaser-item .teaser-item-link p a {
        margin-left: 30px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    .teaser-animation .teaser-item .teaser-item-text div.special {
        font-size: 200px;
        line-height: 50px;
        top: 85px;
        margin: 0;
    }

    .teaser-animation .teaser-item .teaser-item-text p {
        margin:30px 0;
    }

    .teaser-animation .teaser-item .teaser-item-text p span {
        font-size:22px;
    }

    .teaser-animation .teaser-item .teaser-item-text p.special {
        font-size:70px;
    }

    .teaser-cycles {
        padding:15px 0;
    }

    .teaser-cycles-inner {
        padding:0 50px;
        max-width:1200px;
        margin:0 auto;
    }

    .teaser-cycles .inline-block {
        display: inline-block;
    }

    .teaser-cycles .cycle-wrap .cycle-border:before {
        content:" ";
        display:inline-block;
        height:100%;
        vertical-align:middle;
    }

    .teaser-cycles .cycle-wrap .cycle-border span.inline-block {
        vertical-align:middle;
    }

    .teaser-cycles a {
        min-height:221px;
    }

    .teaser-cycles .cycle-wrap {
        text-align: center;
        vertical-align: middle;
        display:block;
    }

    .teaser-cycles .cycle-wrap .cycle-border {
        vertical-align: middle;
        display:inline-block;
        width:200px;
        height:200px;
        border-radius: 50%;
        -webkit-transition: ease all .4s;
        transition: ease all .4s;
    }

    .teaser-cycles a:hover .cycle-wrap .cycle-border {
        width:220px;
        height:220px;
        margin:0;
    }

    .teaser-cycles .icon {
        font-size: 90px;
        position: static;
        padding:0;
        width:auto;
    }

    .teaser-cycles .cycle-text {
        font-size: 26px;
        margin-top:15px;
        padding: 0;
    }

    .teaser-cycles a:hover .cycle-text,
    .teaser-cycles a:hover .icon {
        color:white;
    }

    .teaser-cycles a:hover .cycle-wrap .cycle-border {
        border-color: white;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

    .teaser-animation .teaser-item .teaser-item-link p {
        height:17%;
    }

}
/*
 * Nebeneinanderstehende Bilder: der frame-Umschlag darf den Fluss nicht brechen.
 *
 * Das Inhaltselement ResponsiveImage hat ein Feld "inlineblock". Ist es
 * gesetzt, schreibt die Vorlage display:inline-block an die .responsive-image,
 * und mehrere Elemente stehen nebeneinander, solange sie in die Spalte passen.
 * So entstand auf /wirtschaft und /uebernachten das 2x2-Gitter aus vier
 * Bildern.
 *
 * Seit TYPO3 8 legt der Kern um jedes Inhaltselement ein <div class="frame">.
 * Das ist ein Block - er beendet die Zeile, und die vier Bilder standen
 * untereinander. Vom Auftraggeber gemeldet am 2026-09-25.
 *
 * display:contents statt inline-block: der Umschlag erzeugt dann gar keinen
 * Kasten mehr, und die .responsive-image haengt unmittelbar in der Spalte -
 * genau die Verschachtelung, die 7.6 hatte. Ein inline-block genuegt nicht:
 * seine Breite bemisst sich am natuerlichen Bildmass, nicht an den 49 %, die
 * als max-width am Kind stehen. Nachgemessen: der Umschlag blieb 555 px breit
 * und fuellte die Zeile weiter allein.
 *
 * Die Regel greift ueber :has() nur dort, wo der Redakteur das Feld auch
 * gesetzt hat. Ein Bild ohne den Haken behaelt seinen Block-Umschlag; so
 * entscheidet weiter der Datensatz und nicht das Stylesheet.
 *
 * Gemessen am 2026-09-25 gegen die laufende 7.6-Installation, /wirtschaft bei
 * 1400 px: dort die vier Bilder bei (130|972), (407|972), (130|1161),
 * (407|1161); hier vorher alle vier bei l=130 untereinander.
 */
.frame-type-isele_responsiveimage:has(> .responsive-image[style*="inline-block"]) {
    display: contents;
}

/* ── Video hinter der Einwilligung ────────────────────────────────────────
   Angelegt am 2026-09-26 mit dem Inhaltselement ecki_video. Der Rahmen laedt
   erst nach Zustimmung zur Kategorie "external_media"; bis dahin steht hier
   ein Feld in derselben Groesse, damit die Seite beim Nachladen nicht springt.
   Gestaltung bewusst gleich der Kartensperre in packages/osmmap. */
.video-container--blocked iframe {
    display: none;
}

.video-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: #f2efe9;
    border: 1px solid #d8d2c6;
}

@media (max-width: 991px) {
    .video-consent {
        padding: 16px;
        gap: 8px;
    }
}

.video-consent__text {
    margin: 0;
    max-width: 52ch;
}

.video-consent__button {
    border: 0;
    border-radius: 4px;
    padding: 10px 22px;
    background: #cc2650;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.video-consent__button:hover,
.video-consent__button:focus-visible {
    background: #a81f42;
}

.video-consent__hint {
    margin: 0;
}

.video-consent__link {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}
