/* =====================================================================
   TRINKERBELLS – SLEEK DARK MODE & ERDBEER-PINK (Vanilla CSS)
   ===================================================================== */
:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-elevated: rgba(30, 41, 59, 0.75);
  --bg-input: rgba(10, 15, 29, 0.85);

  --accent-pink: #ec4899;
  --accent-pink-hover: #db2777;
  --accent-pink-soft: rgba(236, 72, 153, 0.16);
  --accent-pink-border: rgba(236, 72, 153, 0.45);
  --accent-pink-glow: 0 8px 26px rgba(236, 72, 153, 0.32);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* 2-Tone Material Design Icons (Active vs. Inactive) */
  --icon-active: #ec4899;
  --icon-inactive: #64748b;

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.16);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --header-height: 68px;
  --bottom-nav-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(236, 72, 153, 0.14), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(219, 39, 119, 0.11), transparent 40%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name, .kasse-big-amount {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.hidden {
  display: none !important;
}

/* =====================================================================
   MATERIAL DESIGN ICONS – 2-FARBIG (AKTIV / NICHT AKTIV)
   ===================================================================== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-inactive);
  transition: color 0.18s ease, font-variation-settings 0.18s ease, transform 0.18s ease;
  user-select: none;
  flex-shrink: 0;
}

.material-symbols-outlined.icon-inactive {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-inactive);
}

.material-symbols-outlined.icon-active,
.material-symbols-outlined.icon-pink,
.icon-pink {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-active);
}

/* Active Navigation Tabs, Subtabs & Interactive States (Filled + Active Color) */
.nav-tab .material-symbols-outlined,
.subtab-btn .material-symbols-outlined,
.rsvp-btn .material-symbols-outlined,
.member-pill .material-symbols-outlined,
.due-month-btn .material-symbols-outlined,
.icon-btn .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-inactive);
}

.nav-tab.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-active);
}

.subtab-btn.active .material-symbols-outlined,
.member-pill.active .material-symbols-outlined,
.due-month-btn.paid .material-symbols-outlined,
.btn-primary .material-symbols-outlined,
.btn-danger .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: #ffffff;
}

.icon-btn:hover .material-symbols-outlined,
.info-highlight-btn .material-symbols-outlined,
.install-pill-btn .material-symbols-outlined,
.user-badge .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-active);
}

.rsvp-btn.active-yes .material-symbols-outlined,
.chip-yes .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--success);
}

.rsvp-btn.active-maybe .material-symbols-outlined,
.chip-maybe .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--warning);
}

.rsvp-btn.active-no .material-symbols-outlined,
.chip-no .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--danger);
}

/* =====================================================================
   GLASSMORPHISM CARDS & CONTAINERS
   ===================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 1rem;
}

.highlight-border-pink {
  border-color: var(--accent-pink-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 22px rgba(236, 72, 153, 0.12);
}

.glass-subcard {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-group h2 {
  font-size: 1.12rem;
  font-weight: 700;
}

/* =====================================================================
   LOGIN OVERLAY (#login-overlay)
   ===================================================================== */
.overlay-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(circle at 50% 20%, rgba(236, 72, 153, 0.22), rgba(10, 15, 29, 0.96) 65%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 1.75rem 1.4rem;
  border-color: var(--accent-pink-border);
}

.login-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -0.5rem;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.login-logo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  background: #f8d4e2;
  padding: 0;
  border: 2.5px solid var(--accent-pink-border);
  box-shadow: var(--accent-pink-glow);
}

.login-title {
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 15%, #f472b6 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.login-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.forgot-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: rgba(10, 15, 29, 0.65);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

/* =====================================================================
   HEADER & FIXED BOTTOM NAVIGATION
   ===================================================================== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 18px);
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 1rem;
  padding-right: 1rem;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-pink-border);
  background: #f8d4e2;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: #f9a8d4;
  background: var(--accent-pink-soft);
  border: 1px solid var(--accent-pink-border);
  padding: 1px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  background: rgba(30, 41, 59, 0.75);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  height: 40px;
  min-width: 40px;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-btn:hover {
  border-color: var(--accent-pink);
  color: #fff;
  background: var(--accent-pink-soft);
}

.info-highlight-btn {
  border-color: var(--accent-pink-border);
  color: #f472b6;
}

.install-pill-btn {
  background: var(--accent-pink-soft);
  border-color: var(--accent-pink-border);
  color: #f9a8d4;
}

.app-main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0.9rem;
  flex: 1;
}

.tab-view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fixed Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 1000;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  font-family: inherit;
}

.nav-tab .material-symbols-outlined {
  font-size: 23px;
  transition: transform 0.18s ease;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-tab.active {
  color: var(--accent-pink);
}

.nav-tab.active .material-symbols-outlined {
  transform: translateY(-2px);
}

.nav-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 36px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent-pink);
  box-shadow: 0 2px 10px var(--accent-pink);
}

/* =====================================================================
   FORMS, INPUTS & BUTTONS
   ===================================================================== */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .hide-xs {
    display: none;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > .material-symbols-outlined,
.input-with-icon .field-trail-icon {
  position: absolute;
  right: 0.85rem;
  left: auto;
  color: var(--icon-inactive);
  font-size: 20px;
  pointer-events: none;
}

.input-with-icon:focus-within > .material-symbols-outlined,
.input-with-icon:focus-within .field-trail-icon {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-active);
}

.pw-toggle-btn {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.35rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pw-toggle-btn .material-symbols-outlined {
  position: static !important;
  font-size: 20px;
  color: var(--icon-inactive);
  pointer-events: none;
}

.pw-toggle-btn:hover .material-symbols-outlined,
.pw-toggle-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--icon-active);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Custom Dropdown-Pfeil mit Abstand zum rechten Rand */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.6rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ec4899' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px 18px;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

.input-with-icon input {
  padding-left: 0.85rem !important;
  padding-right: 2.65rem !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.05rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  box-shadow: var(--accent-pink-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--accent-pink-border);
  color: #f9a8d4;
}

.btn-secondary:hover {
  background: var(--accent-pink-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
}

.btn-danger span {
  color: #ffffff !important;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: #f472b6;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: underline;
}

.collapsible-form {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid var(--accent-pink-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* =====================================================================
   BADGES, PILLS & HELPERS
   ===================================================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-pink {
  background: var(--accent-pink-soft);
  border: 1px solid var(--accent-pink-border);
  color: #f9a8d4;
}

.pill-subtle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
}

.small-muted {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-pink { color: var(--accent-pink); }

.mb-xs { margin-bottom: 0.4rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1rem; }
.mt-xs { margin-top: 0.4rem; }
.mt-sm { margin-top: 0.75rem; }

.row-end { display: flex; justify-content: flex-end; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.row-center { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; }
.row-gap-sm { display: flex; gap: 0.5rem; }
.gap-sm { gap: 0.5rem; }

.alert-box {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.alert-error {
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.alert-success {
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
  text-align: left;
}

body.light-mode .alert-success {
  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
}

body.light-mode .alert-error {
  color: #991b1b;
}

/* =====================================================================
   DASHBOARD MODULE
   ===================================================================== */
.dashboard-top-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .dashboard-top-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.next-event-motto {
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.event-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-meta-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-pink);
}

.rsvp-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.rsvp-btn {
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.rsvp-btn.active-yes {
  background: var(--success-soft);
  border-color: var(--success);
  color: #6ee7b7;
}

.rsvp-btn.active-maybe {
  background: var(--warning-soft);
  border-color: var(--warning);
  color: #fcd34d;
}

.rsvp-btn.active-no {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: #fca5a5;
}

.kassenstand-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kasse-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kasse-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.kasse-big-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 16px rgba(236, 72, 153, 0.35);
  line-height: 1.15;
  margin: 0.15rem 0;
}

.secondary-club-logo {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-pink-border);
  background: #f8d4e2;
  padding: 0;
  box-shadow: var(--accent-pink-glow);
}

.kasse-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
}

/* Pokal & Pudel Tracker */
.trophies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 680px) {
  .trophies-grid {
    grid-template-columns: 1fr;
  }
}

.trophy-subcard {
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid var(--border-subtle);
}

.trophy-gold {
  border-left: 4px solid #fbbf24;
}

.trophy-pink {
  border-left: 4px solid var(--accent-pink);
}

.trophy-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.trophy-emoji,
.trophy-icon {
  font-size: 2.2rem !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 36;
}

.trophy-gold .trophy-icon {
  color: #fbbf24;
}

.trophy-pink .trophy-icon {
  color: var(--icon-active);
}

.trophies-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

/* Tagesvollster Live Bar Chart */
.voting-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vote-row-btn {
  width: 100%;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.vote-row-btn:hover,
.vote-row-btn.my-voted-choice {
  border-color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.08);
}

.vote-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.vote-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink) 0%, #f472b6 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   EVENTS & POLLS MODULE
   ===================================================================== */
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.event-item-card {
  background: rgba(10, 15, 29, 0.68);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.rsvp-participants-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.participant-chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.chip-yes { background: var(--success-soft); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.chip-maybe { background: var(--warning-soft); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.chip-no { background: var(--danger-soft); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }

/* =====================================================================
   PENALTIES & EVENING TRACKER MODULE
   ===================================================================== */
.member-pills-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.member-pill {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.member-pill.active {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--accent-pink-glow);
}

.active-tracker-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid var(--accent-pink-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.85rem;
}

.selected-member-title {
  font-size: 1.05rem;
  color: #fff;
  margin-left: 0.3rem;
}

.selected-member-sum-box strong {
  font-size: 1.15rem;
  color: #f9a8d4;
  margin-left: 0.25rem;
}

.penalty-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 0.65rem;
}

.penalty-touch-card {
  background: rgba(10, 15, 29, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.penalty-touch-card.has-count {
  border-color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.1);
}

.penalty-info-col {
  display: flex;
  flex-direction: column;
}

.penalty-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.penalty-price {
  font-size: 0.8rem;
  color: #f472b6;
  font-weight: 700;
}

.touch-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn.btn-plus {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.stepper-btn:active {
  transform: scale(0.94);
}

.stepper-count {
  min-width: 28px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.evening-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.8rem;
  background: rgba(10, 15, 29, 0.55);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.checkout-box {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* =====================================================================
   FINANCES & 10-MONTH DUES MATRIX
   ===================================================================== */
.finance-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.finance-breakdown-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.finance-controls-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.year-selector-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-selector-box select {
  width: auto;
  padding: 0.4rem 0.7rem;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #f9a8d4;
  background: var(--accent-pink-soft);
  border: 1px solid var(--accent-pink-border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.matrix-scroll-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(10, 15, 29, 0.75);
}

.dues-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 680px;
}

.dues-matrix-table th,
.dues-matrix-table td {
  padding: 0.6rem 0.45rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.dues-matrix-table th {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.76rem;
}

.dues-matrix-table th:first-child,
.dues-matrix-table td:first-child {
  position: sticky;
  left: 0;
  background: #0d1527;
  text-align: left;
  padding-left: 0.8rem;
  font-weight: 600;
  z-index: 2;
  border-right: 1px solid var(--border-subtle);
}

.dues-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-pink);
  cursor: pointer;
}

.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.ledger-amount-income {
  color: var(--success);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.ledger-amount-expense {
  color: var(--danger);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

/* =====================================================================
   INFO BOARD & DRINKING TOASTS MODULE
   ===================================================================== */
.toast-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-hero-logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-pink-border);
  background: #f8d4e2;
  box-shadow: var(--accent-pink-glow);
}

.toast-hero-text {
  flex: 1;
  min-width: 200px;
}

.pulse-pink {
  animation: pulseGlow 2.4s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
}

.notes-grid, .toasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.8rem;
}

.note-card {
  background: rgba(10, 15, 29, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
}

.note-card.pinned {
  border-color: var(--accent-pink-border);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.11) 0%, rgba(10, 15, 29, 0.8) 100%);
}

.toast-card {
  background: rgba(10, 15, 29, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.toast-card-quote {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  font-style: italic;
}

/* =====================================================================
   MODALS & RANDOM TOAST OVERLAY
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

body.light-mode .modal-backdrop {
  background: rgba(244, 180, 208, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  margin: auto;
  overflow: hidden;
  padding: 1.25rem;
  border: 1.5px solid var(--accent-pink-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), var(--accent-pink-glow);
}

.modal-dialog.modal-sm {
  max-width: 440px;
}

.suggestion-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid var(--accent-pink-border);
  background: var(--accent-pink-soft);
  color: #f9a8d4;
  cursor: pointer;
  transition: all 0.15s ease;
}

.suggestion-chip:hover,
.suggestion-chip.active {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  color: #ffffff;
  border-color: var(--accent-pink);
}

body.light-mode .suggestion-chip {
  color: #9d174d;
  background: rgba(236, 72, 153, 0.13);
}

body.light-mode .suggestion-chip:hover,
body.light-mode .suggestion-chip.active {
  color: #ffffff;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
  flex-shrink: 0;
}

.subtab-btn {
  flex: 1 1 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s ease;
}

.subtab-btn:hover {
  border-color: var(--accent-pink-border);
}

.subtab-btn .material-symbols-outlined {
  font-size: 19px;
}

.subtab-btn.active {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  border-color: var(--accent-pink);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.subtab-btn.active span {
  color: #ffffff !important;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.subtab-pane {
  display: none;
}

.subtab-pane.active {
  display: block;
}

.manual-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.manual-section {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.manual-section h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f472b6;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.modal-body ul,
.modal-body ol,
.glass-subcard ul,
.glass-subcard ol,
.manual-section ul,
.step-list {
  padding-left: 1.35rem;
  margin-top: 0.35rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.4);
}

.random-toast-modal {
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 2rem 1.5rem;
}

.toast-modal-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f9a8d4;
  background: var(--accent-pink-soft);
  border: 1px solid var(--accent-pink-border);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.big-toast-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* Toast Notification Banner */
.toast-notification {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--accent-pink);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--accent-pink-glow);
  font-size: 0.86rem;
  font-weight: 600;
  z-index: 2500;
  white-space: nowrap;
}

/* =====================================================================
   LIGHT MODE THEME (Soft Rose & Berry Pink analog zum KC Trinkerbells Logo)
   ===================================================================== */
body.light-mode {
  --bg-primary: #fdf2f7;
  --bg-secondary: #f9e2ec;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-elevated: rgba(253, 242, 248, 0.92);
  --bg-input: #ffffff;

  --accent-pink: #be185d;
  --accent-pink-hover: #9d174d;
  --accent-pink-soft: rgba(190, 24, 93, 0.12);
  --accent-pink-border: rgba(190, 24, 93, 0.35);
  --accent-pink-glow: 0 8px 24px rgba(190, 24, 93, 0.22);

  /* 2-Tone Material Design Icons in Light Mode */
  --icon-active: #be185d;
  --icon-inactive: #9d7185;

  --text-primary: #2a1822;
  --text-secondary: #4a2c3d;
  --text-muted: #7a5267;

  --border-subtle: rgba(166, 22, 78, 0.15);

  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(244, 114, 182, 0.22), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.18), transparent 40%),
    linear-gradient(180deg, #fdf2f7 0%, #f8d4e2 100%);
  color: var(--text-primary);
}

body.light-mode .glass-card {
  box-shadow: 0 10px 28px rgba(131, 24, 67, 0.08);
}

body.light-mode .app-header,
body.light-mode .bottom-nav {
  background: rgba(255, 245, 250, 0.92);
  border-color: rgba(166, 22, 78, 0.16);
}

body.light-mode .brand-name,
body.light-mode .next-event-motto,
body.light-mode .kasse-big-amount,
body.light-mode .selected-member-title,
body.light-mode .toast-card-quote,
body.light-mode .big-toast-quote {
  color: #2a1822;
  text-shadow: none;
}

body.light-mode .login-title {
  background: linear-gradient(135deg, #2a1822 10%, #a6164e 60%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .overlay-screen {
  background: radial-gradient(circle at 50% 20%, rgba(248, 212, 226, 0.95), rgba(253, 242, 247, 0.98) 70%);
}

body.light-mode .user-badge,
body.light-mode .pill-pink,
body.light-mode .switch-label,
body.light-mode .toast-modal-badge {
  color: #9d174d;
  background: rgba(236, 72, 153, 0.15);
}

body.light-mode .icon-btn,
body.light-mode .btn-secondary {
  background: #ffffff;
  color: #2a1822;
  border-color: rgba(166, 22, 78, 0.25);
}

body.light-mode .icon-btn:hover,
body.light-mode .btn-secondary:hover {
  background: rgba(236, 72, 153, 0.14);
  color: #9d174d;
}

body.light-mode .trophy-subcard,
body.light-mode .vote-row-btn,
body.light-mode .event-item-card,
body.light-mode .member-pill,
body.light-mode .penalty-touch-card,
body.light-mode .summary-row,
body.light-mode .catalog-item,
body.light-mode .matrix-scroll-wrapper,
body.light-mode .ledger-item,
body.light-mode .note-card,
body.light-mode .toast-card,
body.light-mode .manual-section,
body.light-mode .collapsible-form,
body.light-mode .forgot-box,
body.light-mode .rsvp-btn {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
}

body.light-mode .subtab-btn {
  background: #ffffff;
  color: #2a1822;
  border: 1.5px solid rgba(166, 22, 78, 0.28);
  box-shadow: 0 2px 6px rgba(131, 24, 67, 0.06);
}

body.light-mode .subtab-btn span:not(.material-symbols-outlined) {
  color: #2a1822;
}

body.light-mode .member-pill.active,
body.light-mode .subtab-btn.active {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  border-color: var(--accent-pink);
  color: #ffffff !important;
}

body.light-mode .subtab-btn.active span {
  color: #ffffff !important;
}

body.light-mode .nav-tab {
  color: #5c374c;
}

body.light-mode .nav-tab.active {
  color: var(--accent-pink);
}

body.light-mode .stepper-btn {
  background: #fce7f3;
  color: #831843;
  border-color: rgba(166, 22, 78, 0.25);
}

body.light-mode .stepper-btn.btn-plus {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-hover) 100%);
  color: #ffffff;
}

body.light-mode .dues-matrix-table th {
  background: #fce7f3;
  color: #831843;
}

body.light-mode .dues-matrix-table th:first-child,
body.light-mode .dues-matrix-table td:first-child {
  background: #fdf2f8;
  color: #2a1822;
}

body.light-mode .vote-bar-track {
  background: rgba(166, 22, 78, 0.12);
}

body.light-mode .selected-member-sum-box strong,
body.light-mode .penalty-price,
body.light-mode .manual-section h3 {
  color: #be185d;
}

body.light-mode .chip-yes,
body.light-mode .rsvp-btn.active-yes {
  color: #065f46;
  background: rgba(16, 185, 129, 0.2);
}

body.light-mode .chip-maybe,
body.light-mode .rsvp-btn.active-maybe {
  color: #92400e;
  background: rgba(245, 158, 11, 0.22);
}

body.light-mode .chip-no,
body.light-mode .rsvp-btn.active-no {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.18);
}

body.light-mode .toast-notification {
  background: #2a1822;
  color: #ffffff;
}

/* =====================================================================
   SMARTPHONE & MOBILE-FIRST OPTIMIZATIONS (iOS & Android)
   ===================================================================== */

/* Mobile Dues Cards (5x2 thumb-friendly grid for M1..M10) */
.dues-mobile-list {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.due-member-card {
  background: rgba(10, 15, 29, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

body.light-mode .due-member-card {
  background: rgba(255, 255, 255, 0.9);
}

.due-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}

.due-months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.due-month-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.3rem 0.2rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(30, 41, 59, 0.75);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

body.light-mode .due-month-btn {
  background: #fdf2f8;
  color: var(--text-muted);
}

/* Offene Monate: gestrichelter Rahmen, blass */
.due-month-btn:not(.paid) {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
}

/* Bezahlte Monate: kräftiges Grün, klar abgegrenzt */
.due-month-btn.paid {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #047857;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

body.light-mode .due-month-btn.paid {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.due-month-btn.paid .material-symbols-outlined {
  color: #ffffff !important;
}

.due-month-btn:disabled {
  opacity: 1;
  cursor: default;
}

.due-month-btn:not(.paid):disabled {
  opacity: 0.7;
}

/* Desktop-Matrix: bezahlte Checkboxen grün */
.dues-checkbox {
  accent-color: #10b981;
  width: 18px;
  height: 18px;
}

/* Zusammenfassungs-Badge (x/12 bezahlt) */
.due-member-header .chip-yes {
  background: #10b981;
  color: #ffffff;
  border-color: #047857;
}

.due-m-label {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
}

.due-m-icon {
  font-size: 0.66rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Smartphone Portrait & Compact Screen Rules */
@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom when tapping form inputs */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Show thumb-friendly 4x3 cards for 12 months on smartphones, hide wide table */
  .dues-mobile-list {
    display: flex;
  }

  .matrix-scroll-wrapper {
    display: none;
  }

  .app-main {
    padding: 0.75rem 0.65rem;
  }

  .glass-card {
    padding: 0.95rem;
    border-radius: 15px;
    margin-bottom: 0.8rem;
  }

  /* Compact Smartphone Header */
  .app-header {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .header-brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .header-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .user-badge {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 1px 6px;
  }

  .header-actions {
    gap: 0.28rem;
    flex-shrink: 0;
  }

  .icon-btn {
    height: 37px;
    min-width: 37px;
    padding: 0 0.4rem;
    border-radius: 10px;
  }

  /* Single-column full-width penalty touch cards with 48x48px buttons */
  .penalty-counter-grid {
    grid-template-columns: 1fr;
  }

  .stepper-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .rsvp-btn {
    min-height: 44px;
    font-size: 0.8rem;
  }

  /* Centered Modals on Smartphones */
  .modal-backdrop {
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
  }

  .modal-dialog {
    max-width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 18px;
    margin: auto;
    padding: 1.05rem 1rem;
  }

  .toast-notification {
    white-space: normal;
    width: 90vw;
    max-width: 380px;
    text-align: center;
    line-height: 1.35;
  }

  .finance-controls-col {
    width: 100%;
    align-items: flex-start;
  }
}

/* Extra-narrow phones (e.g. iPhone SE / 320px-360px) */
@media (max-width: 375px) {
  .rsvp-btn-group {
    grid-template-columns: 1fr;
  }

  .kasse-big-amount {
    font-size: 1.85rem;
  }

  .secondary-club-logo {
    width: 66px;
    height: 66px;
  }
}


