html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Bild-Vorschau beim Hover in der Artikelliste */
.img-preview-popup {
  display: none;
  position: absolute;
  left: 50px;
  top: 0;
  z-index: 1000;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 4px;
}

.img-preview-cell:hover .img-preview-popup {
  display: block;
}

/* --- Inline-Style-Ersatz (CSP: kein unsafe-inline) --- */

/* Layout */
.w-auto { width: auto; }
.w-250 { width: 250px; }
.w-30 { width: 30px; }
.w-40 { width: 40px; }
.w-50px { width: 50px; }

/* Bilder-Vorschau (Edit) */
.img-box {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  cursor: pointer;
}
.img-box-sm {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  cursor: pointer;
}
.img-contain {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Kachelansicht */
.artikel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.artikel-kachel {
  width: 200px;
  text-align: center;
  position: relative;
}
.artikel-kachel .img-box-sm {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}
.artikel-kachel:hover .img-box-sm {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: scale(1.02);
  transition: all 0.15s ease;
}
.artikel-kachel.archiv {
  opacity: 0.5;
}
.kachel-check {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
}

@media (max-width: 575px) {
  .artikel-kachel {
    width: 150px;
  }
  .artikel-kachel .img-box-sm {
    width: 150px;
    height: 150px;
  }
}

/* Artikeltabelle Icons */
.img-icon {
  max-height: 30px;
  max-width: 40px;
}

/* Lightbox */
.lightbox-close { z-index: 1; }
.lightbox-img {
  max-height: 80vh;
  object-fit: contain;
}

/* Validation Summary: leere Liste ausblenden (roter Punkt) */
.validation-summary-valid { display: none; }

/* 2FA QR-Code */
.qr-img { max-width: 250px; }
.code-break { word-break: break-all; }

/* Toast/Spinner (PageBase.ts) */
.toast-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  padding: 1rem;
  z-index: 1080;
}
.spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}
