/* ===== Funktionen-Seite: Live-Demos (funktionen.html + funktionen.js) ===== */

.fx-page { padding-top: 0; overflow-x: clip; }

/* ---------- Hero ---------- */
.fx-hero { position: relative; padding: 9rem 0 4rem; text-align: center; overflow: hidden; }
.fx-hero-aurora {
    position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; filter: blur(60px); opacity: .55;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(59, 130, 246, .55), transparent 70%),
        radial-gradient(35% 45% at 80% 20%, rgba(14, 165, 233, .38), transparent 70%),
        radial-gradient(45% 50% at 55% 75%, rgba(37, 99, 235, .4), transparent 70%);
    animation: fx-aurora 18s ease-in-out infinite alternate;
}
@keyframes fx-aurora {
    0% { transform: translate3d(-4%, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(3%, 4%, 0) rotate(8deg) scale(1.08); }
    100% { transform: translate3d(5%, -3%, 0) rotate(-6deg) scale(1.02); }
}
.fx-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-secondary); font-size: .85rem; margin-bottom: 1.4rem;
}
.fx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: fx-pulse 2s infinite; }
@keyframes fx-pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.fx-hero-title { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--text-primary); margin-bottom: 1.2rem; }
.fx-gradient-text {
    background: linear-gradient(100deg, var(--primary-light), var(--secondary) 35%, var(--accent) 60%, var(--primary-light) 100%);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: fx-shine 6s linear infinite;
}
@keyframes fx-shine { to { background-position: 220% center; } }
.fx-hero-intro { max-width: 720px; margin: 0 auto 2rem; }
.fx-hero .gbp-hero-actions { justify-content: center; }
.fx-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2.4rem auto 1rem; padding: 0; max-width: 860px; }
.fx-chips a {
    display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); text-decoration: none; font-size: .9rem; transition: transform .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
}
.fx-chips a:hover, .fx-chips a:focus-visible { transform: translateY(-3px); border-color: var(--primary); color: var(--text-primary); background: var(--bg-card-hover); }
.fx-demo-note { color: var(--text-tertiary); font-size: .85rem; margin-top: .8rem; }

/* ---------- Abschnitte ---------- */
.fx-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; padding: 4.5rem 0; border-top: 1px solid var(--border); }
.fx-section--flip .fx-text { order: 2; }
.fx-section .section-title, .fx-block .section-title { text-align: left; margin-bottom: 1rem; }
.fx-text p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.fx-for { font-size: .88rem; color: var(--text-tertiary) !important; }
.fx-num { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .15em; color: var(--primary-light); margin-bottom: .6rem; }
.fx-block { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.fx-block .section-description { text-align: left; margin: 0 0 2rem !important; padding: 0 !important; max-width: 720px; }

.fx-demo {
    position: relative; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card);
    box-shadow: var(--shadow-lg); padding: 1.6rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fx-demo::before { /* feiner Farbrand */
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, .6), transparent 40%, transparent 60%, rgba(236, 72, 153, .5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.fx-demo-tag { position: absolute; top: -.75rem; right: 1.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--primary); color: #fff; }

/* Scroll-Reveal */
.fx-reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.fx-reveal.fx-in { opacity: 1; transform: none; }

/* ---------- Gemeinsame Demo-Elemente ---------- */
.fx-steps { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.fx-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: background .4s ease; }
.fx-steps span.on { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.fx-h { font-weight: 700; color: var(--text-primary); margin-bottom: .8rem; font-size: 1.05rem; }
.fx-options { display: grid; gap: .6rem; }
.fx-option {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; text-align: left; cursor: pointer;
    padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-primary);
    font: inherit; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.fx-option:hover, .fx-option:focus-visible { border-color: var(--primary); transform: translateX(4px); }
.fx-option small { color: var(--text-tertiary); }
.fx-option.sel { border-color: var(--primary); background: rgba(99, 102, 241, .15); }
.fx-back { background: none; border: 0; color: var(--text-tertiary); cursor: pointer; font: inherit; font-size: .85rem; margin-top: 1rem; padding: 0; }
.fx-back:hover { color: var(--text-primary); }
.fx-small { font-size: .82rem; color: var(--text-tertiary); }

/* Terminbuchung */
.fx-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.fx-day {
    padding: .55rem .2rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-primary);
    font: inherit; font-size: .82rem; cursor: pointer; display: grid; gap: .1rem; text-align: center; transition: all .2s ease;
}
.fx-day b { font-size: 1.05rem; }
.fx-day:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.fx-day:not(:disabled):hover, .fx-day.sel { border-color: var(--primary); background: rgba(99, 102, 241, .18); }
.fx-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: 1rem; }
.fx-slot { padding: .55rem 0; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-primary); font: inherit; font-size: .9rem; cursor: pointer; transition: all .2s ease; }
.fx-slot:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.fx-slot:not(:disabled):hover { border-color: var(--primary); transform: translateY(-2px); }
.fx-field { display: grid; gap: .35rem; margin-bottom: .8rem; font-size: .9rem; color: var(--text-secondary); }
.fx-field input, .fx-field select {
    padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-primary); font: inherit;
}
.fx-summary { border-radius: 12px; padding: 1rem; background: var(--bg-glass); border: 1px dashed var(--border); margin: .8rem 0 1rem; line-height: 1.7; color: var(--text-secondary); }
.fx-done { text-align: center; padding: 1rem 0; }
.fx-check { width: 72px; height: 72px; margin: 0 auto 1rem; }
.fx-check circle { stroke: #22c55e; stroke-width: 3; fill: none; stroke-dasharray: 166; stroke-dashoffset: 166; animation: fx-draw .7s ease forwards; }
.fx-check path { stroke: #22c55e; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: fx-draw .45s .6s ease forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
.fx-anim-in { animation: fx-slide .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes fx-slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* Vorher/Nachher */
.fx-compare { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; user-select: none; --pos: 50%; }
.fx-compare-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.fx-compare-after img { width: 100%; height: 100%; object-fit: cover; }
.fx-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.fx-compare-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.fx-compare-handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: #1f2333; font-weight: 800; letter-spacing: 2px; }
.fx-compare-label { position: absolute; top: .8rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(0, 0, 0, .6); color: #fff; pointer-events: none; }
.fx-compare-label--before { left: .8rem; }
.fx-compare-label--after { right: .8rem; background: var(--primary); }
.fx-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.fx-compare-range:focus-visible ~ .fx-compare-handle span { outline: 3px solid var(--primary-light); }

/* Öffnungszeiten */
.fx-open-status { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.fx-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.fx-dot.open { background: #22c55e; animation: fx-pulse 2s infinite; }
.fx-dot.closed { background: #ef4444; }
.fx-open-big { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.fx-open-sub { color: var(--text-secondary); font-size: .95rem; }
.fx-week { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.fx-week li { display: flex; justify-content: space-between; padding: .55rem .8rem; border-radius: 10px; color: var(--text-secondary); }
.fx-week li.today { background: rgba(99, 102, 241, .15); color: var(--text-primary); font-weight: 700; }
.fx-progress { height: 6px; border-radius: 6px; background: var(--border); margin: .4rem 0 1.2rem; overflow: hidden; }
.fx-progress i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #a3e635); border-radius: inherit; transition: width .8s ease; }

/* Preisrechner */
.fx-range-row { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: .9rem; }
.fx-range-row b { color: var(--text-primary); }
.fx-calc input[type="range"] { width: 100%; accent-color: var(--primary); margin: .5rem 0 1.2rem; }
.fx-toggles { display: grid; gap: .5rem; margin: .4rem 0 1.2rem; }
.fx-toggle { display: flex; align-items: center; gap: .6rem; color: var(--text-secondary); font-size: .92rem; cursor: pointer; }
.fx-toggle input { accent-color: var(--primary); width: 18px; height: 18px; }
.fx-result { border-radius: 14px; padding: 1.1rem 1.2rem; background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(139, 92, 246, .14)); border: 1px solid rgba(99, 102, 241, .35); }
.fx-result small { color: var(--text-secondary); display: block; }
.fx-result strong { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Speisekarte */
.fx-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.fx-filter button { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-secondary); font: inherit; font-size: .88rem; cursor: pointer; transition: all .2s ease; }
.fx-filter button.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.fx-dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fx-dish { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--bg-glass); border: 1px solid var(--border); }
.fx-dish strong { color: var(--text-primary); }
.fx-dish small { display: block; color: var(--text-tertiary); }
.fx-dish .p { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.fx-tag { display: inline-block; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; margin-left: .35rem; background: rgba(34, 197, 94, .18); color: #22c55e; vertical-align: middle; }
.fx-tag.hot { background: rgba(239, 68, 68, .18); color: #ef4444; }

/* Effekte */
.fx-effects-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.fx-effect-card {
    position: relative; border-radius: 18px; padding: 1.5rem; border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); overflow: hidden; transform-style: preserve-3d;
}
.fx-effect-card h3 { color: var(--text-primary); font-size: 1.1rem; margin: .6rem 0 .5rem; }
.fx-effect-card p { line-height: 1.6; font-size: .93rem; }
.fx-effect-icon { font-size: 1.8rem; }
.fx-tilt { transition: transform .15s ease-out, box-shadow .3s ease; will-change: transform; }
.fx-tilt:hover { box-shadow: var(--shadow-glow); }
.fx-tilt-inner { transform: translateZ(30px); }
.fx-spotlight { --mx: 50%; --my: 50%; }
.fx-spotlight::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(129, 140, 248, .28), transparent 60%);
}
.fx-spotlight:hover::after, .fx-spotlight:focus-visible::after { opacity: 1; }
.fx-magnetic { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.fx-magnet-demo { margin-top: 1rem; }
.fx-counter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; text-align: center; }
.fx-counter-row strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.fx-counter-row span { font-size: .75rem; color: var(--text-tertiary); }

/* Galerie + Lightbox */
.fx-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fx-gallery-item { padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: none; aspect-ratio: 16 / 10; }
.fx-gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease; }
.fx-gallery-item:hover img, .fx-gallery-item:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }
.fx-lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(5, 6, 12, .92); backdrop-filter: blur(6px); animation: fx-fade .25s ease; }
.fx-lightbox[hidden] { display: none; }
@keyframes fx-fade { from { opacity: 0; } }
.fx-lb-img { max-width: min(92vw, 1280px); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: fx-zoom .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes fx-zoom { from { opacity: 0; transform: scale(.92); } }
.fx-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.fx-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.fx-lb-close { top: 1.2rem; right: 1.2rem; }
.fx-lb-prev { left: 1.2rem; top: 50%; margin-top: -26px; }
.fx-lb-next { right: 1.2rem; top: 50%; margin-top: -26px; }

/* CTA */
.fx-cta { text-align: center; margin: 3rem 0 5rem; padding: 3.5rem 1.5rem; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(14, 165, 233, .08)); position: relative; overflow: hidden; }
.fx-cta .section-title { text-align: center; }
.fx-cta p { max-width: 640px; margin: 0 auto 1.6rem; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Wow-Effekte ---------- */
.fx-progressbar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 2000; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); box-shadow: 0 0 12px rgba(139, 92, 246, .6); }
.fx-cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, .16), transparent 65%); opacity: 0; transition: opacity .4s ease; will-change: transform; }
.fx-cursor-glow.on { opacity: 1; }
.fx-typer { min-height: 1.6em; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--text-primary); margin: -.4rem 0 1.2rem; }
.fx-typer-text { background: linear-gradient(90deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -.15em; background: var(--accent); animation: fx-blink 1s steps(1) infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }
.fx-marquee { position: relative; overflow: hidden; margin: 1.6rem auto .6rem; max-width: 1100px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.fx-marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: fx-marquee 38s linear infinite; }
.fx-marquee-track span { font-size: 1.05rem; font-weight: 700; color: var(--text-tertiary); white-space: nowrap; letter-spacing: .02em; }
.fx-marquee-track span::before { content: "✦"; margin-right: .8rem; color: var(--primary-light); }
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
.fx-compare-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.fx-compare-tabs button { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-secondary); font: inherit; font-size: .9rem; cursor: pointer; transition: all .2s ease; }
.fx-compare-tabs button.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.fx-compare-img { transition: opacity .35s ease; }
.fx-compare.switching .fx-compare-img { opacity: 0; }
/* Galerie: Vorhang-Reveal */
.fx-gallery-item { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1); }
.fx-in .fx-gallery-item { clip-path: inset(0 0 0 0); }
.fx-in .fx-gallery-item:nth-child(2) { transition-delay: .1s; } .fx-in .fx-gallery-item:nth-child(3) { transition-delay: .2s; }
.fx-in .fx-gallery-item:nth-child(4) { transition-delay: .3s; } .fx-in .fx-gallery-item:nth-child(5) { transition-delay: .4s; }
.fx-in .fx-gallery-item:nth-child(6) { transition-delay: .5s; }
/* Effekt-Karten nacheinander */
.fx-reveal:not(.fx-in) .fx-effect-card { opacity: 0; }
.fx-in .fx-effect-card { animation: fx-rise .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes fx-rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.fx-effects-grid .fx-effect-card { display: flex; flex-direction: column; }
/* Text-Entschlüsselung */
.fx-scramble { margin-top: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem !important; font-weight: 700; color: var(--primary-light); letter-spacing: .03em; min-height: 1.6em; }
/* Klick-Welle */
.fx-ripple-btn { position: relative; overflow: hidden; align-self: flex-start; margin-top: auto; }
.fx-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: fx-ripple .65s ease-out forwards; pointer-events: none; }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }
/* Wendekarte */
.fx-flip { margin-top: auto; height: 96px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; font: inherit; }
.fx-flip-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.4, .2, .2, 1); transform-style: preserve-3d; }
.fx-flip:hover .fx-flip-inner, .fx-flip.flipped .fx-flip-inner { transform: rotateY(180deg); }
.fx-flip.flipped:hover .fx-flip-inner { transform: rotateY(180deg); }
.fx-flip-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff; font-size: 1.05rem; }
.fx-flip-front { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.fx-flip-back { background: linear-gradient(135deg, #ec4899, #f59e0b); transform: rotateY(180deg); }
/* Tiefen-Effekt */
.fx-parallax { position: relative; margin-top: auto; height: 120px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #1e1b4b, #4c1d95 60%, #be185d); }
.fx-layer { position: absolute; transition: transform .25s ease-out; will-change: transform; }
.fx-layer-moon { top: 12px; right: 22px; font-size: 1.6rem; }
.fx-layer-cloud { top: 28px; left: 18px; font-size: 1.8rem; opacity: .9; }
.fx-layer-hill { left: -20%; right: -20%; bottom: -40px; height: 90px; border-radius: 50% 50% 0 0; background: #312e81; }
.fx-layer-trees { left: -10px; right: -10px; bottom: 2px; font-size: 1.5rem; text-align: center; letter-spacing: .2rem; white-space: nowrap; }
/* Herz */
.fx-heart { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-glass); color: var(--text-primary); font: inherit; cursor: pointer; transition: border-color .2s ease; }
.fx-heart-icon { position: relative; display: inline-block; font-size: 1.3rem; color: var(--text-tertiary); transition: color .2s ease; }
.fx-heart.liked { border-color: #ec4899; }
.fx-heart.liked .fx-heart-icon { color: #ec4899; animation: fx-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fx-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.45); } 100% { transform: scale(1); } }
.fx-heart-count { font-variant-numeric: tabular-nums; }
.fx-spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #f472b6; animation: fx-spark .6s ease-out forwards; }
@keyframes fx-spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.fx-confetti-btn { align-self: flex-start; margin-top: auto; }
/* Lupe */
.fx-lens-box { position: relative; margin-top: auto; border-radius: 14px; overflow: hidden; cursor: crosshair; touch-action: none; aspect-ratio: 16 / 10; }
.fx-lens-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-lens { position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); background-repeat: no-repeat; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.fx-lens-box.on .fx-lens { opacity: 1; transform: scale(1); }
/* rotierender Leuchtrand */
@property --fx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fx-cta.fx-glow-border { border: 0; }
.fx-glow-border::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--fx-angle), transparent 0 60%, var(--primary-light), var(--accent), transparent 85%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: fx-spin 5s linear infinite; }
@keyframes fx-spin { to { --fx-angle: 360deg; } }
.fx-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2500; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
    .fx-section { grid-template-columns: 1fr; gap: 1.8rem; padding: 3.2rem 0; }
    .fx-section--flip .fx-text { order: 0; }
    .fx-effects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .fx-hero { padding: 7rem 0 2.5rem; }
    .fx-demo { padding: 1.1rem; }
    .fx-effects-grid, .fx-gallery { grid-template-columns: 1fr; }
    .fx-slots { grid-template-columns: repeat(3, 1fr); }
    .fx-days { gap: .25rem; }
    .fx-day { font-size: .72rem; }
    .fx-lb-prev, .fx-lb-next { top: auto; bottom: 1.2rem; margin-top: 0; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
    .fx-hero-aurora, .fx-gradient-text, .fx-eyebrow::before, .fx-dot.open { animation: none; }
    .fx-reveal { opacity: 1; transform: none; transition: none; }
    .fx-tilt, .fx-magnetic { transition: none; }
    .fx-marquee-track, .fx-caret, .fx-glow-border::before { animation: none; }
    .fx-gallery-item { clip-path: none; transition: none; }
    .fx-effect-card { opacity: 1 !important; animation: none !important; }
    .fx-flip-inner, .fx-layer { transition: none; }
    .fx-cursor-glow, .fx-progressbar { display: none; }
}

/* ---------- Helles Design: Türkis/Blau statt Lila/Pink ---------- */
[data-theme="light"] .fx-page { --primary: #0891b2; --primary-light: #0ea5e9; --secondary: #0d9488; --accent: #14b8a6; }
[data-theme="light"] .fx-hero-aurora {
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(14, 165, 233, .45), transparent 70%),
        radial-gradient(35% 45% at 80% 20%, rgba(20, 184, 166, .35), transparent 70%),
        radial-gradient(45% 50% at 55% 75%, rgba(56, 189, 248, .35), transparent 70%);
}
[data-theme="light"] .fx-gradient-text { background-image: linear-gradient(100deg, #0e7490, #0891b2 35%, #0d9488 60%, #0e7490 100%); }
[data-theme="light"] .fx-typer-text { background-image: linear-gradient(90deg, #0284c7, #0d9488); }
[data-theme="light"] .fx-progressbar { background: linear-gradient(90deg, #0ea5e9, #14b8a6); box-shadow: 0 0 12px rgba(20, 184, 166, .5); }
[data-theme="light"] .fx-cursor-glow { background: radial-gradient(circle, rgba(14, 165, 233, .14), transparent 65%); }
[data-theme="light"] .fx-demo::before { background: linear-gradient(135deg, rgba(14, 165, 233, .55), transparent 40%, transparent 60%, rgba(20, 184, 166, .45)); }
[data-theme="light"] .fx-result { background: linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(20, 184, 166, .1)); border-color: rgba(8, 145, 178, .35); }
[data-theme="light"] .fx-page .today { background: rgba(14, 165, 233, .14); }
[data-theme="light"] .fx-flip-back { background: linear-gradient(135deg, #0d9488, #0ea5e9); }
[data-theme="light"] .fx-parallax { background: linear-gradient(180deg, #0c4a6e, #0e7490 60%, #14b8a6); }
[data-theme="light"] .fx-layer-hill { background: #075985; }
[data-theme="light"] .fx-cta { background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(20, 184, 166, .08)); }
