/* ============================================================================
   KI AKADEMIE – App-Rahmen (Seitenleiste, Handy-Leisten, Blätter, Bausteine)
   Gilt für alle Seiten. Der Rahmen selbst wird von app-rahmen.js gebaut.
   ============================================================================ */

[hidden] { display: none !important; }

body.app-body {
  display: block;
  background-image: none;
}

/* ---------- Icons (Linien-Stil) ---------- */
.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-lg { width: 20px; height: 20px; }
.i-sm { width: 14px; height: 14px; }

/* ---------- Seitenleiste (PC) ---------- */
.app-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--bg-1);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  z-index: 60;
  overflow-y: auto;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  color: #FFF;
}
.side-brand img { width: 28px; height: 28px; border-radius: 8px; }
.side-brand strong { font-family: var(--font-display); font-size: 14px; letter-spacing: -0.01em; }
.side-brand strong span { color: var(--orange-light); }
.side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 10px 6px;
}
.side-nav { display: grid; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.045); color: #FFF; }
.nav-item.active { background: rgba(255, 106, 0, 0.11); color: #FFF; }
.nav-item.active .i { color: var(--orange-light); }
.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; }
.side-discord {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  background: rgba(88, 101, 242, 0.08);
  color: #C7D2FE;
  font-size: 12.5px;
  text-decoration: none;
}
.side-discord:hover { border-color: rgba(88, 101, 242, 0.5); }
.side-discord strong { color: #FFF; }
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-card);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.side-user-text { min-width: 0; flex: 1; }
.side-user-text strong {
  display: block;
  font-size: 13px;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user-text span { font-size: 11.5px; color: var(--text-muted); }
.side-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.side-auth .btn-dark-bar, .side-auth .btn-orange-bar { height: 34px; padding: 0 8px; font-size: 12.5px; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: #FFF; }

/* ---------- Hauptbereich ---------- */
.app-main {
  margin-left: 236px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 28px 48px;
  flex: 1;
  animation: appFadeIn 0.16s ease-out;
}
.app-content.wide { max-width: 1060px; }
@keyframes appFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-content { animation: none; }
}

/* ---------- Obere Leiste (Handy) ---------- */
.app-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  height: 54px;
  padding: 0 14px 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(6, 6, 9, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.app-top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-top-left img { width: 26px; height: 26px; border-radius: 7px; }
.app-top-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-top-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.app-top-right .btn-dark-bar, .app-top-right .btn-orange-bar { height: 32px; padding: 0 11px; font-size: 12.5px; }

/* ---------- Leiste unten (Handy) ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  background: rgba(9, 9, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 4px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.tab-item .i { width: 20px; height: 20px; }
.tab-item.active { color: #FFF; }
.tab-item.active .i { color: var(--orange-light); }

/* ---------- Footer-Zeile ---------- */
.app-legal {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.app-legal button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
}
.app-legal button:hover { color: #FFF; }

/* ---------- Avatar ---------- */
.ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid rgba(255, 106, 0, 0.35);
  color: var(--orange-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-lg { width: 64px; height: 64px; font-size: 24px; }
button.ava { cursor: pointer; padding: 0; }

/* ---------- Bausteine ---------- */
.page-head { margin-bottom: 6px; }
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head p { margin-top: 4px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.eyebrow.brand { color: var(--orange-light); }
.hl { color: var(--orange-light); }

.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.card-head h3 { font-size: 14.5px; font-weight: 700; }
.card-head p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 16px 18px; }
.card-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-foot a { color: var(--orange-light); font-weight: 600; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}
.row:first-child { border-top: 0; }
button.row, a.row {
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  color: inherit;
  font-family: var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
button.row:first-child, a.row:first-child { border-top: 0; }
button.row:hover, a.row:hover { background: rgba(255, 255, 255, 0.025); }
.card.row { border: 1px solid var(--border-subtle) !important; border-radius: 12px; }
.card.row:hover { border-color: var(--border-strong) !important; }
.set-head + .row { border-top: 0; }
.row-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-size: 13.5px; font-weight: 600; color: #FFF; }
.row-main span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.row-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.row-main .pill { display: inline-flex; margin-top: 0; font-size: 11.5px; }
.row-main .pill:not(.ok):not(.warn):not(.brand):not(.admin) { color: var(--text-secondary); }
.row-chev { color: var(--text-muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.ok { background: rgba(16, 185, 129, 0.13); color: #6EE7B7; }
.pill.warn { background: rgba(245, 158, 11, 0.14); color: #FCD34D; }
.pill.brand { background: rgba(255, 106, 0, 0.13); color: var(--orange-light); }
.pill.admin { background: rgba(244, 63, 94, 0.13); color: #FDA4AF; }

.btn-sm { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; }
.btn-block { width: 100%; }
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #FDA4AF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-discord {
  background: #5865F2 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
  color: #FFF !important;
}
.btn-discord:hover { background: #4752C4 !important; }

.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.field-hint { font-size: 11.5px; color: var(--text-muted); }
.field-row { display: flex; gap: 8px; }
.field-row > .ui-input, .field-row > .pw-field-wrap { flex: 1; min-width: 0; }
.app-body .ui-input { height: 38px; }
.app-body select.ui-input { padding: 0 10px; }
.form-grid { display: grid; gap: 14px; }
.mono { font-family: var(--font-mono); }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.seg button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.seg button:hover { color: #FFF; }
.seg button.active { background: #20202C; color: #FFF; }
.seg.scroll { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg.scroll::-webkit-scrollbar { display: none; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpi {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: 0;
}
.kpi-l { font-size: 12px; color: var(--text-muted); }
.kpi-v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.kpi-s { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.empty {
  padding: 22px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.check-rows { display: grid; gap: 9px; }
.check-rows li {
  list-style: none;
  display: flex;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.check-rows li .i { color: #6EE7B7; margin-top: 2px; }
.check-rows li strong { color: #FFF; }

.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #2A2A36;
  cursor: pointer;
  transition: background 0.15s;
}
.switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFF;
  transition: transform 0.15s;
}
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--orange-light); outline-offset: 2px; }

.set-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.set-head .row-ic { width: 32px; height: 32px; }
.set-head h3 { font-size: 14.5px; font-weight: 700; }
.set-head p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.set-body { padding: 18px; display: grid; gap: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: #FFF;
  font-size: 11.5px;
}

/* Hervorgehobene Karte (nächster Schritt, Hero) */
.next-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--orange-border);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.13) 0%, rgba(255, 106, 0, 0.02) 62%), var(--bg-card);
}
.next-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.16);
  border: 1px solid var(--orange-border);
  color: var(--orange-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.next-main { flex: 1; min-width: 0; }
.next-main h2 { font-size: 18px; font-weight: 800; }
.next-main p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.next-card .btn-orange-bar { flex-shrink: 0; }

/* Schritte (1–2–3) */
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid var(--orange-border);
  color: var(--orange-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FAQ */
.faq-row { border-top: 1px solid var(--border-subtle); }
.faq-row:first-child { border-top: 0; }
.faq-row summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFF;
  cursor: pointer;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary .i { color: var(--text-muted); transition: transform 0.15s; }
.faq-row[open] summary .i { transform: rotate(90deg); }
.faq-row p { padding: 0 18px 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* Bewertungen */
.stars { color: #FBBF24; letter-spacing: 1px; }
.rev-bars { display: grid; gap: 6px; }
.rev-bar { display: grid; grid-template-columns: 34px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; }
.rev-bar-track { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.rev-bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #FBBF24); border-radius: 99px; }
.rev-card { padding: 16px 18px; border-top: 1px solid var(--border-subtle); }
.rev-card:first-child { border-top: 0; }
.rev-card h4 { font-size: 14px; color: #FFF; margin: 6px 0 4px; }
.rev-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.rev-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-muted); margin-top: 8px; }
.star-pick { display: flex; gap: 6px; }
.star-pick button {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: #3F3F4A;
  font-size: 18px;
  cursor: pointer;
}
.star-pick button.active { color: #FBBF24; border-color: rgba(251, 191, 36, 0.45); }

/* Produkt-Zeilen im Shop */
.prod-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.prod-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-light);
}
.price {
  font-family: var(--font-display);
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
}
.price s { color: var(--text-muted); font-weight: 600; font-size: 0.7em; margin-left: 6px; }

/* Bilder-Galerie zum Wischen */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 34%);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #2A2A36 transparent;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: #2A2A36; border-radius: 99px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery button {
  scroll-snap-align: start;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: var(--bg-2);
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* Fester Kaufknopf (Handy) */
.buy-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 65;
  padding: 10px 14px;
  background: rgba(9, 9, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  align-items: center;
  gap: 12px;
}
.buy-bar .price { font-size: 18px; }

/* Chat (Support) */
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  min-height: 260px;
  max-height: 56vh;
  overflow-y: auto;
}
.bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble small { display: block; font-size: 10.5px; opacity: 0.7; margin-bottom: 2px; }
.bubble.me { align-self: flex-end; background: var(--orange); color: #FFF; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #1A1A25; color: #E4E4E7; border-bottom-left-radius: 4px; }
.chat-hint { align-self: center; font-size: 12px; color: var(--text-muted); text-align: center; max-width: 340px; }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
}
.chat-input .ui-input { flex: 1; height: 40px; border-radius: 99px; padding: 0 16px; }
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Blatt von unten / Fenster ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #0B0B11;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  color: var(--text-main);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
  animation: sheetIn 0.18s ease-out;
}
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-grab { display: none; }
.sheet h3 { font-size: 20px; font-weight: 800; }
.sheet-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Installations-Hinweis */
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(62px + env(safe-area-inset-top));
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  background: #12121B;
  border: 1px solid var(--orange-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.install-banner img { width: 38px; height: 38px; border-radius: 10px; }
.install-banner strong { display: block; font-size: 13.5px; color: #FFF; }
.install-banner span { font-size: 12px; color: var(--text-muted); }

/* ---------- Handy ---------- */
@media (max-width: 959px) {
  .app-side { display: none; }
  .app-main { margin-left: 0; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .app-top { display: flex; }
  .tabbar { display: grid; }
  .app-content { padding: 20px 16px 30px; }
  .page-head h1 { font-size: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .app-legal { padding: 14px 16px; }
  .app-body .ka-toast-stack { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; left: 12px; }
  .app-body .back-to-top-btn { display: none !important; }
  .buy-bar { display: flex; }
  .has-buy-bar .app-main { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
  .gallery { grid-auto-columns: 72%; }

  .sheet-overlay { align-items: flex-end; padding: 0; }
  .sheet {
    max-width: none;
    margin: 0;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
    max-height: 92vh;
    overflow-y: auto;
    animation: sheetUp 0.22s ease-out;
  }
  .sheet-grab {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: #33333F;
    margin: 0 auto 14px;
  }
  @keyframes sheetUp {
    from { transform: translateY(40px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }
}
@media (max-width: 620px) {
  .next-card { flex-direction: column; align-items: stretch; }
  .next-card .btn-orange-bar { width: 100%; }
  .next-ic { width: 40px; height: 40px; }
  .kpi-v { font-size: 19px; }
  .kpis.three { gap: 8px; }
  .kpis.three .kpi { padding: 12px 10px; }
  .kpis.three .kpi-v { font-size: 17px; }
  .kpis.three .kpi-l, .kpis.three .kpi-s { font-size: 11px; }
  .field-row { flex-wrap: wrap; }
  .field-row > .ui-input:not(select), .field-row > .pw-field-wrap { flex-basis: 100%; }
  .field-row > .btn-dark-bar, .field-row > .btn-orange-bar, .field-row > .btn-danger { flex: 1; }
  .card-head { flex-wrap: wrap; }
}
