/* Glas-Look für das gesamte ERP (übernommen 12.11.2026). Legt sich über style.css und greift über die
   Klasse .glas-stil am <html> von index.html und login.html. Ohne die Klasse sähe alles aus wie in style.css. */

.glas-stil {
  --bg: rgba(255, 255, 255, 0.45);
  --surface: rgba(255, 255, 255, 0.62);
  --border: rgba(27, 32, 41, 0.07);
  --border-strong: rgba(27, 32, 41, 0.14);
  --text: #1B2029;
  --text-dim: #4D5666;
  --text-faint: #7A8391;
  --accent: #0E9A9E;
  --accent-hover: #0B7376;
  --accent-soft: rgba(20, 184, 188, 0.16);
  --glas: rgba(255, 255, 255, 0.56);
  --glas-rand: rgba(255, 255, 255, 0.75);
  --glas-schatten: 0 14px 38px -24px rgba(40, 32, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --dunkel: #24282F;
}

/* Warmer, unscharfer Hintergrund hinter allem – das, was durch das Milchglas scheint */
.glas-stil body { background: linear-gradient(160deg, #EFE9E1 0%, #DCCFC0 45%, #CDBFAE 100%) fixed; }
.glas-stil body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 50% at 12% 6%, rgba(250, 247, 243, 0.95), transparent 70%),
    radial-gradient(ellipse 35% 45% at 92% 28%, rgba(185, 143, 103, 0.5), transparent 70%),
    radial-gradient(ellipse 45% 40% at 55% 102%, rgba(143, 201, 198, 0.55), transparent 70%);
}

/* Glas-Grundfläche für alle Container. Kein backdrop-filter: Chrome/Edge zeichnen Text auf solchen
   Ebenen ohne Subpixel-Glättung, unter Windows-Skalierung wirkt er dann unscharf. Der Hintergrund ist
   ohnehin schon ein weicher Verlauf, deshalb reichen halbtransparente Flächen für den Glas-Eindruck. */
.glas-stil .sidebar,
.glas-stil .table-wrap,
.glas-stil .panel,
.glas-stil .stat {
  background: var(--glas);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--glas-schatten);
}

/* ---------- Seitenleiste: schwebend, abgerundet ---------- */
.glas-stil .sidebar {
  margin: 14px 0 14px 14px;
  top: 14px;
  height: calc(100dvh - 28px);
  border-radius: 26px;
}
.glas-stil .brand { border-bottom-color: rgba(27, 32, 41, 0.06); }
.glas-stil .brand-mark { background: var(--dunkel); border-radius: 50%; }
.glas-stil .nav-item { border-radius: 999px; }
.glas-stil .nav-item:hover { background: rgba(255, 255, 255, 0.65); }
.glas-stil .nav-item.active { background: var(--dunkel); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.glas-stil .sidebar-foot { border-top-color: rgba(27, 32, 41, 0.06); }

/* ---------- Inhalt ---------- */
.glas-stil .main { padding: 30px 34px 56px; }
.glas-stil .page-head h1 { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; }
.glas-stil .table-wrap, .glas-stil .panel { border-radius: 22px; }
.glas-stil .stat { border-radius: 20px; }
.glas-stil .panel { padding: 22px 24px; }

/* Tabellen */
.glas-stil th { font-weight: 500; color: var(--text-faint); }
.glas-stil tbody tr { transition: background 0.15s; }
.glas-stil tbody tr:hover { background: rgba(255, 255, 255, 0.5); }

/* Schaltflächen als Pillen; Hauptaktion dunkel wie im Vorbild, Türkis bleibt für Aktiv-Zustände */
.glas-stil .btn { border-radius: 999px; }
.glas-stil .btn-primary { background: var(--dunkel); }
.glas-stil .btn-primary:hover:not(:disabled) { background: #000; }
.glas-stil .btn-secondary { background: rgba(255, 255, 255, 0.78); border-color: rgba(255, 255, 255, 0.9); }
.glas-stil .btn-secondary:hover:not(:disabled) { background: #fff; border-color: #fff; }
.glas-stil .btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.7); }
.glas-stil .btn-danger-ghost:hover:not(:disabled) { background: rgba(201, 66, 47, 0.1); }

/* Formulare */
.glas-stil .field input, .glas-stil .field select, .glas-stil .field textarea,
.glas-stil .mz input, .glas-stil .mz select, .glas-stil .mz textarea, .glas-stil .ms-rabatt-eingabe input, .glas-stil .abr-menge {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(27, 32, 41, 0.12);
  border-radius: 12px;
}
.glas-stil .field input:focus, .glas-stil .field select:focus, .glas-stil .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(20, 184, 188, 0.2);
}
.glas-stil .field input:disabled { background: rgba(255, 255, 255, 0.45); }

/* Hinweise, Filter, Zahlungen */
.glas-stil .hinweis { background: rgba(253, 243, 224, 0.85); }
.glas-stil .hinweis.ok { background: rgba(233, 244, 236, 0.85); }
.glas-stil .filter-knopf { background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.85); }
.glas-stil .filter-knopf.aktiv { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.glas-stil .filter-knopf.aktiv span { color: rgba(255, 255, 255, 0.7); }
.glas-stil .zahlung-summen div { background: rgba(255, 255, 255, 0.6); border-radius: 14px; }
.glas-stil .empty .empty-icon { background: rgba(255, 255, 255, 0.75); }

/* Dialoge: Milchglas über unscharfem Hintergrund */
.glas-stil .modal-backdrop {
  background: rgba(60, 48, 34, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.glas-stil .modal {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--glas-rand);
  border-radius: 26px;
  box-shadow: 0 30px 70px -30px rgba(40, 32, 20, 0.55);
}
.glas-stil .toast { border-radius: 16px; background: rgba(36, 40, 47, 0.92); }
.glas-stil .toast.fehler { background: rgba(179, 57, 47, 0.95); }
.glas-stil .skeleton { background: linear-gradient(90deg, rgba(255,255,255,.4) 25%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.4) 75%); background-size: 200% 100%; }

/* Erfassungsmaske */
.glas-stil .mz { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.8); border-radius: 16px; }
.glas-stil .mz-layout { background: rgba(255, 255, 255, 0.3); border-style: dashed; border-color: rgba(27, 32, 41, 0.12); }
.glas-stil .mz-knopf:hover:not(:disabled) { background: rgba(255, 255, 255, 0.85); }
.glas-stil .ms-gesamt { background: var(--dunkel); border-radius: 16px; color: #fff; }
.glas-stil .ms-gesamt > span:first-child { color: rgba(255, 255, 255, 0.75); }
.glas-stil .badge.freigegeben { background: rgba(20, 184, 188, 0.16); color: #0B7376; }
.glas-stil .vorschau-rahmen { border-radius: 16px; }

/* Die Übersicht bringt ihren eigenen Hintergrund mit – im Gesamt-Look liegt sie direkt auf dem Seitenhintergrund */
.glas-stil .dash { background: transparent; box-shadow: none; margin: 0; padding: 0; overflow: visible; border-radius: 0; }
.glas-stil .dash-hg { display: none; }

/* Anmeldeseite */
.glas-stil .login-karte {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glas-rand);
  border-radius: 26px;
  box-shadow: 0 30px 70px -30px rgba(40, 32, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.glas-stil .login-geheimnis, .glas-stil .login-codes li { background: rgba(255, 255, 255, 0.6); border-radius: 14px; }

/* Schmale Fenster: die Seitenleiste von style.css liegt dann oben über dem Inhalt */
@media (max-width: 960px) {
  .glas-stil .main { padding: 20px 16px 48px; }
}
@media (max-width: 720px) {
  .glas-stil .sidebar { width: auto; margin: 10px 10px 0; height: auto; border-radius: 22px; }
}

/* Bankabgleich */
.glas-stil .bank-auswahl { background: rgba(255, 255, 255, 0.78); border-color: rgba(27, 32, 41, 0.12); border-radius: 12px; }
