/* ==========================================================================
   Landingpage "Ferdinandeum baut um" (Relaunch Nov. 2026)
   Layout: Angi Reisinger Studio (Adobe XD, Artboard 1920 px).
   Alle Desktop-Maße sind in --u angegeben. Ab 992px ist 1u = Inhaltsbreite des Theme-Containers / 1316
   (Artboard-Inhalt 1316 px, Ränder je 302 px), damit der Inhalt bündig mit Header-Logo und Breadcrumbs der
   übrigen Seiten liegt; darunter 1u = Sektionsbreite / 1920. Werte setzt das JS, Fallback per Media-Queries.
   ========================================================================== */

/*
Font: 		NewPhase
Style: 		Regular
URL: 		https://youworkforthem.com/font/T35865/new-phase
Foundry: 	Softulka
Foundry: 	https://youworkforthem.com/designer/1014/softulka
Copyright:
Version: 	18
Created:	September 02, 2026
License: 	https://www.youworkforthem.com/font-license
License: 	The WebFont(s) listed in this document must follow the YouWorkForThem
			WebFont license rules. All other parties are strictly restricted
			from using the WebFonts(s) listed without a purchased license.
			All details above must always remain unaltered and visible in your CSS.
*/
@font-face {
    font-family: 'NewPhaseRegular';
    src: url('../fonts/newphase/new-phase-regular.woff2') format('woff2'),
         url('../fonts/newphase/new-phase-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.tlf {
    /* Raster folgt dem Bootstrap-Container des Themes (Header-Logo, Breadcrumbs):
       --tlf-edge = linke Inhaltskante, --tlf-cw = Inhaltsbreite, --u = --tlf-cw / 1316 (Artboard-Inhalt).
       Unter 992px wie bisher --u = Breite / 1920. Das JS misst die echten Werte am .container nach. */
    --tlf-cmax: 100vw;
    --tlf-edge: 15px;
    --tlf-cw: calc(100vw - 30px);
    --u: calc(100vw / 1920);
    --tlf-green: #41B76F;
    --tlf-pink: #E4B9D8;
    --tlf-yellow: #F5E76D;
    --tlf-blue: #478CC5;
    --tlf-grey: #EFEFEF;
    --tlf-display: 'NewPhaseRegular', 'Times New Roman', serif;
    --tlf-text: 'HK Grotesk', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    width: 100%;
    margin: 0;
    color: #000;
    font-family: var(--tlf-text);
    /* kein overflow-x: clip hier: Safari beschneidet damit auch vertikal (Grundriss, Quadrate-Bänder ragen
       in die Nachbarsektion); seitlich überstehende Teile werden stattdessen am Element selbst beschnitten */
    overflow: visible;
}
.tlf *, .tlf *::before, .tlf *::after { box-sizing: border-box; }
.tlf svg { display: block; }
.tlf img { display: block; max-width: 100%; }
.tlf a { color: inherit; }

@media (min-width: 992px)  { .tlf { --tlf-cmax: 960px; } }
@media (min-width: 1200px) { .tlf { --tlf-cmax: 1140px; } }
@media (min-width: 1440px) { .tlf { --tlf-cmax: 1378px; } }
@media (min-width: 992px) {
    .tlf {
        --tlf-edge: calc((100vw - var(--tlf-cmax)) / 2 + 15px);
        --tlf-cw: calc(var(--tlf-cmax) - 30px);
        --u: calc(var(--tlf-cw) / 1316);
    }
}

.tlf-container {
    position: relative;
    width: var(--tlf-cw);
    margin-left: var(--tlf-edge);
}

/* ---- Typografie ------------------------------------------------------- */
/* white-space pre-line: Zeilenumbrüche aus dem Textfeld gelten so auch während des Inline-Editings im Elementor */
.tlf .tlf-display, .tlf h1.tlf-display, .tlf h2.tlf-display {
    white-space: pre-line;
    font-family: var(--tlf-display) !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0 !important;
    margin: 0;
    color: #000;
}
.tlf .tlf-display--xl { font-size: calc(84 * var(--u)) !important; line-height: 1 !important; }
.tlf .tlf-display--m  { font-size: calc(43 * var(--u)) !important; line-height: 1 !important; }

.tlf .tlf-label, .tlf h2.tlf-label {
    font-family: var(--tlf-text) !important;
    font-weight: 600 !important;
    font-size: max(10px, calc(12 * var(--u))) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    margin: 0;
    color: #000;
}

.tlf-link {
    display: inline-block;
    font-family: var(--tlf-text);
    font-weight: 500;
    font-size: calc(23 * var(--u));
    line-height: calc(30 * var(--u));
    letter-spacing: 0.025em;
    color: #000;
    text-decoration: none;
    /* Die Unterstreichung des Themes (roter Verlauf als Hintergrundbild) wird nur schwarz gefärbt */
    background-image: linear-gradient(#000, #000) !important;
    transition: opacity .25s ease;
}
.tlf-link:hover { opacity: .6; color: #000; text-decoration: none; }

/* ---- Hero ------------------------------------------------------------- */
.tlf-hero { overflow: hidden; --hs: 1; --hb: 1; }   /* --hb: Balkenhöhe, --hs: Schriftzug-Skalierung */
.tlf-hero__green {
    position: relative;
    height: calc(333 * var(--u) * var(--hb));
    background: var(--tlf-green);
}
.tlf-hero__crumb {
    position: absolute;
    top: calc(12 * var(--u));
    left: var(--tlf-edge);
    width: auto;
    margin: 0;
    font-size: max(10px, calc(11 * var(--u)));
    letter-spacing: .05em;
    z-index: 2;
}
.tlf-hero__crumb a { text-decoration: none; }
.tlf-hero__title {
    position: absolute;
    top: calc(100 * var(--u) * var(--hb));
    left: 50%;
    width: calc(918 * var(--u) * var(--hs));
    margin: 0;
    transform: translateX(-50%);
    line-height: 0;
}
.tlf-hero__title svg, .tlf-hero__iwillbe svg, .tlf-hero__stamp svg { width: 100%; height: auto; }
.tlf-hero__title.tlf-reveal, .tlf-hero__title.tlf-reveal.is-in { transform: translateX(-50%); opacity: 1; }
.tlf-hero__iwillbe.tlf-reveal, .tlf-hero__iwillbe.tlf-reveal.is-in { transform: none; opacity: 1; }
/* Schriftzüge: die senkrechten Balken ziehen sich von links nach rechts gestaffelt auf,
   abwechselnd von unten und von oben (Reihenfolge --i je Balken, vom Build vergeben) */
.tlf-bar {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transform: scaleY(0);
    transition: transform .6s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 1.5ms);   /* expo out */
}
.tlf-hero__iwillbe .tlf-bar { transform-origin: 50% 0; transition-delay: calc(var(--i) * 1.5ms); }
.is-in .tlf-bar { transform: scaleY(1); }
.elementor-editor-active .tlf-bar, .tlf-static .tlf-bar { transform: scaleY(1); transition: none; }

.tlf-hero__pink {
    position: relative;
    height: calc(287 * var(--u) * var(--hb));
    background: var(--tlf-pink);
}
.tlf-hero__iwillbe {
    position: absolute;
    top: calc(13 * var(--u) * var(--hb));
    left: calc(50% - 383 * var(--u) * var(--hs));
    width: calc(728 * var(--u) * var(--hs));
    line-height: 0;
}
.tlf-hero__stamp {
    position: absolute;
    top: calc(-12 * var(--u) * var(--hb));
    left: calc(50% + 365 * var(--u) * var(--hs));
    width: calc(161 * var(--u) * var(--hs));
    line-height: 0;
    z-index: 2;
}
.tlf-hero__stamp .tlf-stamp__digits, .tlf-hero__stamp .tlf-stamp__ring { display: block; }
.tlf-hero__stamp .tlf-stamp__ring { position: absolute; inset: 0; }
.tlf-hero__stamp svg { width: 100%; height: auto; }

/* ---- Hero-Intro: Balken fahren in voller Höhe ein, Wörter schreiben sich, Stempel, dann Schrumpfen ---- */
.tlf-hero.is-intro .tlf-hero__green { transform: translateX(-102%); }
.tlf-hero.is-intro .tlf-hero__pink { transform: translateX(102%); }
.tlf-hero.is-intro.is-slide .tlf-hero__green,
.tlf-hero.is-intro.is-slide .tlf-hero__pink { transform: translateX(0); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.tlf-hero.is-intro.is-slide .tlf-hero__pink { transition-delay: .1s; }
.tlf-hero.is-intro .tlf-hero__title, .tlf-hero.is-intro .tlf-hero__iwillbe { opacity: 1; }
/* Breadcrumb schiebt sich schon während des Schrumpfens von unten herauf */
/* gleiche Dauer und Easing wie das Schrumpfen der Balken (1.3 s, expo in-out) */
/* Die Transition gilt nur beim Heraufschieben; beim Start wird die Breadcrumb sofort versteckt,
   sonst sieht man sie mit dem grünen Balken hereinfahren und ausblenden. */
.tlf-hero.is-intro .tlf-hero__crumb { opacity: 0; transform: translateY(18px); transition: none; }
.tlf-hero.is-intro.is-settling .tlf-hero__crumb { opacity: 1; transform: none; transition: opacity 1.3s cubic-bezier(.87, 0, .13, 1), transform 1.3s cubic-bezier(.87, 0, .13, 1); }
.tlf-hero.is-intro .tlf-hero__stamp { opacity: 1; transform: none; transition: none; }
/* Ziffern 2-0-2-9 erscheinen nacheinander (transition-delay je Ziffer setzt das JS) */
.tlf-hero.is-intro .tlf-stamp__d { opacity: 0; transform: scale(.8); transform-box: fill-box; transform-origin: center; transition: opacity .3s cubic-bezier(.16, 1, .3, 1), transform .4s cubic-bezier(.16, 1, .3, 1); }
.tlf-hero.is-intro.is-stamp .tlf-stamp__d { opacity: 1; transform: none; }
.tlf-hero.is-intro .tlf-stamp__ring { opacity: 0; }
.tlf-hero.is-intro.is-stamp .tlf-stamp__ring { opacity: 1; }
/* Schrumpfen auf die Layouthöhe: --hs und --hb werden per Skript in jedem Frame gemeinsam gesetzt */
.tlf-hero.is-settling .tlf-hero__title, .tlf-hero.is-settling .tlf-hero__iwillbe, .tlf-hero.is-settling .tlf-hero__stamp { transition: none; }
.tlf-hero__photo {
    position: relative;
    height: calc(700 * var(--u));
    background: var(--tlf-grey);
}
.tlf-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Bildnachweis: Info-Icon des Themes (.info-tooltip, Hover zeigt "© …") rechts unten im Hero-Foto, im Foto neben
   dem Akkordeon und in der Ticker-Slideshow (dort wechselt der Text mit dem Bild, JS) */
html.stfmkrs-framework .tlf-hero__photo .info-tooltip, html.stfmkrs-framework .tlf-ticker .info-tooltip { right: calc(40 * var(--u)); bottom: calc(24 * var(--u)); }
.tlf-hero.is-intro .tlf-hero__photo img { transform: scale(1.08); }
.tlf-hero.is-settling .tlf-hero__photo img, .tlf-hero.is-done .tlf-hero__photo img { transform: none; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .2s; }
.tlf-hero.is-intro .tlf-tiles { transform: translateY(100%); opacity: 0; }
.tlf-hero.is-settling .tlf-tiles, .tlf-hero.is-done .tlf-tiles { transform: none; opacity: 1; transition: transform 1s cubic-bezier(.16, 1, .3, 1) .5s, opacity .6s ease .5s; }

/* Laufband */
.tlf-tiles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(152 * var(--u));
    overflow: hidden;
    z-index: 3;
}
.tlf-tiles__track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: tlf-marquee 70s linear infinite;
}
.tlf-tiles:hover .tlf-tiles__track { animation-play-state: paused; }
.tlf-tile {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #000;
}
.tlf-tile--green  { background: var(--tlf-green); }
.tlf-tile--blue   { background: var(--tlf-blue); }
.tlf-tile--yellow { background: var(--tlf-yellow); }
.tlf-tile--pink   { background: var(--tlf-pink); }
.tlf-tile--text { min-width: calc(300 * var(--u)); padding: 0 calc(28 * var(--u)); }
.tlf-tile__word {
    font-family: var(--tlf-display);
    font-size: calc(118 * var(--u));
    line-height: 1;
    text-transform: uppercase;
    padding-top: calc(10 * var(--u));
    white-space: nowrap;
}
.tlf-tile--poster { width: calc(305 * var(--u)); padding: 0 calc(16 * var(--u)); }
.tlf-tile__arch {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(96 * var(--u));
    height: calc(48 * var(--u));
    transform: translateX(-50%);
    background: #000;
    border-radius: 0 0 calc(48 * var(--u)) calc(48 * var(--u));
}
.tlf-tile__arch::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-120 * var(--u));
    right: calc(-120 * var(--u));
    height: calc(12 * var(--u));
    background: #000;
}
.tlf-tile__text {
    position: relative;
    display: block;
    margin-top: calc(34 * var(--u));
    font-family: var(--tlf-display);
    font-size: calc(29 * var(--u));
    line-height: 1.02;
    text-transform: uppercase;
    text-align: center;
}
.tlf-tile__logo {
    position: absolute;
    left: calc(12 * var(--u));
    bottom: calc(10 * var(--u));
    width: calc(58 * var(--u));
}
.tlf-tile__logo svg { width: 100%; height: auto; }
.tlf-tile__logo svg path { fill: #000; }
.tlf-tile__stamp {
    position: absolute;
    right: calc(10 * var(--u));
    bottom: calc(14 * var(--u));
    width: calc(40 * var(--u));
}
.tlf-tile__stamp svg { width: 100%; height: auto; }
@keyframes tlf-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ---- Intro (gelb) ----------------------------------------------------- */
.tlf-intro {
    position: relative;
    z-index: 3;
    background: var(--tlf-yellow);
    /* sichtbares Gelb laut Layout 635u hoch (Blau beginnt bei 2034, Gelb bei 1399) */
    padding: calc(150 * var(--u)) 0 calc(207 * var(--u));
}
.tlf-intro__label {
    font-weight: 500;
    font-size: calc(23 * var(--u));
    line-height: calc(28 * var(--u));
    margin-bottom: calc(30 * var(--u));
}
.tlf-intro__text {
    max-width: calc(960 * var(--u));
    font-size: calc(30 * var(--u));
    line-height: calc(40 * var(--u));
    letter-spacing: 0.025em;
    margin-bottom: calc(30 * var(--u));
}
.tlf-intro__text p { margin: 0 0 calc(20 * var(--u)); }
.tlf-intro__text p:last-child { margin-bottom: 0; }
.tlf-intro__text strong { font-weight: 600; }
.tlf-grundriss {
    position: absolute;
    /* Unterkante so, dass die Oberkante des Hauptblocks (unter dem Halbkreis, y=151.72 von 605.07 im
       SVG, Breite 1316) exakt auf der Sektionsgrenze gelb/blau liegt: Höhe 0.45978·cw, Kante 0.11529·cw */
    top: auto;
    bottom: calc(var(--tlf-cw) * -0.34449);
    left: var(--tlf-edge);
    width: var(--tlf-cw);
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}
.tlf-grundriss svg { width: 100%; height: auto; overflow: visible; }
/* Grundriss: Formen werden erst als Kontur gezeichnet, dann gefüllt, zuletzt Schriftzug und Stempel */
.tlf-grundriss.tlf-reveal { opacity: 1; transform: none; transition: none; }
.tlf-gr-shape {
    fill: #000;
    fill-opacity: 0;
    stroke: #000;
    stroke-width: 2;
    stroke-linejoin: miter;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * .14s),
                fill-opacity .5s ease calc(.7s + var(--i) * .14s);
}
.tlf-gr-detail {
    opacity: 0;
    transition: opacity .6s ease 1.5s;
}
.tlf-grundriss.is-in .tlf-gr-shape { stroke-dashoffset: 0; fill-opacity: 1; }
.tlf-grundriss.is-in .tlf-gr-detail { opacity: 1; }
/* Negativ der Quadrate über der schwarzen Fläche: das JS spiegelt jedes Quadrat der beiden Felder als
   weißen Umriss in diese Gruppe (auf die Silhouette geclippt). Die schwarzen Originale laufen darunter weiter. */
/* Farbe wie der Hintergrund hinter dem Grundriss: Gelb über der Gelb-Blau-Kante (is-upper, setzt das JS), Blau darunter. */
.tlf-gr-neg rect { fill: none; stroke: var(--tlf-sq-neg, var(--tlf-blue)); stroke-width: 1; }
.tlf-gr-neg rect.is-upper { stroke: var(--tlf-sq-neg-upper, var(--tlf-yellow)); }
.elementor-editor-active .tlf-gr-shape, .tlf-static .tlf-gr-shape { stroke-dashoffset: 0; fill-opacity: 1; transition: none; }
.elementor-editor-active .tlf-gr-detail, .tlf-static .tlf-gr-detail { opacity: 1; transition: none; }

/* Fragmente (gestreute Quadrate) */
.tlf-fragments {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    overflow: hidden;   /* 1920px-SVG seitlich beschneiden; vertikal blendet die Maske ohnehin an der Boxkante aus */
    /* Luft rundherum, damit bewegte Quadrate nicht an der Boxkante verschwinden, und weiches Ausblenden zu den Rändern */
    box-sizing: content-box;
    padding: calc(90 * var(--u)) 0;
    margin-top: calc(-90 * var(--u));
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
/* Die Quadrate sind auf jeder Viewport-Breite so groß wie im 1920er-Design: das SVG ist fix 1920px breit
   (Ebene 1: 228px, Ebene 2: 531px hoch), sitzt mittig und läuft seitlich aus dem Bild – schmaler
   zeigt einfach weniger Quadrate, breiter lässt seitlich Rand frei. */
.tlf-fragments svg {
    width: 1920px;
    height: auto;
    overflow: visible;
    margin-left: calc((100% - 1920px) / 2);
}
.tlf-fragments .tlf-sq {
    transform-box: fill-box;
    transform-origin: center;
    animation: tlf-dance var(--d, 7s) ease-in-out var(--dl, 0s) infinite alternate;
}
/* Mit JS (interaktiv) übernimmt das Skript die Bewegung */
.tlf-fragments.is-live .tlf-sq { animation: none; will-change: translate, rotate; }
/* Beide Ebenen liegen im gelben Block und ragen frei in den blauen hinein (ein zusammenhängendes Feld).
   Sie erscheinen erst, wenn sie aus dem gezeichneten Grundriss heraus starten (JS setzt is-launched). */
.tlf-fragments--intro { top: calc(560 * var(--u)); z-index: 1; }
/* Ebene 2 wird unten begrenzt (Kasten endet 520u unter der Sektionskante, die Liste beginnt bei 608u),
   damit auch driftende Quadrate nie in die Chronologie hineinragen; der Rest des SVGs wird abgeschnitten. */
.tlf-fragments--intro2 { top: calc(690 * var(--u)); bottom: calc(-520 * var(--u)); padding-bottom: 0; overflow: hidden; z-index: 1; }
.tlf-fragments--intro.is-live, .tlf-fragments--intro2.is-live { opacity: 0; }
.tlf-fragments--intro.is-launched, .tlf-fragments--intro2.is-launched { opacity: 1; }

/* Blog-Feld als Band mittig auf der Grenze grün/rosa (±150u), SVG darin vertikal zentriert und oben/unten
   abgeschnitten, damit weder der Link "Alle Blogartikel" noch die Social-Überschrift berührt wird. */
.tlf-fragments--blog { bottom: calc(-150 * var(--u)); height: calc(300 * var(--u)); padding: 0; overflow: hidden; display: flex; align-items: center; z-index: 2; }
.tlf-fragments--blog svg { flex: none; }   /* als Flex-Kind nicht auf die Eigenbreite schrumpfen */
/* translate/rotate statt transform, damit das transform-Attribut der Rechtecke erhalten bleibt */
@keyframes tlf-dance {
    from { translate: 0 0; rotate: 0deg; }
    to   { translate: 5px -10px; rotate: 28deg; }
}

/* ---- Chronologie (blau) ----------------------------------------------- */
.tlf-chrono {
    position: relative;
    z-index: 1;
    background: var(--tlf-blue);
    min-height: calc(1058 * var(--u));
    padding: calc(583 * var(--u)) 0 calc(126 * var(--u));
}
.tlf-chrono__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}
.tlf-chrono__list { width: calc(651 * var(--u)); padding-top: calc(25 * var(--u)); }
.tlf-chrono__list .tlf-label { margin-bottom: calc(30 * var(--u)); }
.tlf-chrono__figure {
    position: relative;
    width: calc(539 * var(--u));
    height: calc(349 * var(--u));
    margin: 0;
    flex: 0 0 auto;
}
.tlf-chrono__figure img { width: 100%; height: 100%; object-fit: cover; }

.tlf-acc { list-style: none; margin: 0; padding: 0; }
.tlf-acc__item { border-bottom: 2px solid #000; }
.tlf-acc__btn {
    appearance: none;
    background: none;
    border: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(20 * var(--u));
    padding: calc(23 * var(--u)) 0;
    font-family: var(--tlf-text);
    font-weight: 500;
    font-size: calc(23 * var(--u));
    line-height: calc(28 * var(--u));
    text-align: left;
    color: #000;
    cursor: pointer;
}
.tlf-acc__btn:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.tlf-acc__arrow {
    flex: 0 0 auto;
    width: calc(14 * var(--u));
    height: calc(21 * var(--u));
    margin-right: calc(2 * var(--u));
    transition: transform .3s ease;
}
.tlf-acc__btn[aria-expanded="true"] .tlf-acc__arrow { transform: rotate(180deg); }
.tlf-acc__panel { overflow: hidden; }
.tlf-acc__content {
    padding: 0 0 calc(34 * var(--u));
    font-size: max(15px, calc(17 * var(--u)));
    line-height: 1.55;
}
.tlf-acc__content p { margin: 0 0 1em; }
.tlf-acc__content a { text-decoration: underline; }
.tlf-acc__content img { max-width: 100%; height: auto; margin: .5em 0; }
.tlf-acc__content .wp-caption { max-width: 100% !important; margin: 0 0 1em; }
.tlf-acc__content .wp-caption-text { font-size: 12px; opacity: .7; margin: .25em 0 0; }
.tlf-acc__content hr { border: 0; border-top: 1px solid currentColor; opacity: .25; margin: 1.2em 0; }
/* Galerie: einheitliche Kacheln 3:2 (Ausschnitt), Klick öffnet die Lightgallery des Themes */
.tlf-acc__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(16 * var(--u)); margin-top: 1em; }
.tlf-acc__gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: rgba(0, 0, 0, .08); }
.tlf-acc__gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform 650ms cubic-bezier(.785, .135, .15, .86); }
.tlf-acc__gallery a:hover img { transform: scale(1.05); }

/* ---- Slogan-Ticker auf Foto ------------------------------------------- */
.tlf-ticker {
    position: relative;
    height: calc(700 * var(--u));
    overflow: hidden;
    background: #222;
    color: #fff;
}
/* Hintergrundebene 8% höher als die Sektion, damit sie beim Scrollen dezent langsamer mitlaufen kann
   (Parallax, --tlf-py setzt das JS in px; ohne JS bleibt sie mittig). */
.tlf-ticker__bgs { position: absolute; inset: -8% 0; transform: translate3d(0, var(--tlf-py, 0px), 0); will-change: transform; }
.tlf-ticker__bg { position: absolute; inset: 0; }
.tlf-ticker__bg {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.tlf-ticker__bg.is-active { opacity: 1; }
.tlf-ticker__bgs::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .14);
}
/* Slogan-Trommel: Stage gibt die Perspektive, Drum sitzt um den Radius nach hinten (der vordere Slot liegt
   damit unverzerrt in der Bildebene), Track dreht sich, Slots stehen per rotateY/translateZ auf dem Umfang.
   Rückseitige Slots sind per backface-visibility ausgeblendet. */
.tlf-ticker__stage {
    position: absolute;
    inset: 0;
    perspective: calc(3000 * var(--u));
    perspective-origin: 50% 50%;
}
.tlf-ticker__drum {
    position: absolute;
    top: calc(276 * var(--u));
    left: 50%;
    width: 0;
    --tlf-r: calc(320 * var(--u) * var(--tlf-k, 5));
    transform: translateZ(calc(-1 * var(--tlf-r)));
    transform-style: preserve-3d;
}
.tlf-ticker__track {
    position: relative;
    width: 0;
    transform-style: preserve-3d;
    animation: tlf-drum var(--tlf-t, 270s) linear infinite;
}
@keyframes tlf-drum {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(-360deg); }
}
.tlf-ticker__item {
    position: absolute;
    top: 0;
    left: calc(-320 * var(--u));
    width: calc(640 * var(--u));
    transform: rotateY(calc(var(--i, 0) * 360deg / var(--tlf-n, 16))) translateZ(var(--tlf-r));
    backface-visibility: hidden;
    text-align: center;
    font-family: var(--tlf-display);
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.tlf-ticker__pre {
    display: block;
    font-size: calc(27 * var(--u));
    line-height: 1;
}
.tlf-ticker__slogan {
    display: block;
    max-width: calc(470 * var(--u));
    margin: calc(6 * var(--u)) auto 0;
    font-size: calc(53 * var(--u));
    line-height: 1;
}

/* ---- Blog (grün) ------------------------------------------------------ */
.tlf-blog {
    position: relative;
    z-index: 2;
    background: var(--tlf-green);
    padding: calc(150 * var(--u)) 0 calc(154 * var(--u));
}
.tlf.tlf-blog h2.tlf-display { margin-bottom: calc(67 * var(--u)) !important; }   /* Label laut Layout bei 385u */
.tlf-blog .tlf-label { margin-bottom: calc(30 * var(--u)); }
/* Karten: Markup und Styling von BlogTeaserThree (date-card), hier nur Raster und Abstand */
/* Slider-Pfeile wie in der Ticket-Sidebar (weißer Kreis, rote Füllung bei Hover); nur unter 992px sichtbar */
.tlf-slider__nav { display: none; }
.tlf-slider__btn {
    position: relative; overflow: hidden; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: none;
    background: #fff; color: #000; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: color 350ms cubic-bezier(.785, .135, .15, .86);
}
.tlf-slider__btn .tlf-slider__ico { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; }
.tlf-slider__btn .tlf-slider__arrow { display: block; }
.tlf-slider__prev .tlf-slider__ico { transform: rotate(180deg); }
.tlf-slider__btn::after {
    content: ""; position: absolute; inset: 0; z-index: 2; background: var(--tlf-red, #EA1917); border-radius: 999px;
    transform: scale(0); transition: transform 350ms cubic-bezier(.785, .135, .15, .86);
}
.tlf-slider__btn:hover { color: #fff; }
.tlf-slider__btn:hover::after { transform: scale(1); }
.tlf-cards { margin-bottom: calc(45 * var(--u)); }
.tlf-cards .date-card { margin-bottom: calc(16 * var(--u)) !important; }
.tlf-blog .date-card .termin-wrap { background: #fff; }
/* Diese Regeln liegen im Theme nur unter .elementor-widget-BlogTeaserThree, hier nachgezogen */
.tlf-blog .date-card .text-height.blog { display: flex; flex-direction: column; min-height: 150px; height: auto; position: relative; padding-bottom: 0; }
/* Das Theme pinnt jedes Tag einzeln absolut an dieselbe Stelle (BlogTeaserThree zeigt nur eines). Hier bleiben
   die Tags im Textfluss und rutschen per margin-top:auto an den Kartenboden, damit zwei Tags (auch umbrochen)
   nie über den Text laufen. */
.tlf-blog .date-card .text-height.blog .blog-tags { position: static; margin: auto 0 0 !important; padding-top: 12px; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.tlf-blog .date-card .text-height.blog .tlm-tag { position: static; }

/* ---- Social (rosa) ---------------------------------------------------- */
.tlf-social {
    position: relative;
    background: var(--tlf-pink);
    padding: calc(204 * var(--u)) 0 calc(150 * var(--u));
    /* Der Foto-Hinweis im Footer hat pt-3/pt-md-5 Abstand; laut Layout schließt Rosa direkt an die rote Leiste an */
    margin-bottom: -1rem;
}
@media (min-width: 768px) { .tlf-social { margin-bottom: -3rem; } }
.tlf.tlf-social h2.tlf-display { margin-bottom: calc(59 * var(--u)) !important; } /* Buttons laut Layout bei 349u */
.tlf-social__buttons {
    display: flex;
    justify-content: center;
    gap: calc(15 * var(--u));
}
.tlf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(228 * var(--u));
    height: calc(63 * var(--u));
    border: 2px solid #000;
    border-radius: calc(70 * var(--u));
    font-weight: 500;
    font-size: calc(23 * var(--u));
    color: #000;
    text-decoration: none;
    /* Hover wie .btn-primary des Themes: ein Verlauf wischt die Füllung von rechts herein,
       Schrift wechselt die Farbe (Theme: Rot/Weiß, hier Schwarz auf dem Rosa der Landingpage). */
    background-color: transparent;
    background-image: linear-gradient(to left, #000, #000, transparent, transparent) !important;
    background-size: 300% 100% !important;
    background-position: 0 0;
    background-repeat: no-repeat;
    transition: background-position 650ms cubic-bezier(.785, .135, .15, .86), color 650ms cubic-bezier(.785, .135, .15, .86);
}
.tlf-btn:hover,
.tlf-btn:focus-visible {
    background-position: 100% 0;
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- Einblenden beim Scrollen ----------------------------------------- */
.tlf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.tlf-reveal--pop { transform: scale(.5) rotate(-12deg); }
.tlf-reveal--slow { transition-duration: 1.2s; }
.tlf-reveal.is-in { opacity: 1; transform: none; }
.elementor-editor-active .tlf-reveal { opacity: 1; transform: none; }
.elementor-editor-active .tlf-hero__title { transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
    .tlf-tiles__track, .tlf-ticker__track { animation: none; }
    .tlf-fragments .tlf-sq { animation: none; }
    .tlf-reveal { opacity: 1; transform: none; transition: none; }
    .tlf-hero__title { transform: translateX(-50%); }
    .tlf-bar { transform: scaleY(1); transition: none; }
    .tlf-gr-shape { stroke-dashoffset: 0; fill-opacity: 1; transition: none; }
    .tlf-gr-detail { opacity: 1; transition: none; }
}
.tlf-static .tlf-tiles__track, .tlf-static .tlf-ticker__track { animation: none; }
.tlf-static .tlf-fragments .tlf-sq { animation: none; }
.tlf-static .tlf-reveal { opacity: 1; transform: none; transition: none; }
.tlf-static .tlf-hero__title { transform: translateX(-50%); }
.tlf-static .tlf-ticker__bg { transition: none; }
/* Buttons: .tlf-reveal (und der Static-Modus) setzen eine eigene transition, deshalb hier beides zusammen,
   sonst fällt der Hover-Wisch der Buttons weg. */
.tlf-btn.tlf-reveal, .tlf-static .tlf-btn.tlf-reveal {
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1),
        background-position 650ms cubic-bezier(.785, .135, .15, .86), color 650ms cubic-bezier(.785, .135, .15, .86);
}

/* 992–1439px: Das Quadrate-SVG hat eine feste Pixelhöhe (228px / 531px), das Layout schrumpft aber mit --u.
   Die Felder werden deshalb über ihre Mitte verankert (Design: Mitte Ebene 1 bei 674u, Ebene 2 bei 955u),
   damit sie relativ zum Grundriss sitzen wie im Design; bei u = 1 entspricht das den Desktop-Regeln. */
@media (min-width: 992px) and (max-width: 1439px) {
    .tlf-fragments--intro { top: calc(674 * var(--u) - 114px); }
    .tlf-fragments--intro2 { top: calc(955 * var(--u) - 265px); }
}

/* ---- Tablet / Smartphone ---------------------------------------------- */
@media (max-width: 991px) {
    .tlf-container { width: auto; margin: 0; padding: 0 24px; }
    .tlf .tlf-display--xl { font-size: 42px !important; }
    .tlf .tlf-display--m { font-size: 26px !important; }
    .tlf .tlf-label { font-size: 11px !important; }
    .tlf-link { font-size: 17px; line-height: 24px; }

    .tlf-hero__green { height: auto; padding: 44px 0 26px; }
    .tlf-hero__crumb { position: static; padding: 0 24px 22px; margin: 0; }
    .tlf-hero__title { position: static; width: 88%; margin: 0 auto; transform: none; }
    .tlf-hero__title.tlf-reveal, .tlf-hero__title.tlf-reveal.is-in, .elementor-editor-active .tlf-hero__title { transform: none; }
    .tlf-hero__pink { height: auto; padding: 14px 0 30px; }
    .tlf-hero__iwillbe { position: static; width: 70%; margin: 0 auto; }
    .tlf-hero__stamp { top: -24px; left: auto; right: 20px; width: 72px; }
    .tlf-hero__photo { height: 62vw; }
    html.stfmkrs-framework .tlf-hero__photo .info-tooltip, html.stfmkrs-framework .tlf-ticker .info-tooltip { right: 10px; bottom: 10px; }
    .tlf-tiles { height: 84px; }
    .tlf-tile--text { min-width: 150px; padding: 0 14px; }
    .tlf-tile__word { font-size: 66px; padding-top: 6px; }
    .tlf-tile--poster { width: 170px; padding: 0 10px; }
    .tlf-tile__arch { width: 54px; height: 27px; border-radius: 0 0 27px 27px; }
    .tlf-tile__arch::before { left: -80px; right: -80px; height: 7px; }
    .tlf-tile__text { font-size: 16px; margin-top: 18px; }
    .tlf-tile__logo { width: 32px; left: 7px; bottom: 6px; }
    .tlf-tile__stamp { width: 22px; right: 6px; bottom: 8px; }

    .tlf-intro { padding: 56px 0 0; }
    .tlf-intro__label { font-size: 15px; line-height: 20px; margin-bottom: 18px; }
    .tlf-intro__text { max-width: none; font-size: 19px; line-height: 28px; margin-bottom: 22px; }
    .tlf-intro__text p { margin-bottom: 14px; }
    /* Grundriss im Container (24px Rand), oben Luft für das Quadrate-Feld. Er ragt wie am Desktop so weit in den
       blauen Block, dass die Oberkante des Hauptblocks (151.72 von 605.07) genau auf der Gelb-Blau-Grenze liegt:
       unterhalb der Kante liegen 0.34449 × Grafikbreite (= 100% − 48px). */
    .tlf-grundriss { position: relative; top: auto; bottom: auto; left: auto; width: auto; margin: 72px 24px calc(-0.34449 * (100% - 48px)); }
    .tlf-intro { display: flow-root; }   /* negativer Rand verkürzt die Sektion (kein Margin-Collapse), Gelb endet an der Kante */
    /* Quadrate-Felder an der Unterkante der Intro-Sektion (= Unterkante Grundriss) verankern:
       Ebene 1 beginnt 56px über der Oberkante des Grundrisses (Grundriss ist ~46vw hoch, SVG 228px), damit die
       ausgeblendete Oberkante nicht in den Link "Du willst mehr wissen?" reicht,
       Ebene 2 endet knapp unter dem Grundriss, damit nichts über der Chronologie-Liste liegt. */
    .tlf-fragments--intro { top: auto; bottom: calc(6.84vw - 177px); }   /* Grundriss ist ~0.46 × (100vw − 48px) hoch, SVG 228px */
    /* Ebene 2 ist 531px hoch (1920px-SVG): als 260px-Band mit dem mittleren Ausschnitt zeigen, damit es
       zwischen Text und Chronologie-Liste Platz hat, ohne die Quadrate zu verkleinern. */
    .tlf-fragments--intro2 { top: auto; bottom: calc(-0.34449 * (100vw - 48px) - 20px); height: min(260px, 46vw); padding: 0; overflow: hidden; }   /* endet 20px unter dem Grundriss; auf schmalen Handys nicht höher als der Grundriss */
    .tlf-fragments--intro2 svg { margin-top: calc((min(260px, 46vw) - 531px) / 2); }

    .tlf-chrono { min-height: 0; padding: calc(0.34449 * (100% - 48px) + 40px) 0 56px; }   /* Liste beginnt 40px unter dem Grundriss */
    .tlf-chrono__grid { flex-direction: column; }
    .tlf-chrono__list { width: 100%; padding-top: 0; }
    .tlf-chrono__list .tlf-label { margin-bottom: 18px; }
    .tlf-acc__item { border-bottom-width: 1.5px; }
    .tlf-acc__btn { gap: 16px; padding: 16px 0; font-size: 17px; line-height: 22px; }
    .tlf-acc__arrow { width: 12px; height: 18px; }
    .tlf-acc__content { padding-bottom: 24px; }
    .tlf-acc__gallery { gap: 10px; }
    .tlf-chrono__figure { width: 100%; height: auto; margin-top: 36px; }
    .tlf-chrono__figure img { height: auto; }

    .tlf-ticker { height: 62vw; min-height: 300px; }
    .tlf-ticker__stage { perspective: 1400px; }
    .tlf-ticker__drum { top: 50%; --tlf-r: calc(38vw * var(--tlf-k, 5)); transform: translateY(-50%) translateZ(calc(-1 * var(--tlf-r))); }
    .tlf-ticker__track { animation-duration: var(--tlf-tm, 180s); }
    .tlf-ticker__item { left: -38vw; width: 76vw; }
    .tlf-ticker__pre { font-size: 17px; }
    .tlf-ticker__slogan { font-size: 30px; max-width: 70vw; margin-top: 4px; }

    .tlf-blog { padding: 56px 0 120px; }   /* unten Platz für das Quadrate-Feld unter dem Link */
    .tlf-fragments--blog { bottom: -100px; height: 200px; }
    .tlf.tlf-blog h2.tlf-display { margin-bottom: 32px !important; }
    .tlf-blog .tlf-label { margin-bottom: 18px; }
    /* Karten als Slider nach dem Muster der Ticket-Sidebar (.tlm-slider in footer.php): Scroll-Snap-Spur,
       eine Karte plus Anschnitt der nächsten, bis an den Viewport-Rand, Scrollbalken versteckt, Pfeile darunter. */
    .tlf-slider { margin-bottom: 24px; }
    .tlf-cards {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        margin: 0 -24px;
        padding: 0 24px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        cursor: grab;
    }
    .tlf-cards::-webkit-scrollbar { display: none; }
    .tlf-cards.is-dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
    .tlf-cards.is-dragging a { pointer-events: none; }
    .tlf-cards .date-card {
        flex: 0 0 min(78vw, 400px);
        width: auto;
        max-width: none;
        padding: 0;
        margin-bottom: 0 !important;
        scroll-snap-align: start;
    }
    .tlf-cards::after { content: ""; flex: 0 0 8px; }   /* Luft nach der letzten Karte */
    .tlf-slider__nav { display: flex; gap: 12px; margin-top: 16px; }

    .tlf-social { padding: 110px 0 60px; }   /* oben Platz für das Quadrate-Feld über der Überschrift */
    .tlf.tlf-social h2.tlf-display { margin-bottom: 30px !important; }
    .tlf-social__buttons { flex-wrap: wrap; gap: 12px; }
    .tlf-btn { width: 160px; height: 50px; border-radius: 50px; font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .tlf-chrono__grid { flex-direction: row; align-items: flex-start; gap: 32px; }
    .tlf-chrono__list { width: 55%; }
    .tlf-chrono__figure { width: 40%; margin-top: 30px; }
}
