:root{
  --bg0:#0b1020;
  --bg1: rgba(20, 24, 38, .78);
  --panel: rgba(18, 18, 22, .75);
  --stroke: rgba(255,255,255,.10);
  --text:#e9eefc;
  --muted: rgba(233,238,252,.72);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 16px;
  --accent: #7c3aed;
  --winOpacity: .92;
  --focus: 0 0 0 3px rgba(124,58,237,.35);
    --iconBox: 104px;          /* wird optional aus JS überschrieben */
  --iconRadius: 18px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.theme-light{
  --bg0:#e8ecf6;
  --bg1: rgba(255,255,255,.72);
  --panel: rgba(255,255,255,.75);
  --stroke: rgba(0,0,0,.10);
  --text:#0b1020;
  --muted: rgba(11,16,32,.70);
  --shadow: 0 18px 55px rgba(0,0,0,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;color:var(--text);background:var(--bg0)}
a{color:inherit}
.sr-only{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

kbd{border:1px solid var(--stroke);padding:.1rem .35rem;border-radius:8px;background:rgba(255,255,255,.06)}

.iconbtn, .btn, input, button, select { font: inherit; }
.iconbtn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:.55rem .7rem;
  cursor:pointer;
}
.iconbtn:focus-visible{outline:none; box-shadow: var(--focus);}

.btn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:14px;
  padding:.85rem 1rem;
  cursor:pointer;
  display:flex; gap:.6rem; align-items:center; justify-content:center;
}
.btn.primary{background: color-mix(in srgb, var(--accent) 26%, rgba(255,255,255,.06)); border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke));}
.btn:focus-visible{outline:none; box-shadow: var(--focus);}

.alert{
  background: rgba(255, 68, 68, .12);
  border: 1px solid rgba(255, 68, 68, .22);
  border-radius: 14px;
  padding:.85rem 1rem;
  margin:.8rem 0;
}

.auth{min-height:100%;display:grid;place-items:center;padding:24px}
.auth-card{
  width:min(460px, 100%);
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:20px;
  backdrop-filter: blur(14px);
}
.brand{display:flex; gap:14px; align-items:center; margin-bottom:10px}
.logo{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background: color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.06));
  border:1px solid color-mix(in srgb, var(--accent) 40%, var(--stroke));
}
h1{font-size:1.25rem;margin:0}
p{margin:.2rem 0;color:var(--muted)}
.form{display:grid;gap:12px;margin-top:12px}
label span{display:block;font-size:.9rem;color:var(--muted);margin-bottom:6px}
input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  padding:.85rem 1rem;
  color:var(--text);
}
input:focus-visible{outline:none; box-shadow: var(--focus);}
.hint{margin-top:12px;color:var(--muted);font-size:.9rem}

.boot{min-height:100%;display:grid;place-items:center;padding:24px}
.boot-inner{
  width:min(520px,100%);
  text-align:center;
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:26px;
  backdrop-filter: blur(14px);
}
.boot-logo{font-size:2.2rem}
.progress{height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;border:1px solid var(--stroke);margin:16px 0 8px}
.progress .bar{height:100%;width:0%;background:var(--accent);transition:width .18s ease}
.small{font-size:.9rem}

.desktop-root{height:100%}
.desktop{
  height:100%;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
  outline:none;
}
.icons{position:absolute;inset:14px 14px 60px 14px}
/* --- Desktop Icons (no box, clean) --- */
.desktop-icon{
  position:absolute;
  width: var(--iconBox, 110px);
  user-select:none;
  cursor:grab;

  padding: 6px 4px 8px;
  text-align:center;
  color: var(--text);

  background: transparent;
  border: none;
  box-shadow: none;

  transition: transform .12s ease;
  overflow: visible; 
}

.desktop-icon:hover{
  transform: translateY(-2px);
}

.desktop-icon:active{
  transform: translateY(0) scale(.98);
}

.desktop-icon:focus-visible{
  outline:none;
}

/* Icon-Kreis */
.desktop-icon .ico{
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 16px;

  display:grid;
  place-items:center;

  background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.10));
  box-shadow:
    0 8px 26px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.desktop-icon .ico i{
  font-size: 1.5rem;
  color: var(--text);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

/* Label */
.desktop-icon .lbl{
  display:block;
  max-width: 160px;
    width: 140px;
  padding: 4px 8px;

  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  margin-left: 50%;

  border-radius: 10px;
  background: rgba(0,0,0,.35);
  color: var(--text);

  text-shadow: 0 2px 8px rgba(0,0,0,.45);

  white-space: normal;        
  word-break: break-word;     
  overflow-wrap: anywhere;    
  transform: translateX(-50%);
}




/* Dragging */
.desktop-icon.dragging{
  opacity:.9;
  cursor:pointer;
  transform: scale(1.05);
}


.windows{
  position:absolute;
  inset:0 0 52px 0;  /* bis zur Taskbar, aber kein Randkäfig */
  pointer-events:none;
  overflow:visible;
}

.window{
  position:absolute;
  background: rgba(18,18,22,var(--winOpacity));
  border:1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  transform-origin: 25% 90%;
}
.window.enter{animation: winIn .18s ease-out}
.window.leave{animation: winOut .16s ease-in forwards}
@keyframes winIn{from{opacity:0;transform:scale(.96) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes winOut{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.94) translateY(12px)}}

.winbar{
  height:44px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 10px;
  background: rgba(255,255,255,.06);
  border-bottom:1px solid var(--stroke);
}
.winbar .left{display:flex; gap:10px; align-items:center; min-width:0}
.winbar .title{font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.winbar .controls{display:flex; gap:8px}
.winbar button{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:.35rem .55rem;
  cursor:pointer;
}
.winbar button:focus-visible{outline:none; box-shadow: var(--focus);}
.winbody{flex:1; padding:14px; overflow:auto}
.window.maximized{inset:0 !important; width:auto !important; height:auto !important; border-radius: 0; }

.taskbar{
  position:absolute; left:0; right:0; bottom:0;
  height:52px;
  display:flex; align-items:center; gap:10px;
  padding:8px 10px;
  background: rgba(10,12,18,.62);
  border-top:1px solid var(--stroke);
  backdrop-filter: blur(16px);
}
.startbtn {
  all: unset;                 /* 🔥 entfernt ALLES (border, bg, font, etc.) */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.startbtn-icon {
  width: 40px;                /* Größe anpassen */
  height: 40px;
  object-fit: contain;
  display: block;
  margin-left: 6px;
}

.startbtn:hover .startbtn-icon {
  filter: brightness(1.15);
}

.startbtn:active .startbtn-icon {
  transform: translateY(1px);
}

.startbtn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 4px;
  border-radius: 6px;
}

.taskitems{flex:1; display:flex; gap:8px; overflow:auto; padding:2px}
.taskitem{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  border-radius:14px;
  padding:6px 10px;
  cursor:pointer;
  min-width: 140px;
}
.taskitem[aria-selected="true"]{
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.06));
}
.tray{display:flex;gap:8px;align-items:center}

.startmenu{
  position:absolute;
  left:10px;
  bottom:62px;
  width:min(420px, 92vw);
  max-height:min(560px, 75vh);
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow:hidden;
}
.start-top{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--stroke)}
.userchip{display:flex;gap:10px;align-items:center}
.avatar{width:36px;height:36px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid var(--stroke)}
.start-body{padding:10px; overflow:auto; max-height: 500px}
.cat{margin-bottom:10px}
.cat h3{margin:10px 6px 6px;font-size:.9rem;color:var(--muted);font-weight:600}
.start-app{
  width:100%;
  display:flex;align-items:center;gap:12px;
  padding:10px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.start-app:hover{background:rgba(255,255,255,.06); border-color: var(--stroke)}
.start-app:focus-visible{outline:none; box-shadow: var(--focus);}
.start-app i{width:18px}

.notif-stack{
  position:absolute;
  top:14px;
  right:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(360px, 92vw);
  pointer-events:none;
}
.notif{
  pointer-events:auto;
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding:12px;
  display:flex; gap:12px;
  animation: notifIn .22s ease-out;
}
@keyframes notifIn{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
.notif .nicon{width:34px;height:34px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid var(--stroke)}
.notif .ntxt{flex:1;min-width:0}
.notif .ntitle{font-weight:700}
.notif .ndesc{color:var(--muted);font-size:.92rem}
.notif .close{border:none;background:transparent;color:var(--muted);cursor:pointer}
.notif .close:focus-visible{outline:none; box-shadow: var(--focus); border-radius: 10px}

.widget-panel{
  position:absolute;
  top:0; right:0; bottom:52px;
  width: 20vw;
  min-width: 320px;
  max-width: 420px;
  background: var(--panel);
  border-left:1px solid var(--stroke);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .22s ease;
  backdrop-filter: blur(16px);
}
.widget-panel.open{transform: translateX(0)}
.widget-head{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--stroke)}
.widget-body{padding:12px;display:grid;gap:10px}
.widget-card{border:1px solid var(--stroke);border-radius:16px;padding:12px;background:rgba(255,255,255,.06)}

/* -------- App layouts (Members / Roles / Settings) -------- */
.app{display:grid;gap:12px}
.app-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.app-head h2{margin:0;font-size:1.05rem;display:flex;align-items:center;gap:10px}
.app-actions{display:flex;gap:8px;flex-wrap:wrap}

.tablewrap{border:1px solid var(--stroke);border-radius:16px;overflow:auto;background:rgba(255,255,255,.04)}
.tbl{width:100%;border-collapse:collapse}
.tbl th,.tbl td{padding:10px;border-bottom:1px solid var(--stroke);text-align:left;vertical-align:top}
.tbl th{position:sticky;top:0;background:rgba(255,255,255,.06)}
.muted{color:var(--muted)}
.td-actions{display:flex;gap:8px}

.split{display:grid;grid-template-columns: 320px 1fr; gap:12px}
@media (max-width: 900px){ .split{grid-template-columns: 1fr} }

.side{border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.04);overflow:hidden}
.list{display:grid}
.listitem{
  text-align:left;
  border:0;
  border-bottom:1px solid var(--stroke);
  background:transparent;
  color:var(--text);
  padding:12px;
  cursor:pointer;
  display:grid; gap:4px;
}
.listitem:hover{background:rgba(255,255,255,.06)}
.listitem.active{background: color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.04));}
.listitem:focus-visible{outline:none; box-shadow: var(--focus);}

.main .panel{border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.04);overflow:hidden}
.panel-head{padding:12px;border-bottom:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-actions{display:flex;gap:8px;flex-wrap:wrap}
.panel-body{padding:12px}

.field{display:grid;gap:6px;margin-top:10px}
select{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  padding:.75rem 1rem;
  color:var(--text)
}
select:focus-visible{outline:none; box-shadow: var(--focus);}

.permgrid{display:grid;grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:10px}
@media (max-width: 900px){ .permgrid{grid-template-columns: 1fr} }
.perm{
  display:flex;gap:10px;align-items:flex-start;
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:10px;
  background:rgba(255,255,255,.04);
}
.perm input{margin-top:3px}
.perm strong{display:block}
.perm .muted{display:block;font-size:.9rem}

.dlg::backdrop{background:rgba(0,0,0,.55)}
.dlg{border:0;padding:0;background:transparent}
.dlg-card{width:min(520px, 92vw);border:1px solid var(--stroke);border-radius:18px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden}
.dlg-head{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--stroke)}
.dlg-body{padding:12px}
.dlg-foot{display:flex;justify-content:flex-end;gap:10px;padding:12px;border-top:1px solid var(--stroke)}

/* -------- MatchThatCar -------- */
.mtc-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.mtc-search{grid-column: span 2}
.mtc-quest{margin-top:10px}
.mtc-ta{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  padding:.85rem 1rem;
  color:var(--text);
  resize:vertical;
}
.mtc-ta:focus-visible{outline:none; box-shadow: var(--focus);}
.mtc-quest-hint{margin-top:6px}

.mtc-table tbody tr[data-clickable="1"]{cursor:pointer}
.mtc-table tbody tr[data-clickable="1"]:hover td{background:rgba(255,255,255,.05)}
.mtc-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .55rem;border-radius:999px;border:1px solid var(--stroke);background:rgba(255,255,255,.06);font-size:.85rem}
.mtc-kpi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.mtc-kpi .widget-card{padding:10px}
.mtc-kpi .k{font-weight:700}
.mtc-kpi .v{font-size:1.05rem}

.mtc-detailgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mtc-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}

.mtc-money-pos{color: color-mix(in srgb, var(--accent) 65%, var(--text)); font-weight:700}
.mtc-money-neg{color: rgba(255, 120, 120, .95); font-weight:700}

@media (max-width: 1100px){
  .mtc-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mtc-search{grid-column: span 3}
  .mtc-detailgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .mtc-filters{grid-template-columns:1fr}
  .mtc-search{grid-column: auto}
  .mtc-kpi{grid-template-columns:1fr}
  .mtc-detailgrid{grid-template-columns:1fr}
  .mtc-summary{grid-template-columns:1fr}
}

.icon-picker{display:grid; gap:10px}

.icon-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(42px,1fr));
  gap:8px;
}

.icon-grid button{
  height:42px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.icon-grid button i{
  font-size:1.15rem;
}

.icon-grid button:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.10);
}

.icon-grid button.active{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,.08));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* --- Option Cards (Radio/Checkbox) --- */
.opt{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.opt:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}

.opt:active{
  transform: translateY(0);
}

.opt input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.opt .opt-ui{
  width:22px;
  height:22px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  flex: 0 0 auto;
  margin-top:2px;
  display:grid;
  place-items:center;
}

.opt.opt-radio .opt-ui{
  border-radius:999px;
}

.opt .opt-text strong{
  display:block;
  font-weight:800;
  letter-spacing:.2px;
}

.opt .opt-text .muted{
  display:block;
  margin-top:2px;
  font-size:.92rem;
}

/* checked state */
.opt input:checked ~ .opt-ui{
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.18));
  background: color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,.18));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent),
              inset 0 1px 0 rgba(255,255,255,.12);
}

.opt.opt-check input:checked ~ .opt-ui::after{
  content: "✓";
  font-weight:900;
  font-size:14px;
  color: var(--text);
  line-height:1;
  transform: translateY(-.5px);
}

.opt.opt-radio input:checked ~ .opt-ui::after{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--text);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* focus-visible (keyboard accessible) */
.opt:has(input:focus-visible){
  outline:none;
  box-shadow: var(--focus);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
}

/* disabled checkbox look */
.opt input:disabled ~ .opt-ui{
  opacity:.45;
}
.opt:has(input:disabled){
  opacity:.75;
  cursor:not-allowed;
}

.chat-shell{display:grid;grid-template-columns:320px 1fr; gap:12px; height: calc(100vh - 220px)}
@media (max-width: 900px){ .chat-shell{grid-template-columns:1fr; height:auto} }

.chat-side{border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.04);overflow:hidden;display:flex;flex-direction:column}
.chat-side-head{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--stroke)}
.chat-search{padding:10px;border-bottom:1px solid var(--stroke)}
.chat-search input{width:100%}

.chat-list{flex:1; overflow:auto}
.chat-item{width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:12px;border-bottom:1px solid var(--stroke);cursor:pointer}
.chat-item:hover{background:rgba(255,255,255,.06)}
.chat-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-item-sub{margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge{background:color-mix(in srgb, var(--accent) 28%, rgba(255,255,255,.06));border:1px solid color-mix(in srgb, var(--accent) 45%, var(--stroke));padding:2px 8px;border-radius:999px;font-weight:800;font-size:.8rem}

.chat-main{border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.04);overflow:hidden;display:flex;flex-direction:column}
.chat-head{padding:12px;border-bottom:1px solid var(--stroke)}
.chat-head-title{display:flex;flex-direction:column}

.chat-messages{flex:1;overflow:auto;padding:12px;display:grid;gap:10px}
.bubble{max-width:75%;border:1px solid var(--stroke);border-radius:16px;padding:10px 12px;background:rgba(255,255,255,.06)}
.bubble.mine{margin-left:auto;background:color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.06));border-color:color-mix(in srgb, var(--accent) 35%, var(--stroke))}
.bmeta{font-size:.82rem;color:var(--muted);margin-bottom:6px}
.btxt{white-space:pre-wrap;word-break:break-word}

.chat-compose{display:flex;gap:10px;padding:12px;border-top:1px solid var(--stroke);align-items:flex-end}
.chat-compose textarea{flex:1;resize:none}
.picklist{border:1px solid var(--stroke);border-radius:14px;background:rgba(255,255,255,.04);padding:10px;display:grid;gap:8px;max-height:240px;overflow:auto}
.tabs{display:flex;gap:8px}
.tab{border:1px solid var(--stroke);background:rgba(255,255,255,.06);color:var(--text);padding:8px 10px;border-radius:12px;cursor:pointer}
.tab.active{border-color:color-mix(in srgb, var(--accent) 55%, var(--stroke));background:color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.06))}

.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-head-actions{display:flex;gap:8px;align-items:center}

.dropdown{position:relative}
.menu{
  position:absolute;
  right:0;
  top:44px;
  width: 230px;
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow:hidden;
  z-index: 9999;
}
.menuitem{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  display:flex;
  gap:10px;
  align-items:center;
}
.menuitem:hover{background:rgba(255,255,255,.06)}
.menuitem.danger{color: #ffb4b4}
.menudiv{height:1px;background:var(--stroke)}

/* Werbeplanung / Neue Werbung */
.linkbtn{
  border:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  padding:0;
  display:flex;
  gap:8px;
  align-items:center;
}
.linkbtn:hover{ text-decoration: underline; }

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
}
.chip:hover{background:rgba(255,255,255,.10)}

.weekdays{display:flex;gap:8px;flex-wrap:wrap}
.daychip{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-radius:14px;
  padding:8px 10px;
  cursor:pointer;
  min-width:46px;
}
.daychip.active{
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,.06));
}

.hours{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 1000px){ .hours{grid-template-columns: repeat(4, minmax(0,1fr));} }
@media (max-width: 700px){ .hours{grid-template-columns: repeat(2, minmax(0,1fr));} }

.hour{
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  padding:10px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:left;
}
.hour strong{font-weight:900}
.hour.free{ border-color: rgba(120,255,180,.25); }
.hour.warn{ border-color: rgba(255,210,120,.35); }
.hour.full{ border-color: rgba(255,120,120,.35); opacity:.85; }
.hour.active{
  box-shadow: var(--focus);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--stroke));
}

.tenmins{
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 900px){ .tenmins{grid-template-columns: repeat(3, minmax(0,1fr));} }

.ten{
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  padding:10px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:left;
}
.ten.open{ border-color: rgba(120,255,180,.25); }
.ten.taken{ border-color: rgba(255,120,120,.35); opacity:.75; cursor:not-allowed; }
.ten.selected{
  border-color: color-mix(in srgb, var(--accent) 60%, var(--stroke));
  box-shadow: var(--focus);
}

.divider{
  height:1px;
  background: var(--stroke);
  margin: 6px 0 10px;
}

.sugg{
  margin-top:8px;
  display:grid;
  gap:6px;
  padding:10px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:var(--panel);
}
.sugg-item{
  text-align:left;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.sugg-item:hover{ background:rgba(255,255,255,.08); }

/* Wallet helpers */
.money.pos { color: #22c55e; font-weight: 800; }
.money.neg { color: #ef4444; font-weight: 800; }
.is-deleted { opacity: .45; }
.is-deleted .btn { pointer-events: none; opacity: .6; }
.chip{
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,gb(255,255,255),0.04);
}

/* ---------- Wallet Widget ---------- */
.wallet-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-widget .widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
}

.wallet-widget .widget-head i {
  color: var(--accent, #7c3aed);
  font-size: 16px;
}

.wallet-widget .wallet-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-widget .wallet-total {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.wallet-widget .wallet-updated {
  font-size: 12px;
  opacity: .75;
}

.textdoc {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 16px;
  line-height: 1.4;
  font-size: 14px;
  max-height: 100%;
  overflow-y: auto;
}

.textdoc ul {
  padding-left: 20px;
}

.textdoc .muted {
  margin-top: 16px;
  font-size: 12px;
  opacity: 0.7;
}

.doc-header h2 {
  margin: 0;
  line-height: 1.25;
  text-align: center;
}

.doc-subtitle {
  margin-top: 2px;          /* 👈 minimaler Abstand */
  font-size: 13px;          /* kleiner als Überschrift */
  opacity: 0.65;            /* dezent */
  text-align: center;
}

.willkommen{
font-size: 13px;

}

.program{
text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;            /* dezentes Grau */
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 10px;


}
.program::before,
.program::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.info{
text-transform: uppercase;
}

.info {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent, #22c55e);
  font-size: 18px;
  line-height: 1;
}

.panel-subhead {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sep {
  border: none;
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 16px 0;
}

.icon-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}

.icon-row .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-row i {
  width: 18px;
  text-align: center;
  color: var(--accent);
}

/* =========================
   Weather Widget – BIG / CLEAN
   ========================= */

/* äußerer Widget-Container: Rahmen & Titel weg */
.weather-widget,
.weather-widget .panel,
.weather-widget .panel-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Inhalt zentriert & größer */
.weather-widget .weather-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hauptzeile */
.weather-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

/* linke Seite: Icon + Text */
.weather-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Wetter-Icon deutlich größer */
.weather-left i {
  font-size: 38px;   /* vorher ~18px */
  width: auto;
  opacity: 0.95;
}

/* Wettertyp größer & kräftiger */
.weather-type {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

/* Temperatur & Wind größer */
.weather-meta {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.85;
}

/* Tag / Nacht rechts */
.weather-row .muted {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.75;
}

/* Footer: Aktualisiert von … */
.weather-updated {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.65;
  padding-left: 4px;
}

/* Mobile etwas kompakter */
@media (max-width: 600px) {
  .weather-left i {
    font-size: 30px;
  }

  .weather-type {
    font-size: 16px;
  }

  .weather-meta {
    font-size: 14px;
  }
}


:root{
  --w-bg: var(--bg, rgba(0,0,0,.25));
  --w-card: var(--card, rgba(255,255,255,.06));
  --w-stroke: var(--stroke, rgba(255,255,255,.14));
  --w-text: var(--text, rgba(255,255,255,.92));
  --w-muted: var(--muted, rgba(255,255,255,.65));
  --w-shadow: 0 12px 30px rgba(0,0,0,.25);
  --w-radius: 16px;
}

/* Fields */
.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label{
  font-weight: 800;
  font-size: 13px;
  color: var(--w-text);
}

.field .muted,
.muted{
  color: var(--w-muted);
}

/* Inputs / selects */
.input,
.field input[type="text"],
.field input[type="number"],
.field textarea,
.field select,
select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--w-stroke);
  background: rgba(0,0,0,.20);
  color: var(--w-text);
  outline: none;
}

.field textarea{
  resize: vertical;
  min-height: 110px;
}

.field select:disabled,
.field input:disabled,
.field textarea:disabled{
  opacity: .65;
  cursor: not-allowed;
}

/* Little separator */
.sep{
  border: 0;
  border-top: 1px solid var(--w-stroke);
  margin: 14px 0;
}

/* Result box */
.textdoc{
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  padding: 12px 12px;
  background: rgba(0,0,0,.18);
  white-space: pre-wrap;
  color: var(--w-text);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--w-stroke);
  background: rgba(255,255,255,.06);
  color: var(--w-text);
  cursor: pointer;
  user-select: none;
}

.btn:hover{
  background: rgba(255,255,255,.09);
}

.btn:active{
  transform: translateY(1px);
}

.btn.primary{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  font-weight: 900;
}

/* Inline checkbox label nicer */
.field input[type="checkbox"]{
  width: 16px;
  height: 16px;
  accent-color: rgba(255,255,255,.85);
}

/* Tables (Admin) */
.tablewrap{
  width: 100%;
  overflow: auto;
  border-radius: var(--w-radius);
  border: 1px solid var(--w-stroke);
}

.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(0,0,0,.08);
}

.table thead th{
  text-align:left;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
  padding: 10px 12px;
  border-bottom: 1px solid var(--w-stroke);
  color: var(--w-muted);
}

.table tbody td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
  color: var(--w-text);
}

.table tbody tr:hover td{
  background: rgba(255,255,255,.04);
}

.td-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Dialog (Admin Edit/Rewards) */
dialog.dlg{
  border: 1px solid var(--w-stroke);
  border-radius: 18px;
  padding: 0;
  background: rgba(12,12,12,.92);
  color: var(--w-text);
  box-shadow: var(--w-shadow);
  max-width: 92vw;
}

dialog.dlg::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}

.dlg-body{
  padding: 16px;
}

.dlg-body h3{
  font-size: 16px;
  font-weight: 900;
}

.dlg-body code{
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--w-stroke);
  background: rgba(255,255,255,.06);
}


/* Calendar UI (paste into app.css at the end) */
.cal-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
  margin-bottom:8px;
  font-weight:900;
  font-size:12px;
  opacity:.75;
}
.cal-weekdays > div{ text-align:center; padding:6px 0; }

.cal-month{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}
.cal-day{
  position:relative;
  min-height:86px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background: rgba(255,255,255,.05);
  overflow:hidden;
}
.cal-day.out{ opacity:.55; }
.cal-day .num{
  position:absolute; top:8px; right:10px;
  font-weight:900;
  font-size:12px;
  opacity:.85;
}
.cal-day.today{
  outline: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.cal-bars{
  position:absolute;
  left:6px; right:6px;
  top:28px; bottom:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  pointer-events:none;
}
.cal-bar{
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  font-weight:800;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.cal-bar.absence{ background: rgba(255,255,255,.10); }
.cal-bar.event{ background: rgba(255,255,255,.06); opacity:.9; }
.cal-bar .handle{
  margin-left:auto;
  width:10px; height:14px;
  border-radius:999px;
  background: rgba(255,255,255,.25);
  cursor: ew-resize;
}
.field.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:720px){
  .field.two{ grid-template-columns:1fr; }
  .cal-day{ min-height:78px; }
}

.cal-bar .handle{
  margin-left:auto;
  width:10px; height:14px;
  border-radius:999px;
  background: rgba(255,255,255,.25);
  cursor: ew-resize;
}

.cal-bar{
  position: relative;
  padding-right: 34px; /* Platz für ⋯ */
}

.cal-bar .menu-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform: translateY(-50%);
  width:22px;
  height:22px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  cursor:pointer;
  opacity:.85;
}

.cal-bar .menu-btn:hover{
  opacity:1;
  background: rgba(255,255,255,.08);
}

.cal-menu{
  position:fixed;
  z-index: 99999;
  min-width: 170px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,15,15,.92);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  overflow:hidden;
}

.cal-menu button{
  width:100%;
  text-align:left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
}

.cal-menu button:hover{
  background: rgba(255,255,255,.08);
}

.cal-menu .danger{
  color: rgba(255,150,150,.95);
}

/* Vehicle Catalog UI (append to app.css) */
.veh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:900px){.veh-grid{grid-template-columns:1fr}}
.veh-card{display:flex;gap:12px;align-items:stretch;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:18px;padding:12px;cursor:pointer}
.veh-card:hover{background:rgba(255,255,255,.07)}
.veh-img{width:120px;min-width:120px;height:90px;border-radius:14px;object-fit:cover;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.10)}
.veh-main{flex:1;min-width:0}
.veh-top{display:flex;justify-content:space-between;gap:10px}
.veh-title{font-weight:900;line-height:1.1}
.veh-sub{opacity:.7;font-size:12px;margin-top:2px}
.veh-price{font-weight:900;text-align:right;white-space:nowrap}
.veh-discount{opacity:.65;font-size:12px;text-align:right;white-space:nowrap}
.veh-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.veh-meta .row{display:flex;justify-content:space-between;gap:10px;font-size:12px;opacity:.85}
.veh-bars{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.veh-bar{display:flex;align-items:center;gap:8px;font-size:12px;opacity:.9}
.veh-bar .dots{display:flex;gap:4px}
.veh-bar .dot{width:10px;height:10px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.18)}
.veh-bar .dot.on{background:rgba(255,255,255,.30)}
.veh-flags{display:flex;gap:12px;margin-top:10px;font-size:12px;opacity:.9}
.veh-flag i{margin-right:6px}
.veh-detail{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}
@media (max-width:900px){.veh-detail{grid-template-columns:1fr}}
.veh-gallery{border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:10px;background:rgba(255,255,255,.04)}
.veh-gallery img{width:100%;height:320px;object-fit:cover;border-radius:14px;background:rgba(0,0,0,.25)}
.veh-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.veh-thumb{width:60px;height:44px;border-radius:10px;object-fit:cover;border:1px solid rgba(255,255,255,.14);opacity:.85;cursor:pointer}
.veh-thumb.active{outline:2px solid rgba(255,255,255,.35);opacity:1}
.veh-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.veh-contacts{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.veh-contacts .btn{padding:8px 10px}
.veh-suggest{border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(15,15,15,.92);margin-top:6px;overflow:hidden}
.veh-suggest button{width:100%;text-align:left;background:transparent;border:0;color:#fff;padding:8px 10px;cursor:pointer}
.veh-suggest button:hover{background:rgba(255,255,255,.08)}

/* kompakt */
.btn.sm{
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.15;
}

/* Kontaktbuttons minimal kleiner */
.btn.sm.contact{
  padding: 6px 9px;
  font-size: 12.5px;
}

/* Chat in dunkelgrün */
.btn.chat{
  background:#14532d;
  border:1px solid #166534;
  color:#ecfdf5;
}
.btn.chat:hover{
  background:#166534;
}

/* --- Software-Center --- */
.sc-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:12px}
.sc-side{border:1px solid var(--stroke);border-radius:18px;background:rgba(255,255,255,.04);padding:10px}
.sc-side-title{font-weight:700;margin:6px 6px 10px}
.sc-nav{width:100%;display:flex;align-items:center;gap:10px;border:1px solid var(--stroke);border-radius:14px;background:rgba(255,255,255,.06);padding:10px;color:var(--text);cursor:pointer}
.sc-nav.active{box-shadow:var(--focus);border-color:color-mix(in srgb, var(--accent) 45%, var(--stroke))}
.sc-main{min-height:200px}
.sc-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width: 980px){.sc-layout{grid-template-columns:1fr}.sc-grid{grid-template-columns:1fr}}

.sc-card{display:flex;align-items:center;gap:12px;border:1px solid var(--stroke);border-radius:18px;background:rgba(255,255,255,.05);padding:12px;cursor:pointer}
.sc-card:hover{background:rgba(255,255,255,.07)}
.sc-card-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;border:1px solid var(--stroke);background:rgba(255,255,255,.06)}
.sc-card-title{font-weight:800}
.sc-card-desc{font-size:.95rem}
.sc-card-arrow{margin-left:auto;color:rgba(255,255,255,.75)}
.sc-card-actions{display:flex;gap:8px;margin-left:auto}

.sc-detail-head{display:flex;gap:12px;align-items:center;margin-bottom:10px}
.sc-detail-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;border:1px solid var(--stroke);background:rgba(255,255,255,.06);font-size:1.3rem}
.sc-detail-title{font-size:1.4rem;font-weight:900;line-height:1.1}

.sc-stars{display:inline-flex;gap:4px;align-items:center;margin-top:6px}
.sc-star{font-size:1.05rem;opacity:.35}
.sc-star.on{opacity:1}

.sc-slideshow{display:flex;align-items:center;gap:10px;margin:12px 0}
.sc-slide-frame{flex:1;border:1px solid var(--stroke);border-radius:18px;overflow:hidden;background:rgba(255,255,255,.03);height:320px;display:grid;place-items:center}
.sc-slide-frame img{max-width:100%;max-height:100%;object-fit:contain}
.sc-slide-btn{border:1px solid var(--stroke);background:rgba(255,255,255,.06);border-radius:14px;padding:10px;color:var(--text);cursor:pointer}
.sc-slide-btn:hover{background:rgba(255,255,255,.08)}

.sc-markdown{margin-top:10px;border:1px solid var(--stroke);border-radius:18px;background:rgba(255,255,255,.03);padding:12px}
.sc-markdown h1,.sc-markdown h2,.sc-markdown h3{margin:.6rem 0 .4rem}
.sc-markdown p{margin:.55rem 0}
.sc-markdown ul{margin:.55rem 0 .55rem 1.2rem}
.sc-markdown code{background:rgba(255,255,255,.08);border:1px solid var(--stroke);padding:.1rem .35rem;border-radius:8px}

.sc-reviews{margin-top:12px}
.sc-reviews-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.sc-reviews-title{font-weight:900;font-size:1.15rem}
.sc-review{border:1px solid var(--stroke);border-radius:18px;background:rgba(255,255,255,.04);padding:12px;margin-top:10px}
.sc-review-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sc-review-name{font-weight:800}
.sc-review-title{font-weight:800;margin-top:6px}
.sc-review-body{margin-top:6px;white-space:pre-wrap}

.sc-stars-picker{display:flex;gap:6px;align-items:center}
.sc-stars-picker button{border:1px solid var(--stroke);background:rgba(255,255,255,.06);border-radius:12px;padding:8px 10px;color:var(--text);cursor:pointer}
.sc-stars-picker button.active{box-shadow:var(--focus);border-color:color-mix(in srgb, var(--accent) 45%, var(--stroke))}
/* Software-Center: Programme einzeilig anzeigen */
.sc-cards,
[data-bind="cards"] {
  display: flex;
  flex-direction: column; /* 👈 EINTRAG PRO ZEILE */
  gap: 10px;
}

/* --- Software Center Navigation Tabs --- */
.sc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-nav-item {
  appearance: none;
  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;
  color: #d0d0d0;

  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}

.sc-nav-item i {
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

/* Hover */
.sc-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Aktiver Tab */
.sc-nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: 2px solid rgba(255,255,255,0.18);
}

/* Fokus (Tastatur, barrierefrei) */
.sc-nav-item:focus-visible {
  outline: 2px solid #6ea8ff;
  outline-offset: 2px;
}

/* --- Divider im Menü --- */
.sc-nav-divider {
  height: 1px;
  margin: 10px 4px;
  background: rgba(255,255,255,0.15);
}

/* --- Software-Center Menü: Box um die Menüpunkte entfernen (override legacy .sc-nav style) --- */
.sc-side .sc-nav{
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  align-items: stretch !important;
  gap: 6px !important;
}

/* Falls irgendwo noch der alte .sc-nav.active Style greift */
.sc-side .sc-nav.active{
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Menüpunkte sollen die Optik übernehmen */
.sc-side .sc-nav-item{
  width: 100%;
}

/* Ticket-System Nav Item */
.sc-nav-item.ticket{
  background: rgba(255, 80, 80, 0.12);
  color:#ffd6d6;
  font-weight:700;
}

.sc-nav-item.ticket i{ color:#ff6b6b; }

.sc-nav-item.ticket:hover{ background: rgba(255, 80, 80, 0.20); }

.sc-nav-item.ticket.active{
  outline: 2px solid rgba(255, 80, 80, 0.45);
  background: rgba(255, 80, 80, 0.22);
}

/* Tickets UI (injected into sc-grid) */
.sc-tickets{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:12px;
  align-items:stretch;
}

.sc-ticket-list{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow:hidden;
}

.sc-ticket-list-head{
  display:flex;
  gap:8px;
  padding:10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.sc-ticket-list-head .btn{ flex:1; }

.sc-ticket-items{
  max-height: calc(78vh - 140px);
  overflow:auto;
}

.sc-ticket-item{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  cursor:pointer;
}

.sc-ticket-item:hover{ background: rgba(255,255,255,0.05); }
.sc-ticket-item.active{ background: rgba(255,255,255,0.10); }

.sc-ticket-item-title{ font-weight:700; }
.sc-ticket-item-meta{ margin-top:4px; font-size:12px; opacity:.8; display:flex; justify-content:space-between; gap:10px; }

.sc-ticket-detail{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.sc-ticket-detail-head{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.sc-ticket-messages{
  padding:12px;
  overflow:auto;
  flex:1;
  max-height: calc(78vh - 210px);
}

.sc-ticket-msg{
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
}

.sc-ticket-msg-meta{
  font-size:12px;
  opacity:.8;
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.sc-ticket-reply{
  border-top:1px solid rgba(255,255,255,0.10);
  padding:10px;
  display:flex;
  gap:10px;
}

.sc-ticket-reply textarea{
  flex:1;
  min-height: 70px;
}

/* Shutdown Overlay komplett schwarz */
.shutdown-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Stage Container */
.shutdown-stage {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}

.shutdown-stage.stage2 .shutdown-title {
  color: #ff9a3c;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 2px rgba(255,154,60,0.6),
    0 0 6px rgba(255,154,60,0.4);
  animation: shutdownFadeIn 0.8s ease-out;
}


/* Subtext */
.shutdown-stage.stage2 .shutdown-sub {
  margin-top: 12px;
  color: rgba(255,154,60,0.55);
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.3px;
  animation: shutdownFadeIn 1.2s ease-out;
}

.shutdown-overlay.hidden{
  display:none;
}

.shutdown-title{
  font-size:20px;
  color:#fff;
  text-align:center;
}

.shutdown-sub{
  color:#aaa;
  font-size:12px;
  text-align:center;
  margin-top:10px;
}

.shutdown-dots span{
  width:8px;
  height:8px;
  background:#fff;
  border-radius:50%;
  display:inline-block;
  margin:5px;
  animation:dot 1.2s infinite;
}

.shutdown-dots span:nth-child(2){animation-delay:.2s}
.shutdown-dots span:nth-child(3){animation-delay:.4s}

@keyframes dot{
  0%,80%,100%{opacity:.2}
  40%{opacity:1}
}

/* Smooth fade-in */
@keyframes shutdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden { display: none !important; }

/* Power Button im Startmenü */
.startmenu .power {
  background: rgba(176, 0, 32, 0.55); /* transparentes barrierefreies Rot */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 
    background 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

/* Hover */
.startmenu .power:hover {
  background: rgba(211, 47, 47, 0.75);
  box-shadow: 0 0 0 2px rgba(211,47,47,0.25);
}

/* Active */
.startmenu .power:active {
  background: rgba(139, 0, 0, 0.85);
  transform: scale(0.96);
}

/* Keyboard Focus (sehr wichtig für Barrierefreiheit) */
.startmenu .power:focus-visible {
  outline: 3px solid #ff6b6b;
  outline-offset: 2px;
}

/* Icon selbst */
.startmenu .power i {
  font-size: 16px;
  pointer-events: none;
}

.shutdown-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 18px;
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.10));
}

/* Stage1 Animation: shrink + fade */
.shutdown-overlay.is-running .shutdown-logo {
  animation: shutdownLogoOut var(--shutdown-stage1, 2200ms) ease-in forwards;
}

/* bisschen smoother */
@keyframes shutdownLogoOut {
  0%   { opacity: 1; transform: scale(1); }
  65%  { opacity: 0.65; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(0.72); }
}

/* Optional: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .shutdown-overlay.is-running .shutdown-logo {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

.iconvis-list { display:flex; flex-direction:column; gap:8px; }
.iconvis-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-radius:12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.iconvis-left { display:flex; align-items:center; gap:10px; min-width:0; }
.iconvis-ico { width:34px; height:34px; display:grid; place-items:center; border-radius:10px;
  background: rgba(255,255,255,.06);
}
.iconvis-title { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.iconvis-toggle input { width: 42px; height: 22px; }

.wall-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:10px;
  margin-top:10px;
}

.wall-item{
  text-align:left;
  border-radius:14px;
  padding:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}

.wall-item.active{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,.10) inset;
}

.wall-thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius:12px;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.06);
}

.wall-name{
  margin-top:8px;
  font-weight:600;
  font-size:12px;
  opacity:.9;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.sc-slideshow{
  position: relative;
  width: 100%;
  height: 320px; /* kannst du anpassen */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sc-slide-frame{
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.25);
  border-radius: 12px;
  overflow: hidden;
}

/* DAS ist der wichtige Teil */
.sc-slide-frame img{
  width: 100%;
  height: 100%;

  object-fit: contain;   /* verhindert Abschneiden */
  object-position: center;

  display: block;
}

/* Navigation Buttons */
.sc-slide-btn{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;

  background: rgba(0,0,0,.45);
  color: white;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background .15s;
}

.sc-slide-btn:hover{
  background: rgba(0,0,0,.65);
}

.imgv{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
}

.imgv[hidden]{ display:none; }

.imgv-img{
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  background: rgba(0,0,0,.25);
}

.imgv-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 18px;
}
.imgv-close:hover{ background: rgba(0,0,0,.75); }