/* =========================================================
   Sichtweb – Funktionen / Möglichkeiten (Showcase)
   Nutzt die Tokens aus styles.css (:root)
   ========================================================= */

.section-soft { background: var(--bg-soft); }
.fx-tag {
  display: inline-block; font-family: 'Space Grotesk'; font-weight: 600; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
  background: var(--bg-tint); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.fx-tag.on-dark { color: #c8c2ff; background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.fx-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(166,75,255,.16), transparent 60%),
    var(--bg);
}
.fx-hero-inner { max-width: 44rem; margin-inline: auto; position: relative; z-index: 2; }
.fx-hero .kicker { justify-content: center; }
.fx-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); margin-bottom: 1.1rem; }
.fx-hero .lead { margin: 0 auto 1.8rem; }
.fx-hero-blobs span {
  position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: 1;
  animation: fxFloat 9s ease-in-out infinite;
}
.fx-hero-blobs span:nth-child(1){ width:280px;height:280px;left:-60px;top:10%;background:rgba(109,94,252,.5); }
.fx-hero-blobs span:nth-child(2){ width:240px;height:240px;right:-40px;top:0;background:rgba(166,75,255,.45);animation-delay:-3s; }
.fx-hero-blobs span:nth-child(3){ width:200px;height:200px;left:50%;bottom:-60px;background:rgba(16,224,176,.4);animation-delay:-6s; }
@keyframes fxFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-26px) scale(1.08)} }
.fx-scroll { margin-top: 2.4rem; color: var(--muted); font-size: .82rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.fx-scroll span { width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; position: relative; }
.fx-scroll span::after { content:""; position:absolute; left:50%; top:7px; width:4px; height:7px; border-radius:3px; background:var(--primary); transform:translateX(-50%); animation: fxWheel 1.6s ease-in-out infinite; }
@keyframes fxWheel { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ---------- Chips ---------- */
.fx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 60rem; margin: 0 auto; }
.fx-chips li {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .6rem 1.1rem; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; cursor: default;
}
.fx-chips li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.fx-chips li span { font-size: 1.15rem; }

/* ---------- Demo-Layout ---------- */
.fx-demo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fx-demo.reverse .fx-demo-head { order: 2; }
.fx-demo-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--ink); line-height: 1.12; margin-bottom: .8rem; }
.fx-demo-head p { color: var(--muted); margin-bottom: 1.1rem; }
.fx-demo-head.center { text-align: center; max-width: 40rem; margin: 0 auto clamp(1.8rem,4vw,2.8rem); }
.fx-bullets { display: grid; gap: .5rem; }
.fx-bullets li { position: relative; padding-left: 1.7rem; color: var(--text); }
.fx-bullets li::before { content:"✓"; position:absolute; left:0; top:0; width:1.2rem; height:1.2rem; color:var(--accent-d); font-weight:700; }
.fx-demo-stage { min-width: 0; }

/* ---------- Booking ---------- */
.bk { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem,3vw,2rem); box-shadow: var(--shadow-lg); }
.bk-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:1.1rem; }
.bk-head strong { font-family:'Space Grotesk'; font-size:1.15rem; color:var(--ink); }
.bk-sub { color:var(--muted); font-size:.85rem; }
.bk-days { display:grid; grid-template-columns:repeat(5,1fr); gap:.5rem; margin-bottom:1.2rem; }
.bk-day { border:1.5px solid var(--line); background:var(--bg-soft); border-radius:var(--radius-sm); padding:.6rem .2rem; text-align:center; cursor:pointer; transition:.18s; }
.bk-day small { display:block; font-size:.7rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.bk-day b { display:block; font-family:'Space Grotesk'; font-size:1.2rem; color:var(--ink); }
.bk-day:hover { border-color:var(--primary); }
.bk-day.sel { background:var(--grad); border-color:transparent; }
.bk-day.sel small, .bk-day.sel b { color:#fff; }
.bk-label { font-weight:600; color:var(--ink); font-size:.9rem; margin-bottom:.5rem; }
.bk-slots { display:grid; grid-template-columns:repeat(4,1fr); gap:.5rem; margin-bottom:1.3rem; }
.bk-slot { border:1.5px solid var(--line); background:#fff; border-radius:999px; padding:.5rem 0; text-align:center; font-weight:600; font-size:.9rem; cursor:pointer; transition:.18s; }
.bk-slot:hover { border-color:var(--primary); color:var(--primary); }
.bk-slot.sel { background:var(--primary); border-color:var(--primary); color:#fff; }
.bk-slot.off { opacity:.4; cursor:not-allowed; text-decoration:line-through; }
.bk-done { text-align:center; padding:.6rem 0 0; }
.bk-check { width:54px; height:54px; margin:0 auto .7rem; border-radius:50%; background:var(--grad-accent); color:#fff; font-size:1.7rem; display:grid; place-items:center; animation:bkPop .4s ease; }
@keyframes bkPop { 0%{transform:scale(.4);opacity:0} 100%{transform:scale(1);opacity:1} }
.bk-done p { font-weight:600; color:var(--ink); margin-bottom:.8rem; }
.bk-reset { background:none; border:0; color:var(--primary); font-weight:600; cursor:pointer; text-decoration:underline; }

/* ---------- Bestellformular-Demo ---------- */
.ord { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(1.3rem,3vw,2rem); box-shadow:var(--shadow-lg); }
.ord-label { font-weight:600; color:var(--ink); font-size:.9rem; margin-bottom:.6rem; }
.ord-products { display:grid; grid-template-columns:repeat(3,1fr); gap:.6rem; margin-bottom:1.3rem; }
.ord-product { display:flex; flex-direction:column; align-items:center; gap:.25rem; border:1.5px solid var(--line); background:var(--bg-soft); border-radius:var(--radius-sm); padding:.9rem .4rem; cursor:pointer; transition:.18s; }
.ord-product:hover { border-color:var(--primary); }
.ord-product.sel { border-color:transparent; background:linear-gradient(120deg, rgba(109,94,252,.12), rgba(166,75,255,.12)); box-shadow:inset 0 0 0 1.5px var(--primary); }
.ord-emoji { font-size:1.8rem; line-height:1; }
.ord-name { font-weight:600; color:var(--ink); font-size:.88rem; text-align:center; }
.ord-price { color:var(--primary); font-family:'Space Grotesk'; font-weight:600; font-size:.85rem; }
.ord-qty { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.3rem; }
.ord-qty > span { font-weight:600; color:var(--ink); }
.ord-stepper { display:flex; align-items:center; gap:.2rem; border:1.5px solid var(--line); border-radius:999px; padding:.2rem; }
.ord-stepper button { width:34px; height:34px; border:0; background:var(--bg-soft); border-radius:50%; font-size:1.2rem; font-weight:700; color:var(--primary); cursor:pointer; transition:.15s; line-height:1; }
.ord-stepper button:hover { background:var(--bg-tint); }
.ord-stepper #ordQty { min-width:34px; text-align:center; font-family:'Space Grotesk'; font-weight:600; color:var(--ink); }
.ord-done { text-align:center; padding:.4rem 0 0; }
.ord-check { width:54px; height:54px; margin:0 auto .7rem; border-radius:50%; background:var(--grad-accent); color:#fff; font-size:1.7rem; display:grid; place-items:center; animation:bkPop .4s ease; }
.ord-done p { font-weight:600; color:var(--ink); margin-bottom:.8rem; }
.ord-reset { background:none; border:0; color:var(--primary); font-weight:600; cursor:pointer; text-decoration:underline; }

/* ---------- Vorher / Nachher ---------- */
.ba { position:relative; aspect-ratio:4/3; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); user-select:none; touch-action:none; }
.ba-img { position:absolute; inset:0; display:grid; place-items:center; }
.ba-emoji { font-size:clamp(5rem,16vw,9rem); filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.ba-after { background: radial-gradient(120% 120% at 30% 20%, #ffd56b, #ff6fb3 45%, #6d5efc 100%); }
.ba-before { background: linear-gradient(135deg,#9aa0bd,#6b6e87); filter:grayscale(1) brightness(.85); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .ba-emoji { filter:none; opacity:.92; }
.ba-label { position:absolute; top:12px; font-family:'Space Grotesk'; font-weight:600; font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; color:#fff; background:rgba(13,14,26,.5); padding:.25rem .6rem; border-radius:999px; backdrop-filter:blur(4px); }
.ba-l-before { left:12px; } .ba-l-after { right:12px; }
.ba-handle { position:absolute; top:0; bottom:0; left:var(--pos); width:3px; background:#fff; transform:translateX(-50%); box-shadow:0 0 0 1px rgba(0,0,0,.1); pointer-events:none; }
.ba-handle span { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:40px; height:40px; border-radius:50%; background:#fff; color:var(--ink); display:grid; place-items:center; font-weight:700; box-shadow:var(--shadow); letter-spacing:-2px; }
.ba input[type=range] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; margin:0; }

/* ---------- Galerie + Lightbox ---------- */
.gl { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.gl-item { position:relative; aspect-ratio:1/1; border-radius:var(--radius); overflow:hidden; cursor:pointer; display:grid; place-items:center; box-shadow:var(--shadow-sm); transition:transform .25s, box-shadow .25s; }
.gl-item:hover { transform:translateY(-4px) scale(1.01); box-shadow:var(--shadow); }
.gl-item .gl-emoji { font-size:clamp(2.4rem,6vw,3.6rem); filter:drop-shadow(0 8px 14px rgba(0,0,0,.2)); transition:transform .25s; }
.gl-item:hover .gl-emoji { transform:scale(1.12) rotate(-4deg); }
.gl-item::after { content:"🔍"; position:absolute; inset:0; display:grid; place-items:center; background:rgba(13,14,26,.45); opacity:0; transition:.25s; font-size:1.4rem; }
.gl-item:hover::after { opacity:1; }
.gl-cap { position:absolute; left:0; right:0; bottom:0; padding:.5rem .7rem; font-size:.8rem; font-weight:600; color:#fff; background:linear-gradient(transparent,rgba(0,0,0,.45)); z-index:2; }

.lb { position:fixed; inset:0; z-index:100; background:rgba(8,8,18,.92); display:flex; align-items:center; justify-content:center; gap:1rem; padding:1.2rem; animation:lbIn .25s ease; }
.lb[hidden] { display:none; }
@keyframes lbIn { from{opacity:0} to{opacity:1} }
.lb-stage { width:min(560px,82vw); aspect-ratio:4/3; border-radius:var(--radius-lg); display:grid; place-items:center; box-shadow:var(--shadow-lg); }
.lb-stage .gl-emoji { font-size:clamp(5rem,18vw,10rem); filter:drop-shadow(0 16px 26px rgba(0,0,0,.35)); }
.lb-cap { position:absolute; bottom:8%; left:50%; transform:translateX(-50%); color:#fff; font-weight:600; background:rgba(0,0,0,.4); padding:.35rem .9rem; border-radius:999px; }
.lb-close { position:absolute; top:1.1rem; right:1.2rem; }
.lb-close, .lb-nav { background:rgba(255,255,255,.14); color:#fff; border:0; width:48px; height:48px; border-radius:50%; font-size:1.4rem; cursor:pointer; display:grid; place-items:center; transition:background .2s; }
.lb-close:hover, .lb-nav:hover { background:rgba(255,255,255,.28); }
.lb-nav { flex:0 0 auto; }

/* ---------- Konfigurator ---------- */
.cfg { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(1.3rem,3vw,2rem); box-shadow:var(--shadow-lg); }
.cfg-row { display:block; margin-bottom:1.2rem; }
.cfg-row span { display:flex; justify-content:space-between; font-weight:600; color:var(--ink); margin-bottom:.5rem; }
.cfg-row small { color:var(--primary); font-family:'Space Grotesk'; }
.cfg input[type=range] {
  -webkit-appearance:none; appearance:none; width:100%; height:26px;
  background:transparent; cursor:pointer; margin:6px 0 2px;
}
.cfg input[type=range]:focus { outline:none; }
/* WebKit / Chrome / Safari / Edge */
.cfg input[type=range]::-webkit-slider-runnable-track {
  height:10px; border-radius:999px;
  background:
    linear-gradient(var(--primary),var(--primary)) 0 / var(--fill,22%) 100% no-repeat,
    var(--bg-tint);
}
.cfg input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none; appearance:none; margin-top:-8px;
  width:26px; height:26px; border-radius:50%;
  background:#fff; border:3px solid var(--primary); box-shadow:var(--shadow);
  transition:transform .15s, box-shadow .15s;
}
.cfg input[type=range]:hover::-webkit-slider-thumb { transform:scale(1.12); }
.cfg input[type=range]:active::-webkit-slider-thumb { transform:scale(1.04); }
.cfg input[type=range]:focus::-webkit-slider-thumb { box-shadow:0 0 0 6px rgba(109,94,252,.18); }
/* Firefox */
.cfg input[type=range]::-moz-range-track { height:10px; border-radius:999px; background:var(--bg-tint); }
.cfg input[type=range]::-moz-range-progress { height:10px; border-radius:999px; background:var(--primary); }
.cfg input[type=range]::-moz-range-thumb {
  width:26px; height:26px; border-radius:50%;
  background:#fff; border:3px solid var(--primary); box-shadow:var(--shadow);
}
.cfg-opt { display:flex; align-items:center; gap:.7rem; padding:.7rem .9rem; border:1.5px solid var(--line); border-radius:var(--radius-sm); margin-bottom:.6rem; cursor:pointer; transition:.18s; }
.cfg-opt:hover { border-color:var(--primary); }
.cfg-opt input { width:18px; height:18px; accent-color:var(--primary); }
.cfg-opt span { display:flex; justify-content:space-between; flex:1; font-weight:500; }
.cfg-opt small { color:var(--muted); }
.cfg-total { margin:1.3rem 0 .5rem; padding-top:1.1rem; border-top:1px dashed var(--line); }
.cfg-total-row { display:flex; justify-content:space-between; align-items:baseline; }
.cfg-total-row span { color:var(--muted); }
.cfg-total-row strong { font-family:'Space Grotesk'; color:var(--ink); }
.cfg-total-row:first-child strong { font-size:1.9rem; }
.cfg-monthly { margin-top:.45rem; }
.cfg-monthly span { font-size:.92rem; }
.cfg-monthly strong { font-size:1.1rem; color:var(--primary); }
.cfg-note { font-size:.82rem; color:var(--muted); margin:0 0 1rem; line-height:1.45; }

/* ---------- Stats ---------- */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1.2rem; }
.stat { text-align:center; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:var(--radius); padding:1.6rem 1rem; }
.stat-num { display:block; font-family:'Space Grotesk'; font-weight:700; font-size:clamp(2rem,5vw,3rem); background:var(--grad-accent); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-lbl { color:#9aa0c2; font-size:.9rem; }
/* Überschrift auf dunklem Grund sichtbar machen + Farbakzent */
.section-dark .fx-demo-head h2 { color:#fff; font-size:clamp(2rem,4.6vw,3rem); }
.section-dark .fx-demo-head .section-sub { color:#b9bdd6; }
.fx-accent { background:var(--grad-accent); -webkit-background-clip:text; background-clip:text; color:transparent; }
/* Dezente animierte Hintergrund-Glows (Aurora) */
.fx-stats-sec { position:relative; overflow:hidden; }
.fx-stats-sec::before, .fx-stats-sec::after {
  content:""; position:absolute; border-radius:50%; filter:blur(72px); pointer-events:none; z-index:0; opacity:.5;
}
.fx-stats-sec::before { width:380px; height:380px; background:#6d5efc; top:-130px; left:-90px; animation:auroraA 15s ease-in-out infinite; }
.fx-stats-sec::after { width:320px; height:320px; background:#10e0b0; bottom:-130px; right:-70px; animation:auroraB 18s ease-in-out infinite; }
@keyframes auroraA { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(70px,50px) scale(1.12)} }
@keyframes auroraB { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-55px,-35px) scale(1.1)} }
.fx-stats-sec .container { position:relative; z-index:1; }

/* ---------- Zwei-Spalten (i18n + theme) ---------- */
.fx-two { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.fx-mini { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(1.3rem,3vw,2rem); box-shadow:var(--shadow); }
.fx-mini h3 { font-size:1.3rem; color:var(--ink); margin-bottom:.3rem; }
.fx-mini-sub { color:var(--muted); font-size:.92rem; margin-bottom:1.2rem; }

/* i18n */
.i18n-switch { display:flex; gap:.4rem; margin-bottom:1rem; }
.i18n-switch button { flex:1; border:1.5px solid var(--line); background:#fff; border-radius:999px; padding:.5rem 0; font-weight:600; cursor:pointer; transition:.18s; font-size:.9rem; }
.i18n-switch button:hover { border-color:var(--primary); }
.i18n-switch button.active { background:var(--grad); border-color:transparent; color:#fff; }
.i18n-card { background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:1.3rem; }
.i18n-card h4 { font-family:'Space Grotesk'; font-size:1.2rem; color:var(--ink); margin-bottom:.4rem; }
.i18n-card p { color:var(--muted); margin-bottom:1rem; }
.i18n-btn { display:inline-block; background:var(--grad); color:#fff; font-weight:600; padding:.5rem 1.1rem; border-radius:999px; font-size:.9rem; }

/* theme */
.thm { display:flex; flex-direction:column; align-items:center; gap:1.2rem; }
.thm-toggle { width:64px; height:34px; border-radius:999px; border:0; background:var(--bg-tint); position:relative; cursor:pointer; transition:background .3s; }
.thm-knob { position:absolute; top:3px; left:3px; width:28px; height:28px; border-radius:50%; background:#fff; display:grid; place-items:center; font-size:.9rem; box-shadow:var(--shadow-sm); transition:transform .3s; }
.thm-preview { width:100%; border-radius:var(--radius); border:1px solid var(--line); padding:1.1rem; background:#fff; transition:background .3s, border-color .3s; }
.thm-bar { display:flex; gap:5px; margin-bottom:.9rem; }
.thm-bar i { width:9px; height:9px; border-radius:50%; background:#d6d8e6; }
.thm-h { height:16px; width:65%; border-radius:5px; background:var(--ink); opacity:.85; margin-bottom:.6rem; transition:background .3s; }
.thm-p { height:8px; border-radius:4px; background:#cfd2e6; margin-bottom:.4rem; }
.thm-p.short { width:55%; }
.thm-cta { margin-top:.8rem; width:90px; height:22px; border-radius:999px; background:var(--grad); }
.thm.dark .thm-toggle { background:#3b3170; }
.thm.dark .thm-knob { transform:translateX(30px); }
.thm.dark .thm-preview { background:#16172a; border-color:#2a2c44; }
.thm.dark .thm-h { background:#fff; opacity:.92; }
.thm.dark .thm-p { background:#3a3d5c; }
.thm.dark .thm-bar i { background:#3a3d5c; }

/* ---------- FAQ ---------- */
.fx-narrow { max-width:50rem; }
.faq-item { border:1px solid var(--line); border-radius:var(--radius-sm); margin-bottom:.7rem; overflow:hidden; background:#fff; }
.faq-q { width:100%; text-align:left; background:none; border:0; padding:1.1rem 1.2rem; font:inherit; font-weight:600; color:var(--ink); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq-ico { font-family:'Space Grotesk'; font-size:1.4rem; color:var(--primary); transition:transform .25s; flex:0 0 auto; }
.faq-item.open .faq-ico { transform:rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p { padding:0 1.2rem 1.1rem; color:var(--muted); }

/* ---------- CTA ---------- */
.fx-cta-sec { background:var(--bg-soft); }
.fx-cta { text-align:center; max-width:40rem; margin:0 auto; background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(2rem,5vw,3.4rem); box-shadow:var(--shadow); }
.fx-cta h2 { font-size:clamp(1.7rem,3.4vw,2.4rem); color:var(--ink); margin-bottom:.6rem; }
.fx-cta p { color:var(--muted); margin-bottom:1.6rem; }
.fx-cta-btns { display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .fx-demo { grid-template-columns:1fr; }
  .fx-demo.reverse .fx-demo-head { order:0; }
  .gl { grid-template-columns:repeat(3,1fr); }
  .stats { grid-template-columns:repeat(2,1fr); }
  .fx-two { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .bk-days { grid-template-columns:repeat(3,1fr); }
  .bk-slots { grid-template-columns:repeat(3,1fr); }
  .gl { grid-template-columns:repeat(2,1fr); }
}
