/* Steckgeldrechner / Public Tools / interne 2K-Tools */
.tool-page {
  display: grid;
  gap: 16px;
}

.tool-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tool-page-head h1 {
  margin: 3px 0 5px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.tool-page-head .subtitle {
  max-width: 620px;
}

.tool-topnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}

.tool-hero-card,
.tool-card {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--border, rgba(31,41,55,.13));
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow, 0 18px 42px rgba(23,32,51,.10));
  backdrop-filter: blur(14px);
}

.tool-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 16px;
  align-items: stretch;
}

.tool-hero-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
}

.tool-hero-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
  max-width: 760px;
}

.tool-rule-card {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(223,248,255,.78), rgba(255,255,255,.9));
  border: 1px solid rgba(56,189,248,.24);
}

.tool-rule-card strong { color: #111827; }
.tool-rule-card span { color: #64748b; font-size: .88rem; }

.tool-card h2 {
  margin: 0 0 9px;
  font-size: 1.18rem;
}

.tool-card h3,
.tool-card-head h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tool-card-head h2,
.tool-card-head h3 {
  margin: 0;
}

.tool-row,
.tool-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-actions {
  align-items: center;
  margin-top: 12px;
}

.tool-actions.compact {
  margin-top: 0;
  gap: 8px;
}

.tool-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.tool-field,
.tool-controls label {
  display: grid;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 210px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--muted, #64748b);
}

.tool-field input,
.tool-field select,
.tool-controls select,
.tool-table input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border, rgba(31,41,55,.16));
  border-radius: 12px;
  background: #fff;
  color: var(--text, #111827);
  font: inherit;
}

.tool-main-button,
.tool-controls .button-link,
.mini-button {
  min-height: 36px;
}

.tool-muted,
.tool-hint,
.tool-info,
.tool-note {
  color: var(--muted, #64748b);
  font-size: .9rem;
  line-height: 1.45;
}

.tool-info {
  margin-top: 9px;
}

.tool-info.ok,
.tool-ok { color: #166534; font-weight: 800; }
.tool-info.warn { color: #92400e; }
.tool-info.error,
.tool-bad { color: #b91c1c; font-weight: 800; }

.tool-hint {
  font-size: .8rem;
  margin: 4px 0 9px;
}

.tool-pill,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.09);
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 800;
}

.result-card {
  border-color: rgba(37,99,235,.25);
  background: linear-gradient(180deg, rgba(37,99,235,.05), rgba(255,255,255,.88));
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tool-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tool-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.tool-table th,
.tool-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--border, rgba(31,41,55,.10));
  text-align: left;
  vertical-align: middle;
}

.tool-table th {
  color: var(--muted, #64748b);
  font-size: .74rem;
  font-weight: 800;
}

.tool-table td {
  color: var(--text, #172033);
  font-size: .9rem;
}

.tool-table small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 500;
}

.tool-table .col-date { width: 112px; }
.tool-table .col-round { width: 112px; }
.tool-table .col-score { width: 100px; text-align: right; }
.tool-table .col-act { width: 150px; text-align: right; }
.tool-table .money { text-align: right; white-space: nowrap; }
.tool-table td:last-child,
.tool-table th:last-child { text-align: right; }

.tool-table.compact,
.tool-table.calc-table,
.tool-subblock .tool-table,
.result-split .tool-table {
  min-width: 0;
}

.tool-table.compact th,
.tool-table.compact td,
.tool-table.calc-table th,
.tool-table.calc-table td,
.tool-subblock .tool-table th,
.tool-subblock .tool-table td,
.result-split .tool-table th,
.result-split .tool-table td {
  padding: 7px 0;
}

.group-row td {
  padding-top: 12px;
  color: var(--text, #111827);
  font-weight: 900;
  background: rgba(15,23,42,.03);
}

.versus {
  display: inline-block;
  margin: 0 7px;
  color: #64748b;
  font-size: .84rem;
}

.button-link.small,
.mini-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: .8rem;
}

.button-link.danger {
  background: rgba(185,28,28,.08);
  color: #991b1b;
  border-color: rgba(185,28,28,.22);
}

.calc-summary,
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 9px 0 12px;
}

.calc-summary > div,
.result-metric {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid var(--border, rgba(31,41,55,.10));
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}

.calc-summary span,
.result-metric span {
  display: block;
  color: var(--muted, #64748b);
  font-size: .76rem;
  margin-bottom: 2px;
}

.calc-summary strong,
.result-metric strong {
  color: #111827;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.tool-subblock {
  margin-top: 12px;
}

.result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.result-details span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: #64748b;
  font-size: .8rem;
}

.result-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.result-split h4 {
  margin: 0 0 6px;
  font-size: .94rem;
}

.tool-note {
  margin: 10px 0 0;
  font-size: .84rem;
}

.tool-debug {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(185,28,28,.24));
  background: rgba(15,23,42,.04);
}

.tool-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.area-intern .tool-hero-card,
.area-intern .tool-card {
  border-color: rgba(148,163,184,.26);
  box-shadow: 0 18px 42px rgba(15,31,63,.16);
}

.area-intern .tool-rule-card {
  background: linear-gradient(135deg, rgba(15,31,63,.96), rgba(29,78,216,.88));
  border-color: rgba(56,189,248,.34);
}

.area-intern .tool-rule-card strong,
.area-intern .tool-rule-card span { color: #ffffff; }
.area-intern .tool-rule-card span { opacity: .85; }
.area-public .tool-rule-card {
  background: linear-gradient(135deg, rgba(238,248,238,.95), rgba(255,255,255,.92));
  border-color: rgba(47,125,50,.20);
}

@media (max-width: 900px) {
  .tool-hero-card {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .tool-grid-three { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tool-page { gap: 10px; }

  .tool-page-head {
    gap: 9px;
    margin-bottom: 10px;
  }

  .tool-page-head h1 {
    font-size: 1.65rem;
  }

  .tool-page-head .eyebrow {
    margin-bottom: 2px;
  }

  .tool-page-head .subtitle,
  .tool-muted,
  .tool-info,
  .tool-note {
    font-size: .84rem;
    line-height: 1.4;
  }

  .tool-card,
  .tool-hero-card {
    padding: 12px 14px;
    border-radius: 17px;
    margin-bottom: 11px;
  }

  .tool-card h2 { font-size: 1.08rem; margin-bottom: 7px; }
  .tool-card h3 { font-size: .96rem; }

  .tool-row,
  .tool-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tool-field,
  .tool-controls label {
    min-width: 0;
    font-size: .78rem;
  }

  .tool-field input,
  .tool-field select,
  .tool-controls select {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 11px;
  }

  .tool-main-button,
  .tool-controls .button-link,
  .mini-button {
    min-height: 34px;
    justify-self: start;
  }

  .calc-summary,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .calc-summary > div,
  .result-metric {
    min-height: 56px;
    padding: 8px 9px;
    border-radius: 13px;
  }

  .calc-summary span,
  .result-metric span { font-size: .72rem; }
  .calc-summary strong,
  .result-metric strong { font-size: 1rem; }

  .result-head { margin-bottom: 8px; }
  .result-split { grid-template-columns: 1fr; gap: 8px; }
  .result-details { gap: 5px; }
  .result-details span { font-size: .76rem; padding: 4px 7px; }

  .tool-table { min-width: 620px; }
  .tool-table.calc-table,
  .tool-table.compact,
  .tool-subblock .tool-table,
  .result-split .tool-table { min-width: 0; }

  .tool-table th,
  .tool-table td { padding: 7px 8px; font-size: .84rem; }
  .tool-table th { font-size: .7rem; }
  .tool-subblock .tool-table th,
  .tool-subblock .tool-table td,
  .result-split .tool-table th,
  .result-split .tool-table td { padding: 6px 0; }

  .tool-pill,
  .result-badge { font-size: .7rem; padding: 3px 8px; }
}

@media (max-width: 360px) {
  .calc-summary,
  .result-grid { grid-template-columns: 1fr; }
}


/* Update 67: Spielliste mobil ohne horizontalen Scrollbalken */
.tool-table.matches {
  min-width: 0;
}

.matches-wrap {
  overflow-x: visible;
}

@media (max-width: 640px) {
  .matches-wrap {
    overflow: visible;
  }

  .tool-card-head #countPill,
  .tool-card-head .tool-pill {
    font-size: .68rem;
    padding: 3px 7px;
  }

  .tool-hint#endpointHint {
    font-size: .74rem;
    margin-bottom: 7px;
  }

  .tool-table.matches {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  .tool-table.matches thead {
    display: none;
  }

  .tool-table.matches tbody {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .tool-table.matches tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border, rgba(31,41,55,.12));
    border-radius: 14px;
    background: rgba(255,255,255,.62);
  }

  .tool-table.matches th,
  .tool-table.matches td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    font-size: .82rem;
    line-height: 1.25;
    text-align: left;
  }

  .tool-table.matches td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    color: var(--muted, #64748b);
    font-size: .72rem;
    font-weight: 800;
  }

  .tool-table.matches td:nth-child(1) small {
    display: inline;
    margin-left: 4px;
    font-size: .72rem;
  }

  .tool-table.matches td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted, #64748b);
    font-size: .72rem;
    white-space: normal;
  }

  .tool-table.matches td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    font-size: .84rem;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .tool-table.matches td:nth-child(3) strong {
    font-weight: 850;
  }

  .tool-table.matches .versus,
  .tool-table.matches .tool-muted {
    margin: 0 4px;
    font-size: .78rem;
  }

  .tool-table.matches td:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    text-align: right;
    color: var(--text, #172033);
    font-size: .84rem;
    font-weight: 900;
    white-space: nowrap;
  }

  .tool-table.matches td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: stretch;
    text-align: left;
    margin-top: 3px;
  }

  .tool-table.matches td:nth-child(5) .button-link,
  .tool-table.matches td:nth-child(5) .mini-button {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 999px;
    font-size: .78rem;
    line-height: 1.05;
  }
}

@media (max-width: 380px) {
  .tool-table.matches tr {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 9px;
  }

  .tool-table.matches td:nth-child(3) {
    font-size: .8rem;
  }

  .tool-table.matches td:nth-child(5) .button-link,
  .tool-table.matches td:nth-child(5) .mini-button {
    font-size: .76rem;
  }
}

/* Update 72: Public-Rechner mit kompakter oberer Infokachel */
.tool-public-topcard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 22px 24px;
  border: 1px solid var(--border, rgba(31,41,55,.13));
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(47,125,50,.11), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(142,232,255,.22), transparent 38%),
    rgba(255,255,255,.88);
  box-shadow: var(--shadow, 0 18px 42px rgba(23,32,51,.10));
  backdrop-filter: blur(14px);
}

.tool-public-toptext {
  min-width: 0;
}

.tool-public-topcard h1 {
  margin: 3px 0 7px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: .01em;
}

.tool-public-topcard .subtitle {
  margin: 0;
  max-width: 680px;
  color: var(--muted, #64748b);
  font-weight: 650;
}

.tool-public-note {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted, #64748b);
  font-size: .92rem;
  line-height: 1.45;
}

.tool-public-contact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tool-public-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.tool-public-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border, rgba(31,41,55,.13));
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--text, #111827);
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
}

.tool-public-nav a:hover {
  border-color: rgba(47,125,50,.34);
  box-shadow: 0 10px 24px rgba(47,125,50,.12);
}

@media (max-width: 720px) {
  .tool-public-topcard {
    display: grid;
    gap: 14px;
    padding: 17px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
  }

  .tool-public-topcard h1 {
    font-size: 1.72rem;
  }

  .tool-public-note,
  .tool-public-topcard .subtitle {
    font-size: .86rem;
    line-height: 1.4;
  }

  .tool-public-nav {
    order: -1;
    justify-content: flex-start;
  }

  .tool-public-nav a,
  .tool-public-contact .button-link {
    min-height: 34px;
    padding: 7px 12px;
    font-size: .82rem;
  }
}


/* Update 73: Rechtliches / Impressum / Datenschutz */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--border, rgba(31, 41, 55, .13));
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  color: var(--muted, #64748b);
  font-size: .86rem;
}

.site-footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--dark, #172033);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--tsv-green-dark, #1f5f27);
  text-decoration: underline;
}

.legal-page {
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: 22px 24px;
  border: 1px solid var(--border, rgba(31, 41, 55, .13));
  border-radius: 24px;
  background: rgba(255, 255, 255, .90);
  box-shadow: var(--shadow, 0 18px 42px rgba(23, 32, 51, .10));
  backdrop-filter: blur(14px);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.legal-card h3 {
  margin: 18px 0 7px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted, #64748b);
  line-height: 1.55;
}

.legal-card p {
  margin: 0 0 10px;
}

.legal-card ul {
  margin: 6px 0 12px 18px;
  padding: 0;
}

.legal-address {
  margin: 0 0 12px;
  color: var(--dark, #172033);
  font-style: normal;
  font-weight: 720;
  line-height: 1.5;
}

.legal-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.legal-note {
  padding: 12px 14px;
  border: 1px solid rgba(47, 125, 50, .16);
  border-radius: 16px;
  background: rgba(238, 248, 238, .72);
}

@media (max-width: 720px) {
  .site-footer {
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .legal-card {
    padding: 18px;
    border-radius: 20px;
  }
}

/* Update 113: Index-Pflege */
.index-admin-form {
  display: grid;
  gap: 18px;
}

.index-admin-form fieldset {
  border: 1px solid var(--border, rgba(31,41,55,.16));
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.index-admin-form legend {
  padding: 0 8px;
  font-size: .82rem;
  font-weight: 900;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.index-admin-two-col {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.index-admin-form .full-span {
  grid-column: 1 / -1;
}

.tool-field textarea {
  width: 100%;
  min-height: 88px;
  padding: 9px 10px;
  border: 1px solid var(--border, rgba(31,41,55,.16));
  border-radius: 12px;
  background: #fff;
  color: var(--text, #111827);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.index-admin-form .tool-actions {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .index-admin-form fieldset,
  .index-admin-two-col {
    grid-template-columns: 1fr;
  }

  .index-admin-form .full-span {
    grid-column: auto;
  }
}

/* Update 199: Ligabestellungen - Erfassung als Produktfelder, Auswertung/Verlauf wieder als alte Zeilenansicht */
.drink-orders-filter {
  align-items: end;
}

.drink-orders-year,
.drink-orders-date {
  max-width: 190px;
  flex: 0 1 190px;
}

.drink-orders-note {
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(31,41,55,.12));
  border-radius: 14px;
  background: rgba(15,23,42,.035);
}

.drink-order-lines {
  margin-top: 12px;
}

.drink-order-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

/* Kisten und Laden-6er-Träger im selben Formular klar trennen. */
.drink-order-product-divider {
  grid-column: 1 / -1;
  font-weight: 750;
  padding: 8px 0 4px;
  color: var(--text, #111827);
  border-bottom: 1px solid var(--border, rgba(31,41,55,.15));
}
.drink-order-product-divider[hidden] {
  display: none;
}
#drinkHiddenProductsPanel {
  margin-top: 12px;
  border-top: 1px solid var(--border, rgba(31,41,55,.15));
  padding-top: 10px;
}
#drinkHiddenProductsPanel > summary {
  cursor: pointer;
  font-weight: 650;
}
#drinkHiddenProductsList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}


.drink-order-product-cell {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border, rgba(31,41,55,.12));
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.drink-order-product-name {
  font-weight: 850;
  color: var(--text, #111827);
  line-height: 1.15;
}

.drink-order-product-meta {
  font-size: 12px;
  color: var(--muted, #64748b);
}

.drink-order-product-cell input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border, rgba(31,41,55,.16));
  border-radius: 12px;
  padding: 8px 9px;
  font: inherit;
  font-weight: 800;
  text-align: right;
  background: #fff;
}

.drink-orders-table {
  min-width: 820px;
}

.drink-orders-history-table {
  min-width: 520px;
}

.drink-orders-table .num,
.drink-orders-history-table .num {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .drink-order-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drink-orders-year,
  .drink-orders-date {
    max-width: none;
    flex: 1 1 180px;
  }
}

@media (max-width: 460px) {
  .drink-order-product-grid {
    grid-template-columns: 1fr;
  }
}


/* Update 116: Ligabestellungen Admin-Pflege + farbliche Übersicht */
.drink-orders-table tbody tr.drink-order-row-good td {
  background: rgba(34, 197, 94, .085);
}

.drink-orders-table tbody tr.drink-order-row-bad td {
  background: rgba(239, 68, 68, .105);
}

.drink-orders-table tbody tr.drink-order-row-even td {
  background: rgba(148, 163, 184, .055);
}

.drink-orders-table tbody tr.drink-order-row-good:hover td,
.drink-orders-table tbody tr.drink-order-row-bad:hover td,
.drink-orders-table tbody tr.drink-order-row-even:hover td {
  filter: brightness(.985);
}

/* Update 197: Public-Steckgeldrechner mit schneller Mannschaftsauswahl */
.tool-quick-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}

.tool-quick-teams > span {
  color: var(--muted, #64748b);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-team-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--text, #111827);
  font: inherit;
  font-size: .86rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.tool-team-pill:hover,
.tool-team-pill:focus-visible {
  border-color: rgba(37,99,235,.38);
  background: rgba(37,99,235,.08);
  outline: none;
}

.tool-team-pill.is-active {
  border-color: rgba(37,99,235,.62);
  background: rgba(37,99,235,.13);
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .tool-quick-teams {
    gap: 6px;
    margin: 8px 0 10px;
  }

  .tool-quick-teams > span {
    flex: 0 0 100%;
    font-size: .72rem;
  }

  .tool-team-pill {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .8rem;
  }
}


/* Update 200: Ligabestellungen - Lieferverlauf nach Lieferdatum gruppiert */
.drink-orders-history-table .drink-order-delivery-date {
  font-weight: 850;
  color: var(--text, #111827);
  white-space: nowrap;
  vertical-align: top;
}

.drink-order-delivery-row td {
  vertical-align: top;
}

.drink-order-delivery-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(31,41,55,.06);
}

.drink-order-delivery-item:last-child {
  border-bottom: 0;
}

.drink-order-delivery-item strong {
  white-space: nowrap;
  color: var(--text, #111827);
}

.drink-order-delivery-total {
  font-weight: 850;
  color: var(--text, #111827);
}

@media (max-width: 620px) {
  .drink-orders-history-table {
    min-width: 620px;
  }
}


/* Update 201: Ligabestellungen - nur bestellbare Produkte grün markieren */
.drink-orders-table tbody tr.drink-order-row-orderable td {
  background: rgba(34, 197, 94, .095);
}

.drink-orders-table tbody tr.drink-order-row-orderable:hover td {
  filter: brightness(.985);
}

/* Update 218: interner Steckgeldrechner als Mannschafts-Pillen */
.tool-quick-teams-internal {
  margin-top: 2px;
  margin-bottom: 10px;
}

.tool-quick-teams-internal .tool-team-pill {
  min-height: 38px;
  padding-inline: 15px;
}

@media (max-width: 640px) {
  .tool-quick-teams-internal .tool-team-pill {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}
