/* ALLGEMEIN SCHRIFTART */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  margin: 0;
  padding: 0 0 64px 0;
}

/* blockierter Input */
.muted { opacity: .8; }
.muted-tight { opacity:.8; margin-top:.2rem; }

/* ALLGEMEIN ENDE */

/* BANNER */
/* === Banner-Grundlayout === */
.main-header {
  background: linear-gradient(135deg, #a80000, #ff3b3b);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  top: 0;
  z-index: 1001;
}

@supports ((position: sticky) or (position: -webkit-sticky)) {
  .main-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
  }
}

.main-header-spacer {
  display: none;
  height: 0;
}

html.fixed-header .main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.fixed-header .main-header-spacer {
  display: block;
  height: 58px;
  height: var(--admin-header-offset, 58px);
}

.banner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 58px;      /* echte Bannerhöhe */
  padding-top: 0;        /* wichtig */
  padding-bottom: 0;     /* wichtig */
  display: flex;
  align-items: stretch;  /* wichtig */
  justify-content: space-between;
}

.main-header--admin-sidebar .banner-container {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding-left: 60px;
}

/* === Logo === */
.logo a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}

.banner-title-logo {
  flex: 0 0 auto;
}

.logo {
  margin: 0 !important;  /* falls du im HTML nichts änderst */
  display: flex;
  align-items: center;
  padding: 0 0.6rem;     /* Abstand statt margin */
}

.banner-title-prefix.is-hidden {
  display: none;
}

/*.logo a:hover {
  opacity: 0.8;
}*/


/* === Navigation === */
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-right: 0.5rem;
  align-items: center !important;
}

/* Baseline nur für "normale" Links – NICHT für .button-set-small */
.nav-links a:not(.button-set-small) {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}
.nav-links a:not(.button-set-small):hover {
  opacity: 0.7;
}

.nav-links.banner-menu {
  display: flex;
  align-items: stretch !important;
  align-self: stretch;
  height: auto;
  margin-right: 0;
  gap: 0;
}

/* Wrapper darf den Flow nicht kaputt machen */
.admin-button-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  z-index: 1101;
}

/* Desktop / allgemeine Banner-Tabs */
.banner-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-right: 0;
  gap: 0;
}

.banner-item,
.banner-item-button {
  width: 60px;
  background: none;
  border: none;
}

.banner-item-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  height: 100%;
}

.banner-item-label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* erstes Element links ohne Trennlinie */
.banner-menu > .banner-item:first-child {
  border-left: none;
}

/* wie Sidebar-Hover, aber auf rotem Header leicht transparent */
.banner-item:hover,
.banner-item-button:hover,
.banner-item:focus-visible,
.banner-item-button:focus-visible {
  background: rgba(255,245,245,0.18);
  outline: none;
  box-shadow: none;
}

/* aktiv wie Sidebar */
.banner-item.is-active,
.banner-item-button.is-active {
  background: linear-gradient(90deg, rgba(255,77,77,0.22), rgba(168,0,0,0.12));
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.92);
}

.banner-item:active,
.banner-item-button:active {
  background: rgba(255,245,245,0.22);
}

/* ADMIN-Button */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.55rem 0.9rem;
  border-radius: 10px;

  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;

  background: #f4f5f6;
  color: #222;

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);

  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin:hover,
.btn-admin:focus-visible {
  background: #eceff1;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  outline: none;
}

.btn-admin:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.btn-admin--primary {
  background: #a80000;
  color: #fff;
  border: none;
}

.btn-admin--primary:hover {
  background: #8f0000;
}

.btn-admin--ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
}

.btn-admin--danger {
  background: #fff;
  color: #a80000;
  border: 1px solid rgba(168,0,0,.25);
}

.btn-admin--danger:hover {
  background: #fff5f5;
}

.btn-admin--flat {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #666;
}

.btn-admin--flat:hover {
  color: #a80000;
  background: rgba(168,0,0,.05);
}

/* ICONS */
.nav-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.nav-icon--banner {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-icon--sidebar {
  width: 28px;
  height: 28px;
}

.nav-icon--bottom {
  width: 30px;
  height: 30px;
}

/* optional: falls ein Icon zu tief oder hoch sitzt */
.admin-sidebar-link-icon,
.admin-bottom-nav-icon,
.banner-item,
.banner-item-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ICONS */

/* Standard: mobiler eingebetteter Login versteckt */
.admin-login {
  display: none;
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.5rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 6px 10px 6px 0;
  flex: 0 0 auto;
  z-index: 1202;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  -webkit-tap-highlight-color: transparent;
}

/* Dünner Inaktivitäts-Balken direkt unter dem Banner */
.idlebar {
  position: fixed;
  top: 58px;
  top: var(--admin-header-offset, 58px);
  height: 4px;
  width: 100%;
  background: rgba(0,0,0,0.10);
  z-index: 1000;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Gefüllter Teil – wächst mit der Zeit */
#idleBar {
  height: 100%;
  width: 0%;
  background: #ffab00;
  transition: width 0.18s linear; /* smoothes Wachstum */
}

/* === Mobile Menü === */
@media (max-width: 850px) {
  .banner-container {
    position: relative;
    min-height: 58px;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-links.banner-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    margin-right: 0 !important;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0;
    z-index: 1100;
    height: auto;
    align-items: stretch !important;
    background: linear-gradient(180deg, #a80000, #c91414);
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .nav-links.banner-menu.active {
    display: flex;
  }

  .nav-links.banner-menu .banner-item,
  .nav-links.banner-menu .banner-item-button,
  .nav-links.banner-menu .admin-button-wrapper {
    width: 100%;
  }

  .nav-links.banner-menu .banner-item,
  .nav-links.banner-menu .banner-item-button {
    display: flex;
    box-sizing: border-box;
    height: 58px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.10);
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .nav-links.banner-menu .admin-button-wrapper {
    display: block;
    height: auto;
  }

  .nav-links.banner-menu .banner-item-inner {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .nav-links.banner-menu .banner-item-label {
    font-size: 0.82rem;
    color: #fff;
  }

  .nav-links.banner-menu .nav-icon--banner {
    width: 24px;
    height: 24px;
  }

  .nav-links.banner-menu .banner-item:hover,
  .nav-links.banner-menu .banner-item-button:hover,
  .nav-links.banner-menu .banner-item:focus-visible,
  .nav-links.banner-menu .banner-item-button:focus-visible {
    background: rgba(255,255,255,.08);
    color: #fff;
  }

  .nav-links.banner-menu .banner-item.is-active,
  .nav-links.banner-menu .banner-item-button.is-active {
    background: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: inset 4px 0 0 rgba(255,255,255,.92);
  }

  .admin-popup {
    display: none !important;
  }

  .admin-login {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  }

  .admin-login:not(.is-hidden) {
    max-height: 220px;
  }

  .nav-links.banner-menu .admin-login-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 1rem 1rem;
  }

  .nav-links.banner-menu .admin-login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  .nav-links.banner-menu .admin-login-form .button-set-small {
    width: 100%;
    justify-content: center;
  }

  .nav-links.banner-menu .admin-login-error {
    padding: 0 1rem 1rem;
    text-align: left;
    color: #fff;
  }
}

/* BANNER ENDE */

/* =========================
   ADMIN SIDEBAR / LAYOUT
========================= */
:root {
  --admin-header-offset: 58px;
  --admin-rail-width: 60px;
  --admin-panel-width: 250px;
  --admin-bottom-nav-height: 64px;
}

/* verhindert Scrollen im Hintergrund, wenn Overlay offen ist */
body.admin-sidebar-open {
  overflow: hidden;
}

/* Falls alte Wrapper noch existieren, neutral halten */
.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.admin-content {
  min-width: 0;
  box-sizing: border-box;
}

.admin-content .page-wrap,
.admin-content .user-edit-page {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

/* Linker Rail-Block */
.admin-nav {
  position: fixed;
  top: 58px;
  top: var(--admin-header-offset);
  left: 0;
  bottom: 0;
  width: 60px;
  width: var(--admin-rail-width);
  background: #fff;
  border-right: 1px solid rgba(0,0,0,.08);
  box-shadow: 4px 0 18px rgba(0,0,0,.05);
  overflow: hidden;
  z-index: 1040;
  transition: width .22s ease;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.admin-sidebar-open-desktop .admin-nav {
  width: 310px;
  width: calc(var(--admin-rail-width) + var(--admin-panel-width));
}

.banner-brand {
  display: flex;
  align-items: center;
}

.banner-sidebar-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 58px;
  margin-right: 0;
  background: none;
  border: none;
  padding: 0;
  z-index: 1305;
  color: #fff;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.banner-sidebar-toggle:hover {
  background: rgba(255,255,255,0.22);
}

.banner-sidebar-toggle .nav-icon {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

html.admin-sidebar-open-desktop .banner-sidebar-toggle .nav-icon {
  transform: rotate(180deg);
}

@media (max-width: 1023px) {
  .main-header--admin-sidebar .banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
  }

  .banner-sidebar-toggle {
    display: none !important;
  }
}
/* Navigation innen */
.admin-nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

/* oberer Bereich */
.admin-nav-top {
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #fff7f7;
}

/* Menü-Button oben */
.admin-rail-toggle {
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 0;
  background: #f6f7f8;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-rail-toggle:hover,
.admin-rail-toggle:focus-visible {
  background: #eceff1;
  color: #333;
  outline: none;
}

/* Scrollbarer Menübereich */
.admin-nav-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}

/* Gruppen */
.admin-sidebar-group {
  margin: 0;
  padding: 0;
}

.admin-sidebar-group + .admin-sidebar-group {
  border-top: 1px solid rgba(0,0,0,.05);
}

.admin-sidebar-group-title {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 0 0 74px;
  padding: 0 0 0 calc(var(--admin-rail-width) + 14px);
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b8b8b;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .16s ease, transform .18s ease;
  pointer-events: none;
}

html.admin-sidebar-open-desktop .admin-sidebar-group-title {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Menülink: eine durchgehende Zeile */
.admin-sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: #222;
  background: transparent;
  box-shadow: none;
  transition: background .15s ease, color .15s ease;
  overflow: hidden;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible {
  background: #fff5f5;
  outline: none;
}

/* Ikonenspur links */
.admin-sidebar-link-icon {
  width: 60px;
  width: var(--admin-rail-width);
  min-width: 60px;
  min-width: var(--admin-rail-width);
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #a80000;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 0;
  position: relative;
  z-index: 2;
}

/* Textbereich rechts */
.admin-sidebar-link-text {
  display: flex;
  align-items: center;
  height: 58px;
  min-width: 0;
  padding: 0 16px 0 6px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .16s ease, transform .18s ease;
  pointer-events: none;
}

html.admin-sidebar-open-desktop .admin-sidebar-link-text {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Aktiver Eintrag */
.admin-sidebar-link.is-active {
  background: linear-gradient(90deg, rgba(255,77,77,0.14), rgba(168,0,0,0.08));
  color: #a80000;
}

.admin-sidebar-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #a80000;
}

.admin-sidebar-link.is-active .admin-sidebar-link-icon {
  color: #a80000;
}

.admin-sidebar-link.is-active .admin-sidebar-link-text {
  color: #a80000;
}

/* nicht benutzt */
.admin-sidebar-close {
  display: none;
}

/* Overlay/Blur für die Seite */
.admin-sidebar-overlay {
  position: fixed;
  top: 58px;
  top: var(--admin-header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1035;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.admin-sidebar-overlay[hidden] {
  display: none !important;
}

/* Desktop / Tablet */
@media (min-width: 1024px) {
  .admin-nav {
    display: block;
  }
}

/* Mobil: Sidebar aus, Bottom-Bar übernimmt */
@media (max-width: 1023px) {
  .admin-nav {
    display: none;
  }

  .admin-sidebar-overlay {
    display: none !important;
  }
}

/* sehr kleine Screens */
@media (max-width: 480px) {
  .admin-rail-toggle {
    height: 60px;
    padding-left: 22px;
  }

  .admin-sidebar-link,
  .admin-sidebar-link-icon,
  .admin-sidebar-link-text {
    height: 56px;
  }
}

/* =========================
   ADMIN BOTTOM NAV (MOBILE)
========================= */
.admin-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .admin-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1095;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 -6px 18px rgba(0,0,0,.08);
    padding-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .admin-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-bottom-nav-link {
    flex: 0 0 76px;
    min-width: 76px;
    min-height: 64px;
    padding: 0.45rem 0.25rem 0.35rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .admin-bottom-nav-link:hover,
  .admin-bottom-nav-link:focus-visible {
    background: #fff5f5;
    color: #a80000;
    outline: none;
  }

  .admin-bottom-nav-link.is-active {
    color: #a80000;
    background: linear-gradient(180deg, rgba(255,77,77,0.10), rgba(255,77,77,0.03));
  }

  .admin-bottom-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .admin-bottom-nav-text {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .nav-icon--bottom {
    width: 24px;
    height: 24px;
  }

  .admin-bottom-nav-text {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.05;
  }

  .admin-bottom-nav-link.is-active {
    color: #a80000;
    background: linear-gradient(180deg, rgba(255,77,77,0.10), rgba(255,77,77,0.03));
  }
}

@media (max-width: 850px) {
  .admin-popup {
    left: auto;
    right: 12px;
    transform: none;
    width: 280px;
    max-width: 92vw;
    width: min(92vw, 280px);
  }
}

@media (min-width: 1024px) {
  .site-offset {
    padding-left: 60px;
    padding-left: var(--admin-rail-width);
  }

  .idlebar--admin {
    left: 60px;
    left: var(--admin-rail-width);
    width: calc(100% - 60px);
    width: calc(100% - var(--admin-rail-width));
  }
}

@media (max-width: 1023px) {
  .site-offset {
    padding-bottom: 64px;
    padding-bottom: calc(var(--admin-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
}
/* ADMIN-SIDEBAR ENDE */
/* SIDEBAR START */
@media (max-width: 1023px) {
  .user-bottom-nav {
    justify-content: space-between;
    overflow: hidden;
  }

  body.has-user-bottom-nav .back-fab-wrap {
    display: none;
  }

  body:has(.user-bottom-nav) .back-fab-wrap {
    display: none;
  }
	
  .user-bottom-nav .admin-bottom-nav-link {
    flex: 1 1 33.333%;
    min-width: 0;
  }

  .user-bottom-nav .admin-bottom-nav-link.is-disabled {
    opacity: .35;
    pointer-events: none;
  }
}
/* SIDEBAR ENDE */
/* ADMIN DASHBOARD */

        .admin-dashboard-page {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto 2rem;
        }
        .admin-dashboard-shell {
            max-width: 1200px;
            margin: 0 auto;
        }
		.admin-dashboard-grid {
			display: grid;
			gap: 1rem;
			margin: 1rem;
		}
        .admin-dashboard-grid--hero {
            grid-template-columns: 1.2fr .8fr;
        }
        .admin-dashboard-grid--kpis {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        .admin-dashboard-card {
            background: #fff;
            border: 1px solid rgba(0,0,0,.08);
            border-radius: 18px;
            box-shadow: 0 10px 24px rgba(0,0,0,.05);
            padding: 1.1rem 1.2rem;
        }
        .admin-dashboard-card-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: .9rem;
        }
        .admin-dashboard-card-title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            color: #222;
        }
        .admin-dashboard-card-subtitle {
            margin: .2rem 0 0;
            color: #666;
            font-size: .92rem;
        }
        .admin-dashboard-kpi-value {
            font-size: 2rem;
            line-height: 1;
            font-weight: 900;
            color: #a80000;
            margin-bottom: .5rem;
        }
        .admin-dashboard-kpi-meta {
            display: flex;
            justify-content: space-between;
            gap: .8rem;
            font-size: .9rem;
            color: #666;
            border-top: 1px solid rgba(0,0,0,.06);
            padding-top: .7rem;
        }
        .admin-dashboard-kpi-meta strong {
            color: #222;
        }
        .admin-dashboard-news {
            white-space: pre-line;
            color: #333;
            line-height: 1.5;
        }
        .admin-dashboard-welcome-text {
            color: #333;
            line-height: 1.6;
            margin: 0;
        }
        .admin-dashboard-debt-list {
            display: grid;
            gap: .7rem;
        }
        .admin-dashboard-debt-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            border: 1px solid rgba(0,0,0,.06);
            border-radius: 14px;
            padding: .8rem .9rem;
            background: #fafafa;
        }
        .admin-dashboard-debt-name {
            font-weight: 700;
            color: #222;
        }
        .admin-dashboard-debt-value {
            font-weight: 800;
            color: #a80000;
            white-space: nowrap;
        }
        .admin-dashboard-empty {
            color: #666;
            font-size: .95rem;
        }

		@media (max-width: 700px) {
			.admin-dashboard-shell .user-edit-header,
			.admin-dashboard-shell .admin-dashboard-grid,
			.admin-dashboard-shell .admin-dashboard-rank-grid {
				padding-left: .9rem;
				padding-right: .9rem;
			}
		}

        @media (max-width: 980px) {
            .admin-dashboard-grid--hero,
            .admin-dashboard-grid--kpis {
                grid-template-columns: 1fr;
            }
        }

		.admin-dashboard-rank-grid {
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 1rem;
			margin: 1rem;
		}

		.admin-dashboard-rank-list {
			display: grid;
			gap: .8rem;
		}

		.admin-dashboard-rank-item {
			display: grid;
			gap: .45rem;
		}

		.admin-dashboard-rank-head {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1rem;
		}

		.admin-dashboard-rank-name {
			font-weight: 700;
			color: #222;
		}

		.admin-dashboard-rank-value {
			font-weight: 800;
			color: #a80000;
			white-space: nowrap;
		}

		.admin-dashboard-rank-bar {
			width: 100%;
			height: 10px;
			border-radius: 999px;
			background: rgba(0,0,0,.08);
			overflow: hidden;
		}

		.admin-dashboard-rank-bar-fill {
			height: 100%;
			border-radius: 999px;
			background: linear-gradient(135deg, #ff4d4d, #a80000);
			min-width: 6px;
		}

		@media (max-width: 980px) {
			.admin-dashboard-rank-grid {
				grid-template-columns: 1fr;
			}
		}
/* ADMIN DASHBOARD ENDE */
/* LOGIN MOBILE */

@media (max-width: 600px) {
  .settings-form select {
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .monitor-table,
  .index-card,
  .shop-card {
    box-shadow: none;
  }

  .login-compact-new {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
  }
}

.settings-form select:focus {
  outline: none;
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18);
}

/* Login Layout-Umschalter */
.login-tiles { display: block; }
.login-compact { display: none; }

@media (max-width: 600px) {
  .login-tiles { display: none; }
  .login-compact { display: block; }
}

.login-compact .settings-form .form-row {
  width: 100%;
}

.login-compact .settings-form .input-control {
  max-width: 100%;
}
/* LOGIN MOBILE ENDE */

/* BUTTONS & CONTAINER */

/* BUTTON-USER & BUTTON-USER-CONTAINER */
/* === Container für die Benutzer-Buttons === */
.button-user-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 90%;
}


/* === Formulare innerhalb des Containers === */
.button-user-container > form:not(.admin-rule-form) {
  flex: 1 1 200px; /* alle Buttons nehmen gleiche Breite bis 200px oder mehr ein */
  max-width: 250px;
  margin: 0.5rem;
}

/* === Benutzer-Button-Styling (wie vorher) === */
.button-user {
  width: 100%; /* Button füllt das Form-Element aus */
  height: 70px;
  background: #d9d9d9; /* hellgrau als Standard */
  color: #000; /* schwarze Schrift */
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.button-user:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.button-user:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.button-user--new {
  outline: 2px dashed rgba(255,255,255,0.6);
  outline-offset: -4px;
}

/* === Mobile Darstellung === */
@media (max-width: 600px) {
  .button-user {
    width: 100%;
    min-width: unset;
  }

  .button-user-container form {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* BUTTON-USER & BUTTON-CONTAINER ENDE */

/* BUTTON-SET-SMALL & INPUT-SET-SMALL & BANNER-PW */
/* === Navigations-Buttons im Banner === */
.button-set-small {
  background: rgba(255, 255, 255, 0.2);               /* etwas deckender Hintergrund */
  border: 1px solid rgba(255, 255, 255, 0.4);         /* klarerer Rahmen */
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);          /* feiner Schlagschatten */
  backdrop-filter: blur(4px);                         /* Glas-Effekt für Tiefe */
}

/* === Hover / Fokus === */
.button-set-small:hover,
.button-set-small:focus {
  background: rgba(255, 255, 255, 0.35);              /* stärkerer Kontrast */
  color: #222;                                        /* Text dunkler für Lesbarkeit */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* === Aktiver Zustand (beim Klicken gedrückt) === */
.button-set-small:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Danger-Variante für kleine Buttons (z.B. Löschen) */
.button-set-small.button-danger {
  background: #ff4d4d;
  border: none;
  color: #fff;
}
.button-set-small.button-danger:hover { filter: brightness(0.95); }

.button-set-small.button-warn {
  background: #ffb84d;
  border: none;
  color: #222;
}
.button-set-small.button-warn:hover,
.button-set-small.button-warn:focus-visible {
  filter: brightness(0.95);
  background: #ffa31a;
}

/* OK (z. B. für „Bestätigen“, „Aktiv“) */
.button-set-small.button-ok {
  background: #4caf50;
  border: none;
  color: #fff;
}
.button-set-small.button-ok:hover,
.button-set-small.button-ok:focus-visible {
  filter: brightness(1.05);
  background: #43a047;
}

/* Kleinere Variante für reine Icon-Buttons (z. B. 🖊️) */
.button-set-small.icon-only {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0; /* verhindert zusätzliches Padding */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.input-set-small {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #000000;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  
  font-size: 0.95rem;
  font-weight: 600;

  width: 120px;             /* <<< Breite hier anpassen */
  max-width: 140px;
  display: inline-block;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);

  transition: all 0.25s ease;
}

/* optionale Zeilenakzente in der Historie */
.monitor-table tr.payment-row td { color:#0a6d0a; }     /* Gutschrift/Einzahlung */
.monitor-table tr.negative-price td { color:#0a6d0a; }  /* negative Beträge */

/* Schulden (negative Zahlung) */
.monitor-table tr.debt-row td {
    color: #b91c1c;          /* kräftiges, aber nicht knalliges Rot */
}

/* Gleicher Look im Banner für <a> und <button> */
.nav-links a.button-set-small,
.nav-links button.button-set-small {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;                  /* Platz fürs Emoji/Icon */
  font-weight: 600;             /* sicherheitshalber vereinheitlichen */
}

/* Hover nicht abdunkeln (überschreibt alte Opacity-Regel) */
.nav-links a.button-set-small:hover {
  opacity: 1;
}

/* === Passwortfeld-Bereich unter dem Header === */
.admin-login {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
  background: #ffeaea;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
  position: relative; z-index: 5;
}
.admin-login:not(.is-hidden) { max-height: 140px; }

.admin-login-form {
  display: flex; gap: .5rem; align-items: center; justify-content: center;
  padding: .8rem 1rem;
}
.admin-login-form input[type="password"] {
  padding: .5rem .8rem; border-radius: 6px; border: 1px solid #aaa; font-size: 1rem;
}
.admin-login-form input[type="password"]:focus {
  border-color: #ff4d4d; box-shadow: 0 0 4px rgba(255,77,77,.35);
}
.admin-login-error {
  color: #b00020; text-align: center; padding: .25rem 0 .8rem;
  font-size: .95rem; font-weight: 600;
}
/* --- Admin-Popup-Login (kleines Fenster unter Button) --- */
.admin-popup {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 260px;
  background: #fff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  z-index: 1101;
}

.admin-popup.hidden {
  display: none;
}

.admin-popup form {
  display: flex;
  flex-direction: column;
  width: 90%;
  gap: 0.5rem;
  margin: 0;
}

.admin-popup input[type="password"] {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 0.95rem;
  text-align: center;
}

.admin-popup input[type="password"]:focus {
  outline: none;
  border-color: #ff4d4d;
  box-shadow: 0 0 4px rgba(255, 77, 77, 0.4);
}

.admin-popup .button-set-small {
  background: #ff4d4d;
  border: none;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  justify-content: center;
}

.admin-popup .button-set-small:hover {
  background: #c00000;
}

.admin-popup .admin-error {
  color: #b00020;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}


/* === Zentrierter Button am unteren Rand === */
.back-fab-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  z-index: 1100;
  pointer-events: none;
}

.button-back {
  background: #ffffff;
  pointer-events: auto;
  color: #a80000;
  border: 2px solid #a80000;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.button-back:hover,
.button-back:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  background: #a80000;
  color: #fff;
}

@media (max-width: 640px) {
  .button-back {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
/* BUTTON-SET-SMALL & BANNER-PW ENDE*/

/* EINGABEFELDER / TITEL-STYLING USER-CREATE / BUTTON-SETTINGS */
/* --- User Create: zentriert + Card-Look --- */

/* Titel mittig */
.page-title {
  text-align: center;
  margin: 1.25rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Fehleranzeige (falls vorhanden) */
.error-message {
  text-align: center;
  color: #b00020;
  font-weight: 600;
  margin: 0.25rem auto 1rem;
}

/* Zentrierter Wrapper */
.settings-center {
  max-width: 520px;
  width: 90%;
  margin: 1.25rem auto 2rem;
  align-items: center;
}

/* Formular-Card */
.settings-form {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: center; /* Elemente mittig ausrichten */
}

/* Button soll nicht gestreckt werden, sondern nur so breit wie sein Inhalt */
.settings-form .button-settings {
  align-self: center;   /* statt stretch */
  width: auto;          /* überschreibt evtl. vererbte width:100% */
  max-width: none;
  flex: 0 0 auto;       /* keine Flex-Dehnung */
  white-space: nowrap;  /* kein Zeilenumbruch -> kompakt */
}

/* Label + Input */
.form-row {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center; /* Label & Input mittig ausrichten */
}

.form-row label {
  font-weight: 600;
}

/* Einheitliche Eingabe-Komponente */
.input-control,
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 360px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  text-align: center; /* du willst zentriert */
  background: #fff;
  height: 2.6rem;
  line-height: 1.3rem;
  align-items: center;
}

/* iOS-Sonderbehandlung fürs Datum (optional, hilft oft bei der Höhe) */
.form-row input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}
.input-control:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18);
}

/* Selects hübscher */
.form-row select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-row + .form-row.button-row {
  margin-top: 1.5rem;
}

/* --- Primär-CTA: button-settings --- */
.button-settings {
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 18px rgba(168, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  text-align: center;
}

.button-settings:hover,
.button-settings:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(168, 0, 0, 0.28);
  filter: brightness(1.05);
}

.button-settings:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(168, 0, 0, 0.22);
}

/* Mobile Feinheiten */
@media (max-width: 520px) {
  .settings-form { padding: 1rem; }
  .form-row input { max-width: 100%; }
}
/* EINGABEFELDER / TITEL-STYLING USER-CREATE / BUTTON-SETTINGS ENDE */

/* MONITOR & KAFFE-FLAT */
/* --- Monitor: Titel & Zusammenfassung --- */
.monitor-title {
  text-align: center;
  margin: 1rem 0 1rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.monitor-subtitle {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #444;
}

.monitor-badges {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

td.cell-nonzero { background: rgba(255,193,7,.18); }
td.cell-fresh   { background: rgba(255,193,7,.45); font-weight: 700; }

.monitor-badge {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Tabelle: Container (für mobiles Scrollen) --- */
.table-wrap {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  overflow-x: auto;             /* horizontales Scrollen auf kleinen Screens */
}

/* --- Tabelle selbst --- */
.monitor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}

.monitor-table thead th {
  background: #f7f7f7;
  color: #222;
  text-align: center;
  padding: .6rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  white-space: nowrap;
}

@supports ((position: sticky) or (position: -webkit-sticky)) {
  .monitor-table thead th {
    position: sticky;
    top: 0;
  }
}
.monitor-table tbody td,
.monitor-table tbody th {
  padding: .55rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.monitor-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* erste Spalte (Benutzername) links, Rest zentriert */
.monitor-table tbody td:first-child,
.monitor-table thead th:first-child {
  background: #fff;
  text-align: left;
}

@supports ((position: sticky) or (position: -webkit-sticky)) {
  .monitor-table tbody td:first-child,
  .monitor-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }
}

.monitor-table tbody td:not(:first-child),
.monitor-table tfoot td {
  text-align: center;
}

/* Summenzeile hervorheben */
.monitor-table .sum-row td,
.monitor-table .sum-row th {
  font-weight: 800;
}

.monitor-empty {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem 1rem;
  max-width: 600px;
  background: #fff7f7;
  border: 1px solid rgba(255, 77, 77, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  font-weight: 600;
  color: #a80000;
}

/* Monitor-Änderungs-Highlights */
.cell-up, .cell-down { animation: pulse 1.2s ease-out; }
.cell-up   { background: rgba(46, 204, 113, 0.25); }  /* hoch */
.cell-down { background: rgba(231, 76, 60, 0.25); }   /* runter */

@keyframes pulse {
  0%   { box-shadow: inset 0 0 0 9999px rgba(255,255,0,0.0); }
  30%  { box-shadow: inset 0 0 0 9999px rgba(255,255,0,0.15); }
  100% { box-shadow: inset 0 0 0 9999px rgba(255,255,0,0.0); }
}

.monitor-table td {
  transition: background-color 0.8s ease;
}

.monitor-team-search {
  margin: 0 auto 1rem;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.monitor-team-search-input {
  width: 100%;
  box-sizing: border-box;
}
/* =========================
   Dashboard / Bedarf
========================= */

.monitor-dashboard {
  width: 95%;
  max-width: 1200px;
  margin: 1rem auto 1.25rem;
  font-size: 0; /* entfernt Inline-Block-Abstände */
  text-align: center;
}

.monitor-need-card {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1rem 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  padding: 0.75rem;
  text-align: left;
  font-size: 14px;
}

.monitor-need-card--broetchen {
  background: #fffaf0;
}

.monitor-need-card--eggs {
  background: #fffdf2;
}

.monitor-need-card--tonno {
  background: #f4fbff;
}

.monitor-need-card--extras {
  background: #fff8fb;
}

.monitor-need-head {
  display: table;
  width: 100%;
  margin-bottom: .85rem;
}

.monitor-need-head h3 {
  display: table-cell;
  vertical-align: middle;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #222;
  text-align: left;
}

.monitor-need-total {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.monitor-need-total span,
.monitor-need-total {
  width: 3rem;
  height: 32px;
  padding: 0 .6rem;
  border-radius: 999px;
  background: #a80000;
  color: #fff;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
}

.monitor-need-list {
  display: block;
}

.monitor-need-row {
  overflow: hidden;
  margin-bottom: .35rem;
  padding: .45rem .6rem;
  border-radius: 12px;
  background: rgba(0,0,0,.035);
}

.monitor-need-row:last-child {
  margin-bottom: 0;
}

.monitor-need-label {
  float: left;
  font-size: .85rem;
  font-weight: 600;
  color: #333;
}

.monitor-need-value {
  float: right;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}

.monitor-need-empty {
  margin: 0;
  color: #777;
  font-style: italic;
}

.monitor-orders-section {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.monitor-section-title {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #222;
}

@media (min-width: 600px) {
  .monitor-need-card {
    max-width: 45%;
    margin: 1%;
  }
}

@media (min-width: 800px) {
  .monitor-need-card {
    max-width: 30%;
    margin: 1%;
  }
}

@media (min-width: 1100px) {
  .monitor-need-card {
    max-width: 24%;
    margin: 1%;
  }

  .monitor-need-card:nth-child(2n) {
    margin-right: 1%;
  }

  .monitor-need-card:nth-child(4n) {
    margin-right: 1;
  }
}

/* =========================
   Alte Order-Liste
========================= */

.monitor-order-list {
  display: block;
}

.monitor-order-row {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  padding: .9rem 1rem;
  margin-bottom: .75rem;
}

.monitor-order-user {
  float: left;
  width: 220px;
  font-size: 1rem;
  font-weight: 800;
  color: #222;
  line-height: 1.35;
  padding-top: .2rem;
  box-sizing: border-box;
}

.monitor-order-items {
  margin-left: 240px;
}

.monitor-order-chip {
  display: inline-block;
  margin-right: .55rem;
  margin-bottom: .55rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #f4f4f4;
  border: 1px solid rgba(0,0,0,.06);
  font-size: .92rem;
  font-weight: 600;
  color: #333;
}

.monitor-order-chip strong {
  color: #a80000;
  font-weight: 800;
}

.monitor-order-chip.is-fresh {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.35);
}

@media (max-width: 800px) {
  .monitor-order-user {
    float: none;
    width: auto;
    margin-bottom: .75rem;
  }

  .monitor-order-items {
    margin-left: 0;
  }
}

/* =========================
   Gesamtübersicht
========================= */

.monitor-overview-top {
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.monitor-overview-visual {
  float: left;
  width: 52px;
  height: 52px;
  margin-right: 0.75rem;
  border-radius: 12px;
  background: #f7f7f7;
  text-align: center;
  line-height: 52px;
  overflow: hidden;
}

.monitor-overview-section {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 1.75rem;
}

.monitor-overview-grid {
  font-size: 0;
  margin-left: -0.425rem;
  margin-right: -0.425rem;
  text-align: center;
}

.monitor-overview-card {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 100%;
  margin: 0.425rem;
  padding: 0.9rem 1rem;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  box-sizing: border-box;
}

@media (min-width: 230px) {
  .monitor-overview-card {
    width: 42%; 
    max-width: 42%;
  }
}

@media (min-width: 950px) {
  .monitor-overview-card {
    width: 23%;
    max-width: 23%;
  }
}

.monitor-overview-left {
  float: left;
  width: calc(100% - 70px);
  box-sizing: border-box;
}

.monitor-overview-right {
  float: right;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f7f7f7;
  text-align: center;
  overflow: hidden;
  line-height: 52px;
  box-sizing: border-box;
}

.monitor-overview-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #444;
  line-height: 1.3;
}

.monitor-overview-value {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #a80000;
}

.monitor-overview-img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
  margin-top: 0;
}

.monitor-overview-fallback {
  display: inline-block;
  font-size: 1.4rem;
  line-height: 52px;
}

.monitor-overview-card.is-fresh {
  border-color: rgba(255,193,7,.55);
  box-shadow: 0 8px 18px rgba(0,0,0,.05), 0 0 0 2px rgba(255,193,7,.35);
}

.monitor-meal-summaries {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 0;
}

.monitor-meal-summary {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 520px;
  margin: 0 0.5rem 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  text-align: left;
  font-size: 16px;
  box-sizing: border-box;
}

.monitor-meal-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.monitor-meal-row {
  overflow: hidden;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.monitor-meal-row:first-of-type {
  border-top: none;
}

.monitor-meal-label {
  float: left;
  font-weight: 600;
  color: #333;
}

.monitor-meal-value {
  float: right;
  font-weight: 800;
  color: #a80000;
}

@media (min-width: 900px) {
  .monitor-meal-summary {
    width: calc(50% - 1rem);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .monitor-overview-right {
    display: none;
  }

  .monitor-overview-left {
    width: 100%;
  }
}
/* =========================
   Personenübersicht
========================= */

.monitor-people-section {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.monitor-people-list {
  display: block;
}

.monitor-person-row {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
}

.monitor-person-name {
  float: left;
  width: 220px;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 800;
  color: #222;
  line-height: 1.35;
  padding-top: 0.15rem;
}

.monitor-person-main {
  margin-left: 240px;
  overflow: hidden;
}

.monitor-person-items {
  float: left;
  width: 70%;
  min-width: 0;
  box-sizing: border-box;
}

.monitor-item-chip {
  display: inline-block;
  margin-right: 0.55rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #f4f4f4;
  border: 1px solid rgba(0,0,0,.06);
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.monitor-item-chip strong {
  color: #a80000;
  font-weight: 800;
}

.monitor-item-chip.is-fresh {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.35);
}

.monitor-item-chip--empty {
  background: #f7f7f7;
  color: #777;
}

.monitor-person-meals {
  float: right;
  width: 28%;
  text-align: right;
  box-sizing: border-box;
}

.monitor-meal-badge {
  display: inline-block;
  margin-left: 0.55rem;
  margin-bottom: 0.55rem;
  min-width: 120px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.08);
  text-align: center;
  box-sizing: border-box;
}

.monitor-meal-badge.is-booked {
  background: #e8f7ea;
  color: #187a2f;
  border-color: rgba(24,122,47,.18);
}

.monitor-meal-badge.is-missing {
  background: #ffeaea;
  color: #a80000;
  border-color: rgba(168,0,0,.18);
}

@media (max-width: 900px) {
  .monitor-person-name {
    float: none;
    width: auto;
    margin-bottom: 0.75rem;
  }

  .monitor-person-main {
    margin-left: 0;
    overflow: hidden;
  }

  .monitor-person-items {
    float: left;
    width: 68%;
  }

  .monitor-person-meals {
    float: right;
    width: 30%;
    text-align: right;
    margin-top: 0;
  }

  .monitor-meal-badge {
    margin-left: 0.4rem;
    margin-right: 0;
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 600px) {
  .monitor-person-items {
    width: 62%;
  }

  .monitor-person-meals {
    width: 36%;
  }

  .monitor-item-chip,
  .monitor-meal-badge {
    font-size: 0.85rem;
  }
}

.kaffe-title {
  text-align: center;
  margin: 1rem 0 1.25rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
}

.kaffe-summary {
  width: 92%;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.kaffe-summary-card {
  width: 100%;
  max-width: 420px;
  margin: 8px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.kaffe-summary-card--day {
  background: linear-gradient(135deg, #fff8e8, #fffdf7);
}

.kaffe-summary-card--month {
  background: linear-gradient(135deg, #eef8ff, #f9fcff);
}

.kaffe-summary-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 0.9rem;
  background: rgba(255,255,255,0.75);
}

.kaffe-summary-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.kaffe-summary-content p {
  margin: 0 0 0.25rem;
  color: #666;
}

.kaffe-summary-content strong {
  color: #a80000;
}

.kaffe-sections {
  width: 92%;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.kaffe-section {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  padding: 1rem;
  margin-bottom: 1rem;
}

.kaffe-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.kaffe-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #222;
}

.kaffe-count {
  background: #ffe8e8;
  color: #a80000;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.kaffe-user-grid {
  display: flex;
  flex-wrap: wrap;
}

.kaffe-user-card {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
}

.kaffe-user-card {
  --flat-progress: 0%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
}

.kaffe-user-card--day {
  border-left: 5px solid #ffb84d;
  background: #fff5df;
  background:
    linear-gradient(
      90deg,
      rgba(255, 184, 77, 0.28) 0%,
      rgba(255, 184, 77, 0.28) var(--flat-progress),
      #fafafa var(--flat-progress),
      #fafafa 100%
    );
}

.kaffe-user-card--month {
  border-left: 5px solid #4da3ff;
  background: #eaf4ff;
  background:
    linear-gradient(
      90deg,
      rgba(77, 163, 255, 0.24) 0%,
      rgba(77, 163, 255, 0.24) var(--flat-progress),
      #fafafa var(--flat-progress),
      #fafafa 100%
    );
}

.kaffe-user-icon {
  margin-right: 0.7rem;
  font-size: 1.2rem;
}

.kaffe-user-name {
  font-weight: 700;
  color: #222;
}

.kaffe-empty-small {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #fff7f7;
  color: #a80000;
  text-align: center;
  font-weight: 600;
}

.kaffe-compact-user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kaffe-compact-user {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: #fff7f0;
  border: 1px solid rgba(168,0,0,.08);
  font-size: 0.88rem;
  font-weight: 700;
}

.kaffe-compact-name {
  color: #222;
}

.kaffe-compact-count {
  min-width: 2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #a80000;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

@media (min-width: 700px) {
  .kaffe-user-card {
    width: calc(50% - 12px);
    margin: 6px;
  }
}

.kaffe-user-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kaffe-user-sub {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.15rem;
  font-weight: 600;
}
/* MONITOR & KAFFE-FLAT ENDE */

/* LAGE.PHP */
.lage-page .user-edit-shell {
  max-width: 920px;
  margin: 0 auto;
}

.lage-page .input-control[readonly] {
  background: #f7f7f7;
  color: #555;
  cursor: default;
}

.lage-page .user-edit-actions {
  justify-content: center;
}

.lage-stats-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lage-stat-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  text-align: left;
}

.lage-stat-title {
  font-size: 1rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.lage-stat-meta {
  font-size: 0.92rem;
  color: #666;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.lage-stat-count {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #ffe8e8;
  color: #a80000;
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .lage-stats-grid {
    grid-template-columns: 1fr;
  }
}

.lage-stat-count {
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.lage-stat-count:hover,
.lage-stat-count:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 6px 14px rgba(168, 0, 0, 0.14);
}

.lage-usage-modal[hidden] {
  display: none !important;
}

.lage-usage-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.lage-usage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.lage-usage-modal__dialog {
  position: relative;
  width: 680px;
  max-width: calc(100vw - 2rem);
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  margin: 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lage-usage-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.lage-usage-modal__header h3 {
  margin: 0;
}

.lage-usage-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.lage-usage-modal__body {
  padding: 1rem 1.25rem 1.25rem;
  overflow: auto;
}

.lage-usage-summary {
  margin-bottom: 1rem;
  font-size: 0.98rem;
  color: #374151;
}

.lage-usage-loading,
.lage-usage-error,
.lage-usage-empty {
  padding: 1rem 0;
  color: #6b7280;
}

.lage-usage-error {
  color: #b91c1c;
}

.lage-usage-user-list {
  display: grid;
  gap: 0.75rem;
}

.lage-usage-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
}

.lage-usage-user-name {
  font-weight: 600;
  color: #111827;
}

.lage-usage-user-meta {
  white-space: nowrap;
  font-size: 0.95rem;
  color: #4b5563;
}

body.modal-open {
  overflow: hidden;
}

.input-control[readonly],
.input-control.is-locked {
  background: #f2f2f2;
  color: #666;
  border-style: dashed;
  cursor: not-allowed;
}
/* LAGE ENDE */
/* ADMIN_LAGE.PHP */
.admin-lage-page .user-edit-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-lage-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.admin-lage-types label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.admin-lage-custom-wache {
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .admin-lage-types {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-lage-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.admin-lage-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-lage-switch-slider {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d9d9d9;
  transition: background .2s ease;
  flex: 0 0 52px;
}

.admin-lage-switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.admin-lage-switch input:checked + .admin-lage-switch-slider {
  background: #4caf50;
}

.admin-lage-switch input:checked + .admin-lage-switch-slider::before {
  transform: translateX(22px);
}

.admin-lage-switch-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #333;
}

.admin-lage-card {
  overflow: hidden;
}

.admin-lage-card-head {
  cursor: pointer;
  transition: background .15s ease;
}

.admin-lage-card-head:hover {
  background: rgba(0,0,0,0.02);
}

.admin-lage-card-head.is-disabled {
  opacity: 0.65;
  cursor: default;
}

.admin-lage-card-head.is-disabled:hover {
  background: transparent;
}

.admin-collapse-indicator {
  font-size: 1rem;
  color: #666;
  transition: transform .18s ease;
}

.admin-lage-card-head.is-open .admin-collapse-indicator {
  transform: rotate(180deg);
}

.admin-lage-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-lage-expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #666;
  transition: transform .2s ease;
}

.admin-lage-card-head.is-open .admin-lage-expand-icon {
  transform: rotate(180deg);
}

.admin-lage-card-body {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 0.75rem;
}

.admin-lage-switch[data-stop-toggle="1"] {
  cursor: default;
}
/* ADMIN_LAGE ENDE */
/* INDEX.PHP */
/* --- INDEX: Aktionen-Grid --- */
.index-grid {
  width: 92%;
  max-width: 640px;
  margin: 1.25rem auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* sorgt dafür, dass der Button selbst die Grid-Zelle ist */
.index-grid > form { 
  display: contents;
}

.index-grid > form button.index-button {
  width: 100%;
  display: flex;
  align-items: center;     /* vertikal zentrieren */
  justify-content: center; /* optional: horizontal zentrieren */
}
@media (max-width: 520px) {
  .index-grid { grid-template-columns: 1fr; justify-items: center}
}

/* Haupt-Buttons (greifen dein rotes Theme auf, kompakt, gut klickbar) */
.index-button {
  background: linear-gradient(135deg, #ff4d4d, #a80000);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(168,0,0,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  width: 100%;
  max-width: 314px;
  white-space: nowrap;
}
.index-button:hover,
.index-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(168,0,0,0.28);
  filter: brightness(1.05);
}

/* Betrags-/Kaffee-Karten */
.index-cards {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: center;
}

.index-card {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  text-align: center;
}

@media (min-width: 641px) {
  .index-card {
    width: 49%;
    margin-right: 2%;
  }
	
  .index-card:nth-child(2n) {
    margin-right: 0;
  }
}

@supports (display: grid) {
  .index-cards {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
	justify-content: center;
  }

  .index-card {
    width: 100%;
    margin: 0;
    justify-self: center;
  }
}

.index-card h3 {
  margin: 0 0 .6rem;
}

@media (max-width: 640px) {
  .index-cards {
    width: 100%;
    margin: 0.2rem;
	padding: 0rem;
  }
}

@media (max-width: 820px),
       (any-pointer: coarse) and (max-width: 1024px) {

  .form-row {
    display: flex;        /* statt inline-flex */
    width: 100%;
    align-items: stretch; /* Feld nimmt die ganze Breite */
  }

  .input-control,
  .form-row input[type="date"], .form-row input[type="text"],  .form-row input[type="email"],
  .form-row select {
    width: 100%;
    max-width: 100%;
  }
}
/* Betragszustände (du nutzt amountClass) */
.index-button.amount--ok    { background: linear-gradient(135deg, #e6ffe6, #b8ffb8); color:#0b5; }
.index-button.amount--warn  { background: linear-gradient(135deg, #fff7e6, #ffe3b8); color:#a86a00; }
.index-button.amount--danger{ background: linear-gradient(135deg, #ffe6e6, #ffb8b8); color:#a80000; }

.user-amount-text {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.amount-text--ok {
  color: #6b7280;
}

.amount-text--warn {
  color: #d97706;
}

.amount-text--danger {
  color: #b91c1c;
}

/* Einheitlicher Inhaltsrahmen unter dem Banner */
.page-wrap {
  width: 92%;
  max-width: 1100px;
  margin: 1.25rem auto 2rem;
  padding: 0 8px;

  display: flex;
  flex-direction: column;      /* Inhalt untereinander */
  align-items: center;         /* ALLE Kinder horizontal zentrieren */
}

/* Überschriften konsistent */
.page-wrap h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
}
.page-wrap h3 {
  margin: 1.25rem 0 .6rem;
  text-align: center;
}

.centered-container {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;          /* zentriert horizontal */
  padding: 1.25rem 1.5rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
}

@media (max-width: 640px) {
  .centered-container {
    padding: 1rem 1rem 1rem; /* links und rechts Abstand */
  }
}

.centered-container h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.centered-text {
  text-align: center;
  color: #666;
  margin-top: 0.75rem;
  font-style: italic;
}

.swal2-container {
  z-index: 3000 !important;
}

.meal-swal-popup {
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1rem;
}

.meal-swal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #222;
}

.meal-swal-html {
  margin-top: 0.5rem;
}

.meal-popup-wrap {
  text-align: center;
}

.meal-popup-text {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.98rem;
}

.meal-popup-options {
  display: block;
}

.meal-option-card {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 0.75rem 0;
  color: #222;
}

.meal-option-card:hover,
.meal-option-card:focus,
.meal-option-card:active {
  transform: translateY(-2px);
  border-color: rgba(168, 0, 0, 0.22);
  background: #fffdfd;
  outline: none;
}

.meal-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe5e5, #fff3f3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 44px;
}

.meal-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meal-option-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
}

.meal-option-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.meal-swal-cancel {
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 0.7rem 1rem !important;
}

@media (max-width: 520px) {
  .meal-option-card {
    padding: 0.8rem 0.85rem;
  }

  .meal-option-title {
    font-size: 0.96rem;
  }

  .meal-option-subtitle {
    font-size: 0.86rem;
  }
}

.meal-option-card-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2);
}

.meal-option-card-booked {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.meal-option-card-booked .meal-option-title {
  color: #6b7280;
}

.meal-option-card-booked .meal-option-icon {
  opacity: 0.7;
}

/*.meal-option-card-booked .meal-option-subtitle {
  color: #1f9d55;
  font-weight: 600;
}*/

.breakfast-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.breakfast-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.breakfast-entry-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.breakfast-entry-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.breakfast-entry-fallback {
  font-size: 1.4rem;
  line-height: 1;
}

.breakfast-entry-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.breakfast-entry-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.breakfast-entry-note {
  font-size: 0.92rem;
  color: #666;
}

.breakfast-entry-price {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 1rem;
  font-weight: 700;
  color: #a80000;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .breakfast-entry {
    gap: 0.75rem;
  }
}

/* NEUES DESIGN */
.index-page {
  width: 98%;
  max-width: 1200px;
  width: min(98%, 1200px);
  margin: 0 auto 2rem;
}

.index-page,
.index-section,
.index-dashboard-grid {
  width: 98%;
  box-sizing: border-box;
}

.index-hero-card,
.index-section,
.index-info-card,
.index-meal-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.index-hero-card {
  padding: 1.25rem 1.35rem;
  margin: 1rem;
}

.index-eyebrow {
  margin: 0 0 .25rem;
  color: #a80000;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.index-hero-card h1 {
  margin: 0;
  font-size: 1.9rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.1;
}

.index-hero-subtitle {
  margin: .45rem 0 0;
  color: #666;
}

.index-section {
  margin: 1rem;
  padding: 1rem;
}

.index-section-head,
.index-meal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.index-section-head h2,
.index-meal-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.index-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}

.index-action-grid > form {
  display: contents;
}

.index-action-card {
  width: 100%;
  min-height: 86px;
  padding: .9rem;
  border: 1px solid rgba(168,0,0,.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #fff7f7);
  color: #222;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: .75rem;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.index-action-card:hover,
.index-action-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(168,0,0,.12);
  border-color: rgba(168,0,0,.28);
  outline: none;
}

.index-action-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: #fff5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.index-action-icon-img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.index-action-card strong {
  display: block;
  font-size: 1rem;
}

.index-action-card small {
  display: block;
  margin-top: .15rem;
  color: #666;
  font-size: .82rem;
  line-height: 1.25;
}

.index-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 230px));
  justify-content: center; 
  gap: 1rem;
  margin: 0;
}

.index-info-card {
  padding: 1rem;
  box-sizing: border-box;
}

.index-info-label {
  display: block;
  margin-bottom: .35rem;
  color: #666;
  font-size: .85rem;
  font-weight: 700;
}

.index-info-card strong {
  display: block;
  color: #a80000;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
}

.index-info-card strong.amount--ok {
  color: #187a2f;
}

.index-info-card strong.amount--danger {
  color: #a80000;
}

.index-info-card strong.amount--warn {
  color: #a85f00;
}

.index-info-card p {
  margin: .35rem 0 0;
  color: #666;
}

.index-info-card form {
  margin-top: .75rem;
}

.index-meal-stack {
  display: grid;
  gap: 1rem;
}

.index-meal-card {
  padding: 1rem;
  box-shadow: none;
}

.index-hero-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
}

.index-hero-grid .index-hero-card {
  margin: 0;
}

.index-info-card--station {
  min-height: 100%;
}

.index-info-card--disabled {
  opacity: .55;
  background: #f4f4f4;
  filter: grayscale(.25);
}

.index-info-card--disabled strong {
  color: #777;
}

.index-info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.index-info-card-head .index-info-label {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .index-hero-grid {
    grid-template-columns: 1fr;
    margin-left: .75rem;
    margin-right: .75rem;
  }
}

@media (max-width: 600px) {
  .index-hero-card,
  .index-section,
{
    margin-left: .75rem;
    margin-right: .75rem;
  }

.index-dashboard-grid {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	}
	
  .index-action-card {
    min-height: 78px;
	}
	
  .index-info-card {
	width: 100%;
	}
}

.index-page .breakfast-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem;
}

.breakfast-entry {
  box-sizing: border-box;
}

.index-hero-subtitle strong.amount--ok {
  color: #187a2f;
}

.index-hero-subtitle strong.amount--warn {
  color: #a85f00;
}

.index-hero-subtitle strong.amount--danger {
  color: #a80000;
}
/* INDEX.PHP ENDE */

/* SHOP.PHP */
.shop-header-page {
  margin-bottom: 1rem;
}

.shop-header-shell {
  overflow: visible; /* wichtig, damit der Badge nicht abgeschnitten wird */
}

.shop-header-card {
  position: relative;
  text-align: center;
  padding-right: 13rem; /* Platz für Badge rechts */
}

.shop-page-head__badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: calc(100% - 2.8rem);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #fff5f5;
  color: #a80000;
  border: 1px solid rgba(168,0,0,.14);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.shop-page-head__badge:hover,
.shop-page-head__badge:focus-visible {
  background: #ffe8e8;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.09);
  outline: none;
}

.shop-page-head__badge.is-active {
  background: #e8f7ea;
  color: #187a2f;
  border-color: rgba(24,122,47,.18);
}

.shop-top-tiles {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 2fr);
  gap: 1rem;
  align-items: stretch;
}

.shop-top-tile {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  padding: 1rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.shop-top-tile__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a80000;
}

.shop-top-tile__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #222;
}

.shop-top-tile__meta {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #666;
}

.shop-top-tile.is-empty-state {
  opacity: 0.96;
}

.shop-cart-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.shop-cart-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
}

.shop-cart-card-item__main {
  min-width: 0;
  flex: 1 1 auto;
}

.shop-cart-card-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.shop-cart-card-order-form {
  margin-top: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .shop-top-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width:700px) {
  .shop-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding-right: 1.4rem;
    padding-top: 1.4rem;
  }

  .shop-page-head__badge {
    position: static;
    order: -1;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .shop-cart-card-item {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-cart-card-item__action .btn-admin {
    width: 100%;
    justify-content: center;
  }
}

/* Shop-Kacheln (einheitlich mit Index-Buttons) */
.shop-grid{
  width: 95%;
  max-width: 1200px;
  margin:0 auto 1.25rem;
  display:grid;
  gap:14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width:900px){ .shop-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .shop-grid{ grid-template-columns: 1fr; } }

.shop-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  align-items:center;
  text-align:center;
}
.shop-card-title{ font-weight:800; }
.shop-card-price{ font-weight:700; color:#444; }

.shop-card-form {
  display: block;
}

.shop-item-button {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.shop-item-button:hover,
.shop-item-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(168,0,0,.2);
  box-shadow: 0 12px 22px rgba(0,0,0,.10);
  outline: none;
}

.shop-item-image-wrap,
.shop-item-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe5e5, #fff3f3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-item-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@supports (object-fit: contain) {
  .shop-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.shop-item-icon {
  color: #a80000;
  font-size: 30px;
  line-height: 1;
}

.shop-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.shop-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  white-space: normal;
  word-break: break-word;
}

.shop-item-price {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
}

.meal-option-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
/* SHOP.PHP ENDE */

/* ADMIN ITEM LIST */
.item-admin-page {
  width: 94%;
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
}

.item-admin-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.item-admin-header {
  padding: 1.4rem 1.4rem 1rem;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.item-admin-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #222;
}

.item-admin-subtitle {
  margin: 0.35rem 0 0;
  color: #666;
  font-size: 0.98rem;
}

.item-admin-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.item-admin-section {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem;
  background: #fcfcfc;
}

.item-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.item-admin-section-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #222;
}

.item-admin-list {
  display: grid;
  gap: 0.9rem;
}

.item-admin-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.item-admin-card-main {
  min-width: 0;
  flex: 1 1 auto;
}

.item-admin-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.item-admin-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #222;
}

.item-admin-card-meta {
  color: #666;
  font-size: 0.95rem;
}

.item-admin-price {
  font-weight: 700;
  color: #a80000;
}

.item-admin-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .item-admin-card {
    flex-direction: column;
    align-items: stretch;
  }

  .item-admin-card-actions {
    justify-content: flex-start;
  }
}

.item-admin-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-admin-top {
  background: #fcfcfc;
}

.item-admin-section-subtitle {
  margin: 0.25rem 0 0;
  color: #666;
  font-size: 0.94rem;
  line-height: 1.4;
}

.item-admin-top-grid {
  align-items: end;
}

.item-admin-top-actions {
  width: 100%;
}

.item-admin-top-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.item-admin-top-actions--buttons .item-admin-top-buttons {
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}

.item-admin-top-buttons #resetItemFilter,
.item-admin-top-buttons #resetUserFilter,
.item-admin-top-buttons #resetHistoryFilter {
  justify-content: flex-start;
  text-align: left;
}

.item-admin-top-buttons .button-settings,
.item-admin-top-buttons .button-set-small {
  margin-top: 0;
}

.item-admin-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.95rem;
}

.item-admin-meta-label {
  font-weight: 600;
  color: #555;
}

.item-admin-price {
  font-weight: 800;
  color: #a80000;
}

@media (max-width: 720px) {
  .item-admin-content {
    padding: 1rem;
  }

  .item-admin-top-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .item-admin-top-buttons .button-settings,
  .item-admin-top-buttons .button-set-small,
  .item-admin-top-buttons .btn-admin {
    width: 100%;
  }
}

.item-admin-top-actions-label {
  font-weight: 600;
  visibility: hidden;
  height: 1.2rem;
}
 /* ADMIN ITEM ENDE */

/* ADMIN-USER */
/* USER-ACTION: eine Zeile mit Betrag + Bezahlen + Bearbeiten */
.user-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: nowrap;
}

/* Buttons in der Zeile kompakt halten */
.user-action .button-settings { white-space: nowrap; }
.user-action .button-set-small { white-space: nowrap; }

/* auf sehr kleinen Screens darf es umbrechen */
@media (max-width: 420px) {
  .user-action { flex-wrap: wrap; }
  .input-control { width: 100%; }
}

.user-admin-page {
  width: 94%;
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
}

.user-admin-card .user-action {
  justify-content: flex-end;
}

.user-admin-card .input-set-small {
  max-width: 110px;
}

@media (max-width: 700px) {
  .user-admin-card .user-action {
    justify-content: stretch;
  }

  .user-admin-card .input-set-small {
    max-width: 100%;
    width: 100%;
  }
}
/* ADMIN-USER ENDE */

/* ADMIN USER EDIT */
.user-edit-page {
  width: 94%;
 /* max-width: 920px; */
  margin: 1.5rem auto 2.5rem;
}

.user-edit-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.user-edit-header {
  padding: 1.4rem 1.4rem 1rem;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.user-edit-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #222;
}

.user-edit-subtitle {
  margin: 0.35rem 0 0;
  color: #666;
  font-size: 0.98rem;
}

.user-edit-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.user-edit-section {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem;
  background: #fcfcfc;
}

.user-edit-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.user-edit-section-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #222;
}

.user-edit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ffe8e8;
  color: #a80000;
  font-size: 0.82rem;
  font-weight: 700;
}

.user-edit-grid {
  display: grid;
  gap: 0.9rem 1rem;
}

.user-edit-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.user-edit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.user-edit-row label {
  text-align: left;
  font-weight: 700;
  color: #333;
}

.form-row.user-edit-row input[type="text"],
.form-row.user-edit-row input[type="number"],
.form-row.user-edit-row input[type="password"],
.form-row.user-edit-row input[type="date"],
.form-row.user-edit-row input[type="email"],
.form-row.user-edit-row input[type="tel"],
.form-row.user-edit-row select,
.form-row.user-edit-row textarea {
  text-align: left;
  max-width: 100%;
  background: #fff;
}

.user-edit-alert {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.user-edit-alert--error {
  margin: 1rem 1.25rem 0;
  background: #fff1f1;
  border: 1px solid rgba(168,0,0,0.14);
  color: #a80000;
}

.user-edit-alert--info {
  background: #fff7e8;
  border: 1px solid rgba(255,184,77,0.35);
  color: #8a5a00;
  text-align: center;
}

.user-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.25rem;
  flex-wrap: wrap;
}

.user-edit-actions .button-set-small {
  min-width: 140px;
  justify-content: center;
}

@media (max-width: 720px) {
  .user-edit-grid--two {
    grid-template-columns: 1fr;
  }

  .user-edit-form {
    padding: 1rem;
  }

  .user-edit-header {
    padding: 1.1rem 1rem 0.9rem;
  }

  .user-edit-actions {
    justify-content: stretch;
  }

  .user-edit-alert--error {
    margin: 1rem 1rem 0;
  }
}

.user-admin-top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

@media (max-width: 900px) {
  .user-admin-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .user-admin-top-grid {
    grid-template-columns: 1fr;
  }
}
/* ADMIN USER EDIT ENDE */

/* ADMIN-SETTINGS */
.rule-row { display:flex; align-items:center; gap:.6rem; }
.rule-row-actions { display:flex; gap:.35rem; }

.panel-box { padding:1rem; border-radius:12px; border:1px solid rgba(0,0,0,0.08); }

.button-user-container.column-stretch { flex-direction:column; align-items:stretch; max-width:520px; }

.info-pill { padding:.15rem .45rem; line-height:1; border-radius:999px; color:#000; }
.checkbox-lg { transform: scale(1.2); }

.pin-label { display:flex; align-items:center; gap:.5rem; }

.js-rule-panel { display:none; margin-top:.6rem; margin-bottom:1rem; }

.mt-sm { margin-top:.6rem; }
.color-input { margin-left:.5rem; }

/* Geräte-PIN: Abstände und Zentrierung */
.device-pin-panel { margin-top: .4rem; }           /* Abstand unter "PIN ändern" */
.device-pin-panel .form-row { margin-top: .4rem; } /* kleiner Abstand innerhalb */
.device-pin-panel .form-actions { margin-top: .4rem; } /* Abstand zum Button */

/* PIN ändern Zeile wirklich mittig (auch mobile) */
#devicePinForm .form-row { 
  align-items: center; 
  justify-content: center;
}

/* Label + Checkbox zentriert */
#devicePinForm .pin-label {
  justify-content: center;
  width: 100%;
}

.device-pin-panel.is-collapsed { display: none; }

/* Mobile: Form-Row und Input sauber zentrieren */
.index-card form .form-row {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 360px; /* passt zu .input-control max-width */
}

.index-card form .input-control {
  margin-left: auto;
  margin-right: auto;
}

.time-row{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:.5rem 0;
  flex-wrap:wrap;
  justify-content:center;
}

.time-label{
  min-width:100px;
  font-weight:600;
}

.time-input{
  width:55px;
  padding:.35rem .5rem;
  border:1px solid #aaa;
  border-radius:6px;
}

.time-input.is-locked{
  background:#f2f2f2;
  color:#666;
  border-style:dashed;
}

.time-sep{ opacity:.7; }
.time-suffix{ opacity:.7; }

.color-wrap {
  display: flex;
  justify-content: center;
}

.admin-rule-panel {
  display: none;
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #f8f9fb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.admin-rule-form {
  margin: 0;
  width: 100%;
}

.admin-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 120px;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.admin-rule-grid select,
.admin-rule-grid .input-control,
.admin-rule-grid input[type="text"],
.admin-rule-grid input[type="number"] {
  width: 100%;
  min-width: 0;
}

.admin-rule-grid > * {
  min-width: 0;
  box-sizing: border-box;
}

.admin-rule-grid .form-row,
.admin-rule-grid .user-edit-row,
.admin-rule-grid > div {
  min-width: 0rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.admin-rule-grid label {
  display: block;
  margin-bottom: 0.45rem;
}

.admin-rule-color-row {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.admin-rule-color-row .color-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 44px;
}

.admin-rule-panel .color-input {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .admin-rule-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .admin-rule-color-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-rule-grid {
    grid-template-columns: 1fr;
  }

  .admin-rule-grid select,
  .admin-rule-grid .input-control,
  .admin-rule-grid input[type="text"],
  .admin-rule-grid input[type="number"] {
    width: 100%;
    min-width: 0;
  }

  .admin-rule-color-row {
    grid-column: auto;
  }
}
/* ADMIN-SETTINGS ENDE */

/* ADMIN-AUSWERTUNG ANFANG */
.admin-evaluation-page {
  width: 94%;
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
}

.admin-evaluation-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.admin-evaluation-header {
  padding: 1.4rem 1.4rem 1rem;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.admin-evaluation-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-eval-section {
  width: 95%;
}

.admin-eval-section--wide {
  width: 95%;
}

.admin-eval-actions {
  justify-content: center;
}

.admin-eval-empty {
  text-align: center;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(168,0,0,0.14);
  border-radius: 14px;
  background: #fff7f7;
  color: #a80000;
  font-weight: 600;
}

.eval-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.eval-tab {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #222;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eval-tab:hover {
  background: rgba(0, 0, 0, 0.05);
}

.eval-tab.active {
  background: #a80000;
  color: #fff;
  border-color: #a80000;
}

.eval-add-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Nachtragen-Zeile kompakter machen */
.eval-add-row .form-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

/* Artikel-Feld darf schrumpfen */
.eval-add-field {
  flex: 1 1 260px;
  max-width: 420px;
}

/* Input nicht künstlich aufblasen */
.eval-add-field .input-control {
  max-width: 10rem;
}

/* Menge kompakt */
.eval-qty-field {
  flex: 0 0 110px;
  max-width: 110px;
}

.eval-qty-field .input-control {
  max-width: 100%;
  width: 100%;
}

/* Plus-Button sauber ausrichten */
.eval-plus-field {
  flex: 0 0 auto;
}

.eval-date-row {
  margin-bottom: 0.5rem;
}

.eval-date-row .form-row {
  align-items: center;
}

.eval-separator {
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 1.25rem auto 0.75rem;
}

.admin-eval-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
}

.admin-eval-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .admin-eval-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	width: 97.5%;
    align-items: flex-start;
  }
}
/* ADMIN-AUSWERTUNG ENDE */

/* ADMIN ITEM EDIT */
.item-edit-page {
  width: 94%;
  max-width: 980px;
  margin: 1.5rem auto 2.5rem;
}

.item-edit-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.item-edit-row .input-control,
.item-edit-row input,
.item-edit-row select,
.item-need-card .input-control,
.item-need-card input {
  text-align: left;
}

.item-edit-header {
  padding: 1.4rem 1.4rem 1rem;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.item-edit-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #222;
}

.item-edit-subtitle {
  margin: 0.35rem 0 0;
  color: #666;
  font-size: 0.98rem;
}

.item-edit-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.item-edit-section {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem;
  background: #fcfcfc;
}

.item-edit-section--needs {
  background: linear-gradient(180deg, #fff 0%, #fff9f9 100%);
  border-color: rgba(168,0,0,0.08);
}

.item-edit-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.item-edit-section-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #222;
}

.item-edit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ffe8e8;
  color: #a80000;
  font-size: 0.82rem;
  font-weight: 700;
}

.item-edit-grid {
  display: grid;
  gap: 0.9rem 1rem;
}

.item-edit-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-edit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.item-edit-row label {
  text-align: left;
  font-weight: 700;
  color: #333;
}

.item-edit-row--qty .input-control {
  max-width: 180px;
}

.item-edit-needs-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.item-need-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.item-need-card label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #444;
  text-align: left;
}

.item-need-card .input-control,
.item-need-card input {
  max-width: 100%;
  text-align: left;
}

.item-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.25rem;
  flex-wrap: wrap;
}

.item-edit-actions .button-set-small {
  min-width: 140px;
  justify-content: center;
}

.item-edit-subsection {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1rem;
  margin-top: 1rem;
}

.item-edit-subsection:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.item-edit-subsection-head {
  margin-bottom: 0.8rem;
}

.item-edit-subsection-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #555;
  text-align: left;
}

.form-row.item-edit-row input[type="text"],
.form-row.item-edit-row input[type="number"],
.form-row.item-edit-row input[type="password"],
.form-row.item-edit-row input[type="date"],
.form-row.item-edit-row input[type="email"],
.form-row.item-edit-row input[type="tel"],
.form-row.item-edit-row select,
.form-row.item-edit-row textarea,
.item-need-card input[type="number"],
.item-need-card input[type="text"],
.item-need-card select,
.item-need-card textarea {
  max-width: 100%;
  text-align: left;
  background: #fff;
}

@media (max-width: 640px) {
  .item-edit-section--needs {
    padding: 0.9rem;
  }

  .item-edit-subsection {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 0.9rem;
    margin-top: 0.9rem;
  }

  .item-edit-subsection:first-of-type {
    margin-top: 0;
  }

  .item-edit-subsection-head {
    margin-bottom: 0.7rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
}
@media (max-width: 640px) {
  .item-edit-grid--two {
    grid-template-columns: 1fr;
  }

  .item-edit-form {
    padding: 1rem;
  }

  .item-edit-header {
    padding: 1.1rem 1rem 0.9rem;
  }

  .item-edit-actions {
    justify-content: stretch;
  }

  .item-edit-row--qty .input-control {
    max-width: 100%;
  }
}

.eval-card-wide {
  width: 100%;
}

.eval-need-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.eval-need-group {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.eval-need-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.eval-need-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.eval-need-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.eval-need-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.eval-need-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f7f7f8;
}

.eval-need-item--broetchen {
  background: rgba(255, 193, 7, 0.12);
}

.eval-need-item-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  min-width: 0;
}

.eval-need-item-qty {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .eval-need-groups {
    grid-template-columns: 1fr;
  }

  .eval-need-item {
    padding: 0.7rem 0.8rem;
  }
}
/* ADMIN ITEM EDIT ENDE */
/* ADMIN_MEALS.PHP */
.admin-meals-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.admin-meals-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-meals-page .admin-eval-section {
  box-sizing: border-box;
  width: auto;
  max-width: none;
}

.admin-meals-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
  justify-content: center;
}

.admin-meals-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.admin-meals-tab:hover,
.admin-meals-tab:focus-visible {
  transform: translateY(-1px);
  background: #fff5f5;
  color: #a80000;
  outline: none;
}

.admin-meals-tab.is-active {
  background: linear-gradient(135deg, #ff4d4d, #a80000);
  color: #fff;
  box-shadow: 0 10px 20px rgba(168,0,0,.22);
}

.admin-meals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-meals-grid--single {
  grid-template-columns: 1fr;
}

.admin-meals-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-meals-stat {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  text-align: center;
}

.admin-meals-stat-label {
  font-size: 0.88rem;
  color: #666;
  font-weight: 700;
}

.admin-meals-stat-value {
  margin-top: 0.35rem;
  font-size: 1.2rem;
  color: #a80000;
  font-weight: 800;
}

.admin-meals-inline-note {
  width: 100%;
  max-width: 230px;
  min-width: 140px;
}

.admin-meals-table-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
}

.admin-meals-note-cell {
  min-width: 170px;
}

.admin-meals-small-muted {
  font-size: 0.88rem;
  color: #666;
}

@media (max-width: 900px) {
  .admin-meals-grid,
  .admin-meals-stats {
    grid-template-columns: 1fr;
  }

  .admin-meals-tab {
    min-width: 0;
    flex: 1 1 160px;
  }
}
/* ADMIN_MEALS ENDE */
/* HISTORIE.PHP */
.history-page {
  box-sizing: border-box;
  width: 98%;
  max-width: 1200px;
  width: min(98%, 1200px);
  margin: 0 auto 2rem;
  align-items: stretch;
  overflow-x: hidden;
}

.history-page .index-hero-card,
.history-page .index-section {
  width: auto;
  max-width: none;
}

.history-hero-card {
  margin: 1rem;
}

.history-summary-grid {
  margin: 1rem;
}

.history-filter-form {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.history-filter-form .item-edit-grid {
  width: 100%;
  box-sizing: border-box;
}

.history-filter-form .form-row {
  width: 320px;
  max-width: 100%;
  width: min(100%, 320px);
}

/* =========================
   COMPATIBILITY FALLBACKS
   Alte Browser bekommen gestapelte, nutzbare Layouts.
========================= */
@supports not (display: grid) {
  .admin-dashboard-grid,
  .admin-dashboard-debt-list,
  .admin-dashboard-rank-grid,
  .admin-dashboard-rank-list,
  .lage-stats-grid,
  .lage-usage-user-list,
  .index-action-grid,
  .index-dashboard-grid,
  .index-meal-stack,
  .index-hero-grid,
  .index-page .breakfast-list,
  .item-admin-list,
  .user-edit-grid,
  .user-admin-top-grid,
  .admin-rule-grid,
  .admin-eval-grid,
  .item-edit-grid,
  .eval-need-groups,
  .admin-meals-grid,
  .admin-meals-stats {
    display: block;
  }

  .admin-dashboard-grid > * + *,
  .admin-dashboard-debt-list > * + *,
  .admin-dashboard-rank-grid > * + *,
  .admin-dashboard-rank-list > * + *,
  .lage-stats-grid > * + *,
  .lage-usage-user-list > * + *,
  .index-action-grid > * + *,
  .index-dashboard-grid > * + *,
  .index-meal-stack > * + *,
  .index-hero-grid > * + *,
  .index-page .breakfast-list > * + *,
  .item-admin-list > * + *,
  .user-edit-grid > * + *,
  .user-admin-top-grid > * + *,
  .admin-rule-grid > * + *,
  .admin-eval-grid > * + *,
  .item-edit-grid > * + *,
  .eval-need-groups > * + *,
  .admin-meals-grid > * + *,
  .admin-meals-stats > * + * {
    margin-top: 1rem;
  }
}

.no-flex-gap .nav-links > * + *,
.no-flex-gap .admin-login-form > * + *,
.no-flex-gap .meal-option-card > * + *,
.no-flex-gap .meal-popup-options > * + *,
.no-flex-gap .index-action-card > * + *,
.no-flex-gap .history-filter-form > * + *,
.no-flex-gap .rule-row > * + *,
.no-flex-gap .rule-row-actions > * + *,
.no-flex-gap .pin-label > * + *,
.no-flex-gap .admin-meals-tab > * + *,
.no-flex-gap .admin-bottom-nav-link > * + * {
  margin-left: 0.6rem;
}

.no-flex-gap .admin-bottom-nav-link > * + *,
.no-flex-gap .meal-popup-options > * + * {
  margin-left: 0;
  margin-top: 0.25rem;
}

.history-list-section {
  overflow: hidden;
}

.history-table-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

.history-table td,
.history-table th {
  vertical-align: middle;
}

.history-table .button-set-small {
  white-space: nowrap;
}

@media (max-width: 850px) {
  .history-page {
    width: 100%;
    max-width: 100%;
  }

  .history-hero-card,
  .history-summary-grid,
  .history-filter-section,
  .history-list-section {
    margin-left: .75rem;
    margin-right: .75rem;
  }

  .history-filter-form {
    align-items: stretch;
    justify-content: flex-start;
  }

  .history-filter-form .user-admin-top-grid {
    grid-template-columns: 1fr;
  }

  .history-filter-form .form-row,
  .history-filter-form .input-control {
    width: 100%;
    max-width: 100%;
  }

  .history-filter-form .item-admin-top-buttons,
  .history-filter-form .btn-admin {
    width: 100%;
  }
}
/* HISTORIE.PHP ENDE */
