/* 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;
}
/* 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: sticky;
  top: 0;
  z-index: 1000;
}

.banner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === 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;
}

/*.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;
}

/* === Mobile Menü === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* Dünner Inaktivitäts-Balken direkt unter dem Banner */
.idlebar {
  position: fixed;          /* bleibt unter dem sticky Header kleben */
  top: 56px;                    /* direkt an den Header */
  height: 4px;
  width: 100%;
  background: rgba(0,0,0,0.10);  /* leichte Track-Farbe */
  z-index: 1000;             /* über Content, unter evtl. Modals */
  overflow: hidden;
}

/* Gefüllter Teil – wächst mit der Zeit */
#idleBar {
  height: 100%;
  width: 0%;
  background: #ffab00;
  transition: width 0.18s linear; /* smoothes Wachstum */
}


/* === Responsive Design === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #004aad;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
	margin-right: 0 !important;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* BANNER 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;
  }
}
  .settings-form select:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18);
  }

  .login-compact-new {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
  }
}

/* Login Layout-Umschalter */
.login-tiles   { display: block; }
.login-compact { display: none; }

/* Handy / kleine Tablets → Dropdown statt Kacheln */
@media (max-width: 820px),
       (any-pointer: coarse) and (max-width: 1024px) {
  .login-tiles   { display: none !important; }
  .login-compact { display: block; }
}
/* 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: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 90%;
}


/* === Formulare innerhalb des Containers === */
.button-user-container form {
  flex: 1 1 200px; /* alle Buttons nehmen gleiche Breite bis 200px oder mehr ein */
  max-width: 250px;
}

/* === 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;
}

/* Wache 3400 = Gelb + schwarze Schrift */
.button-user.wache-3400 {
  background: #ffd633; /* helles Gelb */
  color: #000;
}

/* Hover-Farbton leicht dunkler */
.button-user.wache-3400:hover {
  background: #ffcc00;
}

/* Wache 3401 = hellgrün + schwarze Schrift */
.button-user.wache-3401 {
  background: #ccff99; /* Hellgrün */
  color: #000;
}

/* Hover-Farbton etwas kräftiger */
.button-user.wache-3401:hover {
  background: #b3ff66;
}

/* Wache 3600 = Gold/Amber + schwarze Schrift */
.button-user.wache-3600 {
  background: #ffbf00; /* Gold/Amber */
  color: #000;
}

/* Hover-Farbton leicht dunkler */
.button-user.wache-3600:hover {
  background: #e6ac00; /* dunkleres Gold */
}

/* Wache BFRA = Orange + schwarze Schrift */
.button-user.wache-bfra {
  background: #ff9933;
  color: #000;
}

.button-user.wache-bfra:hover {
  background: #ff8000;
}

/* === 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;
  transition: all 0.25s ease;
  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 */

/* 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-button-wrapper {
  position: relative;
  display: inline-block;
}

.admin-popup {
  position: absolute;
  top: 110%; /* direkt unter dem Button */
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  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);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1000;
  min-width: 200px;
  animation: fadeIn 0.2s ease-out;
		   }

.admin-popup.hidden {
  display: none;
}

.admin-popup form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

.admin-popup input[type="password"] {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 0.95rem;
}

.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;
}

.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;  /* horizontal zentriert */
  z-index: 1100;
}

.button-back {
  background: #ffffff;
  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; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 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;
}

/* 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 {
  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 0.25rem;
  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;
}

.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: 100%;
  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 {
  position: sticky;
  top: 0;
  background: #f7f7f7;
  color: #222;
  text-align: center;
  padding: .6rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.1);
  white-space: nowrap;
}

.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 {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  text-align: left;
}

.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;
  background: #fff6f6;
  border-top: 2px solid rgba(0,0,0,.1);
}

.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 & KAFFE-FLAT ENDE */

/* INDEX.PHP */

/* --- INDEX: Aktionen-Grid --- */
.index-grid {
  width: min(640px, 92%);
  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: min(780px, 92%);
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .index-cards {
    grid-template-columns: 1fr;
  }
}
.index-card {
  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;
  justify-self: center;
  width: 80%;
}
.index-card h3 {
  margin: 0 0 .6rem;
}

@media (max-width: 820px),
       (any-pointer: coarse) and (max-width: 1024px) {
  .index-card form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;         /* Abstand zwischen den Zeilen */
  }

  .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 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; }

/* Einheitlicher Inhaltsrahmen unter dem Banner */
.page-wrap {
  width: min(1100px, 92%);
  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: min(800px, 90%);
  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;
}
/* INDEX.PHP ENDE */

/* SHOP.PHP */

/* Shop-Kacheln (einheitlich mit Index-Buttons) */
.shop-grid{
  width:min(900px,92%);
  margin:0 auto 2rem;
  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.PHP 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%; }
}
/* ADMIN-USER ENDE */