:root {
  --brand-red: #b02020;
  --brand-green: #2f8f3a;
  --brand-black: #0f0f10;

  --bs-primary: var(--brand-red);
  --bs-success: var(--brand-green);
  --bs-dark: var(--brand-black);
  --bs-link-color: var(--brand-red);
}

body {
  background: linear-gradient(180deg, #f4faf6 0%, #eef6f0 60%, #e7f1ea 100%);
  color: #1b1b1d;
}

.sticky-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(180deg, #b02020, #8f1919);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.topbar-title {
  color: #fff;
}
.topbar-sub {
  color: rgba(255, 255, 255, 0.85);
}

.nav-pills .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.nav-pills .nav-link.active {
  background: #fff;
  color: var(--brand-red);
  font-weight: 600;
}

.card {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.section {
  scroll-margin-top: 100px;
}

.section h2 {
  position: relative;
  padding-left: 14px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 1.1em;
  border-radius: 999px;
  background: var(--brand-red);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(176, 32, 32, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(176, 32, 32, 0.18);
}

.review-table {
    font-size: 13px;
}

.review-table tr {
border-bottom: 1px solid #e3e5e5;
}


.review-table,
.review-table tbody,
.review-table th,
.review-table td  {
    background-color: #f8f9fa;
}

.review-table th {
  width: 35%;
  white-space: nowrap;
}
.review-table td {
  width: 65%;
}

.review-table th,
.review-table td {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}



/* ============================================================
   DRINKS: Mobile-friendly Card Layout (Preis ist <span>)
   ============================================================ */

@media (max-width: 576px) {
  /* NUR die Drinks-Tabelle umstellen */
  #sectionDrinks .drink-table thead {
    display: none;
  }

  #sectionDrinks .drink-table tbody tr {
    display: block;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
  }

  #sectionDrinks .drink-table tbody tr td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: 0;
  }

  #sectionDrinks .drink-table tbody tr td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    color: rgba(0,0,0,.55);
    margin-bottom: 4px;
  }

  #sectionDrinks .drink-table tbody tr td select.form-select,
  #sectionDrinks .drink-table tbody tr td input.form-control {
    width: 100%;
  }

  /* Preis ist <span> */
  #sectionDrinks .drink-table tbody tr td [data-role="drink-price"] {
    display: block;
    width: 100%;
    padding: 0.375rem 0;
    font-weight: 600;
  }

  #sectionDrinks .drink-table tbody tr td.actions {
    text-align: right;
  }
}

/* ============================================================
   Admin – Monats-Summen Footer
   ============================================================ */
.month-totals-footer {
  position: sticky;
  bottom: 12px;
  z-index: 1010;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

@media (max-width: 767.98px) {
  .month-totals-footer {
    bottom: 8px;
    padding: 10px 12px;
  }
}

/* Admin: klickbarer Mannschaftsname + Chevron */
.squad-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.squad-link:hover {
  color: #2563eb;
}

.squad-link .chevron {
  opacity: 0.4;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.squad-link:hover .chevron {
  transform: translateX(2px);
  opacity: 0.8;
}


/* Admin: squad link should NOT look like a classic blue link */
.squad-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.squad-link:hover {
  text-decoration: none;
}

.chevron-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.45;
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 0.4rem;
}
.chevron-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.table-hover tbody tr:hover .chevron-link {
  opacity: 0.9;
}

