/* macOS inspired */
.bg-macos {
  background: linear-gradient(180deg, #eae9f0 0%, #d9d8e3 100%);
  min-height: 100vh;
}
.glass-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
}
.glass-navbar {
  background: rgba(255,255,255,0.6) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.btn-macos {
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
table.table thead th {
  font-weight: 600;
}

/* Buttons – vertikal mittig und ohne übermäßigen Unterabstand */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-sm {
  line-height: 1.2;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.btn-touch {
  min-height: 44px; /* angenehmes Touch-Target auf Desktop/Tablet */
}

/* Copy-Toast (mobile) */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-in-out;
  z-index: 2000;
}
.copy-toast.show {
  opacity: 1;
}

/* Mobile Liste (xs/sm) in index */
.mobile-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 8px;
  background: transparent;
}
.mobile-list .app-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-list .app-row img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.mobile-list .app-main {
  flex: 1;
  min-width: 0;
}
.mobile-list .app-name {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
  color: #212529;
  text-decoration: none;
}
.mobile-list .meta {
  font-size: 13px;
  color: #6c757d;
}
.mobile-list .meta code {
  font-size: 12px;
}
.mobile-list .actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Abgerundeter Tabellencontainer */
.rounded-table-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.table-light thead th,
.table-light th {
  background-color: rgba(255,255,255,0.6) !important;
}

/* Navbar mobile layout */
.nav-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.nav-mobile-search {
  width: 100%;
  margin-top: 8px;
}
.nav-mobile-search .search-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

/* Small screen tweaks */
@media (max-width: 576px) {
  .navbar .navbar-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .glass-card {
    border-radius: 14px;
  }

  /* Kleinere Buttons auf iPhone: gleiche Schrift, weniger vertikales Padding */
  .btn {
    padding-top: 0.30rem;
    padding-bottom: 0.30rem;
  }
  .btn-sm {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
  }
  .btn-touch {
    min-height: 34px; /* kompakter als 44px */
  }
}

/* Layout-Fix: Seiteninhalt füllt den Viewport; unten stets Luft */
html, body { height: 100%; }
body.bg-macos {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.navbar { flex: 0 0 auto; }
.lk-page {
  flex: 1 0 auto;
  padding: 1.25rem 0 2.5rem; /* oben/unten Innenabstand – verhindert optisches “Ankleben” */
  background: linear-gradient(180deg, #eae9f0 0%, #d9d8e3 100%);
}

/* macOS inspired */
.bg-macos {
  /* Fallback zuerst, dann moderne Viewport-Einheiten */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #eae9f0 0%, #d9d8e3 100%);
  overflow-x: hidden;
}
.glass-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
}
.glass-navbar {
  background: rgba(255,255,255,0.6) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.btn-macos {
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
table.table thead th {
  font-weight: 600;
}

/* Buttons – vertikal mittig und ohne übermäßigen Unterabstand */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-sm {
  line-height: 1.2;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.btn-touch {
  min-height: 44px; /* angenehmes Touch-Target auf Desktop/Tablet */
}

/* Copy-Toast (mobile) */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-in-out;
  z-index: 2000;
}
.copy-toast.show {
  opacity: 1;
}

/* Mobile Liste (xs/sm) in index */
.mobile-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 8px;
  background: transparent;
}
.mobile-list .app-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-list .app-row img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.mobile-list .app-main {
  flex: 1;
  min-width: 0;
}
.mobile-list .app-name {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
  color: #212529;
  text-decoration: none;
}
.mobile-list .meta {
  font-size: 13px;
  color: #6c757d;
}
.mobile-list .meta code {
  font-size: 12px;
}
.mobile-list .actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Abgerundeter Tabellencontainer */
.rounded-table-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.table-light thead th,
.table-light th {
  background-color: rgba(255,255,255,0.6) !important;
}

/* Navbar mobile layout */
.nav-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.nav-mobile-search {
  width: 100%;
  margin-top: 8px;
}
.nav-mobile-search .search-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

/* Small screen tweaks */
@media (max-width: 576px) {
  .navbar .navbar-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .glass-card {
    border-radius: 14px;
  }

  /* Kleinere Buttons auf iPhone: gleiche Schrift, weniger vertikales Padding */
  .btn {
    padding-top: 0.30rem;
    padding-bottom: 0.30rem;
  }
  .btn-sm {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
  }
  .btn-touch {
    min-height: 34px; /* kompakter als 44px */
  }
}