:root {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #17231f;
  background: #eef2f0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
.login-shell {
  /* eigener Scrollbereich: die Kasse sperrt das Scrollen der Seite (html/body overflow hidden);
     lange Formulare (Registrierung) müssen trotzdem ganz erreichbar sein */
  height: 100%;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #d5e8e1, transparent 38%), linear-gradient(145deg, #f5f7f6, #e5ece9);
}
.login-card {
  /* mittig, solange die Karte passt; sonst von oben an scrollbar */
  margin: auto 0;
  flex-shrink: 0;
  width: min(440px, 100%);
  background: #fff;
  padding: 42px;
  border-radius: 24px;
  box-shadow: 0 24px 70px #173c3522;
  border: 1px solid #dce5e1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #183c35;
  color: #fff;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.eyebrow {
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #527068;
}
.login-card h1 {
  font-size: 36px;
  margin: 0 0 8px;
}
.muted {
  color: #697a74;
  margin: 0 0 30px;
}
.login-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  margin: 18px 0;
}
.login-card input {
  width: 100%;
  padding: 14px;
  border: 1px solid #bacac4;
  border-radius: 12px;
  outline: none;
}
.login-card input:focus {
  border-color: #26715f;
  box-shadow: 0 0 0 4px #26715f18;
}
.primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 15px;
  background: #183c35;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.primary:disabled {
  opacity: 0.6;
}
.login-card .link-button {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--muted, #5d6b67);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.secure {
  text-align: center;
  color: #75847f;
  font-size: 13px;
  margin: 22px 0 0;
}
.error,
.notice {
  padding: 12px 14px;
  border-radius: 10px;
}
.error {
  background: #ffeded;
  color: #9f2929;
}
.shell {
  min-height: 100vh;
}
.shell > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: #183c35;
  color: #fff;
}
.shell header h1 {
  margin: 0;
  font-size: 25px;
}
.shell header small {
  font-size: 13px;
  opacity: 0.65;
}
.shell header .eyebrow {
  color: #b7d0c8;
}
.account {
  display: flex;
  align-items: center;
  gap: 15px;
}
.account button,
nav button {
  border: 1px solid #ffffff2b;
  border-radius: 10px;
  padding: 10px 14px;
  background: #ffffff10;
  color: inherit;
  cursor: pointer;
}
nav {
  padding: 12px 30px;
  background: #224b43;
  color: #fff;
  display: flex;
  gap: 8px;
}
nav button.active {
  background: #fff;
  color: #183c35;
}
nav button:disabled {
  opacity: 0.45;
}
.panel {
  background: #fff;
  border: 1px solid #d9e2df;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 30px #173c350c;
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #21a76d;
  margin-right: 8px;
  box-shadow: 0 0 0 6px #21a76d1c;
}
.notice {
  background: #eef7f3 !important;
  color: #315d51 !important;
  margin-top: 24px;
}
dl {
  margin: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e7ecea;
}
dt {
  color: #6c7c77;
}
dd {
  margin: 0;
  font-weight: 750;
}
@media (max-width: 720px) {
  .shell > header,
  .account {
    align-items: flex-start;
    flex-direction: column;
  }
  .shell > header,
  nav {
    padding: 16px;
  }
  .login-card {
    padding: 28px;
  }
}

#pay-later {
  background: #fff7df;
  border-color: #d8b65b;
  color: #604a0b;
  font-weight: 800;
}
.table-bill-grid button {
  display: grid;
  gap: 6px;
  text-align: left;
}
.table-bill-grid button.has-open-bill {
  border: 2px solid #d69a22;
  background: #fff9e9;
}
.table-bill-grid button small {
  color: #697a74;
}
.table-receipt h3 {
  margin: 14px 0 8px;
}
.open-table-total {
  color: #8b5b00;
}
.table-paid-note {
  margin: 14px 0 0;
  color: #697a74;
}
.table-payment-actions {
  flex-wrap: wrap;
}
.table-payment-actions .save {
  min-width: 150px;
}
.table-payment-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .table-payment-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .table-payment-actions button {
    width: 100%;
  }
  .table-bill-grid {
    grid-template-columns: 1fr !important;
  }
}
.table-list-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d8e2de;
  border-radius: 14px;
}
.table-list-open {
  background: #fffaf0;
  border-color: #ead7a6;
}
.table-list-complete {
  background: #f5f9f7;
}
.table-list-section h3 {
  margin: 0 0 10px;
}
.table-list-explanation {
  margin: -5px 0 12px;
  color: #697a74;
  font-size: 13px;
}
.table-list-section .receipt-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #cad8d3;
}
.complete-table-total {
  color: #183c35;
}
.empty-table-list {
  color: #697a74;
  text-align: center;
  padding: 16px !important;
}
@media (max-width: 700px) {
  .table-list-section {
    padding: 10px;
    overflow-x: auto;
  }
  .table-list-section table {
    min-width: 500px;
  }
}
.fixed-operator-name {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: #e8f4ef;
  color: #183c35;
}
.category-print-target {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.category-print-target select {
  max-width: 180px;
}
.station-token-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.admin-subnav-v10 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 7px;
}
.v10-feature-settings {
  border: 2px solid #bdd5cc !important;
}
@media (max-width: 900px) {
  .admin-subnav-v10 .admin-subnav-items [data-v10-admin='closures'] {
    display: block !important;
    visibility: visible !important;
  }
}
@media (max-width: 900px) {
  html,
  body,
  #app,
  .shell {
    max-width: 100%;
    overflow-x: hidden;
  }
  .shell > header {
    padding: 10px 14px !important;
    gap: 8px;
  }
  .shell > header .eyebrow {
    display: none;
  }
  .shell > header h1 {
    font-size: 20px !important;
  }
  .account {
    min-width: 0;
    gap: 7px !important;
  }
  .account span {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .shell > nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px !important;
  }
  .shell > nav button {
    min-width: 0 !important;
    width: 100%;
    white-space: normal;
  }
  .admin-subnav-v10 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 8px !important;
  }
  .pos,
  .admin-grid,
  .settings-page,
  .stats-grid,
  .closures-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    padding: 8px !important;
    gap: 10px !important;
  }
  .panel {
    min-width: 0 !important;
    padding: 12px !important;
  }
  .products,
  .category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }
  .product {
    min-width: 0 !important;
    width: 100% !important;
  }
  .product strong {
    overflow-wrap: anywhere;
    font-size: 16px !important;
  }
  .category-filter {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-width: 100%;
    overflow: visible !important;
  }
  .category-filter label,
  .category-filter button {
    width: 100%;
    min-width: 0;
  }
  .pos-selectors {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 8px !important;
  }
  .pos-selectors > * {
    max-width: 100%;
    min-width: 0;
  }
  .cart {
    position: static !important;
    max-height: none !important;
  }
  .history,
  .table-scroll {
    max-width: 100%;
    overflow-x: hidden !important;
  }
  .history table,
  .admin-panel table,
  .stats-page table {
    display: block;
    min-width: 0 !important;
  }
  .history thead,
  .admin-panel thead,
  .stats-page thead {
    display: none;
  }
  .history tbody,
  .admin-panel tbody,
  .stats-page tbody {
    display: grid;
    gap: 10px;
  }
  .history tr,
  .admin-panel tr,
  .stats-page tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 10px;
    border: 1px solid #d9e2df;
    border-radius: 10px;
  }
  .history td,
  .admin-panel td,
  .stats-page td {
    display: flex !important;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 0 !important;
    overflow-wrap: anywhere;
  }
  .form-grid,
  .toggle-grid,
  .central-targets {
    grid-template-columns: 1fr !important;
  }
  .editor-dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: auto;
    padding: 12px !important;
  }
  .editor-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .editor-actions button {
    width: 100%;
  }
  .table-list-section {
    overflow: visible !important;
  }
  .table-list-section table {
    min-width: 0 !important;
    display: table !important;
    font-size: 12px;
  }
  .table-list-section thead {
    display: table-header-group;
  }
  .table-list-section tbody {
    display: table-row-group;
  }
  .table-list-section tr {
    display: table-row !important;
    padding: 0;
    border: 0;
  }
  .table-list-section td,
  .table-list-section th {
    display: table-cell !important;
    padding: 5px !important;
  }
  .register-card,
  .category-card,
  .manage-row {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .row-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .row-actions button {
    width: 100%;
  }
}
.operator-account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1/-1;
  padding: 16px;
  border: 1px solid #c8d8d3;
  border-radius: 14px;
  background: #eef6f3;
}
.operator-account-fields[hidden] {
  display: none;
}
.operator-account-fields .account-binding-info {
  grid-column: 1/-1;
  margin: 0;
  color: #365a51;
  font-weight: 650;
}
.operator-account-fields label {
  display: grid;
  gap: 7px;
}
.user-row small {
  line-height: 1.55;
}
@media (max-width: 700px) {
  .operator-account-fields {
    grid-template-columns: 1fr;
  }
}
.article-admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #cbdad6;
  border-radius: 14px;
  background: #f1f7f5;
}
.article-admin-filters label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.article-admin-filters input,
.article-admin-filters select {
  width: 100%;
  min-width: 0;
}
.article-admin-filters #article-filter-count {
  grid-column: 1/-1;
  color: #527067;
  font-size: 0.9rem;
}
@media (max-width: 850px) {
  .article-admin-filters {
    grid-template-columns: 1fr 1fr;
  }
  .article-filter-search,
  .article-admin-filters #article-filter-count {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .article-admin-filters {
    grid-template-columns: 1fr;
  }
  .article-filter-search,
  .article-admin-filters #article-filter-count {
    grid-column: auto;
  }
}
.route-snapshot {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow: hidden;
  background: #eef2f0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.16s ease;
}
.route-snapshot > .shell {
  min-height: 100vh;
}
.route-snapshot-leaving {
  opacity: 0;
}
body.route-transitioning > #app {
  visibility: hidden;
}
#app.route-arriving {
  animation: route-arrive 0.16s ease both;
}
@keyframes route-arrive {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route-snapshot {
    transition: none;
  }
  #app.route-arriving {
    animation: none;
  }
}
.receipt-history-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 2px;
  color: #697a74;
}
.receipt-history-actions button {
  padding: 10px 18px;
  border: 1px solid #b8c9c2;
  border-radius: 10px;
  background: #fff;
  color: #183c35;
  font-weight: 800;
  cursor: pointer;
}
.receipt-history-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 700px) {
  .receipt-history-actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
  .receipt-history-actions button {
    width: 100%;
  }
}

/* Testkasse: kleines Schild, verschiebt das Layout nicht */
.testkasse-banner {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 9999;
  padding: 4px 10px;
  border-radius: 6px;
  font:
    700 12px/1.4 system-ui,
    sans-serif;
  letter-spacing: 0.06em;
  color: #1d1405;
  background: repeating-linear-gradient(45deg, #f2b632 0 10px, #e8a21a 10px 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0.92;
}

/* Vereinsbrett: Registrierung, Antrag, Einladung */
.vb-card form {
  display: grid;
  gap: 0;
}
.vb-card label small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 13px;
}
.vb-card label.vb-zustimmung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.4;
}
.vb-card label.vb-zustimmung input {
  width: auto;
  margin-top: 3px;
}
.vb-card a.link-button,
.login-card a.link-button {
  text-align: center;
}
.vb-antrag-alt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 18px 0 22px;
}
.vb-antrag dt {
  color: #5d6b67;
  font-weight: 700;
}
.vb-antrag dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.vb-card .button-link.primary {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
}

/* Vereinsbrett: Plattform-Verwaltung */
.vb-qr {
  display: grid;
  place-items: center;
  margin: 12px 0;
}
.vb-qr svg {
  width: 220px;
  height: 220px;
}
.vb-geheimnis code {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  word-break: break-all;
}
.vb-plattform {
  margin: 0 auto;
  width: min(1180px, 100%);
  flex-shrink: 0;
  display: grid;
  gap: 18px;
}
.vb-plattform-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.vb-plattform-kopf h1 {
  margin: 4px 0 0;
}
.vb-plattform-kopf div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vb-abschnitt {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(24, 60, 53, 0.08);
}
.vb-abschnitt h2 {
  margin: 0 0 12px;
  font-size: 19px;
}
details.vb-abschnitt summary {
  cursor: pointer;
  list-style: none;
}
details.vb-abschnitt summary h2 {
  display: inline;
}
.vb-antrag-karte {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid #e3ebe8;
}
.vb-antrag-karte h3 {
  margin: 0 0 4px;
}
.vb-antrag-karte p {
  margin: 2px 0;
}
.vb-aktionen {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vb-aktionen button {
  padding: 8px 12px;
  border-radius: 10px;
}
.vb-tabelle {
  width: 100%;
  border-collapse: collapse;
}
.vb-tabelle th,
.vb-tabelle td {
  text-align: left;
  padding: 9px 8px;
  border-top: 1px solid #e3ebe8;
  vertical-align: top;
}
.vb-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #e6efec;
}
.vb-status-gesperrt {
  background: #fde2df;
  color: #8a1f12;
}
.vb-status-abgelehnt {
  background: #eee;
  color: #666;
}
.vb-meldung {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #e6f4ee;
  color: #183c35;
  font-weight: 700;
}
.vb-plattform button:not(.primary) {
  padding: 8px 12px;
  border: 1px solid #c9d6d2;
  border-radius: 10px;
  background: #fff;
  color: #183c35;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.vb-plattform button.danger {
  border-color: #e8b4ab;
  color: #8a1f12;
}
.vb-plattform button.primary {
  width: auto;
  padding: 8px 14px;
  border-radius: 10px;
}
.vb-plattform button:disabled {
  opacity: 0.6;
}
.vb-tabelle td:nth-child(2) {
  white-space: nowrap;
}
.vb-tabelle td.vb-aktionen {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.vb-plattform-kopf {
  align-items: center;
}
.vb-plattform-kopf .muted {
  margin: 0;
  line-height: 1.2;
}
.vb-plattform-kopf p.eyebrow {
  margin: 0;
}
.vb-geraet-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.vb-geraet-links .link-button {
  margin: 0;
}
