:root{
  --c-brand:#8A6E5E;          /* Marke / Header (clavisone) */
  --c-success:#4A7A5A;        /* Gruen */
  --c-danger:#B83838;         /* Rot */
  --c-danger-dark:#9A2E2E;    /* Rot, gedrueckt */
  --c-warn-bg:#FBEAD3;        /* Gelb-Flaeche hell (warmes Tint) */
  --c-warn-bg-strong:#F6DAB0; /* Gelb-Flaeche kraeftiger (active) */
  --c-warn-ink:#8A5413;       /* Kontrasttext auf Gelb */
}

/* =========================================================
   RISSEL Lagerbestand WebApp – style.css REPARIERT 2026-04-14
   ========================================================= */

* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #000000;
}


/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-brand);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.headerTitle { font-size: 1.4em; font-weight: 900; line-height: 1.1; }
#headerTitle .hdrLine2 { display:block; margin-top:4px; font-weight:800; font-size:0.95em; }
.gearBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logoutBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  padding: 5px;
  -webkit-tap-highlight-color: transparent;
}
.logoutBtn:visited { color: #ffffff !important; }
.logoutBtn:active { background: rgba(255,255,255,0.30); color: #ffffff !important; }
.logoutBtn svg { stroke: #ffffff; }
.headerLogo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

/* ===== Wrapper ===== */
.wrapper { max-width: 420px; margin: 0 auto; padding: 16px; }
.withBottomBar { padding-bottom: 185px; }

/* ===== Gear Menu ===== */
.gearMenu { border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin: 8px 0 10px 0; background: #fafafa; }
.gearMenu.hidden { display: none; }
.gearTitle { font-weight: 800; margin-bottom: 6px; }
.gearOption { display: block; margin: 6px 0; font-size: 1.05em; }

/* ===== Status/Toast ===== */
.status.hidden { display: none; }
.status {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 150px;
  z-index: 2000;
}
.status.error {
  background: var(--c-danger);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

/* ===== Produktbild ===== */
.imgWrap { display:flex; justify-content:center; align-items:center; margin: 6px 0 5px 0; background: #ffffff; }
.imgWrap.hidden { display:none; }
.prodImg { width:150px; border-radius:8px; border:none; display:none; background: #ffffff; }
.imgLoader {
  width: 32px; height: 32px;
  border: 3px solid #ddd;
  border-top-color: var(--c-success);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Kamera / Scanner ===== */
video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 4px solid var(--c-success);
  border-radius: 10px;
  margin: 10px 0 0 0;
}
.scanHint { display:flex; flex-direction:column; align-items:center; gap:10px; margin: 4px 0 14px 0; }
.scanHint.hidden { display:none; }
.scanArrows { display:flex; gap:12px; }
.scanArrow { color:var(--c-success); font-size:34px; font-weight:900; animation: arrowUp 0.9s ease-in-out infinite; }
.scanArrow:nth-child(2) { animation-delay: 0.1s; }
.scanArrow:nth-child(3) { animation-delay: 0.2s; }
@keyframes arrowUp {
  0%   { transform: translateY(14px); opacity: 0.35; }
  50%  { transform: translateY(0);    opacity: 1;    }
  100% { transform: translateY(-14px); opacity: 0.35; }
}
.btn-scan-cancel {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: rgba(231, 76, 60, 0.25);
  color: #000000;
  font-weight: 900;
  font-size: 1em;
  cursor: pointer;
}

/* ===== Filiale + Größen ===== */
.filiale {
  margin: 0 -16px 8px -16px;
  padding: 10px 16px;
  background: var(--c-brand);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.0em;
  letter-spacing: 0.4px;
  display:flex;
  align-items:center;
}
.filiale span { display:inline-block; }
.filiale::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #ffffff;
  margin-left: 8px;
  position: relative;
  top: 1px;
}
.groessen { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; margin-bottom:12px; }
.groesse {
  padding:10px; border-radius:8px; font-weight:900;
  min-width:46px; text-align:center; line-height:1.1; color:#000;
}
.groesse.ok   { background: rgba(74,122,90,0.65); }
.groesse.leer { background: rgba(184,56,56,0.35); }
.qty { display:block; font-size:0.66em; font-weight:800; margin-top:3px; opacity:0.9; color:#000; }

/* ===== Dispo / Nachbestellung ===== */
.dispoWrap {
  margin: 0 0 14px 0;
  background: #ffffff;
}
.dispoToggle {
  width: 100%;
  padding: 13px 16px;
  background: var(--c-warn-bg);
  border: none;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.0em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-warn-ink);
}
.dispoPfeil { font-size: 0.85em; }
.dispoBody {
  margin-top: 8px;
  background: #ffffff;
}
.dispoTermin {
  margin-bottom: 12px;
}
.dispoDate {
  font-weight: 900;
  font-size: 0.9em;
  color: var(--c-warn-ink);
  background: var(--c-warn-bg);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.dispoFiliale {
  font-weight: 900;
  font-size: 0.85em;
  padding: 4px 0 2px 4px;
}
.dispoGroessen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.dispoGr {
  padding: 8px;
  border-radius: 8px;
  font-weight: 900;
  min-width: 46px;
  text-align: center;
  background: rgba(255, 193, 7, 0.25);
  color: #000;
  font-size: 0.95em;
}
.dispoQty {
  display: block;
  font-size: 0.66em;
  font-weight: 800;
  margin-top: 3px;
}

/* ===== Varianten ===== */
.variantenWrap {
  margin: 0 -16px 0 -16px;
  background: #ffffff;
  padding: 0;
}
.variantenToggle {
  width: 100%;
  padding: 10px 16px;
  background: #d6d6d6;
  border: none;
  border-radius: 0;
  font-weight: 900;
  font-size: 0.95em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #000000;
  margin: 0;
}
.variantenPfeil {
  font-size: 0.85em;
  color: #000000;
}
.variantenBody {
  margin: 0;
  padding: 10px 16px;
  background: #ffffff;
}
.variantenGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #ffffff;
}
.variantCard {
  border: none;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
}
.variantCard:active { background: #f5f5f5; }
.variantImg {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: #ffffff;
}
.variantNo { margin-top:6px; font-size:0.75em; font-weight:900; }
.variantenMehrBtn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--c-danger);
  color: #ffffff;
  font-weight: 900;
  font-size: 1em;
  cursor: pointer;
}

/* ===== BottomBar ===== */
.bottomBar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: #d6d6d6;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.25);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bottomBar > * { max-width:420px; width:100%; margin:0 auto; }

/* ===== Mode Toggle ===== */
.modeBtn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(74,122,90,0.65);
  font-weight: 900;
  color: #000000;
  cursor: pointer;
}

/* ===== Input + Clear ===== */
.inputWrap {
  position: relative;
  width: 100%;
}
#artikel, #altQuery {
  width: 100%;
  font-size: 1.15em;
  padding: 12px;
  padding-right: 46px;
  border: 2px solid #000000;
  border-radius: 8px;
  outline: none;
}
/* clearBtn fuer Artikelnummer – per JS gesteuert */
#clearBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(184,56,56,0.25);
  color: var(--c-danger);
  font-weight: 900;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  opacity: 0.85;
}

/* ===== Alt-Suche Wrap ===== */
#altWrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 8px;
  box-sizing: border-box;
}
#altWrap input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  border: 2px solid #000000;
  border-radius: 8px;
  outline: none;
}
#altGoBtn {
  flex: 0 0 auto;
  min-width: 82px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  background: rgba(74,122,90,0.65);
  font-weight: 900;
  color: #000000;
  cursor: pointer;
}
#altResetBtn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: rgba(184,56,56,0.25);
  color: var(--c-danger);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  align-self: center;
}
@media (max-width: 420px) {
  #altWrap input  { font-size: 13px; }
  #altGoBtn       { min-width: 72px; padding: 9px 10px; font-size: 13px; }
}

/* ===== Scan Button ===== */
.btn-scan {
  width: 100%;
  padding: 18px 14px;
  border-radius: 8px;
  border: none;
  background: var(--c-success);
  color: #000000;
  font-weight: 900;
  font-size: 1.35em;
  cursor: pointer;
}

/* ===== Trefferliste (Alt-Suche) ===== */
.matchesWrap  { margin-top: 12px; }
.matchesTitle { font-weight: 900; margin-bottom: 8px; }
.matchesGrid  {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.matchCard {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  background: #fff;
}
.matchImg   { width:100%; border-radius:8px; display:block; }
.matchNo    { margin-top:6px; font-size:0.75em; font-weight:900; }
.altMoreBtn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--c-danger);
  color: #ffffff;
  font-weight: 900;
  font-size: 1em;
  cursor: pointer;
}
.altMoreBtn:active { background: var(--c-danger-dark); }

/* ===== Welcome Message ===== */
.welcomeMsg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}
.welcomeIcon {
  font-size: 3em;
  margin-bottom: 12px;
  opacity: 0.4;
}
.welcomeText {
  font-size: 1.2em;
  font-weight: 900;
  color: var(--c-brand);
  opacity: 0.5;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* ===== Letzte Artikel ===== */
.recentWrapper { margin-top:16px; padding-top:10px; border-top:1px solid #ddd; margin-bottom: 140px; }
.recentWrapper.hidden { display:none !important; }
.recentTitle { font-weight:800; font-size:0.95em; margin-bottom:8px; }
.recentList  { list-style:none; padding:0; margin:0; }
.recentList li {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f5f5f5;
  font-weight: 700;
  cursor: pointer;
}

/* ===== Kioskmodus ===== */
.kioskAnleitung {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.82em;
  color: #444;
  display: none;
}
.kioskAnleitung.visible { display: block; }
.kioskAnleitungTitle {
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--c-brand);
}
.kioskAnleitungList {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.gearKioskBtn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: var(--c-brand);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95em;
  cursor: pointer;
  text-align: center;
}
.gearKioskBtnRed { background: var(--c-danger); margin-top: 6px; }
#kioskPinInput {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  text-align: center;
  letter-spacing: 3px;
}


/* ===== Einstellungen ===== */
.gearDivider { border-top: 1px solid #ddd; margin: 10px 0; }

/* ===== Artikel-Info Modal ===== */
.infoModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.infoModalOverlay.hidden { display: none; }
.infoModal {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 0 20px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.infoModalHeader {
  font-size: 1.1em;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--c-brand);
}
.infoModalBody {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 10px;
}
.infoRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
.infoRow:last-child { border-bottom: none; }
.infoLabel {
  font-size: 0.82em;
  color: #888;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.infoValue {
  font-size: 0.95em;
  font-weight: 800;
  color: #000;
  text-align: right;
  word-break: break-word;
}
.infoPreisStaffel {
  width: 100%;
}
.infoPreisGruppe {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.9em;
}
.infoPreisGruppe:last-child { border-bottom: none; }
.infoPreisRange { color: #555; font-weight: 700; }
.infoPreisWert  { font-weight: 900; color: #000; }
.infoModalCloseBtn {
  display: block;
  width: calc(100% + 40px);
  margin: 14px -20px 0 -20px;
  padding: 18px;
  border: none;
  background: var(--c-danger);
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.5px;
}

/* ===== Info-Button unter Produktbild ===== */
.infoBtn {
  display: block;
  width: 100%;
  margin: 0 0 6px 0;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  color: var(--c-brand);
  font-weight: 900;
  font-size: 0.9em;
  cursor: pointer;
  text-align: center;
}
.infoBtn:active { background: #e0e0e0; }

/* ===== Größen 0-Bestand: gedimmt, kleiner ===== */
.groesse.leer {
  opacity: 0.38;
  transform: scale(0.88);
  transform-origin: center;
}

/* ===== Kein Bestand Meldung ===== */
.keinBestandMsg {
  margin: 12px 0;
  padding: 14px 16px;
  background: rgba(184,56,56,0.12);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.05em;
  color: var(--c-danger-dark);
  text-align: center;
}

/* ===== Letzte Artikel mit Thumbnail ===== */
.recentList li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}
.recentThumb {
  width: 56px;
  height: auto;
  border-radius: 6px;
  background: #f0f0f0;
  flex-shrink: 0;
  display: block;
}
.recentArtNr {
  font-weight: 700;
  font-size: 0.95em;
}

/* ===== Dispo + Details Zeile ===== */
.dispoDetailsRow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.dispoDetailsRow .dispoToggle {
  flex: 3;
  border-radius: 8px 0 0 8px;
  margin: 0;
}
.detailsBtn {
  flex: 2;
  padding: 13px 10px;
  background: var(--c-warn-bg);
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 900;
  font-size: 1.0em;
  cursor: pointer;
  color: var(--c-warn-ink);
  white-space: nowrap;
}
.detailsBtn:active { background: var(--c-warn-bg-strong); }
.detailsBtnFull {
  flex: 1;
  border-radius: 8px;
  width: 100%;
}

/* ===== Dispo + Details Zeile ===== */
.dispoDetailsRow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.dispoDetailsRow .dispoToggle {
  flex: 3;
  border-radius: 8px;
  margin: 0;
}
.detailsBtn {
  flex: 2;
  padding: 13px 10px;
  background: var(--c-warn-bg);
  border: none;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.0em;
  cursor: pointer;
  color: var(--c-warn-ink);
  white-space: nowrap;
}
.detailsBtn:active { background: var(--c-warn-bg-strong); }
.detailsBtnFull {
  flex: 1;
  border-radius: 8px;
  width: 100%;
}

/* ===== Varianten + Details Zeile ===== */
.varDetailRow {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.varDetailRow .variantenToggle {
  flex: 3;
  border-radius: 0;
  margin: 0;
}
.varDetailsBtn {
  flex: 2;
  padding: 10px;
  background: var(--c-warn-bg);
  border: none;
  font-weight: 900;
  font-size: 0.95em;
  cursor: pointer;
  color: var(--c-warn-ink);
  white-space: nowrap;
}
.varDetailsBtn:active { background: var(--c-warn-bg-strong); }
.varDetailsBtnFull {
  flex: 1;
  width: 100%;
}

/* ===== Dispo inline pro Filiale ===== */
.dispoWrapInline {
  margin: 0 0 10px 0;
}
.dispoToggleInline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--c-warn-bg);
  border: none;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.95em;
  cursor: pointer;
  color: var(--c-warn-ink);
  margin-bottom: 0;
}

/* ===== Fremde Filialen Dispos Button ===== */
.fremdDispoBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--c-warn-bg);
  border: none;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.95em;
  cursor: pointer;
  color: var(--c-warn-ink);
  margin: 4px 0 10px 0;
}
.fremdDispoBtn:active { background: var(--c-warn-bg-strong); }
.fremdDispoBody {
  margin-bottom: 12px;
}
.fremdDispoBlock {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.fremdDispoBlockHeader {
  font-weight: 900;
  font-size: 0.92em;
  padding: 8px 12px;
  background: var(--c-brand);
  color: #ffffff;
}
.fremdDispoBlockBody {
  padding: 8px 10px;
  background: #ffffff;
}

/* === Touch-Schutz für Kiosk-Einsatz === */
html {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* Eingabefelder bleiben editierbar! */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* === Touch-Schutz für Kiosk-Einsatz === */
html {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* Eingabefelder bleiben editierbar! */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* ===== Offline Reload Button (v1.16 fin42) ===== */
.offlineReloadBtn {
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--c-danger);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 8px rgba(184,56,56,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 320px;
}
.offlineReloadBtn:active { background: var(--c-danger-dark); }
.offlineReloadTitle {
  font-size: 1.1em;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.offlineReloadHint {
  font-size: 0.85em;
  font-weight: 700;
  opacity: 0.95;
  line-height: 1.3;
}

/* ===== Logout im Einstellungs-Menue (v1.16 fin41) ===== */
.gearLogoutBtn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: var(--c-danger);
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 900;
  letter-spacing: 0.3px;
  -webkit-tap-highlight-color: transparent;
}
.gearLogoutBtn:active  { background: var(--c-danger-dark); color: #ffffff !important; }
.gearLogoutBtn:visited { color: #ffffff !important; }

/* ===== Offline-Faehnchen rechts (v1.17 fin44) ===== */
.offlineBar {
  position: fixed;
  top: 52px;
  right: 0;
  z-index: 10000;
  background: var(--c-danger);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 14px 10px 18px;
  gap: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: -2px 2px 8px rgba(184,56,56,0.45);
  border-radius: 8px 0 0 8px;
  user-select: none;
  max-width: 220px;
  /* Einfahren von rechts */
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.offlineBar.visible {
  transform: translateX(0);
}
.offlineBar.hidden {
  transform: translateX(100%);
}
.offlineBar:active { background: var(--c-danger-dark); }
.offlineBarTitle {
  font-size: 0.95em;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-align: right;
}
.offlineBarHint {
  font-size: 0.75em;
  font-weight: 700;
  opacity: 0.92;
  text-align: right;
  line-height: 1.3;
}

/* Gear-Button Entsperrt-Feedback */
.gearBtn.gearUnlocked {
  filter: brightness(1.6) drop-shadow(0 0 6px #fff);
  transition: filter 0.2s;
}
