/* KapFixIT Wahlscheibe 1.0 (21.11.2026): Handy-Menü als drehbare Glasscheibe, Crystal Glass 2.1.
   Gehört zu kfx-scheibe.js. Brechung an Rand und Linse über kfx-kante.js (nur Chromium), sonst Unschärfe. */
.kfs{
  --kfs-d:min(86vw,370px,56vh);
  --kfs-r:140px;
  --kfs-text:#EEF1F4;--kfs-text2:#C5CBD3;--kfs-leise:#A0A9B6;--kfs-akzent:#67C7F4;--kfs-akzent-hell:#8FD5F7;
  --kfs-feder:cubic-bezier(.34,1.35,.5,1);
  position:fixed;inset:0;z-index:80;color:var(--kfs-text);font-family:inherit;-webkit-tap-highlight-color:transparent}
.kfs[hidden],.kfs [hidden]{display:none!important}
html.kfs-offen,html.kfs-offen body{overflow:hidden;overscroll-behavior:none}
.kfs *,.kfs *::before,.kfs *::after{box-sizing:border-box}
.kfs button{font:inherit;color:inherit;-webkit-appearance:none;appearance:none}

.kfs-schleier{position:absolute;inset:0;background:rgba(6,7,10,.58);opacity:0;transition:opacity .3s ease;
  -webkit-backdrop-filter:blur(10px) saturate(130%);backdrop-filter:blur(10px) saturate(130%)}
.kfs-auf .kfs-schleier{opacity:1}

.kfs-buehne{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:16px;
  padding:calc(16px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(26px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  pointer-events:none}
.kfs-buehne>*{pointer-events:auto}
.kfs-ansage{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}

/* Kopf und Fuß */
.kfs-kopf,.kfs-fuss{width:var(--kfs-d);display:flex;align-items:center;justify-content:space-between;gap:12px;
  opacity:0;transform:translateY(10px);transition:opacity .3s ease .12s,transform .5s var(--kfs-feder) .12s}
.kfs-auf .kfs-kopf,.kfs-auf .kfs-fuss{opacity:1;transform:none}
.kfs-fuss{justify-content:center;min-height:44px}
.kfs-titel{margin:0;font-size:22px;font-weight:700;letter-spacing:-.01em}
.kfs-zu,.kfs-zurueck{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;min-width:44px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 20px rgba(0,0,0,.25);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.kfs-zurueck{padding:0 18px 0 14px;font-size:15px;font-weight:600}
.kfs-zu svg,.kfs-zurueck svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kfs-tipp{margin:0;font-size:13px;color:var(--kfs-leise)}
.kfs :is(button,.kfs-scheibe):focus-visible{outline:2px solid var(--kfs-akzent);outline-offset:3px}

/* Die Scheibe */
.kfs-scheibe{position:relative;flex:none;width:var(--kfs-d);height:var(--kfs-d);border-radius:calc(var(--kfs-d) / 2);touch-action:none;cursor:grab;
  background:
    radial-gradient(120% 70% at 50% 0%,rgba(255,255,255,.16),transparent 55%),
    radial-gradient(60% 60% at 80% 100%,rgba(103,199,244,.12),transparent 70%),
    rgba(18,21,28,.38);
  -webkit-backdrop-filter:blur(16px) saturate(190%) brightness(1.1);
  backdrop-filter:var(--kfx-kante,blur(16px)) saturate(190%) brightness(1.1);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.30),inset 0 2px 0 rgba(255,255,255,.38),inset 0 -24px 50px rgba(0,0,0,.28),
    0 44px 100px rgba(0,0,0,.6),0 10px 26px rgba(0,0,0,.35);
  opacity:0;transform:scale(.6);transition:opacity .25s ease,transform .7s var(--kfs-feder)}
.kfs-auf .kfs-scheibe{opacity:1;transform:none}
.kfs-geht .kfs-scheibe{opacity:0;transform:scale(1.06);transition:opacity .25s ease,transform .35s ease}
.kfs-dreht .kfs-scheibe{cursor:grabbing}
.kfs-scheibe::before{content:"";position:absolute;inset:7px;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,rgba(255,255,255,.0),rgba(255,255,255,.10) 10%,rgba(255,255,255,0) 22%,rgba(255,255,255,0) 60%,rgba(143,213,247,.14) 72%,rgba(255,255,255,0) 84%);
  -webkit-mask:radial-gradient(circle,transparent calc(50% - 2px),#000 calc(50% - 1px));mask:radial-gradient(circle,transparent calc(50% - 2px),#000 calc(50% - 1px))}

/* Rille, in der die Punkte laufen */
.kfs-rille{position:absolute;left:50%;top:50%;width:calc(var(--kfs-r) * 2 + 74px);height:calc(var(--kfs-r) * 2 + 74px);border-radius:50%;
  transform:translate(-50%,-50%);pointer-events:none;background:rgba(0,0,0,.16);
  box-shadow:inset 0 3px 12px rgba(0,0,0,.38),inset 0 -1px 0 rgba(255,255,255,.10),0 1px 0 rgba(255,255,255,.06)}
.kfs-dicht .kfs-rille{width:calc(var(--kfs-r) * 2 + 34px);height:calc(var(--kfs-r) * 2 + 34px)}

.kfs-rad{position:absolute;inset:0;transition:opacity .17s ease,transform .17s ease}
.kfs-wechsel .kfs-rad{opacity:0;transform:scale(.86)}

/* Punkte: Mitte des Symbols liegt genau auf dem Drehpunkt */
.kfs-punkt{position:absolute;left:50%;top:50%;width:52px;height:48px;margin:-24px 0 0 -26px;padding:0;border:0;background:none;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;will-change:transform}
.kfs-ic{position:relative;display:grid;place-items:center;width:48px;height:48px;border-radius:16px;font-style:normal;flex:none;
  background:rgba(0,0,0,.30);border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 14px rgba(0,0,0,.22);
  transition:background .25s,border-color .25s,box-shadow .25s,color .25s;color:var(--kfs-akzent)}
.kfs-ic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.kfs-wort{position:absolute;top:100%;pointer-events:none;margin-top:5px;font-size:11px;font-weight:600;line-height:1.1;color:var(--kfs-text2);white-space:nowrap;
  transition:color .25s,opacity .25s}
.kfs-sel .kfs-ic{color:#fff;border-color:rgba(255,255,255,.4);background:linear-gradient(160deg,#61B2ED 0%,#0478A3 55%,#035E80 100%);
  box-shadow:0 10px 24px rgba(4,120,163,.55),inset 0 1px 0 rgba(255,255,255,.45)}
.kfs-sel .kfs-wort{opacity:0}
.kfs-aktiv .kfs-ic::after{content:"";position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:var(--kfs-akzent);
  box-shadow:0 0 8px rgba(103,199,244,.9)}
.kfs-sel.kfs-aktiv .kfs-ic::after{background:#fff}

/* Unterpunkte als Chips (bis 8) oder Perlen (mehr als 8) */
.kfs-ohne{width:auto;height:36px;margin:-18px 0 0 0;translate:-50% 0}
.kfs-ohne .kfs-ic{width:auto;height:36px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:600;color:var(--kfs-text2);white-space:nowrap;max-width:98px}
.kfs-ohne .kfs-ic{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:34px;text-align:center}
.kfs-ohne .kfs-ic span{display:inline}
.kfs-ohne.kfs-sel .kfs-ic{color:#fff}
.kfs-dicht .kfs-ohne{width:18px;height:18px;margin:-9px 0 0 -9px;translate:none}
.kfs-dicht .kfs-ohne .kfs-ic{width:18px;height:18px;padding:0;border-radius:50%}
.kfs-dicht .kfs-ohne.kfs-aktiv .kfs-ic::after{top:-3px;right:-3px;width:5px;height:5px}
.kfs-ohne.kfs-aktiv .kfs-ic::after{top:-2px;right:-2px}

/* Linse oben: fest, der gewählte Punkt dreht darunter */
.kfs-linse{position:absolute;left:50%;top:calc(50% - var(--kfs-r));width:66px;height:66px;margin:-33px 0 0 -33px;border-radius:33px;pointer-events:none;z-index:2;
  background:radial-gradient(80% 60% at 50% 15%,rgba(255,255,255,.28),transparent 60%);
  -webkit-backdrop-filter:saturate(140%) brightness(1.1);backdrop-filter:var(--kfs-linse,blur(0px)) saturate(140%) brightness(1.1);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55),inset 0 -6px 12px rgba(0,0,0,.18),0 8px 22px rgba(0,0,0,.35)}
.kfs-dicht .kfs-linse{width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:20px;-webkit-backdrop-filter:brightness(1.1);backdrop-filter:brightness(1.1)}
.kfs-chips .kfs-linse{background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.kfs-linse::after{content:"";position:absolute;left:50%;top:-14px;width:10px;height:10px;margin-left:-5px;border-radius:50%;
  background:var(--kfs-akzent);box-shadow:0 0 12px rgba(103,199,244,.9)}
.kfs-linse.kfs-tick{animation:kfs-tick .22s ease}
@keyframes kfs-tick{40%{transform:scale(1.08)}}

/* Mitte */
.kfs-mitte{position:absolute;left:50%;top:50%;z-index:3;width:calc(var(--kfs-r) * 2 - 100px);height:calc(var(--kfs-r) * 2 - 100px);
  transform:translate(-50%,-50%);border-radius:50%;border:0;cursor:pointer;padding:14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;
  background:radial-gradient(90% 60% at 50% 8%,rgba(255,255,255,.20),transparent 60%),rgba(22,26,34,.66);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),inset 0 1px 0 rgba(255,255,255,.42),inset 0 -14px 30px rgba(0,0,0,.25),0 18px 40px rgba(0,0,0,.45);
  transition:transform .3s var(--kfs-feder)}
.kfs-dicht .kfs-mitte{width:calc(var(--kfs-r) * 2 - 70px);height:calc(var(--kfs-r) * 2 - 70px)}
.kfs-chips .kfs-mitte{width:106px;height:106px;padding:8px;gap:3px}
.kfs-chips .kfs-name{font-size:15.5px}
.kfs-chips .kfs-rille{width:calc(var(--kfs-r) * 2 + 50px);height:calc(var(--kfs-r) * 2 + 50px)}
.kfs-mitte:active{transform:translate(-50%,-50%) scale(.95)}
.kfs-ober{min-height:15px;font-size:12px;font-weight:600;color:var(--kfs-akzent-hell)}
.kfs-name{font-size:23px;font-weight:700;line-height:1.12;letter-spacing:-.01em;text-wrap:balance;max-width:100%;overflow-wrap:anywhere}
.kfs-hinweis{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--kfs-leise)}
.kfs-hinweis svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Hell */
.kfs-hell{--kfs-text:#141210;--kfs-text2:#3D3731;--kfs-leise:#6B6258;--kfs-akzent:#0E86B8;--kfs-akzent-hell:#064A66}
.kfs-hell .kfs-schleier{background:rgba(242,237,228,.55)}
.kfs-hell .kfs-scheibe{background:radial-gradient(120% 70% at 50% 0%,rgba(255,255,255,.85),transparent 60%),rgba(255,255,255,.55);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.95),inset 0 -24px 50px rgba(60,50,40,.08),0 40px 90px rgba(60,50,40,.28),0 10px 26px rgba(60,50,40,.15)}
.kfs-hell .kfs-rille{background:rgba(60,50,40,.06);box-shadow:inset 0 3px 10px rgba(60,50,40,.14),inset 0 -1px 0 rgba(255,255,255,.9)}
.kfs-hell .kfs-ic{background:rgba(255,255,255,.85);border-color:rgba(14,27,42,.10);box-shadow:0 4px 12px rgba(60,50,40,.12)}
.kfs-hell .kfs-sel .kfs-ic{color:#fff;background:linear-gradient(120deg,#2F6FC4 0%,#0E86B8 55%,#035E80 100%);border-color:rgba(255,255,255,.6)}
.kfs-hell .kfs-mitte{background:radial-gradient(90% 60% at 50% 8%,rgba(255,255,255,.95),transparent 60%),rgba(255,255,255,.78);
  box-shadow:inset 0 0 0 1px rgba(14,27,42,.08),0 16px 36px rgba(60,50,40,.18)}
.kfs-hell :is(.kfs-zu,.kfs-zurueck){background:rgba(255,255,255,.8);border-color:rgba(14,27,42,.10);box-shadow:0 6px 16px rgba(60,50,40,.12)}
.kfs-hell .kfs-linse{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.95),0 8px 20px rgba(60,50,40,.22)}

@media (prefers-reduced-motion:reduce){
  .kfs *,.kfs{transition-duration:0s!important;animation:none!important}
}
@media (prefers-reduced-transparency:reduce){
  .kfs-scheibe,.kfs-schleier,.kfs-linse,.kfs-zu,.kfs-zurueck{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .kfs-scheibe{background:#181B20}
  .kfs-hell .kfs-scheibe{background:#FFFFFF}
}

/* Ohne Leiste unten (21.11.2026): Die Wahlscheibe übernimmt am Handy das Menü, die Glasleiste unten entfällt.
   Gilt nur, wenn die Scheibe läuft (html.kfs-bereit). Sonst bleibt die Leiste als Rückfallebene. */
@media (max-width:980px){
  html.kfs-bereit :is(.kgn,.kgn-blatt,.kgn-schleier){display:none!important}
  html.kfs-bereit .kfxc:not([data-offen="true"]) .kfxc-start{display:flex!important}
  html.kfs-bereit .kfx-auto{bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}
  html.kfs-bereit #kfx-root :is(.u-fuss,.p-fuss),html.kfs-bereit .kfx-fuss{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
}
