/* youbooth — Lizenzen verwalten (14.11.2026, nur Inhaber). Baut auf
   konto-cockpit.css auf (kc-chip, kc-dialog, kc-knopf, kc-leer). */
.kl { gap: 14px; }
.kl[hidden] { display: none !important; }

/* Drei Kacheln zum Anlegen */
.kl-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
:is(.welt-a, .welt-b) .kl-kachel, :is(.welt-a, .welt-b) .kl-ueber {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; text-align: left;
  border: var(--kante); border-radius: 18px; background: var(--weiss); color: var(--tinte); cursor: pointer; text-decoration: none;
  box-shadow: 4px 4px 0 var(--tinte); transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; animation: kl-rein .36s cubic-bezier(.2,.8,.2,1) both; overflow: hidden; }
:is(.welt-a, .welt-b) .kl-kachel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 80px at var(--mx, 85%) 0%, var(--kl-farbe, var(--minze)), transparent 70%); opacity: .55; transition: opacity .25s; pointer-events: none; }
@media (hover: hover) {
  :is(.welt-a, .welt-b) .kl-kachel:hover, :is(.welt-a, .welt-b) .kl-ueber:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinte); }
  :is(.welt-a, .welt-b) .kl-kachel:hover::before { opacity: .9; }
  :is(.welt-a, .welt-b) .kl-kachel:hover .kl-kachel-ikon svg { animation: kl-wackeln .5s ease; }
}
:is(.welt-a, .welt-b) .kl-kachel:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinte); }
:is(.welt-a, .welt-b) .kl-kachel:focus-visible, :is(.welt-a, .welt-b) .kl-ueber:focus-visible { outline: 3px solid var(--violett); outline-offset: 3px; }
.kl-kachel[data-art="kauf"] { --kl-farbe: var(--minze); }
.kl-kachel[data-art="geschenk"] { --kl-farbe: var(--pink); }
.kl-kachel[data-art="test"] { --kl-farbe: var(--sonne); }
:is(.welt-a, .welt-b) .kl-kachel-ikon { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: var(--kante); background: var(--kl-farbe, var(--minze)); }
.kl-kachel[data-art="geschenk"] .kl-kachel-ikon { color: var(--weiss); }
.kl-kachel-ikon .kc-ikon { width: 24px; height: 24px; }
.kl-kachel-text { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
:is(.welt-a, .welt-b) .kl-kachel-text b { font: 800 16px/1.2 var(--schrift); }
:is(.welt-a, .welt-b) .kl-kachel-text span { font: 400 12.5px/1.35 var(--schrift); color: #4A4060; }
.kl-kachel-plus { position: relative; opacity: .55; transition: transform .25s, opacity .25s; }
@media (hover: hover) { .kl-kachel:hover .kl-kachel-plus { transform: rotate(90deg); opacity: 1; } }
:is(.welt-a, .welt-b) .kl-ueber { margin-top: 12px; --kl-farbe: var(--sonne); }
.kl-ueber > .kc-ikon:last-child { margin-left: auto; }

/* Filter und Suche */
.kl-leiste { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.kl-filter { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.kl-filter::-webkit-scrollbar { display: none; }
:is(.welt-a, .welt-b) .kl-fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: var(--kante); border-radius: 999px;
  background: var(--weiss); color: var(--tinte); font: 700 13.5px/1 var(--schrift); cursor: pointer; transition: background .2s, transform .15s; }
:is(.welt-a, .welt-b) .kl-fchip b { min-width: 22px; padding: 3px 6px; border-radius: 99px; background: var(--hell); font: 800 12px/1 var(--mono); text-align: center; }
:is(.welt-a, .welt-b) .kl-fchip[aria-checked="true"] { background: var(--tinte); color: var(--weiss); }
:is(.welt-a, .welt-b) .kl-fchip[aria-checked="true"] b { background: var(--sonne); color: var(--tinte); }
:is(.welt-a, .welt-b) .kl-fchip[data-art="warn"]:not([aria-checked="true"]) b { background: var(--sonne); }
:is(.welt-a, .welt-b) .kl-fchip:active { transform: scale(.96); }
:is(.welt-a, .welt-b) .kl-suche { position: relative; display: flex; align-items: center; flex: 0 1 300px; min-width: 200px; }
.kl-suche .kc-ikon { position: absolute; left: 12px; z-index: 1; opacity: .6; pointer-events: none; }
:is(.welt-a, .welt-b) .kl-suche .feld { width: 100%; min-height: 44px; padding-left: 40px; }

/* Liste */
.kl-liste { display: flex; flex-direction: column; gap: 8px; }
:is(.welt-a, .welt-b) .kl-zeile {
  display: grid; grid-template-columns: 44px minmax(200px, 1.6fr) minmax(170px, 1fr) 170px 110px auto; gap: 8px 16px; align-items: center;
  padding: 7px 10px 7px 8px; border: var(--kante); border-radius: 16px; background: var(--weiss);
  animation: kl-rein .32s cubic-bezier(.2,.8,.2,1) both; transition: transform .18s, box-shadow .18s; }
@media (hover: hover) { :is(.welt-a, .welt-b) .kl-zeile:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 var(--tinte); } }
.kl-zeile[data-wirksam="gesperrt"], .kl-zeile[data-wirksam="abgelaufen"] { background: repeating-linear-gradient(135deg, var(--weiss) 0 12px, rgba(27,16,48,.035) 12px 24px); }
.kl-zeile[data-wirksam="gesperrt"] .kl-key code, .kl-zeile[data-wirksam="abgelaufen"] .kl-key code { opacity: .55; }
:is(.welt-a, .welt-b) .kl-art { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; border: var(--kante); background: var(--minze); }
.kl-art[data-art="geschenk"] { background: var(--pink); color: var(--weiss); }
.kl-art[data-art="test"] { background: var(--sonne); }
.kl-wer { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kl-key { display: flex; align-items: center; gap: 4px; min-width: 0; }
:is(.welt-a, .welt-b) .kl-key code { font: 700 14px/1.2 var(--mono); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.welt-a, .welt-b) .kl-key--gross code { font-size: clamp(16px, 2.2vw, 22px); }
:is(.welt-a, .welt-b) .kl-kopie { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px 0; border: 0; border-radius: 12px; background: none; color: var(--tinte); cursor: pointer; transition: background .15s, transform .15s; }
:is(.welt-a, .welt-b) .kl-kopie:hover { background: var(--hell); }
:is(.welt-a, .welt-b) .kl-kopie:active { transform: scale(.9); }
:is(.welt-a, .welt-b) .kl-leise { font: 400 12.5px/1.35 var(--schrift); color: #4A4060; overflow-wrap: anywhere; }
.kl-wer .kl-leise { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-chips { gap: 5px; flex-wrap: nowrap; }
:is(.welt-a, .welt-b) .kc-chip[data-art="test"] { background: var(--sonne); }
:is(.welt-a, .welt-b) .kc-chip[data-art="geschenk"] { background: var(--pink); color: var(--weiss); }
.kl-lauf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kl-boxen { display: flex; align-items: center; gap: 6px; font: 700 13px/1.2 var(--schrift); white-space: nowrap; }
.kl-puls { width: 10px; height: 10px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43,182,115,.5); animation: kl-puls 1.8s ease-out infinite; }
.kl-verwalten { justify-self: end; }
.kl-mehr { display: flex; justify-content: center; }
.kl-mehr:empty { display: none; }

/* Fortschrittsring (Restlaufzeit) */
.kl-ring { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
.kl-ring .kl-ring-svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.kl-ring circle { fill: none; stroke-width: 3.6; }
.kl-ring-grund { stroke: rgba(27,16,48,.12); }
.kl-ring-wert { stroke: #2BB673; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.kl-ring[data-art="warn"] .kl-ring-wert { stroke: #E8A317; }
.kl-ring[data-art="schlecht"] .kl-ring-wert, .kl-ring[data-art="aus"] .kl-ring-wert { stroke: #E0483C; }
:is(.welt-a, .welt-b) .kl-ring b { position: relative; font: 800 13px/1 var(--mono); }
.kl-ring[data-art="frei"] { border: 3px solid rgba(27,16,48,.12); border-radius: 50%; box-sizing: border-box; }
.kl-ring-unendlich { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kl-ring--gross { width: 64px; height: 64px; }
:is(.welt-a, .welt-b) .kl-ring--gross b { font-size: 19px; }

/* Dialoge */
:is(.welt-a, .welt-b) .kl-dialog { width: min(640px, calc(100vw - 32px)); }
:is(.welt-a, .welt-b) .kl-dialog--breit { width: min(900px, calc(100vw - 32px)); }
.kl-form, .kl-verwalten-inhalt { display: flex; flex-direction: column; gap: 14px; }
.kl-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.kl-zwei--oben { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
:is(.welt-a, .welt-b) .kl-zwei .feldzeile { margin: 0; display: flex; flex-direction: column; gap: 6px; font: 700 13px/1.2 var(--schrift); }
:is(.welt-a, .welt-b) .kl-dialog .feld, :is(.welt-a, .welt-b) .kl-suche .feld { min-height: 44px; background: var(--weiss); color: var(--tinte); border: 2px solid var(--tinte); border-radius: 12px; padding-inline: 12px; font: 600 15px/1.2 var(--schrift); }
:is(.welt-a, .welt-b) .kl-suche .feld { padding-left: 40px; }
:is(.welt-a, .welt-b) .kl-dialog .feld:focus-visible, :is(.welt-a, .welt-b) .kl-suche .feld:focus-visible { outline: 3px solid var(--violett); outline-offset: 1px; }
:is(.welt-a, .welt-b) .kl-dialog .feld::placeholder { color: rgba(27,16,48,.45); }
:is(.welt-a, .welt-b) .kl-block { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1.5px solid rgba(27,16,48,.18); border-radius: 16px; background: var(--weiss); }
:is(.welt-a, .welt-b) .kl-marke { font: 800 11.5px/1 var(--schrift); letter-spacing: .08em; text-transform: uppercase; color: #4A4060; }
.kl-segmente { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.welt-a, .welt-b) .kl-seg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: var(--kante); border-radius: 12px;
  background: var(--weiss); color: var(--tinte); font: 700 14px/1 var(--schrift); cursor: pointer; transition: background .18s, color .18s, transform .12s; }
:is(.welt-a, .welt-b) .kl-seg[aria-checked="true"] { background: var(--tinte); color: var(--weiss); }
:is(.welt-a, .welt-b) .kl-seg:active { transform: scale(.96); }
.kl-segmente--art { display: grid; grid-template-columns: repeat(3, 1fr); }
:is(.welt-a, .welt-b) .kl-segmente--art .kl-seg { min-height: 52px; font-size: 15px; }
:is(.welt-a, .welt-b) .kl-segmente--art .kl-seg[data-wert="geschenk"][aria-checked="true"] { background: var(--pink); color: var(--weiss); }
:is(.welt-a, .welt-b) .kl-segmente--art .kl-seg[data-wert="test"][aria-checked="true"] { background: var(--sonne); color: var(--tinte); }
:is(.welt-a, .welt-b) .kl-segmente--art .kl-seg[data-wert="kauf"][aria-checked="true"] { background: var(--minze); color: var(--tinte); }
:is(.welt-a, .welt-b) .kl-segmente--klein .knopf, :is(.welt-a, .welt-b) .kl-segmente--klein .kl-seg { min-height: 44px; padding: 0 14px; }
.kl-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:is(.welt-a, .welt-b) .kl-inline .feld { flex: 1 1 150px; min-height: 44px; }
.kl-laufzeile { display: flex; align-items: center; gap: 14px; font: 700 15px/1.3 var(--schrift); }
.kl-module { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.welt-a, .welt-b) .kl-modul { min-height: 44px; padding: 0 12px; border: 1.5px solid rgba(27,16,48,.3); border-radius: 999px; background: var(--weiss); color: var(--tinte); font: 600 13px/1 var(--schrift); cursor: pointer; transition: background .15s; }
:is(.welt-a, .welt-b) .kl-modul[aria-pressed="true"] { background: var(--minze); border-color: var(--tinte); font-weight: 800; }
.kl-mehrwahl:not([open]) { gap: 0; padding-block: 6px; }
:is(.welt-a, .welt-b) .kl-mehrwahl summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font: 800 14px/1 var(--schrift); cursor: pointer; list-style: none; }
.kl-mehrwahl summary::-webkit-details-marker { display: none; }
.kl-mehrwahl summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.kl-mehrwahl[open] summary::after { transform: rotate(225deg); }
:is(.welt-a, .welt-b) .kl-hinweis { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--hell); font: 400 13.5px/1.45 var(--schrift); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kl-hinweis[data-art="warn"] { background: rgba(255,200,60,.35); }
.kl-knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kl-fuss { justify-content: space-between; padding-top: 10px; border-top: 1.5px dashed rgba(27,16,48,.25); }
:is(.welt-a, .welt-b) .kl-gefahr { color: #C23A2F; border-color: #C23A2F; }
.kl-dkopf { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.kl-verlauf { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; max-height: 220px; overflow: auto; }
.kl-verlauf li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(27,16,48,.1); font: 400 13px/1.4 var(--schrift); }
:is(.welt-a, .welt-b) .kl-verlauf time { font: 600 12px/1.4 var(--mono); color: #4A4060; }

/* Fertig */
.kl-fertig { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
:is(.welt-a, .welt-b) .kl-fertig-haken { align-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: var(--kante); background: var(--minze); animation: kl-plopp .5s cubic-bezier(.2,1.6,.4,1) both; }
.kl-fertig-haken .kc-ikon { width: 32px; height: 32px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: kl-haken .45s .25s ease-out forwards; }
.kl-fertig .kl-key { justify-content: center; padding: 10px; border: 2px dashed var(--tinte); border-radius: 14px; background: var(--weiss); }
:is(.welt-a, .welt-b) .kl-text { margin: 0; max-height: 150px; overflow: auto; padding: 12px; border-radius: 12px; background: var(--hell); font: 400 13px/1.5 var(--schrift); white-space: pre-wrap; }

/* Hinweis unten */
.kl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border: var(--kante, 2px solid #1B1030); border-radius: 14px;
  background: var(--minze, #B8F2D0); color: var(--tinte, #1B1030); font: 700 14px/1.4 var(--schrift, system-ui); box-shadow: 4px 4px 0 var(--tinte, #1B1030);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .2s; pointer-events: none; }
.kl-toast[data-art="schlecht"] { background: var(--pink, #FF5FA2); color: var(--weiss, #fff); }
.kl-toast.an { transform: translate(-50%, 0); opacity: 1; }

@keyframes kl-rein { from { opacity: 0; transform: translateY(8px); } }
@keyframes kl-wackeln { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
@keyframes kl-puls { 0% { box-shadow: 0 0 0 0 rgba(43,182,115,.55); } 100% { box-shadow: 0 0 0 9px rgba(43,182,115,0); } }
@keyframes kl-plopp { from { transform: scale(0); } }
@keyframes kl-haken { to { stroke-dashoffset: 0; } }

/* Handy: drei Kacheln nebeneinander, nur Bild und Name (kompakt) */
@media (max-width: 600px) {
  .kl-start { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  :is(.welt-a, .welt-b) .kl-kachel { flex-direction: column; align-items: center; gap: 6px; min-height: 0; padding: 12px 6px; text-align: center; box-shadow: 3px 3px 0 var(--tinte); }
  .kl-kachel .kl-kachel-text span, .kl-kachel .kl-kachel-plus { display: none; }
  :is(.welt-a, .welt-b) .kl-kachel-text b { font-size: 13px; }
  :is(.welt-a, .welt-b) .kl-suche { flex-basis: 100%; }
}

/* Schmal: Zeile in zwei Reihen */
@media (max-width: 860px) {
  :is(.welt-a, .welt-b) .kl-zeile { grid-template-columns: 44px 1fr auto; }
  .kl-zeile .kl-chips { grid-column: 2 / -1; }
  .kl-zeile .kl-lauf { grid-column: 2; }
  .kl-zeile .kl-boxen { grid-column: 3; justify-self: end; }
  /* Handy: die ganze Zeile oeffnet (wie Listen in Mail- und Kontakt-Apps) */
  .kl-zeile .kl-verwalten { display: none; }
  :is(.welt-a, .welt-b) .kl-zeile { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-kachel, .kl-zeile, .kl-fertig-haken, .kl-puls, .kl-ring-wert { animation: none !important; transition: none !important; }
  .kl-fertig-haken .kc-ikon { stroke-dashoffset: 0; animation: none; }
}
