/* Loftino – Kinder-Welt (nur auf der Vorstart-Startseite geladen) */

.lfk {
  --k-sky: #CFEBFF;
  --k-sky-2: #EAF6FF;
  --k-night: #24345E;
  --k-sun: #FFC94A;
  --k-sun-2: #FFF4D6;
  --k-coral: #FF7A6B;
  --k-coral-ink: #C8402F;   /* Koralle für Schrift – gut lesbar auf Weiß und Gelb */
  --k-grass: #7DBE5E;
  --k-blue: #4FB3E8;
  --k-lila: #8E7BEF;
  --k-ink: #211E1A;
  --k-creme: #FAF6EE;
  --k-oak: #A8763F;
  --k-sage-l: #E4E8DA;
  --k-gx: clamp(16px, 5vw, 72px);
  --k-font: var(--lft-display, 'Loftino Inter Tight', system-ui, sans-serif);
  overflow: hidden;
  background: #fff;
  color: var(--k-ink);
  font-family: var(--lft-text, system-ui, sans-serif);
}
.lfk h2, .lfk p { margin: 0; }
.lfk .lfk-h1, .lfk .lfk-h2 { color: var(--k-ink); font-family: var(--k-font); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.lfk .lfk-h1 { font-size: clamp(46px, 7.4vw, 104px); }
.lfk .lfk-h1 span { display: inline-block; color: var(--k-coral); transform: rotate(-2deg); }
.lfk .lfk-h2 { font-size: clamp(34px, 4.8vw, 64px); }
.lfk-kicker, .lfk-badge { font-family: var(--k-font); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.lfk-kicker { margin-bottom: 10px !important; color: var(--k-coral-ink); }

/* Buttons */
.lfk-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--k-coral); color: var(--k-ink) !important;
  box-shadow: 0 6px 0 #D85A4C;
  font-family: var(--k-font); font-size: 18px; font-weight: 800; text-decoration: none !important;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.lfk-btn svg { width: 22px; height: 22px; }
.lfk-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #D85A4C; }
.lfk-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #D85A4C; }
.lfk-btn--big { min-height: 64px; padding: 0 32px; font-size: 20px; }
.lfk-link { padding: 8px 4px; border: 0; background: none; color: var(--k-ink); font: 700 16px/1.2 var(--k-font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Oben ---------- */
.lfk-hero {
  position: relative;
  display: grid; gap: 8px;
  padding: clamp(28px, 5vw, 64px) var(--k-gx) 0;
  background: linear-gradient(180deg, var(--k-sky) 0%, var(--k-sky-2) 78%, #fff 100%);
}
.lfk-hero__copy { position: relative; z-index: 2; max-width: 620px; }
.lfk-badge { display: inline-block; margin-bottom: 18px !important; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--k-night); box-shadow: 0 3px 0 rgba(36, 52, 94, .12); transform: rotate(-2deg); }
.lfk-lead { margin: 18px 0 0 !important; color: #3A3F55; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; }
.lfk-hero__art { position: relative; margin: 0 calc(var(--k-gx) * -1); }
@media (max-width: 999px) { .lfk-tip { top: 4%; right: 4%; } .lfk-tip::after { left: auto; right: 40px; } }
.lfk-scene { display: block; width: 100%; height: auto; overflow: visible; }
.lfk-scene [role="button"] { cursor: pointer; outline: none; }
.lfk-scene [role="button"]:focus-visible { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 3px var(--k-night)); }
.lfk-tip {
  position: absolute; z-index: 3; right: 6%; top: 38%;
  padding: 10px 16px; border-radius: 18px; background: #fff;
  color: var(--k-night); font: 800 15px/1.2 var(--k-font);
  box-shadow: 0 4px 0 rgba(36, 52, 94, .12);
  animation: lfk-bob 2.4s ease-in-out infinite;
  transition: opacity .3s;
}
.lfk-tip::after { content: ""; position: absolute; left: 30px; bottom: -9px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.lfk-tip.is-gone { opacity: 0; pointer-events: none; }

@media (min-width: 1000px) {
  .lfk-hero::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q250 0 500 18T1000 12V100H0Z' fill='%239BD47A'/%3E%3Cpath d='M0 62Q280 40 540 56T1000 50V100H0Z' fill='%237DBE5E'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
  .lfk-hero__art { z-index: 1; }
  .lfk-hero__copy { padding-bottom: 8vw; }
  .lfk-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; max-width: none; padding-bottom: 0; }
  .lfk-hero__art { margin: 0 calc(var(--k-gx) * -1) 0 0; }
  .lfk-tip { right: 4%; top: 34%; }
}

/* Szene: Bewegung */
.lfk-sun { transform: translate(90px, 92px); transform-box: view-box; }
.lfk-sun__rays { animation: lfk-spin 18s linear infinite; transform-origin: 0 0; }
.lfk-sun.is-hit > circle:first-of-type { animation: lfk-pulse .5s ease; transform-origin: 0 0; }
.lfk-sun.is-hit .lfk-sun__rays { animation-duration: 1.2s; }
.lfk-cloud--1 { animation: lfk-drift 14s ease-in-out infinite alternate; }
.lfk-cloud--2 { animation: lfk-drift 11s ease-in-out infinite alternate-reverse; }
.lfk-bird { animation: lfk-fly 18s linear infinite; }
.lfk-eyes { opacity: 0; transition: opacity .2s; }
.lfk-housegrp.is-hit .lfk-eyes { opacity: 1; }
.lfk-housegrp.is-hit .lfk-pupil { animation: lfk-look 1.6s ease; }
.lfk-boo { opacity: 0; transform: translateY(8px) scale(.9); transform-box: fill-box; transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.lfk-boo text { fill: var(--k-night); font: 800 17px var(--k-font); }
.lfk-boo.is-on { opacity: 1; transform: none; }
.lfk-wall circle { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.lfk-wall circle.is-hit { animation: lfk-pop .45s ease; }
.lfk-bucket { transform-box: fill-box; transform-origin: 50% 100%; }
.lfk-sand.is-hit .lfk-bucket { animation: lfk-wiggle .6s ease; }
.lfk-slidegrp:hover .lfk-slide { stroke: #FFA92E; }

/* ---------- Bald geht's los ---------- */
.lfk-start { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) var(--k-gx); background: var(--k-night); text-align: center; }
.lfk-start__in { position: relative; z-index: 1; }
.lfk-start__kicker { color: var(--k-sun); font: 800 18px/1.2 var(--k-font); }
.lfk-start__big { margin: 8px 0 12px !important; color: #fff; font: 800 clamp(48px, 8vw, 108px)/1 var(--k-font); letter-spacing: -.04em; }
.lfk-start__text { color: rgba(255, 255, 255, .85); font-size: clamp(18px, 1.7vw, 22px); }
.lfk-snow i { position: absolute; top: -12px; width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .8; animation: lfk-snow 9s linear infinite; }
.lfk-snow i:nth-child(1) { left: 6%; animation-delay: -1s; }
.lfk-snow i:nth-child(2) { left: 14%; width: 6px; height: 6px; animation-delay: -5s; animation-duration: 11s; }
.lfk-snow i:nth-child(3) { left: 23%; animation-delay: -3s; }
.lfk-snow i:nth-child(4) { left: 31%; width: 5px; height: 5px; animation-delay: -7s; animation-duration: 12s; }
.lfk-snow i:nth-child(5) { left: 42%; animation-delay: -2s; animation-duration: 10s; }
.lfk-snow i:nth-child(6) { left: 51%; width: 6px; height: 6px; animation-delay: -8s; }
.lfk-snow i:nth-child(7) { left: 60%; animation-delay: -4s; animation-duration: 13s; }
.lfk-snow i:nth-child(8) { left: 68%; width: 5px; height: 5px; animation-delay: -6s; }
.lfk-snow i:nth-child(9) { left: 77%; animation-delay: -.5s; animation-duration: 11s; }
.lfk-snow i:nth-child(10) { left: 85%; width: 7px; height: 7px; animation-delay: -9s; }
.lfk-snow i:nth-child(11) { left: 92%; animation-delay: -2.5s; animation-duration: 12s; }
.lfk-snow i:nth-child(12) { left: 97%; width: 5px; height: 5px; animation-delay: -5.5s; }

/* ---------- Abschnitte ---------- */
.lfk-sec { padding: clamp(64px, 9vw, 120px) var(--k-gx); }
.lfk-sec--sun { background: var(--k-sun-2); }
.lfk-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }

.lfk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto; }
.lfk-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px 24px 28px; border: 0; border-radius: 28px;
  color: var(--k-ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.lfk-card:nth-child(odd) { transform: rotate(-1.2deg); }
.lfk-card:nth-child(even) { transform: rotate(1.2deg); }
.lfk-card:hover { transform: rotate(0) translateY(-4px) scale(1.02); }
.lfk-card.is-hit { animation: lfk-wiggle .6s ease; }
.lfk-card--k1 { background: #FFE1DC; }
.lfk-card--k2 { background: #FFF0C7; }
.lfk-card--k3 { background: #DDF3CF; }
.lfk-card--k4 { background: #DCEFFF; }
.lfk-card__ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 22px; background: #fff; }
.lfk-card__ico svg { width: 34px; height: 34px; }
.lfk-card--k1 .lfk-card__ico { color: var(--k-coral); }
.lfk-card--k2 .lfk-card__ico { color: #E59A12; }
.lfk-card--k3 .lfk-card__ico { color: #4F9C34; }
.lfk-card--k4 .lfk-card__ico { color: #2F8FC4; }
.lfk-card strong { font: 800 26px/1.1 var(--k-font); letter-spacing: -.02em; }
.lfk-card span:last-child { color: #3A3F55; font-size: 17px; line-height: 1.45; }

.lfk-malea { display: grid; gap: 28px; align-items: center; max-width: 1080px; margin: 0 auto; }
.lfk-malea p:not(.lfk-kicker) { margin-top: 16px !important; color: #3A3F55; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.lfk-malea__media { position: relative; width: min(340px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.lfk-malea__media::before { content: ""; position: absolute; inset: -12px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--k-sun); transform: rotate(-6deg); }
.lfk-malea__media img, .lfk-malea__media .lft-ph { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%; }
@media (min-width: 800px) { .lfk-malea { grid-template-columns: auto 1fr; gap: 64px; } }

.lfk-chat { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.lfk-chat p { max-width: 82%; padding: 14px 20px; font-size: 18px; line-height: 1.4; }
.lfk-chat__q { align-self: flex-start; border-radius: 22px 22px 22px 6px; background: #EEF1F7; font-weight: 600; }
.lfk-chat__a { align-self: flex-end; margin-bottom: 10px !important; border-radius: 22px 22px 6px 22px; background: var(--k-blue); color: var(--k-ink); }

.lfk-wish { padding: clamp(64px, 9vw, 112px) var(--k-gx); background: #DDF3CF; text-align: center; }
.lfk-wish p { margin: 14px auto 28px !important; max-width: 520px; color: #33452A; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.lfk-wish__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }

/* Ton an/aus */
.lfk-sound { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--k-night); box-shadow: 0 6px 20px rgba(36, 52, 94, .2); cursor: pointer; }
.lfk-sound svg { width: 24px; height: 24px; }
.lfk-sound .off { display: none; }
.lfk-sound[aria-pressed="false"] .on { display: none; }
.lfk-sound[aria-pressed="false"] .off { display: inline; }

/* Einblenden beim Scrollen */
.lfk [data-kin] { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .5s, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.lfk [data-kin].is-in { opacity: 1; transform: none; }
.lfk .lfk-card[data-kin].is-in:nth-child(odd) { transform: rotate(-1.2deg); }
.lfk .lfk-card[data-kin].is-in:nth-child(even) { transform: rotate(1.2deg); }
.lfk .lfk-card[data-kin].is-in:hover { transform: rotate(0) translateY(-4px) scale(1.02); }
.lfk-cards .lfk-card:nth-child(2) { transition-delay: .08s; }
.lfk-cards .lfk-card:nth-child(3) { transition-delay: .16s; }
.lfk-cards .lfk-card:nth-child(4) { transition-delay: .24s; }

@keyframes lfk-spin { to { transform: rotate(360deg); } }
@keyframes lfk-pulse { 50% { transform: scale(1.15); } }
@keyframes lfk-drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
@keyframes lfk-fly { 0% { transform: translate(-60px, 130px); } 25% { transform: translate(110px, 92px); } 50% { transform: translate(300px, 128px); } 75% { transform: translate(470px, 84px); } 100% { transform: translate(660px, 110px); } }
@keyframes lfk-bob { 50% { transform: translateY(-6px); } }
@keyframes lfk-pop { 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
@keyframes lfk-wiggle { 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(2deg); } }
@keyframes lfk-look { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes lfk-snow { from { transform: translate(0, 0); } to { transform: translate(30px, 520px); } }

@media (prefers-reduced-motion: reduce) {
  .lfk *, .lfk *::before, .lfk *::after { animation: none; transition: none; }
  .lfk [data-kin] { opacity: 1; transform: none; }
}


.lfk-malea--solo { display: block; max-width: 720px; text-align: center; }
@media (max-width: 599px) {
  .lfk-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 4px; padding: 20px; border-radius: 24px; }
  .lfk-card__ico { grid-row: span 2; width: 56px; height: 56px; margin: 0; border-radius: 18px; }
  .lfk-card strong { font-size: 22px; }
  .lfk-card span:last-child { font-size: 16px; }
}
@media (max-width: 999px) { }

/* ---------- Bausteine für Produktseite & „Über Loftino“ ---------- */
.lfk-sec--night { background: var(--k-night); }
.lfk-sec--night .lfk-h2 { color: #fff; }
.lfk-sec--sky { background: linear-gradient(180deg, var(--k-sky-2), #fff); }
.lfk-sec--tight { padding-top: 0; }
.lfk-kicker--sun { color: var(--k-sun); }

/* Foto im Kopf */
.lfk-photo { position: relative; z-index: 1; margin: 8px 0 clamp(28px, 5vw, 64px); padding: 0 var(--k-gx); }
.lfk-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid #fff; border-radius: 36px; box-shadow: 0 18px 0 -6px var(--k-sun); transform: rotate(1.5deg); }
.lfk-photo__tag { position: absolute; left: calc(var(--k-gx) + 8px); top: -10px; padding: 10px 18px; border-radius: 999px; background: var(--k-coral); color: #fff; font: 800 18px/1 var(--k-font); transform: rotate(-6deg); box-shadow: 0 4px 0 #D85A4C; animation: lfk-bob 2.6s ease-in-out infinite; }
.lfk-photo--round img { aspect-ratio: 1; max-width: 460px; margin: 0 auto; border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%; }
@media (min-width: 1000px) { .lfk-photo { padding: 0 var(--k-gx) 0 0; } .lfk-photo__tag { left: -14px; } }

/* Zahlen */
.lfk-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .lfk-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.lfk-num { display: flex; flex-direction: column; padding: 22px 20px 24px; border-radius: 28px; background: #fff; text-align: center; }
.lfk-num strong { color: var(--k-ink); font: 800 clamp(48px, 6vw, 76px)/1 var(--k-font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lfk-num em { margin-top: 2px; font: 800 18px/1.1 var(--k-font); font-style: normal; }
.lfk-num span { margin-top: 8px; color: #3A3F55; font-size: 15px; line-height: 1.35; }
.lfk-num--1 em { color: var(--k-coral); } .lfk-num--2 em { color: #E59A12; } .lfk-num--3 em { color: #4F9C34; } .lfk-num--4 em { color: #2F8FC4; }
.lfk-num--1 { transform: rotate(-1.5deg); } .lfk-num--2 { transform: rotate(1deg); } .lfk-num--3 { transform: rotate(-.8deg); } .lfk-num--4 { transform: rotate(1.6deg); }
.lfk .lfk-num[data-kin].is-in.lfk-num--1 { transform: rotate(-1.5deg); }
.lfk .lfk-num[data-kin].is-in.lfk-num--2 { transform: rotate(1deg); }
.lfk .lfk-num[data-kin].is-in.lfk-num--3 { transform: rotate(-.8deg); }
.lfk .lfk-num[data-kin].is-in.lfk-num--4 { transform: rotate(1.6deg); }

/* Wie groß bist du? */
.lfk-size { display: grid; gap: 24px; align-items: center; max-width: 1080px; margin: 0 auto; }
@media (min-width: 900px) { .lfk-size { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.lfk-size__art { padding: 18px 12px 8px; border-radius: 32px; background: #fff; box-shadow: 0 10px 30px rgba(36, 52, 94, .08); }
.lfk-size__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.lfk-size__art text { fill: var(--k-night); font: 700 13px var(--k-font); }
.lfk-size__lbl { font-size: 18px; font-weight: 800; fill: var(--k-coral); }
.lfk-kid circle, .lfk-kid rect { transition: all .15s; }
.lfk-size__ctrl label { display: block; color: var(--k-ink); font: 800 clamp(26px, 3vw, 36px)/1.15 var(--k-font); letter-spacing: -.02em; }
.lfk-size__ctrl output { color: var(--k-coral); font-variant-numeric: tabular-nums; }
.lfk-size__ctrl input[type=range] { width: 100%; height: 44px; margin: 14px 0 10px; accent-color: var(--k-coral); cursor: pointer; }
.lfk-size__txt { color: #3A3F55; font-size: 18px; line-height: 1.5; }
.lfk-size__txt strong { color: var(--k-ink); }
.lfk-size__small { margin-top: 10px !important; color: #6A6F85; font-size: 14px; }

/* Weiter zum Turm (Startseite nach dem Start) */
.lfk-teaser { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: 22px 24px; border-radius: 28px; background: var(--k-coral); color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 0 #D85A4C; transition: transform .2s; }
.lfk-teaser:hover { transform: translateY(-3px) rotate(-.5deg); }
.lfk-teaser__ico { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--k-coral); }
.lfk-teaser__ico svg { width: 26px; height: 26px; }
.lfk-teaser strong { display: block; font: 800 clamp(20px, 2.2vw, 26px)/1.15 var(--k-font); }
.lfk-teaser span span, .lfk-teaser > span:last-child { font-size: 16px; line-height: 1.4; }

.lfk-parents { margin: 0; padding: 22px var(--k-gx) 30px; background: #DDF3CF; color: #33452A; font-size: 15px; text-align: center; }
.lfk-parents button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lfk-wish + .lfk-parents { margin-top: -1px; }
.lfk-size__ctrl input[type=range]:focus-visible { outline: 3px solid rgba(255, 122, 107, .45); outline-offset: 2px; border-radius: 10px; }
.lfk-size__pod { fill: #6A5A48; font-size: 15px; font-weight: 700; }
@media (min-width: 1000px) { .lfk-hero::after { height: 9.4vw; } .lfk-hero .lfk-scene .lfk-grass { display: none; } }

/* Tipp-Blase über der Rutsche (Rutsche links) */
.lfk-hero__art .lfk-tip { left: 4%; right: auto; top: 46%; }
@media (min-width: 1000px) { .lfk-hero__art .lfk-tip { left: 2%; top: 44%; } }
@media (max-width: 999px) { .lfk-hero__art .lfk-tip { left: 3%; right: auto; top: 42%; } }
.lfk-boo { transform-origin: 100% 100%; }

/* ---------- Maskottchen Loftino ---------- */
.lfk-say { display: flex; align-items: flex-end; justify-content: center; gap: 10px; max-width: 560px; margin: 22px auto 0; }
.lfk-malea .lfk-say { justify-content: flex-start; margin-left: 0; }
.lfk-say__m { flex: 0 0 auto; width: clamp(64px, 8vw, 84px); cursor: pointer; }
.lfk-say__b { position: relative; margin: 0 0 30px !important; padding: 12px 18px; border-radius: 20px 20px 20px 6px; background: #fff; color: var(--k-ink) !important; font: 700 17px/1.35 var(--k-font) !important; text-align: left; box-shadow: 0 4px 0 rgba(36, 52, 94, .1); }
.lfk-sec--sun .lfk-say__b, .lfk-wish .lfk-say__b { box-shadow: 0 4px 0 rgba(0, 0, 0, .06); }
.lfk [data-kin].lfk-say { transform: none; }
.lfk-say.is-in .lfk-say__m { animation: lfm-hop .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.lfk-say.is-in .lfk-say__b { animation: lfm-pop .5s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.lfk-say.is-in .lfm__arm--r { animation: lfm-wave 1s .6s ease 2; }
.lfk [data-k-mascot].is-hit { animation: lfm-jump .6s cubic-bezier(.3, 1.6, .5, 1); }

/* im Kopf: Loftino steht neben dem Turm */
.lfk-host { position: absolute; z-index: 3; right: 2%; bottom: 5%; display: flex; flex-direction: column; align-items: flex-end; width: min(21%, 150px); }
.lfk-host__m { width: 100%; cursor: pointer; animation: lfm-in 1.1s .3s cubic-bezier(.3, 1.3, .5, 1) both; }
.lfk-host__b { width: max-content; max-width: 210px; margin: 0 0 6px !important; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: #fff; color: var(--k-night); font: 700 15px/1.3 var(--k-font); box-shadow: 0 4px 0 rgba(36, 52, 94, .12); animation: lfm-pop .5s 1.2s cubic-bezier(.3, 1.6, .5, 1) both; }
.lfk-host__b strong { color: var(--k-coral-ink); }
@media (max-width: 999px) { .lfk-host { width: 22%; bottom: 8%; } .lfk-host__b { max-width: 170px; font-size: 13.5px; } }

/* Chat: Loftino antwortet */
.lfk-chat__a--m { position: relative; margin-right: 50px !important; }
.lfk-chat__av { position: absolute; right: -52px; bottom: -8px; width: 44px; }

/* Eltern-Startseite: Einladung in die Kinder-Welt */
.lfm-invite { position: fixed; z-index: 70; right: 10px; bottom: 10px; transform: translateX(140%); transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); }
.lfm-invite.is-on { transform: none; }
.lfm-invite[hidden], html.lft-k .lfm-invite { display: none !important; }
.lfm-invite__go { display: flex; align-items: flex-end; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.lfm-invite__b { max-width: 190px; margin-bottom: 64px; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: #fff; color: #211E1A; font: 600 15px/1.3 var(--lft-display, system-ui); text-align: left; box-shadow: 0 10px 30px rgba(33, 30, 26, .16); }
.lfm-invite__b strong { color: #E8604F; }
.lfm-invite__m { width: 92px; }
.lfm-invite.is-on .lfm__arm--r { animation: lfm-wave 1s 1s ease 3; }
.lfm-invite__go:hover .lfm-invite__m { animation: lfm-jump .6s cubic-bezier(.3, 1.6, .5, 1); }
.lfm-invite__x { position: absolute; top: -12px; left: -10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #211E1A; color: #fff; font: 600 18px/1 system-ui; cursor: pointer; }
@media (max-width: 600px) { .lfm-invite__m { width: 74px; } .lfm-invite__b { max-width: 160px; margin-bottom: 52px; font-size: 14px; } }

@keyframes lfm-hop { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lfm-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lfm-in { 0% { transform: translateX(160%) rotate(12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes lfm-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-24deg); } 70% { transform: rotate(10deg); } }
@keyframes lfm-jump { 0%, 100% { transform: none; } 40% { transform: translateY(-14px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .lfm-invite { transition: none; } }

/* Loftinos Rundgang: das nächste Ziel leuchtet */
.lfk-hint { animation: lfk-glow 1.4s ease-in-out infinite; }
@keyframes lfk-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 201, 74, 0)); } 50% { filter: drop-shadow(0 0 7px #FFC94A) drop-shadow(0 0 3px #fff); } }
.lfk-host__b.is-new { animation: lfm-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.lfk-end .lfk-say { margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .lfk-hint { animation: none; outline: 3px solid #FFC94A; } }

/* ---------- Loftino läuft mit (ein Loftino, viele Posen) ---------- */
.lfk-buddy { position: fixed; z-index: 58; left: 10px; bottom: 12px; width: clamp(72px, 7vw, 100px); pointer-events: none; opacity: 0; transform: translateY(140%); transition: transform .55s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; }
.lfk-buddy.is-on { opacity: 1; transform: none; }
.lfk-buddy.is-out { opacity: 0; transform: translateY(140%); transition-duration: .3s; }
.lfk-buddy.side-right { left: auto; right: 10px; bottom: 82px; }
.lfk-buddy__m { position: relative; display: block; pointer-events: auto; cursor: pointer; }
.lfk-buddy__m .lfm-side { position: absolute; inset: 0; opacity: 0; }
.lfk-buddy__b { position: absolute; bottom: calc(100% + 6px); left: 0; width: max-content; max-width: min(240px, 62vw); margin: 0 !important; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--k-ink); font: 700 15px/1.3 var(--k-font); box-shadow: 0 6px 20px rgba(36, 52, 94, .16); pointer-events: auto; transition: opacity .3s, transform .3s; }
.lfk-buddy.side-right .lfk-buddy__b { left: auto; right: 0; border-radius: 18px 18px 6px 18px; }
.lfk-buddy.is-quiet .lfk-buddy__b { opacity: 0; transform: translateY(6px) scale(.9); pointer-events: none; }
.lfk-buddy.is-on .lfk-buddy__b.is-new { animation: lfm-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }

/* Ruhe-Bewegung: atmen + ab und zu ein Hüpfer */
.lfk-buddy.is-on .lfk-buddy__m { animation: lfb-idle 5.5s ease-in-out infinite; }
@keyframes lfb-idle { 0%, 100% { transform: none; } 40% { transform: scaleY(1.03); } 86% { transform: none; } 91% { transform: translateY(-10px); } 96% { transform: none; } }

/* Posen */
.lfk-buddy.pose-wave .lfm__arm--r { animation: lfb-wave 2.6s ease-in-out infinite; }
@keyframes lfb-wave { 0%, 55%, 100% { transform: none; } 65% { transform: rotate(-60deg); } 75% { transform: rotate(-35deg); } 85% { transform: rotate(-60deg); } }
.lfk-buddy.pose-cheer .lfm-front .lfm__arm--l { transform: rotate(70deg); }
.lfk-buddy.pose-cheer .lfm-front .lfm__arm--r { transform: rotate(-70deg); }
.lfk-buddy.pose-cheer.is-on .lfk-buddy__m { animation: lfb-cheer 1.4s cubic-bezier(.3, 1.6, .5, 1) 2, lfb-idle 5.5s 2.8s ease-in-out infinite; }
@keyframes lfb-cheer { 0%, 100% { transform: none; } 35% { transform: translateY(-22px) rotate(-4deg); } 60% { transform: none; } 75% { transform: translateY(-10px) rotate(3deg); } }
.lfk-buddy.pose-peek { bottom: 34vh; }
.lfk-buddy.pose-peek.side-left { left: 0; }
.lfk-buddy.pose-peek.side-right { right: 0; }
.lfk-buddy.pose-peek.side-left .lfk-buddy__m { animation: none; }
.lfk-buddy.pose-peek.side-right .lfk-buddy__m { animation: none; }
.lfk-buddy.pose-peek.is-out.side-left, .lfk-buddy.pose-peek:not(.is-on).side-left { transform: translateX(-120%); }
.lfk-buddy.pose-peek.is-out.side-right, .lfk-buddy.pose-peek:not(.is-on).side-right { transform: translateX(120%); }
.lfk-buddy.pose-peek .lfk-buddy__b { bottom: 60%; }
.lfk-buddy.pose-hang { bottom: auto; }

.lfk-buddy.pose-hang.is-out, .lfk-buddy.pose-hang:not(.is-on) { transform: translateY(-160%); }
.lfk-buddy.pose-hang .lfk-buddy__b { bottom: auto; }
.lfk-buddy.pose-sit .lfm-front .lfm__arm--l { transform: rotate(-18deg); }
.lfk-buddy.pose-sit .lfm-front .lfm__arm--r { transform: rotate(18deg); }
.lfk-buddy.pose-sit .lfk-buddy__m { animation: lfb-tilt 4s ease-in-out infinite; }
@keyframes lfb-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 60% { transform: rotate(5deg); } }

/* Beim Scrollen: Loftino läuft mit (Seitenansicht) */
.lfk-buddy.is-walking:not(.pose-peek):not(.pose-hang) .lfm-front { opacity: 0; }
.lfk-buddy.is-walking:not(.pose-peek):not(.pose-hang) .lfm-side { opacity: 1; }
.lfk-buddy.is-walking:not(.pose-peek):not(.pose-hang) .lfk-buddy__m { animation: lfb-bob .36s ease-in-out infinite; }
.lfk-buddy.side-right .lfm-side { transform: scaleX(-1); }
.lfk-buddy.is-walking .lfm__leg--f { transform-box: view-box; transform-origin: 112px 196px; animation: lfb-step .36s ease-in-out infinite; }
.lfk-buddy.is-walking .lfm__leg--b { transform-box: view-box; transform-origin: 88px 196px; animation: lfb-step .36s ease-in-out infinite reverse; }
@keyframes lfb-step { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
@keyframes lfb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.lfk-buddy__m.is-hit { animation: lfm-jump .6s cubic-bezier(.3, 1.6, .5, 1) !important; }

/* Chat: nur der Kopf, abwechselnd gespiegelt */

@media (prefers-reduced-motion: reduce) {
  .lfk-buddy, .lfk-buddy * { animation: none !important; transition: none !important; }
}
/* Feinschliff Posen */
.lfk-buddy.pose-peek.side-left .lfk-buddy__m { transform: translateX(-40%) rotate(22deg); }
.lfk-buddy.pose-peek.side-right .lfk-buddy__m { transform: translateX(40%) rotate(-22deg); }
.lfk-buddy.pose-peek.side-left .lfk-buddy__b { left: 62%; }
.lfk-buddy.pose-peek.side-right .lfk-buddy__b { right: 62%; }
.lfk-buddy.pose-hang { top: calc(var(--lft-head-h, 72px) + 2px); }
.lfk-buddy.pose-hang .lfk-buddy__m { transform-origin: 50% 0; transform: translateY(100%) rotate(180deg); animation: lfb-swing 3s ease-in-out infinite; }
@keyframes lfb-swing { 0%, 100% { transform: translateY(100%) rotate(172deg); } 50% { transform: translateY(100%) rotate(188deg); } }
.lfk-buddy.pose-hang .lfk-buddy__b { top: calc(100% + 8px); }

/* ---------- Loftinos Wege (fest im Layout, bewegt sich beim Scrollen) ---------- */
.lfk-way { --w: clamp(64px, 6.5vw, 88px); --x: 0px; --y: 0px; position: relative; max-width: 1100px; height: clamp(150px, 16vw, 200px); margin: calc(clamp(24px, 4vw, 48px) * -1) auto clamp(20px, 3vw, 36px); }
.lfk-way__deco { position: absolute; inset: 0; pointer-events: none; }
.lfk-way__m { position: absolute; left: 0; top: 0; width: var(--w); transform: translate(var(--x), var(--y)); will-change: transform; z-index: 2; }
.lfk-way__fig { position: relative; display: block; cursor: pointer; }
.lfk-way__fig .lfm-side { position: absolute; inset: 0; opacity: 0; }
.lfk-way__b { position: absolute; z-index: 3; left: 0; top: 0; width: max-content; max-width: min(250px, 58vw); margin: 0 !important; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--k-ink); font: 700 15px/1.3 var(--k-font); box-shadow: 0 6px 18px rgba(36, 52, 94, .14); opacity: 0; transform: translate(var(--bx, 0px), var(--by, 0px)) scale(.85); transition: opacity .3s, transform .3s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.lfk-way.is-talk .lfk-way__b { opacity: 1; transform: translate(var(--bx, 0px), var(--by, 0px)); }
.lfk-way.is-flip .lfk-way__b { border-radius: 18px 18px 6px 18px; }

/* Wiese zum Laufen */
.lfk-way--walk .lfk-way__deco::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; border-radius: 10px; background: radial-gradient(circle at 12% 30%, #FFC94A 0 3px, transparent 4px), radial-gradient(circle at 37% 40%, #FF7A6B 0 3px, transparent 4px), radial-gradient(circle at 63% 30%, #fff 0 3px, transparent 4px), radial-gradient(circle at 86% 45%, #FFC94A 0 3px, transparent 4px), linear-gradient(#9BD47A, #7DBE5E); }
.lfk-way--walk.is-moving .lfm-front { opacity: 0; }
.lfk-way--walk.is-moving .lfm-side { opacity: 1; }
.lfk-way--walk.is-left .lfm-side { transform: scaleX(-1); }
.lfk-way--walk.is-moving .lfk-way__fig { animation: lfb-bob .34s ease-in-out infinite; }
.lfk-way.is-moving .lfm__leg--f { transform-box: view-box; transform-origin: 112px 196px; animation: lfb-step .34s ease-in-out infinite; }
.lfk-way.is-moving .lfm__leg--b { transform-box: view-box; transform-origin: 88px 196px; animation: lfb-step .34s ease-in-out infinite reverse; }

/* Seil zum Klettern */
.lfk-way--climb .lfk-way__deco::before { content: ""; position: absolute; left: calc(var(--w) / 2 - 18px); top: -4px; width: 36px; height: 10px; border-radius: 5px; background: #9A6A3A; }
.lfk-way--climb .lfk-way__deco::after { content: ""; position: absolute; left: calc(var(--w) / 2 - 4px); top: 4px; bottom: 0; width: 8px; border-radius: 4px; background: repeating-linear-gradient(170deg, #D7AC74 0 7px, #B9854F 7px 11px); }




.lfk-way--climb.is-moving .lfm__leg--l { animation: lfw-leg .5s ease-in-out infinite; }
.lfk-way--climb.is-moving .lfm__leg--r { animation: lfw-leg .5s ease-in-out infinite reverse; }
@keyframes lfw-climb-l { 0%, 100% { transform: rotate(135deg); } 50% { transform: rotate(105deg); } }
@keyframes lfw-climb-r { 0%, 100% { transform: rotate(-105deg); } 50% { transform: rotate(-135deg); } }
@keyframes lfw-leg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Rutsche */
.lfk-way__slide { position: absolute; inset: 8px 0 0; width: 100%; height: calc(100% - 8px); overflow: visible; }
.lfk-way--slide .lfm__arm--l { transform: rotate(70deg); }
.lfk-way--slide .lfm__arm--r { transform: rotate(-70deg); }
.lfk-way--slide .lfk-way__fig { transform: rotate(-10deg); }

.lfk-way__fig.is-hit { animation: lfm-jump .6s cubic-bezier(.3, 1.6, .5, 1) !important; }
@media (prefers-reduced-motion: reduce) { .lfk-way__m, .lfk-way * { transition: none !important; animation: none !important; } }

/* Klettern: Hände greifen abwechselnd am Seil */
.lfk-way--climb .lfm-back { overflow: visible; }
.lfk-way--climb.is-moving .lfm__climb--l { animation: lfw-grab .5s ease-in-out infinite; }
.lfk-way--climb.is-moving .lfm__climb--r { animation: lfw-grab .5s ease-in-out infinite reverse; }
@keyframes lfw-grab { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
.lfk-way--climb .lfk-way__m { top: 14px; }


/* ---------- Spielidee: Was ist dein Spielhaus heute? ---------- */
.lfk-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.lfk-pick__opt { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px 20px; border: 3px solid transparent; border-radius: 22px; background: #fff; color: var(--k-ink); font: 800 19px/1.2 var(--k-font); text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(36, 52, 94, .1); transition: transform .2s, border-color .2s; }
.lfk-pick__opt:hover { transform: translateY(-3px); }
.lfk-pick__opt[aria-pressed="true"] { border-color: var(--k-coral); }
.lfk-pick__opt:focus-visible { outline: 3px solid var(--k-night); outline-offset: 3px; }
.lfk-pick__ico { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--k-sun-2); color: var(--k-coral); }
.lfk-pick__ico svg { width: 26px; height: 26px; }
.lfk-pick__opt.is-hit { animation: lfk-wiggle .6s ease; }
.lfk-pick__answer { display: flex; align-items: flex-end; justify-content: center; gap: 10px; max-width: 620px; margin: 22px auto 0; }
.lfk-pick__answer[hidden] { display: none; }
.lfk-pick__answer .lfk-say__b.is-new { animation: lfm-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }

/* Einladung weicht dem Fußbereich aus */

/* Einladung weicht dem Fußbereich aus */
.lfm-invite.is-away { transform: translateX(140%) !important; pointer-events: none; }
