: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;
  z-index: 999999;
}
.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);
  z-index: 200;
}
.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(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  text-align: center;
  margin-bottom: 12px;

  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );
}

.mtc-detailgrid strong{
  font-size: 15px;
  margin-top: 2px;
}

.mtc-detailgrid .muted{
  font-size: 11px;
  letter-spacing: .04em;
}
.mtc-summary{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  text-align: center;

  margin-top: 12px;
  padding: 14px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.mtc-summary strong{
  font-size: 18px;
}

.mtc-summary .muted{
  font-size: 12px;
  opacity: 0.8;
}

.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);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}

.chat-head-title{
  display:flex;
  flex-direction:column
}

.chat-head-actions{
  display:flex;
  gap:8px;
  align-items:center
}

/* === FIX: Chat Messages auf Flexbox statt Grid === */
.chat-messages{
  flex:1;
  overflow:auto;
  padding:12px;

  display:flex;
  flex-direction:column;
  gap:10px;
}

/* === FIX: Bubble nur so breit wie Inhalt === */
.bubble{
  max-width:75%;
  display:inline-flex;
  flex-direction:column;
  width:fit-content;

  border:1px solid var(--stroke);
  border-radius:16px;
  padding:10px 12px;
  background:rgba(255,255,255,.06);

  align-self:flex-start;
   font-size: .9rem;        
  line-height: 1.4;
}


.bubble.mine{
  align-self:flex-end;
  margin-left:0;

  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{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  font-size: .72rem;
  opacity: .8;
  color:var(--muted);
  margin-bottom:6px;
}

.bwho{
  font-size: .78rem;
  font-weight: 600;
}

.btime{
  font-variant-numeric: tabular-nums;
  opacity:.85;
  white-space:nowrap;
}

.btxt{
  white-space:pre-wrap;
  word-break:break-word;
  font-size: .9rem;
}

.chat-compose{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid var(--stroke);
  align-items:flex-end;

  background:rgba(255,255,255,.02);
}

/* Textbox */
.chat-compose textarea{
  flex:1;
  resize:none;

  min-height:42px;
  max-height:160px;

  padding:10px 12px;

  border-radius:14px;
  border:1px solid var(--stroke);

  background:rgba(255,255,255,.06);
  color:var(--text);

  font-size:.9rem;
  line-height:1.4;

  outline:none;
  transition:.15s ease;
}

/* Focus Effekt */
.chat-compose textarea:focus{
  border-color:color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background:rgba(255,255,255,.08);
}

/* Placeholder */
.chat-compose textarea::placeholder{
  color:var(--muted);
  opacity:.7;
}

/* Scrollbar clean */
.chat-compose textarea::-webkit-scrollbar{
  width:6px;
}
.chat-compose textarea::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:10px;
}

/* Send Button (falls vorhanden) */
.chat-compose button{
  height:42px;
  padding:0 14px;

  border-radius:12px;
  border:1px solid var(--stroke);

  background:color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.06));
  color:var(--text);

  cursor:pointer;
  transition:.15s ease;
}

.chat-compose button:hover{
  background:color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.06));
}

.chat-compose button:active{
  transform:scale(.97);
}

.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))
}

.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));
}


.shutdown-overlay.is-running .shutdown-logo {
  animation: shutdownLogoOut var(--shutdown-stage1, 2200ms) ease-in forwards;
}


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


@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; 
  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;
}


.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); }


#latestVehiclesRows.lvw-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.lvw-item{
  display:flex;
  padding:0;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  cursor:pointer;
  position:relative;
  min-height:74px;
}

.lvw-item:hover{
  background:rgba(255,255,255,.07);
}


.lvw-img{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:35%;
  height:100%;
  object-fit:cover;
}


.lvw-right{
  margin-left:35%;
  width:65%;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}


.lvw-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
}

.lvw-make{
  font-size:12px;
  opacity:.75;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:70%;
}

.lvw-price{
  font-weight:800;
  white-space:nowrap;
  text-align:right;
  font-size: 12px;
  color: inherit;
}

/* Model bigger */
.lvw-model{
  font-size:15px;
  font-weight:800;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


.lvw-owner{
  font-size:12px;
  opacity:.75;
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


.vq-overlay{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 80;
  pointer-events: none;
}

.vq-panel{
  pointer-events: auto;
  max-width: 520px;
  margin-left: auto; 
  border-radius: 18px;
  overflow: hidden;
  background: rgba(20,20,20,.86);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
    max-width: 720px;      
  margin: 0 auto;        
  
}

.vq-overlay.open .vq-panel{
  transform: translateY(0);
  opacity: 1;
}

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

.vq-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
}

.vq-close{
  border:0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
}

.vq-close:hover{
  background: rgba(255,255,255,.06);
}

.vq-body{
  padding: 12px;
}

.vq-input{
  width: 100%;
  resize: vertical;
  min-height: 72px;
  max-height: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: inherit;
  outline: none;
}

.vq-input:focus{
  border-color: rgba(124,58,237,.55);
}

.vq-hint{
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
}

.vq-results{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height: 360px;
  overflow:auto;
  padding-right: 2px;
}

.lvw-price{
  font-weight:900;
  color:#7c3aed;
}

.vq-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.vq-table th{
  text-align:left;
  padding:8px;
  font-weight:800;
  opacity:.7;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.vq-table td{
  padding:8px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.vq-table tr:hover{
  background:rgba(255,255,255,.05);
}

.vq-table .vq-price{
  text-align:right;
  font-weight:800;
  color:#7c3aed;
   font-variant-numeric: tabular-nums;
}

.vq-table th:last-child,
.vq-table td:last-child{
  text-align: right;
  width: 110px;      
  white-space: nowrap;
}

.vq-price{
  text-align: right;
  font-variant-numeric: tabular-nums; /* gleiche Ziffernbreite */
}

#latestVehiclesWidget .lvw-price{
  color: inherit !important;
}


.mtc select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #1e1e2a;
  color: #f1f1f5;

  border: 1px solid #3a3a4a;
  border-radius: 8px;

  padding: 8px 36px 8px 12px;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  outline: none;

  transition: all 0.15s ease;
}


.mtc select:hover {
  border-color: #5a8cff;
  background-color: #242436;
}


.mtc select:focus {
  border-color: #6aa2ff;
  box-shadow: 0 0 0 2px rgba(106,162,255,0.25);
}


.mtc select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.mtc .select-wrapper {
  position: relative;
  display: inline-block;
}

.mtc .select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;

  color: #9aa0b5;
  font-size: 12px;
}


.mtc select option {
  background-color: #1e1e2a;
  color: #f1f1f5;
}


.mtc select.compact {
  padding: 6px 30px 6px 10px;
  font-size: 13px;
}


@media (max-width: 768px) {
  .mtc select {
    width: 100%;
    font-size: 16px;
    padding: 10px 36px 10px 12px;
  }

  .mtc .select-wrapper {
    width: 100%;
  }
}

.desktop-watermark{
  position: absolute;   
  
  bottom: 80px;
  right: 22px;

  z-index: 1;           

  color: rgba(255,255,255,0.28);
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;

  pointer-events: none;
  user-select: none;
  text-align: right;
}

/* =========================
   Markdown Support in Chat
   ========================= */

.btxt.md{
  font-size:.9rem;
  line-height:1.45;
}

/* Absätze */
.btxt.md p{
  margin:0;
}
.btxt.md p + p{
  margin-top:.5rem;
}

/* Fett / Kursiv */
.btxt.md strong{
  font-weight:700;
}
.btxt.md em{
  font-style:italic;
}
.btxt.md del{
  opacity:.7;
}

/* Inline-Code */
.btxt.md code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:.85em;

  padding:2px 6px;
  border-radius:8px;

  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
}

/* Codeblocks */
.btxt.md pre{
  margin:.5rem 0 0;
  padding:10px 12px;

  border-radius:12px;
  border:1px solid var(--stroke);

  background:rgba(0,0,0,.35);

  overflow:auto;
}

.btxt.md pre code{
  padding:0;
  border:0;
  background:transparent;
  font-size:.85rem;
  line-height:1.4;
}

/* Links */
.btxt.md a{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.btxt.md a:hover{
  text-decoration:none;
  border-bottom-color:var(--accent);
}

/* Listen */
.btxt.md ul,
.btxt.md ol{
  margin:.4rem 0 .2rem 1.2rem;
  padding:0;
}

.btxt.md li{
  margin:.15rem 0;
}

/* Blockquote */
.btxt.md blockquote{
  margin:.5rem 0 0;
  padding:6px 10px;

  border-left:3px solid var(--accent);
  border-radius:6px;

  background:rgba(255,255,255,.04);
  opacity:.9;
}


.btxt.md hr{
  border:0;
  height:1px;
  margin:.6rem 0;
  background:var(--stroke);
  opacity:.6;
}


.btxt.md{
  word-break:break-word;
  overflow-wrap:anywhere;
}

.btxt.md h1,
.btxt.md h2,
.btxt.md h3,
.btxt.md h4,
.btxt.md h5,
.btxt.md h6{
  margin:.3rem 0;
  font-weight:700;
  line-height:1.2;
}

.btxt.md h1{font-size:1.2rem}
.btxt.md h2{font-size:1.1rem}
.btxt.md h3{font-size:1.05rem}
.btxt.md h4{font-size:1rem}
.btxt.md h5{font-size:.95rem}
.btxt.md h6{font-size:.9rem}

/* MTC Vehicle Form - clean layout */
.mtc-vehicle-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.mtc-section{
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  padding:12px;
}

.mtc-section-title{
  font-weight:800;
  margin-bottom:10px;
  opacity:.9;
}

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

@media (max-width: 820px){
  .mtc-grid{ grid-template-columns:1fr; }
}

.mtc-vehicle-form .field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mtc-vehicle-form .field > span{
  font-size:.82rem;
  color:var(--muted);
}

.mtc-vehicle-form input,
.mtc-vehicle-form select{
  width:100%;
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}

.mtc-vehicle-form input:focus,
.mtc-vehicle-form select:focus{
  border-color:color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background:rgba(255,255,255,.08);
}

.field-required > span::after{
  content:"";
}

.mtc-vehicle-form select {
  width: 100%;
  height: 38px;

  padding: 0 36px 0 12px;

  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);

  border-radius: 10px;
  border: 1px solid var(--stroke);

  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));

  backdrop-filter: blur(6px);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}


/* Hover */
.mtc-vehicle-form select:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--stroke));
}


/* Focus */
.mtc-vehicle-form select:focus {
  outline: none;

  border-color: var(--accent);

  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
    0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
}



.mtc-vehicle-form select:disabled {
  opacity: .55;
  cursor: default;
}


.mtc-vehicle-form .field {
  position: relative;
}

.mtc-vehicle-form .field select {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat, no-repeat;
  background-position: center, right 12px center;
  background-size: auto, 12px;
}


/* Option styling */
.mtc-vehicle-form select option {
  background: #1a1a1a;
  color: #fff;
}

.mtc-vehicle-form select {
  border-radius: 12px;
}

.mtc-vehicle-form select:focus {
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 14px color-mix(in srgb, var(--accent) 35%, transparent);
}


.mtc-vehicle-form .field > span{
  display:flex;
  align-items:center;
  gap:6px;
  line-height:1.1;
}

/* Info-Icon */
.mtc-tip{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:16px;
  height:16px;

  font-size:.85rem;
  color:var(--muted);

  cursor:help;
  border-radius:999px;

  opacity:.85;
  transition:opacity .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}

.mtc-tip:hover,
.mtc-tip:focus{
  opacity:1;
  color:var(--accent);
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  outline:none;
}


.mtc-tip:focus-visible{
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}


.mtc-tooltip{
  position:fixed;
  z-index:999999;

  /* Größe / Lesbarkeit */
  max-width:260px;
  padding:9px 11px;

  border-radius:10px;

  background:rgba(14,14,14,.94);
  color:#fff;

  font-size:.78rem;
  font-weight:500;
  line-height:1.35;


  text-transform:none !important;
  letter-spacing:normal !important;
  font-variant:normal !important;

  border:1px solid color-mix(in srgb, var(--stroke) 85%, transparent);

  box-shadow:
    0 10px 30px rgba(0,0,0,.40);

  opacity:0;
  transform:translateY(6px) scale(.98);
  pointer-events:none;

  transition:opacity .12s ease, transform .12s ease;
}

.mtc-tooltip.show{
  opacity:1;
  transform:translateY(0) scale(1);
}


.mtc-tooltip::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);

  width:10px;
  height:10px;

  background:rgba(14,14,14,.94);
  border-left:1px solid color-mix(in srgb, var(--stroke) 85%, transparent);
  border-top:1px solid color-mix(in srgb, var(--stroke) 85%, transparent);

  /* Default: Pfeil oben */
  top:100%;
  rotate:45deg;
  margin-top:-5px;
}

.mtc-tooltip.arrow-bottom::after{
  top:auto;
  bottom:100%;
  margin-top:0;
  margin-bottom:-5px;
  rotate:225deg;
}

.offer-card{
  display:grid;
  grid-template-columns: 40% 1fr auto;
  gap:14px;

  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:rgba(255,255,255,.04);

  overflow:hidden;
  padding:0;
  margin-bottom:12px;

  align-items:stretch;
  min-height:120px; /* sorgt für gleichmäßige Kartenhöhe */
}


.offer-left{
  position:relative;
  width:100%;
  height:100%;
  min-height:120px;   /* fixiert Bildhöhe in Relation zur Card */
  overflow:hidden;
  margin:0;
  padding:0;
  line-height:0;
  background:rgba(0,0,0,.25);
}


.offer-left .offer-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  border:0;
  margin:0;
  padding:0;
}

/* Placeholder-Fall */
.offer-left .offer-img.placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.35);
  font-size:26px;
  background:rgba(255,255,255,.03);
}

/* ---------- Mitte: Textbereich ---------- */
.offer-mid{
  padding:14px 0 14px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  min-width:0; /* wichtig für sauberes ellipsis */
}

.offer-title{
  font-size:14px;
  line-height:1.2;
  min-width:0;
}

.offer-title strong{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.offer-meta{
  display:flex;
  align-items:center;
  gap:8px;
}

.offer-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:800;
  padding:3px 10px;
  border-radius:999px;

  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.92);
}

.offer-price{
  font-size:13px;
  color:rgba(255,255,255,.9);
}

.offer-mid .muted{
  font-size:12px;
  color:rgba(255,255,255,.6);
}

/* ---------- Rechts: Actions ---------- */
.offer-actions{
  padding:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-end;
  max-width:260px;
}

/* Buttons leicht kompakter */
.offer-actions .btn{
  font-size:12px;
  padding:7px 10px;
  border-radius:10px;
}

/* ---------- Status-Styles über deine statusClass() ---------- */
.offer-card.is-pending .offer-status{
  background:rgba(255,255,255,.06);
}

.offer-card.is-countered .offer-status{
  background:rgba(255,255,255,.08);
}

.offer-card.is-accepted .offer-status{
  background:rgba(255,255,255,.10);
}

.offer-card.is-rejected .offer-status,
.offer-card.is-withdrawn .offer-status{
  background:rgba(255,255,255,.04);
  opacity:.85;
}

/* ---------- Mobile ---------- */
@media (max-width: 800px){
  .offer-card{
    grid-template-columns: 1fr;
    min-height:unset;
  }

  .offer-left{
    min-height:170px;
  }

  .offer-mid{
    padding:12px 12px 0 12px;
  }

  .offer-actions{
    padding:12px;
    justify-content:flex-start;
    max-width:none;
  }

  .offer-title strong{
    white-space:normal; /* auf mobile darf’s umbrechen */
  }
}

/* =============================
   Vehicle Detail – NEW (vehD-*)
   ============================= */

.vehD{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

/* HERO (Bild oben, Hochformat-Vibe) */
.vehD-hero{
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background: rgba(255,255,255,.04);
  overflow:hidden;
}

.vehD-mainWrap{
  position:relative;
  width:100%;
  height: min(360px, 45vh);
  background: rgba(0,0,0,.25);
}

.vehD-mainImg{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Pfeile */
.vehD-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.95);
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:5;
}

.vehD-nav:hover{ background: rgba(0,0,0,.62); }
.vehD-nav:active{ transform:translateY(-50%) scale(.98); }

.vehD-navLeft{ left:10px; }
.vehD-navRight{ right:10px; }

/* Thumbs */
.vehD-thumbs{
  display:flex;
  gap:8px;
  padding:10px;
  overflow:auto;
  border-top:1px solid rgba(255,255,255,.10);
}

.vehD-thumb{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  border-radius:12px;
  flex:0 0 auto;
}

.vehD-thumb img{
  width:72px;
  height:54px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  opacity:.82;
  display:block;
}

.vehD-thumb.is-active img{
  opacity:1;
  outline:2px solid rgba(255,255,255,.35);
}

/* Card (Infos + Buttons) */
.vehD-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background: rgba(255,255,255,.04);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.vehD-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.vehD-titleBox{ min-width:0; }

.vehD-make{
  font-size:12px;
  opacity:.75;
}

.vehD-model{
  font-size:20px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.vehD-priceBox{
  text-align:right;
  flex:0 0 auto;
}

.vehD-price{
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
}

.vehD-priceSub{
  font-size:12px;
  opacity:.75;
  white-space:nowrap;
  margin-top:2px;
}

/* Buttons */
.vehD-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.vehD-chat{
  background:#14532d;
  border:1px solid #166534;
  color:#ecfdf5;
}
.vehD-chat:hover{ background:#166534; }

.vehD-contacts{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); /* 1-3 Spalten, je nachdem was da ist */
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

/* WICHTIG: Buttons wirklich auf volle Breite zwingen */
.vehD-contacts .vehD-contact{
  width: 100% !important;
  min-width: 0;
  display: flex;                /* damit Icon + Text sauber zentriert */
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* falls du manchmal nur Icon hast oder der Text zu lang wird */
.vehD-contacts .vehD-contact span{
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: lieber 1 pro Zeile */
@media (max-width: 520px){
  .vehD-contacts{
    grid-template-columns: 1fr;
  }
}

.vehD-contact:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}


.vehD-contact,
.vehD-chat{
  height:40px;
}

/* Meta */
.vehD-meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px 14px;
}

.vehD-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  opacity:.92;
}
.vehD-row span:first-child{ opacity:.7; }

/* Upgrades */
.vehD-upgrades{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 12px;
  align-items:center;
}

.vehD-upgItem{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  opacity:.92;
}

.vehD-upgLabel{ opacity:.7; }
.vehD-upgDots{ display:flex; justify-content:flex-end; }

.vehD-flag{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  opacity:.92;
}
.vehD-flag i{ width:16px; text-align:center; opacity:.9; }


.vehD-extra{
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background: rgba(255,255,255,.04);
  padding:14px;
}

.vehD-extraTitle{
  font-weight:900;
  font-size:13px;
  margin-bottom:6px;
}

.vehD-extraBody{
  font-size:13px;
  line-height:1.4;
  opacity:.95;
}

/* Responsive */
@media (max-width: 560px){
  .vehD-meta{ grid-template-columns: 1fr; }
  .vehD-upgrades{ grid-template-columns: 1fr; }
  .vehD-mainWrap{ height: min(300px, 40vh); }
  .vehD-model{ font-size:18px; }
}


.vehD-mainWrap{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.vehD-mainImg{
  display:block;
  width:100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
}

/* Overlay Container */
.vehD-overlay{
  position:absolute;
  left:0; right:0;
  bottom:0;
  padding:12px;
  pointer-events:none; /* Buttons bleiben klickbar (nav) */
}

/* Die Box selbst */
.vehD-overlayTop{
  pointer-events:auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;

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

  background: rgba(10,12,18,.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Links: Hersteller/Modell */
.vehD-titleBox{min-width:0}
.vehD-make{
  font-size:12px;
  opacity:.78;
  font-weight:700;
}
.vehD-model{
  margin-top:2px;
  font-size:18px;
  font-weight:900;
  line-height:1.1;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 46vw;
}

/* Rechts: Preis */
.vehD-priceBox{
  text-align:right;
  flex: 0 0 auto;
}
.vehD-price{
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
}
.vehD-priceSub{
  margin-top:2px;
  font-size:12px;
  opacity:.75;
  white-space:nowrap;
}

/* Mobile: Bild höher + Text umbrechen erlauben */
@media (max-width: 720px){
  .vehD-mainImg{ height: 280px; }
  .vehD-model{
    white-space:normal;
    max-width: 100%;
  }
  .vehD-overlayTop{
    flex-direction:column;
    align-items:flex-start;
  }
  .vehD-priceBox{ text-align:left; }
}

/* ===== Vehicle Detail vD Overlay + Layout ===== */

.vehD-hero { display: grid; gap: 10px; }

.vehD-mainWrap{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.vehD-mainImg{
  width: 100%;
  height: min(360px, 42vh);
  display: block;
  object-fit: cover;
  background: rgba(0,0,0,.25);
}

/* Overlay Box auf dem Bild */
.vehD-overlay{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

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

  background: linear-gradient(180deg, rgba(10,10,12,.35), rgba(10,10,12,.75));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}

.vehD-titleBox{ min-width: 0; }
.vehD-make{ font-size: 12px; opacity: .75; }
.vehD-model{
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehD-priceBox{ text-align: right; flex: 0 0 auto; }
.vehD-price{ font-weight: 900; font-size: 16px; white-space: nowrap; }
.vehD-priceSub{ margin-top: 2px; opacity: .75; font-size: 12px; white-space: nowrap; }

.vehD-card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 12px;
}

/* Weitere Informationen Block */
.vehD-infoTitle{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
}
.vehD-infoBody{
  font-size: 13px;
  line-height: 1.4;
  opacity: .95;
}

/* Buttons schön geordnet */
.vehD-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vehD-actions .btn{ width: 100%; justify-content: center; }

/* Chat Button kann über beide Spalten */
.vehD-actions .vehD-chat{
  grid-column: 1 / -1;
}

/* Upgrades: Count x/y */
.vehD-upgItem{
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: center;
}
.vehD-upgCount{
  font-size: 12px;
  opacity: .75;
  font-variant-numeric: tabular-nums;
}

/* Mobile */
@media (max-width: 560px){
  .vehD-mainImg{ height: min(300px, 38vh); }
  .vehD-actions{ grid-template-columns: 1fr; }
  .vehD-actions .vehD-chat{ grid-column: auto; }
  .vehD-upgItem{ grid-template-columns: 60px 1fr auto; }
}

.mtc-vehicle-image{
  margin-bottom: 12px;
  text-align: center;
}

.mtc-vehicle-image img{
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* =========================
   FEED – base tokens
========================= */
:root{
  --feed-bg: rgba(255,255,255,.03);
  --feed-border: rgba(255,255,255,.10);
  --feed-border-2: rgba(255,255,255,.14);
  --feed-muted: rgba(255,255,255,.65);
  --feed-muted-2: rgba(255,255,255,.45);
  --feed-shadow: 0 10px 40px rgba(0,0,0,.45);
  --feed-radius: 14px;
}

/* Container */
.feed-list{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* Card */
.feed-card{
  grid-column: span 12;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--feed-border);
  border-radius: var(--feed-radius);
  background: var(--feed-bg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.feed-card:hover{
  transform: translateY(-1px);
  border-color: var(--feed-border-2);
  background: rgba(255,255,255,.045);
}

@media (max-width: 820px){
  .feed-card{
    grid-template-columns: 1fr;
  }
}

.feed-thumb{
  min-height: 150px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.04);
}

.feed-meta{
  padding: 12px 12px 10px 12px;
  display: grid;
  gap: 6px;
}

.feed-title{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}

.feed-excerpt{
  color: var(--feed-muted);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-foot{
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--feed-muted-2);
}

.feed-reacts{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.feed-reacts i{
  opacity: .9;
}

/* =========================
   ARTICLE VIEW
========================= */
.feed-article{
  padding: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.feed-hero{
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--feed-radius);
  border: 1px solid var(--feed-border);
  background: rgba(255,255,255,.03);
}

.feed-h1{
  margin: 12px 0 6px 0;
  font-size: 26px;
  line-height: 1.2;
}

.feed-h2{
  margin: 18px 0 10px 0;
  font-size: 18px;
}

.feed-body{
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--feed-border);
  border-radius: var(--feed-radius);
  background: rgba(255,255,255,.02);
  line-height: 1.55;
}

.feed-body code{
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
}

.feed-body a{
  color: inherit;
  text-decoration: underline;
  opacity: .9;
}
.feed-body a:hover{ opacity: 1; }

/* Reactions bar */
.feed-reactbar{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--feed-border);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.chip:hover{
  border-color: var(--feed-border-2);
  background: rgba(255,255,255,.05);
}

/* Comments */
.feed-comment{
  border: 1px solid var(--feed-border);
  border-radius: var(--feed-radius);
  background: rgba(255,255,255,.02);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.feed-comment-head{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.feed-comment-body{
  line-height: 1.45;
  color: var(--feed-muted);
}

.feed-comment-actions{
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.link{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--feed-muted);
  text-decoration: underline;
}
.link:hover{ color: rgba(255,255,255,.85); }
.link.danger{ color: rgba(255,120,120,.9); }
.link.danger:hover{ color: rgba(255,120,120,1); }

.feed-commentbox{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

/* =========================
   ADMIN LIST
========================= */
.feed-admin-list{
  display: grid;
  gap: 10px;
}

.feed-admin-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--feed-border);
  border-radius: var(--feed-radius);
  background: rgba(255,255,255,.02);
  padding: 10px 12px;
}
.feed-admin-actions{
  display: inline-flex;
  gap: 8px;
}

.btn.sm{
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
}
.btn.danger{
  border-color: rgba(255,120,120,.35);
}
.btn.danger:hover{
  border-color: rgba(255,120,120,.6);
}

/* Dialog (Admin) */
.feed-dialog::backdrop{
  background: rgba(0,0,0,.55);
}
.feed-dialog{
  border: 1px solid var(--feed-border);
  border-radius: 16px;
  background: rgba(20,22,26,.98);
  color: inherit;
  box-shadow: var(--feed-shadow);
  width: min(860px, 96vw);
}
.feed-form{
  display: grid;
  gap: 8px;
  padding: 14px;
}
.feed-form-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Generic helpers */
.muted{ color: var(--feed-muted-2); }

/* ===== FEED GRID: 2 cards per row ===== */
.feedGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .feedGrid{ grid-template-columns: 1fr; }
}

/* ===== FEED CARD ===== */
.feedCard{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  display: grid;
  grid-template-rows: auto auto auto auto;
}

.feedCard:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
}

/* image on top */
.feedCardImg{
  height: 190px;
  background: rgba(255,255,255,.04);
  background-size: cover;
  background-position: center;
}

/* title above excerpt */
.feedCardBody{
  padding: 12px 12px 10px 12px;
  display: grid;
  gap: 6px;
}

.feedCardTitle{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.feedCardExcerpt{
  font-size: 13px;   /* kleiner */
  opacity: .75;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* divider row */
.feedCardDivider{
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* footer row date + reactions */
.feedCardFooter{
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: .72;
}

/* reactions (two icons visible, hover shows all) */
.feedReacts{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: .95;
}

.feedReactsTop{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.feedReactsTop .r{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedReactsTop i{ opacity: .95; }

.feedReactsTotal{
  opacity: .8;
  white-space: nowrap;
}

/* hover panel */
.feedReactsPopover{
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 220px;
  background: rgba(20,22,26,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  padding: 10px;
  display: none;
  z-index: 9999;
}

.feedReacts:hover .feedReactsPopover{
  display: block;
}

.feedReactsRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px;
  border-radius: 10px;
}
.feedReactsRow:hover{
  background: rgba(255,255,255,.04);
}
.feedReactsRow .left{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .95;
}
/* =========================
   BUGTRACKER – UI styles
   Add to app.css (bottom)
========================= */

.btToolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.btToolbarLeft{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.btToolbarRight{ display:flex; gap:10px; align-items:center; }

.btInput, .btTextarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:inherit;
  outline:none;
}
.btTextarea{ min-height:110px; resize:vertical; }

.btBtn{
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:inherit;
  cursor:pointer;
}
.btBtn:hover{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.btBtnPrimary{ border:0; background: rgba(255,255,255,.14); }
.btBtnGhost{ background: transparent; }
.btBtnDanger{ border:0; background:#d92d20; color:#fff; }

.btIconBtn{
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  padding:6px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
}
.btIconBtn:hover{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.btIconBtn.btDanger{ border-color: rgba(217,45,32,.45); }
.btIconBtn.btDanger:hover{ border-color: rgba(217,45,32,.75); }

.btMuted{ opacity:.7; }

.btTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.btTable thead th{
  text-align:left;
  font-weight:700;
  font-size:12px;
  opacity:.8;
  padding:10px 12px;
  background: rgba(255,255,255,.03);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.btTable tbody td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:middle;
  font-size:13px;
}
.btTable tbody tr:last-child td{ border-bottom:0; }

.btRow{ cursor:pointer; }
.btRow:hover{ background: rgba(255,255,255,.03); }

.btTdDate{ white-space:nowrap; opacity:.75; font-size:12px; }
.btTdNum{ text-align:center; width:80px; }
.btTdActions{ width:120px; text-align:right; white-space:nowrap; }

.btTitle{ font-weight:800; line-height:1.2; }

.btStatus{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-size:12px;
}
.btStatus.done{ border-color: rgba(34,197,94,.35); }
.btStatus.progress{ border-color: rgba(59,130,246,.35); }
.btStatus.ack{ border-color: rgba(234,179,8,.35); }
.btStatus.custom{ border-color: rgba(255,255,255,.18); }

.btModalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.btModalCard{
  width:min(900px,96%);
  max-height:92%;
  overflow:auto;
  background:rgba(20,22,26,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow:0 10px 40px rgba(0,0,0,.6);
  padding:14px;
}
.btModalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.btModalTitle{ font-weight:800; }
.btModalBody{ display:grid; gap:12px; }
.btModalFoot{ display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }

.btField{ display:grid; gap:6px; }
.btLabel{ font-weight:700; font-size:12px; opacity:.85; }
.btHint{ font-size:12px; opacity:.7; }
.btStatic{ opacity:.85; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.02); }

.btLabelRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.btSteps{ display:grid; gap:10px; }
.btStepRow{ display:grid; gap:6px; padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background: rgba(255,255,255,.02); }
.btStepLabel{ font-weight:800; font-size:12px; opacity:.85; }

.btTicketHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(255,255,255,.02);
}
.btTicketTitle{ font-weight:900; font-size:18px; line-height:1.2; }
.btTicketMeta{ margin-top:6px; font-size:12px; opacity:.75; display:flex; gap:8px; flex-wrap:wrap; }
.btDot{ opacity:.5; }
.btTicketRight{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

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

.btPanel{
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(255,255,255,.02);
}
.btPanelTitle{ font-weight:800; margin-bottom:8px; }
.btStepsList{ margin:0; padding-left:18px; display:grid; gap:6px; opacity:.9; }
.btDesc{ opacity:.85; line-height:1.45; }

.btComments{ display:grid; gap:10px; margin-top:8px; }
.btComment{
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background: rgba(255,255,255,.02);
}
.btCommentHead{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.btCommentBody{ margin-top:6px; opacity:.85; line-height:1.45; white-space:pre-wrap; }

.btReplyBox{ margin-top:12px; display:grid; gap:8px; }
.btReplyActions{ display:flex; justify-content:flex-end; }
