* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: url("background.png") center / cover no-repeat;
  font-family: Arial, sans-serif;
  color: white;
}

/* =========================
   NAVIGATION
========================= */

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 14px 0;
  background: rgba(20, 20, 20, 0.9);
  border-bottom: 1px solid #333;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-server-status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.nav-server-status:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.server-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-status-icon {
  font-size: 12px;
  animation: pulse 2s infinite;
}

.server-status-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.server-player-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.server-count-icon {
  font-size: 14px;
}

.server-count-text {
  font-size: 12px;
  font-weight: 700;
  color: #4caf50;
  text-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
}

.server-count-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

.nav-user-dropdown {
  position: relative;
}

.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-user-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-user-dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.nav-user-dropdown.active .nav-user-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-user-dropdown.active .nav-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-menu-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: white;
  font-size: 14px;
}

.nav-user-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-user-menu-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.nav-user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* Password Modal Styles */
.password-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(5px);
}

.password-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  min-width: 400px;
  max-width: 90%;
  z-index: 10000;
  display: none;
}

.password-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.password-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.password-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.password-modal-body {
  padding: 24px;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.password-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.password-form-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.password-form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  transition: all 0.2s ease;
}

.password-form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.password-form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.password-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.password-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.password-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.password-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.password-btn-save {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.password-btn-save:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
}

.password-message {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}

.password-message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.password-message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #f44336;
}

.nav-user img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.logout-btn {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #f44336;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  margin-left: 8px;
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  border-color: #f44336;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.nav a {
  padding: 8px 18px;
  text-decoration: none;
  color: #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.nav a:hover {
  background: #2e2e2e;
}

.nav a.active {
  background: #4caf50;
  color: #fff;
}

/* =========================
   PAGE / LOGO
========================= */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}

.logo-top img {
  max-width: 160px;
  margin-bottom: 16px;
}

/* =========================
   LAYOUT
========================= */

.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* =========================
   ARCHIV SIDEBAR
========================= */

.archive {
  width: 260px;
  background: rgba(15,15,15,.78);
  border-radius: 20px;
  padding: 20px;
}

.archive h2,
.goals h2 {
  font-size: 18px;        /* gleich groß */
  font-weight: 600;
  margin-bottom: 16px;
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 6px;
}


.archive-entry {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
}

.archive-entry.income {
  border-left: 4px solid #4caf50;
}

.archive-entry.expense {
  border-left: 4px solid #f44336;
}

.archive-entry .amount {
  font-weight: bold;
}

.archive-entry .meta {
  font-size: 12px;
  opacity: .7;
}

/* =========================
   HAUPTBOX
========================= */

.overlay {
  width: 900px;
  background: rgba(15,15,15,.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 34px;
}

/* =========================
   TEAMZIELE
========================= */

.goals {
  width: 280px;
  background: rgba(15,15,15,.78);
  border-radius: 20px;
  padding: 20px;
}

/* =========================
   STATUS / STATS
========================= */

.status {
  opacity: .7;
  margin-bottom: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.03)
  );
  padding: 20px 22px;
  border-radius: 16px;
}

.stat span {
  font-size: 12px;
  opacity: .6;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 600;
  white-space: nowrap;
}

/* =========================
   FORMULAR
========================= */

.card-form {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.card-form select,
.card-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 14px;
}

.card-form button {
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: #4caf50;
  color: #fff;
  cursor: pointer;
}

.card-form button:hover {
  background: #43a047;
}

#paymentMsg {
  font-size: 13px;
  opacity: .7;
}
/* =========================
   TEAMZIELE – EINZELNES ZIEL
========================= */

.goal {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.goal small {
  opacity: .7;
  font-size: 12px;
}

/* =========================
   PROGRESS BAR
========================= */

.progress {
  margin-top: 10px;
  height: 10px;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
}

.progress div {
  height: 100%;
  background: linear-gradient(
    90deg,
    #4caf50,
    #66bb6a
  );
}
/* =========================
   SPIELER GRID
========================= */

.players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.player {
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  width: 120px;
  height: 150px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  border: 2px solid transparent;
  position: relative;
}

.player img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  margin-top: 6px;
}

.player .name {
  font-size: 13px;
  max-width: 100%;
  white-space: nowrap;        /* ❌ kein Umbruch */
  overflow: hidden;           /* ❌ kein Rauslaufen */
  text-overflow: ellipsis;    /* … statt Chaos */
}

.player small {
  font-size: 11px;
  opacity: .7;
}

.player .admin-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  cursor: help;
}

.player .role-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 14px;
  opacity: 1;
  cursor: help;
  z-index: 10;
  pointer-events: auto;
}

.player .motto {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 2px;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 5px;
}

.player.paid {
  border-color: #4caf50;
}

.player.unpaid {
  border-color: #e53935;
  opacity: .6;
}

.player.partial {
  border-color: #ffc107;
}
.week-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.week-select label {
  font-size: 13px;
  opacity: .7;
}

.week-select select {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.week-select select:hover {
  background: rgba(0,0,0,.45);
}
/* =========================
   TEAMZIEL ERLEDIGT
========================= */

.goal.done {
  border: 2px solid #4caf50;
  background: linear-gradient(
    180deg,
    rgba(76,175,80,.15),
    rgba(76,175,80,.05)
  );
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.goal-done {
  background: #4caf50;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.goal.done small {
  opacity: .7;
}

.goal.done .progress div {
  background: #4caf50;
}
/* =========================
   LOGIN – ISOLIERT
========================= */

/* =========================
   MODERN LOGIN DESIGN
========================= */

/* Login-Overlay Background */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("background.png") center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

/* Modern Login Container */
.login-overlay-content {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 35, 0.9) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  max-width: 420px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease-out;
}

/* Modern Logo */
.login-logo {
  width: 200px;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.login-logo-secondary {
  width: 120px;
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.3;
  filter: blur(1px);
  transition: opacity 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-logo-secondary:hover {
  opacity: 0.6;
}

/* Modern Title */
.login-overlay-content h2 {
  margin: 0 0 32px 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

/* Modern Description */
.login-overlay-content p {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-weight: 400;
}

/* Status Info Box */
.login-status-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 32px 0;
  backdrop-filter: blur(5px);
}

.login-status-info p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.login-status-info p:last-child {
  margin-bottom: 0;
}

.login-note {
  font-weight: 600;
  color: #4caf50;
  text-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
}

/* Modern Input Fields */
.login-input {
  width: 100%;
  padding: 16px 20px;
  margin: 12px 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-weight: 500;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.login-input:focus {
  outline: none;
  border-color: #4caf50;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 0 0 4px rgba(76, 175, 80, 0.1),
    0 8px 24px rgba(76, 175, 80, 0.15);
  transform: translateY(-2px);
}

.login-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

/* Modern Login Button */
.login-btn {
  width: 100%;
  padding: 18px 32px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #45a049 0%, #43a047 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Modern Error Message */
.login-error-container {
  margin-top: 16px;
  min-height: 20px;
}

.login-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
  animation: shake 0.5s ease-in-out;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-overlay {
    padding: 16px;
  }
  
  .login-overlay-content {
    padding: 32px 24px;
    margin: 16px;
    max-width: none;
  }
  
  .login-logo {
    width: 160px;
    margin-bottom: 24px;
  }
  
  .login-logo-secondary {
    width: 80px;
    top: 15px;
    right: 15px;
  }
  
  .login-overlay-content h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .login-overlay-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .login-status-info {
    padding: 16px;
    margin: 0 0 24px 0;
  }
  
  .login-status-info p {
    font-size: 13px;
    margin: 0 0 8px 0;
  }
  
  .login-error-container {
    margin-top: 12px;
  }
  
  .login-input {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .login-btn {
    padding: 16px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-overlay-content {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .login-logo {
    width: 140px;
  }
  
  .login-overlay-content h2 {
    font-size: 22px;
  }
  
  .login-status-info {
    padding: 12px;
    margin: 0 0 20px 0;
  }
  
  .login-status-info p {
    font-size: 12px;
    margin: 0 0 6px 0;
  }
  
  .login-input {
    padding: 12px 16px;
  }
  
  .login-btn {
    padding: 14px 20px;
  }
}
/* =========================
   ITEMS – ISOLIERT & SICHER
   (berührt Teamkasse NICHT)
========================= */

.items-page #teamItems {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.items-page .player-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #1f1f1f;
}

.items-page .player-avatar {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
}

.items-page .player-avatar img {
  width: 96px;
  height: 192px;
  image-rendering: pixelated;
}

.items-page .player-name {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.items-page .player-items {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.items-page .team-item {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  min-height: 105px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.items-page .item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
  transition: color 0.3s ease, text-shadow 0.3s ease;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.items-page .item-empty {
  font-size: 11px;
  color: #8a8a8a;
  font-style: italic;
}

.items-page .item-holder {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #ffffff;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.items-page .item-holder img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.items-page .item-available {
  color: #2e7d32;
  font-weight: 600;
  font-size: 11px;
}

.items-page .team-item:hover .item-available {
  color: #4caf50;
}

/* Hover-Effekt für "ausgeliehen von" */
.items-page .team-item:hover .item-holder {
  color: #64b5f6;
  text-shadow: 0 0 6px rgba(100, 181, 246, 0.6);
}

/* Hover-Effekt für Item-Name */
.items-page .team-item:hover .item-name {
  color: #ff9800;
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
/* =========================
   ITEMS – HAUPT-CONTAINER
========================= */

.page-box.items-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px 34px;

  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}
/* =========================
   ITEMS – BUTTON IM KASSEN-STIL
========================= */

.items-actions {
  display: flex;
  justify-content: center;
  margin: 12px 0 28px;
}

.items-actions button {
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);

  background: rgba(30,30,30,.85);
  backdrop-filter: blur(6px);

  color: #ddd;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.items-actions button:hover {
  background: rgba(45,45,45,.9);
  border-color: rgba(255,255,255,.25);
}
/* =========================
   KREDITANTRÄGE
========================= */

.kredite-page .credit-box {
  background: rgba(20,20,20,.9);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.credit-box.accepted {
  border-left: 4px solid #4caf50;
}

.credit-box.rejected {
  border-left: 4px solid #f44336;
}

.vote-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.vote-bar button {
  flex: 1;
}
/* =========================
   KREDITANTRAG – FORMULAR
========================= */

.kredite-page {
  max-width: 800px;
  margin: 30px auto;
}

.credit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row label {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 4px;
  display: block;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #222;
  background: #111;
  color: #eee;
}

.form-row input:disabled {
  opacity: .6;
}

.form-check {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #bbb;
}

.btn-primary {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: rgba(30,30,30,.9);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: rgba(45,45,45,.95);
}
/* =========================
   KREDITANTRÄGE – BACKGROUND
========================= */

.page-box.kredite-page {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px 34px;

  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}
/* =========================
   KREDIT VOTING
========================= */

.credit-box {
  background: rgba(20,20,20,.9);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.credit-box.accepted {
  border-left: 4px solid #4caf50;
}

.credit-box.rejected {
  border-left: 4px solid #f44336;
}

.credit-box.open {
  border-left: 4px solid #777;
}

.vote-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.vote-bar button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: rgba(40,40,40,.9);
  color: #fff;
  cursor: pointer;
}

.vote-bar button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.credit-status {
  margin-top: 8px;
  font-size: 13px;
  opacity: .8;
}
/* =========================
   KREDITANTRÄGE – STATUS DESIGN
   (wie Teamziele)
========================= */

/* =========================
   KREDITANTRÄGE – TEAMZIELE STYLE
========================= */

/* =========================
   KREDITANTRÄGE – TEAMZIELE LOOK
========================= */

.credit-box {
  position: relative;
  background: rgba(25, 25, 25, 0.9);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* OFFEN */
.credit-box.open {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ANGENOMMEN */
.credit-box.accepted {
  border-color: #4caf50;
}

/* ABGELEHNT */
.credit-box.rejected {
  border-color: #e53935;
}

/* STATUS BADGE (oben rechts, wie Teamziele) */
/* =========================
   KREDITANTRÄGE – TEAMZIELE 1:1
========================= */

.credit-box {
  position: relative;
  background: rgba(25, 25, 25, 0.9);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}

/* Farb-Overlay */
.credit-box::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15; /* 👈 GENAU HIER */
  pointer-events: none;
}

/* Status-Badge (oben rechts) */
.credit-box::after {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .4px;
  z-index: 2;
}

/* =========================
   STATUS
========================= */

/* Status-Badge nur über .credit-status-badge Element steuern */
.credit-box::after {
  display: none; /* Pseudoelement ausblenden */
}
/* =========================
   KREDITANTRÄGE – TEXT WEISS
========================= */

/* Allgemeiner Text im Kredit-Block */
.credit-box,
.credit-box h3,
.credit-box p,
.credit-box div,
.credit-box label {
  color: #ffffff;
}

/* =========================
   KREDITANTRÄGE - EXAKT WIE TEAMZIELE
========================= */

.credit-box {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* Meta-Informationen - wie Teamziele */
.credit-box h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #ffffff;
}

.credit-meta {
  font-size: 12px;
  opacity: .7;
  line-height: 1.5;
  margin-bottom: 8px;
}

.credit-meta div {
  margin-bottom: 4px;
}

.credit-reason {
  font-size: 12px;
  opacity: .8;
  margin: 8px 0;
  padding: 8px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  border-left: 3px solid #4caf50;
}

/* Voting-Buttons - wie Teamkasse-Buttons */
.vote-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.vote-bar button {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(76, 175, 80, 0.2);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-bar button:first-child {
  background: rgba(76, 175, 80, 0.25);
}

.vote-bar button:last-child {
  background: rgba(244, 67, 54, 0.25);
}

.vote-bar button:hover {
  background: rgba(76, 175, 80, 0.4);
}

.vote-bar button:last-child:hover {
  background: rgba(244, 67, 54, 0.4);
}

.vote-bar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status-Badges - nur über .credit-status-badge Element steuern */
.credit-box::after {
  display: none; /* Alle Pseudoelemente ausblenden */
}

/* Section Divider für Kredite */
.section-divider {
  margin: 30px 0 20px 0;
  text-align: center;
  position: relative;
}

.section-divider span {
  display: inline-block;
  padding: 0 20px;
  background: rgba(15,15,15,.88);
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 600;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

/* Meta-Infos etwas dezenter, aber weiß */
.credit-box .credit-meta {
  color: rgba(255, 255, 255, 0.85);
}

/* Begründung */
.credit-box .credit-reason {
  color: rgba(255, 255, 255, 0.9);
}

/* Formular im Kreditbereich */
.credit-form label {
  color: #ffffff;
}

.credit-form input,
.credit-form textarea {
  color: #ffffff;
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Placeholder */
.credit-form input::placeholder,
.credit-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Checkbox Text */
.credit-form .form-check label {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================
   KREDIT-SEITE ANPASSUNGEN
========================= */

/* Kredit-Statistiken im rechten Block */
.credit-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-small {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
}

.stat-small span {
  font-size: 11px;
  opacity: .7;
  display: block;
}

.stat-small strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}

/* Meine Anträge */
.my-credits-list .archive-entry {
  margin-bottom: 8px;
  font-size: 12px;
}

.my-credits-list .archive-entry.open {
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.my-credits-list .archive-entry.accepted {
  border-left: 3px solid #4caf50;
}

.my-credits-list .archive-entry.rejected {
  border-left: 3px solid #f44336;
}

/* Status im Hauptbereich */
#statusLine {
  margin-bottom: 20px;
  font-size: 14px;
  opacity: .8;
}

/* Kredit-Statistiken im Hauptbereich */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.03)
  );
  padding: 20px 22px;
  border-radius: 16px;
  text-align: center;
}

.stat span {
  font-size: 12px;
  opacity: .6;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 600;
  white-space: nowrap;
}

/* Formular im linken Block */
.archive .credit-form {
  background: transparent;
  padding: 0;
}

.archive .form-row {
  margin-bottom: 16px;
}

.archive .form-row label {
  font-size: 12px;
  opacity: .7;
  margin-bottom: 6px;
}

.archive .form-row input,
.archive .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
}

.archive .form-check {
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.5;
}

.archive .btn-primary {
  width: 100%;
  padding: 12px;
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.archive .btn-primary:hover {
  background: rgba(76, 175, 80, 0.5);
}

/* Info-Box im Hauptbereich */
.card-form h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

/* =========================
   KREDIT-SEITE - ALLES IN EINER EBENE
========================= */

/* Layout-Höhe begrenzen */
.layout {
  max-height: calc(100vh - 200px);
  overflow: hidden;
}

/* Linke Box - Neuer Antrag */
.kredit-form-container {
  background: rgba(15, 15, 15, 0.88) !important; /* Gleiche Transparenz wie Mitte */
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.credit-form-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.credit-form-compact .form-row {
  margin-bottom: 0;
}

.credit-form-compact .form-row label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  display: block;
}

.credit-form-compact .form-row input,
.credit-form-compact .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
}

.credit-form-compact .form-check {
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.4;
}

.credit-form-compact .btn-primary {
  margin-top: auto;
  padding: 12px;
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.credit-form-compact .btn-primary:hover {
  background: rgba(76, 175, 80, 0.5);
}

/* Mittlere Box - Hauptbereich */
.kredit-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 24px !important;
}

.kredit-stats {
  margin: 15px 0 20px 0 !important;
}

.scroll-container {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100% - 150px);
  padding-right: 8px;
}

.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.info-box {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.info-text {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

.section-title {
  font-size: 18px;
  margin: 20px 0 15px 0;
  font-weight: 600;
}

/* Rechte Box - Kreditstatistik */
.kredit-stats-container {
  background: rgba(15, 15, 15, 0.88) !important; /* Gleiche Transparenz wie Mitte */
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 20px 0;
}

.stat-compact {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #4caf50;
}

.section-title-right {
  font-size: 18px;
  margin: 20px 0 15px 0;
  font-weight: 600;
}

.my-credits-list {
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
}

.my-request {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.my-request.accepted {
  border-left-color: #4caf50;
}

.my-request.rejected {
  border-left-color: #f44336;
}

.my-request-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.my-request-amount {
  font-size: 12px;
  opacity: 0.9;
}

.my-request-status {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.no-requests {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  opacity: 0.7;
  font-style: italic;
}

.quick-info {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  opacity: 0.7;
}

/* Kredit-Box Anpassungen */
.credit-meta div {
  margin-bottom: 6px;
  font-size: 13px;
}

.credit-meta strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.credit-reason {
  font-size: 12px;
  opacity: 0.8;
  margin: 10px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid #4caf50;
  line-height: 1.5;
}

.credit-reason strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.progress {
  position: relative;
  margin-top: 12px;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Voting Buttons */
.vote-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.vote-bar button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-bar button:first-child {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #fff;
}

.vote-bar button:first-child:hover {
  background: rgba(76, 175, 80, 0.5);
}

.vote-bar button:last-child {
  background: rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #fff;
}

.vote-bar button:last-child:hover {
  background: rgba(244, 67, 54, 0.5);
}

.vote-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================
   LOGIN-OVERLAY STYLES (GLOBAL) - VERALTET, SIEHE OBEN
========================= */

/* =========================
   KREDIT-VOTING PROGRESSBAR & BUTTONS (NEU)
========================= */

/* Container für die Progressbar */
.vote-progress-container {
  margin: 15px 0;
}

/* Progressbar selbst */
.vote-progress {
  position: relative;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Ja-Stimmen (von links) */
.vote-yes-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(76, 175, 80, 0.9), 
    rgba(76, 175, 80, 0.7));
  transition: width 0.5s ease-out;
  z-index: 1;
  box-shadow: inset 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Nein-Stimmen (von rechts) */
.vote-no-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(244, 67, 54, 0.7), 
    rgba(244, 67, 54, 0.9));
  transition: width 0.5s ease-out, left 0.5s ease-out;
  z-index: 0;
  box-shadow: inset 0 0 10px rgba(244, 67, 54, 0.3);
}

/* Text unter der Progressbar */
.vote-text {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
  text-align: center;
  z-index: 2;
}

/* Container für die Abstimmungs-Buttons */
.vote-buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Allgemeine Button-Stile */
.vote-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Ja-Button */
.vote-yes-btn {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #fff;
}

.vote-yes-btn:hover:not(:disabled) {
  background: rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
}

/* Nein-Button */
.vote-no-btn {
  background: rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #fff;
}

.vote-no-btn:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.5);
  transform: translateY(-2px);
}

/* Deaktivierte Buttons */
.vote-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Status-Badge für Kreditmetadaten */
.credit-status-badge {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.3px;
  z-index: 10;
}

.credit-box.open .credit-status-badge {
  background: rgba(255, 152, 0, 0.25);
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #ffb74d;
}

.credit-box.accepted .credit-status-badge {
  background: rgba(76, 175, 80, 0.25);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #a5d6a7;
}

.credit-box.rejected .credit-status-badge {
  background: rgba(244, 67, 54, 0.25);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ef9a9a;
}

/* Meine Anträge - Statusanzeige */
.my-request .my-request-status {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
}

.my-request.open .my-request-status {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
}

.my-request.accepted .my-request-status {
  background: rgba(76, 175, 80, 0.25);
  color: #a5d6a7;
}

.my-request.rejected .my-request-status {
  background: rgba(244, 67, 54, 0.25);
  color: #ef9a9a;
}

/* =========================
   KREDITSEITE NEUES LAYOUT (2-SPALTEN)
========================= */

.kredit-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* LINKE SPALTE */
.kredit-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kredit-form-section,
.kredit-stats-section,
.my-credits-section {
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kredit-form-section h2,
.kredit-stats-section h2,
.my-credits-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  color: #fff;
}

/* FORMULAR */
.credit-form-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credit-form-compact .form-row {
  margin-bottom: 0;
}

.credit-form-compact .form-row label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  display: block;
  color: #ddd;
}

.credit-form-compact .form-row input,
.credit-form-compact .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
}

.credit-form-compact .form-check {
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #ddd;
}

.credit-form-compact .btn-primary {
  padding: 12px;
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.credit-form-compact .btn-primary:hover {
  background: rgba(76, 175, 80, 0.5);
}

/* STATISTIK */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-compact {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 6px;
  color: #ddd;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #4caf50;
}

/* MEINE ANTRÄGE */
.my-credits-list {
  max-height: 200px;
  overflow-y: auto;
}

.my-credits-list::-webkit-scrollbar {
  width: 4px;
}

.my-credits-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.my-credits-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* RECHTE SPALTE */
.kredit-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kredit-header {
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kredit-header h1 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #fff;
}

.status {
  opacity: 0.7;
  font-size: 14px;
  color: #ddd;
  margin-bottom: 22px;
  transition: color 0.3s ease;
}

.status.status-red {
  color: #f44336; /* Rot - niemand bezahlt */
  border-left-color: #f44336 !important; /* Linker Rand auch rot */
}

.status.status-orange {
  color: #ff9800; /* Orange - teilweise bezahlt */
  border-left-color: #ff9800 !important; /* Linker Rand auch orange */
}

.status.status-green {
  color: #4caf50; /* Grün - alle bezahlt */
  border-left-color: #4caf50 !important; /* Linker Rand auch grün */
}

/* INFO-BOX */
.info-box {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.info-text {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
  color: #ddd;
}

/* AKTIVE ANTRÄGE */
.active-credits-section {
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.active-credits-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  color: #fff;
}

.credit-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 8px;
  max-height: none;
  overflow: visible;
  align-content: start;
  min-height: fit-content;
}

/* Flexibles Grid - passt sich der Anzahl der Anträge an */
.credit-list-container:has(.credit-box:nth-child(1):nth-last-child(1)) {
  grid-template-columns: 1fr;
}

.credit-list-container:has(.credit-box:nth-child(1):nth-last-child(2)),
.credit-list-container:has(.credit-box:nth-child(2):nth-last-child(1)) {
  grid-template-columns: repeat(2, 1fr);
}

.credit-list-container:has(.credit-box:nth-child(1):nth-last-child(3)),
.credit-list-container:has(.credit-box:nth-child(2):nth-last-child(2)),
.credit-list-container:has(.credit-box:nth-child(3):nth-last-child(1)) {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .credit-list-container {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .credit-list-container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* KREDIT-BOXEN */
.credit-box {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border-radius: 16px;
  padding: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  height: 100%;
}

/* Größere Boxen wenn weniger Anträge vorhanden */
.credit-list-container:has(.credit-box:nth-child(1):nth-last-child(1)) .credit-box,
.credit-list-container:has(.credit-box:nth-child(1):nth-last-child(2)) .credit-box,
.credit-list-container:has(.credit-box:nth-child(2):nth-last-child(1)) .credit-box {
  min-height: 280px;
  padding: 28px;
}

.credit-list-container:has(.credit-box:nth-child(1):nth-last-child(3)) .credit-box,
.credit-list-container:has(.credit-box:nth-child(2):nth-last-child(2)) .credit-box,
.credit-list-container:has(.credit-box:nth-child(3):nth-last-child(1)) .credit-box {
  min-height: 250px;
  padding: 26px;
}

.credit-box:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
}

.credit-box.open {
  border-color: #ff9800;
}

.credit-box.accepted {
  border-color: #4caf50;
}

.credit-box.rejected {
  border-color: #f44336;
}

.credit-box h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.credit-meta {
  font-size: 13px;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.credit-meta div {
  margin-bottom: 4px;
}

.credit-meta strong {
  color: #bbb;
}

.credit-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.credit-box-header h3 {
  margin: 0;
  flex: 1;
  padding-right: 12px;
}

/* STATUS-BADGE */
.credit-status-badge {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.credit-box.open .credit-status-badge {
  background: rgba(255, 152, 0, 0.25);
  color: #ffb74d;
}

.credit-box.accepted .credit-status-badge {
  background: rgba(76, 175, 80, 0.25);
  color: #a5d6a7;
}

.credit-box.rejected .credit-status-badge {
  background: rgba(244, 67, 54, 0.25);
  color: #ef9a9a;
}

/* VOTING MODAL */
.voting-modal-content {
  max-width: 500px;
  width: 90%;
}

.voting-credit-info {
  margin-bottom: 24px;
}

.voting-credit-info h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}

.credit-reason-modal {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.5;
}

.voting-container h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  color: #fff;
}

.selected-credit-info h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #fff;
}

.credit-meta-small {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 16px;
}

.credit-meta-small div {
  margin-bottom: 4px;
}

.credit-meta-small strong {
  color: #bbb;
}

/* ABSTIMMUNGS-BUTTONS */
.voting-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.vote-btn {
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vote-yes-btn {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #fff;
}

.vote-yes-btn:hover:not(:disabled) {
  background: rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
}

.vote-no-btn {
  background: rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #fff;
}

.vote-no-btn:hover:not(:disabled) {
  background: rgba(244, 67, 54, 0.5);
  transform: translateY(-2px);
}

.vote-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.vote-note {
  font-size: 12px;
  opacity: 0.7;
  color: #ddd;
  display: block;
  text-align: center;
  margin-top: 8px;
}

/* PROGRESSBAR FÜR ABSTIMMUNG */
.vote-progress-container {
  margin: 20px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.vote-progress-container .vote-text {
  margin-top: 12px;
  margin-bottom: 0;
}

.voting-progress {
  margin-top: 12px;
  font-size: 13px;
  color: #bbb;
  text-align: center;
}

.voting-complete {
  margin-top: 12px;
  padding: 10px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  color: #a5d6a7;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

.admin-wait-message {
  padding: 12px;
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 8px;
  color: #ffb74d;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  margin-top: 12px;
}

.vote-progress {
  position: relative;
  height: 28px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

.vote-yes-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(76, 175, 80, 0.9), 
    rgba(76, 175, 80, 0.7));
  transition: width 0.5s ease-out;
  z-index: 1;
  box-shadow: inset 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Duplikat entfernt - wird weiter oben definiert */


/* =========================
   KREDITSEITE - CONSISTENTES DESIGN
========================= */

/* Alle Kredit-Container haben gleiche runde Ecken */
.kredit-form-section,
.kredit-stats-section,
.my-credits-section,
.kredit-header,
.active-credits-section,
.voting-container {
  border-radius: 20px !important;
  overflow: hidden;
}

/* Kredit-Layout Höhe anpassen */
.kredit-layout {
  min-height: calc(100vh - 250px);
  margin-bottom: 40px;
}

/* Linke Spalte fixe Höhe für besseres Layout */
.kredit-left {
  height: fit-content;
  position: sticky;
  top: 20px;
}

/* Rechte Spalte scrollbar wenn nötig */
.credit-list-container {
  max-height: 500px;
  overflow-y: auto;
}

/* Formular-Anpassungen für bessere Darstellung */
.credit-form-compact .form-row {
  margin-bottom: 12px;
}

.credit-form-compact .form-row:last-child {
  margin-bottom: 0;
}

/* =========================
   INDEX-SEITE - KORREKTUREN FÜR ABGESCHNITTENEN INHALT
========================= */

/* Layout-Höhenkorrektur für Index-Seite */
.layout {
  max-height: none !important;
  height: auto !important;
  min-height: calc(100vh - 200px);
}

/* Hauptcontainer für Index-Seite */
.overlay {
  display: flex;
  flex-direction: column;
  min-height: 700px; /* Genug Platz für 8 Spieler */
  width: 900px;
  background: rgba(15,15,15,.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 34px 40px 34px; /* Mehr Padding unten */
  margin-bottom: 20px;
}

/* Spieler-Grid für genau 2x4 Layout */
.players {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Immer 4 Spalten */
  gap: 16px;
  margin-bottom: 30px;
  min-height: 320px; /* Höhe für 2 Reihen */
}

/* Spieler-Elemente */
.player {
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  width: 100%;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent;
  position: relative;
}

.player img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  margin-top: 6px;
}

.player .name {
  font-size: 13px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.player small {
  font-size: 11px;
  opacity: .7;
}

.player.paid {
  border-color: #4caf50;
}

.player.partial {
  border-color: #ffc107;
}

.player.unpaid {
  border-color: #e53935;
  opacity: .6;
}

/* Footer nach unten schieben */
.footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Archiv und Ziele */
.archive, .goals {
  height: fit-content;
  max-height: 700px;
}

/* Responsive Anpassungen */
@media (max-height: 800px) {
  .overlay {
    min-height: 650px;
  }
  
  .players {
    min-height: 300px;
  }
}

@media (max-width: 1400px) {
  .layout {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .overlay {
    width: 100%;
    max-width: 900px;
    order: 2;
  }
  
  .archive, .goals {
    width: 300px;
    position: static;
    order: 1;
  }
}

/* Scrollbar für Archive wenn zu lang */
.archive {
  max-height: 500px;
  overflow-y: auto;
}

.archive::-webkit-scrollbar {
  width: 6px;
}

.archive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.archive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* =========================
   KREDITSEITE - SEPARATE STYLES
========================= */

/* Nur für Kreditseite gültige Höhenbeschränkungen */
.kredite-page .layout {
  max-height: calc(100vh - 200px);
  overflow: hidden;
}

.kredite-page .overlay {
  max-height: 700px;
}

/* =========================
   ALLGEMEINE VERBESSERUNGEN
========================= */

/* Hintergrund für bessere Lesbarkeit */
.overlay {
  background: rgba(15, 15, 15, 0.92) !important;
  backdrop-filter: blur(12px);
}

/* Box-Shadow für Tiefe */
.archive, .goals, .overlay {
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Hover-Effekte für Spieler */
.player {
  transition: all 0.2s ease;
}

.player:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Klickbare Spieler-Boxen für Admins */
.player.clickable {
  cursor: pointer;
  position: relative;
}

.player.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #fff !important;
}

.player.clickable:hover::after {
  content: "🔄 Status ändern";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: fadeInOut 0.3s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Status-Farben verbessern */
.player.paid {
  border-color: #4caf50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.player.partial {
  border-color: #ff9800;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
}

.player.unpaid {
  border-color: #f44336;
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
}

/* Spieler-Namen verbessern */
.player .name {
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px 0;
  color: #fff;
}

.player small {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 500;
}

/* Admin-Button: Spieler als bezahlt markieren */
.mark-paid-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(76, 175, 80, 0.9);
  border: 2px solid rgba(76, 175, 80, 0.5);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.mark-paid-btn:hover {
  background: rgba(76, 175, 80, 1);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.mark-paid-btn:active {
  transform: scale(0.95);
}

/* Admin-Button: Spieler als nicht bezahlt markieren */
.mark-unpaid-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(244, 67, 54, 0.9);
  border: 2px solid rgba(244, 67, 54, 0.5);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.mark-unpaid-btn:hover {
  background: rgba(244, 67, 54, 1);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.mark-unpaid-btn:active {
  transform: scale(0.95);
}

/* =========================
   LOADING & ERROR STATES
========================= */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 14px;
  opacity: 0.7;
}

.error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #ff6b6b;
  font-size: 14px;
  border: 2px solid #ff6b6b;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
}

/* =========================
   INDEX SEITE - KORREKTUR FÜR RUNDE ECKEN
========================= */

/* Hauptlayout */
.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-height: calc(100vh - 200px);
}

/* Hauptcontainer */
.overlay {
  width: 900px;
  background: rgba(15,15,15,.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
}

/* Spieler-Container - Fix für 8 Spieler */
.players {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  min-height: 320px; /* Höhe für 2 Reihen */
}

.player {
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  width: 100%;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent;
  position: relative;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Container runde Ecken */
.archive, .goals, .overlay {
  border-radius: 20px;
  overflow: visible;
}

/* Responsive Anpassungen */
@media (max-width: 1400px) {
  .layout {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .overlay {
    width: 100%;
    max-width: 900px;
    order: 2;
  }
  
  .archive, .goals {
    width: 300px;
    order: 1;
  }
}

/* =========================
   ARCHIV & TEAMZIELE - GLEICHE HÖHE MIT SCROLLBAR
========================= */

/* Layout anpassen für gleiche Höhe */
.layout {
  display: flex;
  gap: 24px;
  align-items: stretch; /* Wichtig: Container strecken sich auf gleiche Höhe */
  min-height: calc(100vh - 200px);
}

/* Gemeinsame Stile für Archiv und Teamziele */
.archive, .goals {
  width: 270px; /* Gleiche Breite für beide */
  background: rgba(15,15,15,.78);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 600px; /* Mindesthöhe für Gleichheit */
  max-height: 700px; /* Maximale Höhe vor Scroll */
}

/* Header für beide Container */
.archive-header, .goals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.archive h2, .goals h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.archive-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-add-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
  transform: scale(1.1);
}

.goal-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-add-btn:hover {
  background: rgba(33, 150, 243, 0.3);
  border-color: rgba(33, 150, 243, 0.5);
  transform: scale(1.1);
}

.goal-delete-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(244, 67, 54, 0.3);
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.goal-delete-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  border-color: rgba(244, 67, 54, 0.5);
  transform: scale(1.1);
}

/* Neuer Teamziele Container mit grünem Rand */
.goal-container {
  background: rgba(15, 15, 15, 0.78);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.goal-container:hover {
  border-color: rgba(76, 175, 80, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Erstes Ziel nicht abschneiden */
#goalsList .goal-container:first-child:hover {
  transform: translateY(-1px);
}

.goal-container.done {
  border-color: rgba(76, 175, 80, 0.6);
  background: rgba(76, 175, 80, 0.1);
}

.goal-details {
  margin: 12px 0;
  line-height: 1.6;
}

.goal-details small {
  display: block;
  margin-bottom: 4px;
  color: #ccc;
  font-size: 12px;
}

.goal-details strong {
  color: #fff;
}

.progress-bar {
  position: relative;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  border-radius: 12px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.goal-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Formular-Row für Teamziele */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.form-row input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.form-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
}

.form-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
  border: none;
}

.form-row span {
  font-size: 14px;
  color: #2196f3;
  font-weight: bold;
}

.goal-edit-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(33, 150, 243, 0.3);
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.goal-edit-btn:hover {
  background: rgba(33, 150, 243, 0.3);
  border-color: rgba(33, 150, 243, 0.5);
  transform: scale(1.1);
}

/* Scrollbare Inhaltsbereiche */
.archive-content, .goals-content {
  flex: 1; /* Nimmt verfügbaren Platz ein */
  overflow-y: auto; /* Scrollbar bei Bedarf */
  padding-right: 5px; /* Platz für Scrollbar */
}

/* Anpassung für Archiv-Liste */
#archiveList, #goalsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
}

/* Custom Scrollbar für beide Container */
.archive-content::-webkit-scrollbar,
.goals-content::-webkit-scrollbar,
#archiveList::-webkit-scrollbar,
#goalsList::-webkit-scrollbar {
  width: 6px;
}

.archive-content::-webkit-scrollbar-track,
.goals-content::-webkit-scrollbar-track,
#archiveList::-webkit-scrollbar-track,
#goalsList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.archive-content::-webkit-scrollbar-thumb,
.goals-content::-webkit-scrollbar-thumb,
#archiveList::-webkit-scrollbar-thumb,
#goalsList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Firefox Scrollbar */
.archive-content, .goals-content,
#archiveList, #goalsList {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Verhindert, dass Einträge über den Container hinausragen */
.archive-entry, .goal {
  flex-shrink: 0;
  margin-bottom: 10px;
}

.archive-entry:last-child, .goal:last-child {
  margin-bottom: 0;
}

/* Responsive Anpassungen */
@media (max-height: 800px) {
  .archive, .goals {
    min-height: 550px;
    max-height: 600px;
  }
}

@media (max-width: 1400px) {
  .layout {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .archive, .goals {
    width: 300px;
    min-height: 400px;
    max-height: 500px;
  }
  
  .overlay {
    width: 100%;
    max-width: 900px;
    order: 2;
  }
  
  .archive, .goals {
    order: 1;
  }
}

/* Verbesserte Archiv-Einträge */
.archive-entry {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
  border-left: 4px solid transparent;
  position: relative; /* Für Löschen-Button */
}

.archive-entry.income {
  border-left-color: #4caf50;
}

.archive-entry.expense {
  border-left-color: #f44336;
}

.archive-entry .amount {
  font-weight: bold;
  margin-bottom: 4px;
}

.archive-entry .meta {
  font-size: 11px;
  opacity: .7;
  margin-top: 4px;
}

/* Archiv-Löschen-Menü */
.archive-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}

.archive-delete-btn {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.archive-delete-btn:hover {
  color: #d32f2f;
  background: rgba(244, 67, 54, 0.1);
}

.archive-delete-menu {
  position: absolute;
  top: 25px;
  right: 5px;
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 150px;
}

.archive-delete-menu button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.archive-delete-menu button:hover {
  background: rgba(244, 67, 54, 0.2);
}

/* Verbesserte Teamziele */
.goal {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.goal small {
  opacity: .7;
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}

.goal.done {
  border: 2px solid #4caf50;
  background: linear-gradient(
    180deg,
    rgba(76,175,80,.15),
    rgba(76,175,80,.05)
  );
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.goal-done {
  background: #4caf50;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Progress Bar */
.progress {
  margin-top: 10px;
  height: 8px;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
}

.progress div {
  height: 100%;
  background: linear-gradient(
    90deg,
    #4caf50,
    #66bb6a
  );
  border-radius: 8px;
}

/* =========================
   LEERE CONTAINER
========================= */
.no-entries {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.6;
  font-style: italic;
  font-size: 13px;
}

/* =========================
   ADMIN-BUTTONS FÜR KREDITE
========================= */

.admin-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.admin-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-width: 120px;
}

.accept-btn {
  background: rgba(76, 175, 80, 0.25);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #a5d6a7;
}

.accept-btn:hover {
  background: rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.reject-btn {
  background: rgba(244, 67, 54, 0.25);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ef9a9a;
}

.reject-btn:hover {
  background: rgba(244, 67, 54, 0.4);
  transform: translateY(-2px);
}

.reopen-btn {
  background: rgba(33, 150, 243, 0.25);
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: #90caf9;
}

.reopen-btn:hover {
  background: rgba(33, 150, 243, 0.4);
  transform: translateY(-2px);
}

/* Kleine Icons als Alternative zu Text */
.admin-btn-small {
  padding: 6px 10px;
  min-width: auto;
  font-size: 16px;
}

/* In der Voting-Container auch Admin-Buttons */
.voting-container .admin-actions {
  margin-top: 15px;
  justify-content: center;
}

/* =========================
   ABSTIMMUNGS-INFO ANPASSEN
========================= */

/* Status-Linie in der Kreditseite anpassen */
#statusLine {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  border-radius: 10px;
  border-left: 3px solid #ff9800; /* Standard orange, wird durch Klassen überschrieben */
}

/* Hervorhebung für Abstimmungsergebnisse */
.credit-meta div:last-child {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 8px;
  border-radius: 6px;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin-Hinweis */
.admin-note {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 5px;
  color: #ff9800;
  font-style: italic;
}

/* =========================
   KREDIT-BOX HOVER FIX
========================= */

.credit-box {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-radius: 14px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  margin-bottom: 16px;
  overflow: visible; /* WICHTIG: Verhindert Abschneiden */
}

/* OFFEN */
.credit-box.open {
  border-color: #ff9800;
}

.credit-box.open:hover {
  border-color: #ff9800;
  box-shadow: 
    0 0 0 2px rgba(255, 152, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ANGENOMMEN */
.credit-box.accepted {
  border-color: #4caf50;
}

.credit-box.accepted:hover {
  border-color: #4caf50;
  box-shadow: 
    0 0 0 2px rgba(76, 175, 80, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ABGELEHNT */
.credit-box.rejected {
  border-color: #f44336;
}

.credit-box.rejected:hover {
  border-color: #f44336;
  box-shadow: 
    0 0 0 2px rgba(244, 67, 54, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Entfernt - wird oben definiert */

/* Status-Badge Position anpassen */
.credit-status-badge {
  position: absolute;
  top: 12px; /* Innerhalb des Headers */
  right: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.credit-box.open .credit-status-badge {
  background: rgba(255, 152, 0, 0.25);
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #ffb74d;
}

.credit-box.accepted .credit-status-badge {
  background: rgba(76, 175, 80, 0.25);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #a5d6a7;
}

.credit-box.rejected .credit-status-badge {
  background: rgba(244, 67, 54, 0.25);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ef9a9a;
}

/* =========================
   ITEMS FILTER SYSTEM (ÜBERARBEITET)
========================= */

/* Controls Bar */
.items-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin: 20px 0 25px;
  align-items: center;
}

.filter-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.filter-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
  color: #a5d6a7;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
}

.view-toggle {
  display: flex;
  gap: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.view-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
}

.view-btn.active {
  background: rgba(76, 175, 80, 0.3);
  color: #a5d6a7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: rgba(76, 175, 80, 0.5);
}

.clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
}

.clear-search:hover {
  color: #fff;
}

/* Player Selection Container */
.player-selection-container {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.player-selection-container h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
  font-size: 16px;
}

.player-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.player-select-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.player-select-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.player-select-item.selected {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.6);
}

.player-select-avatar {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  margin: 0 auto 5px;
  display: block;
  border-radius: 6px;
}

.player-select-name {
  font-size: 12px;
  color: #fff;
  word-break: break-word;
}

/* Active Filters Display */
.active-filters {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #a5d6a7;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.filter-tag img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.clear-filters-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: rgba(244, 67, 54, 0.2);
  color: #ef9a9a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters-btn:hover {
  background: rgba(244, 67, 54, 0.3);
}

/* Single Player View */
.single-player-view {
  background: rgba(20, 20, 20, 0.9);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.single-player-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.single-player-avatar {
  width: 64px;
  height: 128px;
  image-rendering: pixelated;
  border-radius: 8px;
}

.single-player-info {
  flex: 1;
}

.single-player-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.single-player-stats {
  font-size: 13px;
  color: #aaa;
}

.back-to-grid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.back-to-grid:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Highlight für gesuchte Items */
.item-highlight {
  border: 2px solid #ff9800 !important;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

/* Versteckte Spieler in Grid-Ansicht */
.player-row.hidden {
  display: none;
}

/* =========================
   ITEM HINZUFÜGEN FUNKTION
========================= */

/* Add Item Button */
.add-item-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid rgba(33, 150, 243, 0.5);
  background: rgba(33, 150, 243, 0.1);
  color: #64b5f6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  margin-left: 10px;
}

.add-item-btn:hover {
  background: rgba(33, 150, 243, 0.2);
  transform: translateY(-2px);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 20px;
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  position: relative;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ddd;
  font-size: 14px;
  font-weight: 600;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: rgba(33, 150, 243, 0.5);
}

/* Owner Selection Grid */
.owner-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.owner-select-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.owner-select-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.owner-select-item.selected {
  background: rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.6);
}

.owner-avatar {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  margin: 0 auto 5px;
  display: block;
  border-radius: 6px;
}

.owner-name {
  font-size: 11px;
  color: #fff;
  word-break: break-word;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.login-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(229, 57, 53, 0.9));
  border: 1px solid rgba(244, 67, 54, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none; /* Standardmäßig versteckt */
  animation: shake 0.5s ease-in-out;
}

.btn-submit {
  flex: 2;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(33, 150, 243, 0.3);
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: #90caf9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: rgba(33, 150, 243, 0.5);
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ef9a9a;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(244, 67, 54, 0.5);
}

/* Success/Error Messages */
.message {
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
}

.message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #a5d6a7;
}

.message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #ef9a9a;
}

/* =========================
   GRID-ANSICHTS-ANPASSUNG FÜR 8 MITGLIEDER
========================= */

/* Container für alle Spieler erweitern */
.items-page {
  min-height: calc(100vh - 200px);
}

/* Spieler-Zeilen kompakter machen */
.items-page .player-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #1f1f1f;
  min-height: 150px;
}

/* Avatar kleiner für kompaktere Darstellung */
.items-page .player-avatar {
  width: 90px;  /* Kleinere Box beibehalten */
  height: 180px;  /* Noch höher für Füße */
  flex-shrink: 0;
  text-align: center;
  border: 2px solid transparent;  /* Eckige Umrandung */
  border-radius: 8px;  /* Leicht abgerundete Ecken */
  transition: all 0.3s ease;  /* Hover-Effekt */
  cursor: pointer;
  overflow: hidden;  /* Charakter nicht abschneiden */
}

.items-page .player-avatar:hover {
  border-color: rgba(76, 175, 80, 0.5);  /* Hover-Effekt */
  transform: scale(1.05);  /* Leichte Vergrößerung */
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);  /* Schatten-Effekt */
}

.items-page .player-avatar img {
  width: 60px;  /* Kleiner für bessere Passung */
  height: 180px;  /* An Box-Höhe angepasst */
  image-rendering: pixelated;
  transition: transform 0.3s ease;
  object-fit: contain;  /* Seitenverhältnis beibehalten */
}

.items-page .player-name {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* Items-Grid kompakter */
.items-page .player-items {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  align-content: start;
}

/* Items kleiner und kompakter */
.items-page .team-item {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 80px;
  justify-content: space-between;
}

.items-page .item-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  flex-grow: 1;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.items-page .item-empty {
  font-size: 10px;
  color: #8a8a8a;
  font-style: italic;
}

.items-page .item-holder {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #ffffff;
  flex-shrink: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.items-page .item-holder img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* Hauptcontainer anpassen */
.page-box.items-page {
  max-width: 1400px; /* Breiter als vorher */
  margin: 20px auto; /* Weniger Abstand oben/unten */
  padding: 20px 25px; /* Weniger Padding */
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

/* Wenn zu viele Items pro Spieler, Scrollbar im Items-Grid */
.items-page .player-items {
  max-height: 140px;
  overflow-y: auto;
  padding-right: 5px;
}

.items-page .player-items::-webkit-scrollbar {
  width: 4px;
}

.items-page .player-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.items-page .player-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Responsive für kleinere Bildschirme */
@media (max-width: 1200px) {
  .page-box.items-page {
    max-width: 95%;
  }
  
  .items-page .player-items {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (max-width: 768px) {
  .items-page .player-row {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }
  
  .items-page .player-avatar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .items-page .player-avatar img {
    width: 48px;
    height: 96px;
  }
  
  .items-page .player-name {
    font-size: 14px;
    max-width: none;
  }
}

/* =========================
   LEERE ITEMS ANZEIGE
========================= */

.no-items-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #8a8a8a;
  font-style: italic;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-items {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: #8a8a8a;
  font-style: italic;
}

.no-results {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* =========================
   ITEM ENTFERNEN X-BUTTON (NEUES DESIGN)
========================= */

/* Item-Header mit Name und X-Button nebeneinander */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  position: relative;
  min-height: 32px;
}

.item-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 40px; /* Platz für X-Button */
  line-clamp: 2;
}

/* Entfernen-Button in der Item-Box (neben dem Namen) */
.remove-item-btn {
  position: absolute;
  top: -2px;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  line-height: 1;
}

.remove-item-btn:hover {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
  color: #ff8a80;
  opacity: 1;
  transform: scale(1.1);
}

/* Admin-Button in Blau */
.remove-item-btn.admin-only {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.2);
  color: rgba(144, 202, 249, 0.8);
}

.remove-item-btn.admin-only:hover {
  background: rgba(33, 150, 243, 0.25);
  border-color: rgba(33, 150, 243, 0.4);
  color: #90caf9;
}

/* Container für Item-Inhalte */
.team-item {
  position: relative;
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 8px 10px 6px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 70px;
}

/* Bessere Hover-Effekte für gesamtes Item */
.team-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1a1a1a;
}

.team-item:hover .remove-item-btn {
  opacity: 0.8;
}

/* Hover-Effekt für Item-Name in kompakter Ansicht */
.team-item:hover .item-name {
  color: #ff9800;
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

/* =========================
   MODERNER BESTÄTIGUNGSDIALOG (MITTIG ZENTRIERT)
========================= */

/* Overlay für Dialog */
.delete-modal-overlay,
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

/* Spezifische Regel für Confirm-Modal - höchste Priorität */
div.confirm-modal {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98)) !important;
  border-radius: 20px !important;
  width: 420px;
  max-width: 90vw;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

/* Zusätzliche Regel für alle Elemente mit confirm-modal Klasse */
[class*="confirm-modal"] {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98)) !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Moderner Dialog-Container */
.delete-modal,
.confirm-modal {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98)) !important;
  border-radius: 20px !important;
  width: 420px;
  max-width: 90vw;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Content */
.delete-modal-content,
.confirm-modal-content {
  padding: 32px 28px;
  text-align: center;
}

/* Modal Header */
.delete-modal-content h3,
.confirm-modal-content h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal Message */
.delete-modal-content p,
.confirm-modal-content p {
  margin: 0 0 28px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Modal Actions */
.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-primary {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.confirm-btn-primary {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.confirm-btn-primary:hover {
  background: linear-gradient(135deg, #45a049 0%, #43a047 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .delete-modal,
  .confirm-modal {
    width: 90vw;
    margin: 16px;
  }
  
  .delete-modal-content,
  .confirm-modal-content {
    padding: 24px 20px;
  }
  
  .delete-modal-content h3,
  .confirm-modal-content h3 {
    font-size: 18px;
  }
  
  .delete-modal-content p,
  .confirm-modal-content p {
    font-size: 14px;
  }
  
  .confirm-btn {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 80px;
  }
}

/* Dialog-Header */
.delete-modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.delete-modal-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delete-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Dialog-Body */
.delete-modal-body {
  padding: 24px 28px;
}

/* Item-Info Box */
.delete-item-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-label {
  min-width: 80px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.info-value {
  color: #fff;
  font-weight: 500;
}

.info-value.player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-value.player img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.warning-box {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #ff8a80;
  line-height: 1.5;
}

.warning-box strong {
  color: #ff5252;
  font-weight: 600;
}

/* Dialog-Actions (Buttons) */
.delete-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.delete-modal-btn {
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.delete-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.delete-modal-btn:active {
  transform: translateY(0);
}

/* Abbrechen Button */
.delete-cancel-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.delete-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Bestätigen Button */
.delete-confirm-btn {
  background: linear-gradient(145deg, rgba(244, 67, 54, 0.9), rgba(229, 57, 53, 0.9));
  border: 1px solid rgba(244, 67, 54, 0.6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.delete-confirm-btn:hover {
  background: linear-gradient(145deg, rgba(244, 67, 54, 1), rgba(229, 57, 53, 1));
  border-color: rgba(244, 67, 54, 0.8);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.delete-confirm-btn.admin {
  background: linear-gradient(145deg, rgba(33, 150, 243, 0.9), rgba(30, 136, 229, 0.9));
  border: 1px solid rgba(33, 150, 243, 0.6);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.delete-confirm-btn.admin:hover {
  background: linear-gradient(145deg, rgba(33, 150, 243, 1), rgba(30, 136, 229, 1));
  border-color: rgba(33, 150, 243, 0.8);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
  .delete-modal {
    width: 95vw;
    border-radius: 16px;
  }
  
  .delete-modal-header,
  .delete-modal-body {
    padding: 20px;
  }
  
  .delete-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ITEMS - NEUES LAYOUT FÜR BUTTONS
========================= */

/* Container für die Suchleiste und Buttons in einer Reihe */
.items-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0 25px;
  flex-wrap: wrap;
}

.filter-container {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 0 1 auto;
}

.search-container {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  position: relative;
}

.action-buttons-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

/* Gemeinsame Button-Styles für beide Buttons */
.action-buttons-row button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

/* "Item hinzufügen" Button */
.add-item-btn {
  background: rgba(33, 150, 243, 0.3);
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: #64b5f6;
}

.add-item-btn:hover {
  background: rgba(33, 150, 243, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* "Items zurücklegen" Button */
#returnAllBtn {
  background: rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ef9a9a;
}

#returnAllBtn:hover {
  background: rgba(244, 67, 54, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .items-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .action-buttons-row {
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    width: 100%;
  }
  
  .search-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .action-buttons-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-buttons-row button {
    width: 100%;
  }
}

/* =========================
   KALENDER STYLES
   ========================= */
.page-box.kalender-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px 34px;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.kalender-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.kalender-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  height: 80px; /* Feste Höhe wie andere Navigationen */
}

.kalender-title h2 {
  color: #fff;
  font-size: 24px; /* Kleinere Schrift wie andere Seiten */
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kalender-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 13px;
}

.kalender-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 40px; /* Feste Höhe für Ausrichtung */
}

.kalender-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px; /* Kleinere Padding */
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  height: 36px; /* Feste Höhe */
  display: flex;
  align-items: center;
  justify-content: center;
}

.kalender-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.kalender-current-month {
  color: #fff;
  font-size: 16px; /* Kleinere Schrift */
  font-weight: 600;
  min-width: 120px; /* Kleinere Breite */
  text-align: center;
  height: 36px; /* Feste Höhe */
  display: flex;
  align-items: center;
  justify-content: center;
}

.kalender-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.kalender-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.weekday {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: 10px;
  font-size: 14px;
}

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.kalender-day {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px;
  min-height: 80px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kalender-day:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.kalender-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.kalender-day.empty:hover {
  transform: none;
  box-shadow: none;
}

.day-number {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.kalender-day.has-player {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.5);
}

.player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   KALENDER MODAL
   ========================= */
.kalender-modal {
  max-width: 500px;
  width: 90%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  color: #fff;
  margin: 0;
  font-size: 20px;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  font-size: 14px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.player-select-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.player-select-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.player-select-item.selected {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.6);
}

.player-select-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 5px;
}

.player-select-name {
  color: #fff;
  font-size: 12px;
  word-break: break-all;
}

/* =========================
   KALENDER NOTIZ STYLES
   ========================= */
.note-section {
  margin-bottom: 20px;
}

.note-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.note-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
  transition: all 0.3s ease;
}

.note-input:focus {
  outline: none;
  border-color: rgba(76, 175, 80, 0.5);
}

/* =========================
   STRAFKATALOG STYLES
   ========================= */
.page-box.strafkatalog-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px 34px;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.kalender-day.has-strafe {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.5);
}

.strafe-indicator {
  background: rgba(244, 67, 54, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
}

.strafen-section {
  margin-bottom: 20px;
}

.strafen-section h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.strafen-list {
  max-height: none;
  overflow: visible;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 15px;
}

.strafe-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.strafe-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.strafe-item-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.strafe-item-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.strafe-item-name {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.strafe-item-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.strafe-item-select {
  min-width: 120px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strafe-item-select:hover {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.strafe-item-select:focus {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

.strafe-item-select option {
  background: #2a2a2a;
  color: #fff;
  padding: 4px;
}

.strafe-item-note {
  flex: 1;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 12px;
  min-height: 32px;
  resize: none;
  transition: all 0.2s ease;
}

.strafe-item-note:focus {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

.strafe-item-note::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.strafe-item-remove {
  background: rgba(244, 67, 54, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 12px;
  transition: all 0.2s ease;
}

.strafe-item-remove:hover {
  background: rgba(244, 67, 54, 1);
  transform: scale(1.1);
}

.add-strafe-section {
  text-align: center;
  margin-top: 15px;
}

.btn-add-strafe {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-add-strafe:hover {
  background: rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.btn-add-strafe:disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
}

.strafe-section {
  margin-bottom: 20px;
}

.strafe-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.strafe-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.strafe-input:focus {
  outline: none;
  border-color: rgba(244, 67, 54, 0.5);
}

.strafe-input option {
  background: #333;
  color: #fff;
}

.strafe-amount-display {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.selected-players-section {
  margin-bottom: 20px;
}

.selected-players-section h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.selected-players-list {
  min-height: 40px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(10px);
}

.no-players-selected {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
  margin: 0;
  padding: 10px 0;
}

.selected-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  border-radius: 20px;
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  color: #fff;
}

.selected-player-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.selected-player-chip span {
  font-weight: 500;
}

.remove-player-chip {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-player-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary {
  flex: 2;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 152, 0, 0.3);
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #ff9800;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 152, 0, 0.4);
  transform: translateY(-2px);
}

.btn-cancel {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.player-avatars {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2px;
}

.more-players {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
}

.day-note {
  background: rgba(255, 193, 7, 0.8);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  text-align: center;
  position: absolute;
  top: 5px;
  right: 5px;
}

.day-note:hover {
  background: rgba(33, 150, 243, 1);
  transform: scale(1.1);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: baseline;
}

.btn-primary {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #ee5a24;
  transform: translateY(-1px);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* =========================
   KALENDER RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .page-box.kalender-page {
    padding: 10px;
  }
  
  .kalender-page {
    padding: 10px;
  }
  
  .kalender-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .kalender-controls {
    justify-content: center;
  }
  
  .kalender-container {
    padding: 10px;
  }
  
  .kalender-weekdays,
  .kalender-grid {
    gap: 5px;
  }
  
  .kalender-day {
    min-height: 60px;
    padding: 5px;
  }
  
  .day-number {
    font-size: 14px;
  }
  
  .player-avatar {
    width: 20px;
    height: 20px;
  }
  
  .player-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
  }
  
  .player-select-avatar {
    width: 24px;
    height: 24px;
  }
  
  .player-select-name {
    font-size: 10px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-cancel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-box.regeln-page {
    padding: 10px;
  }
  
  .page-box.kalender-page {
    padding: 10px;
  }
  
  .page-box.strafkatalog-page {
    padding: 10px;
  }
  
  .kalender-title h2 {
    font-size: 24px;
  }
  
  .kalender-controls {
    gap: 10px;
  }
  
  .kalender-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .kalender-current-month {
    font-size: 16px;
    min-width: 120px;
  }
  
  .weekday {
    font-size: 12px;
    padding: 8px;
  }
  
  .kalender-day {
    min-height: 50px;
    padding: 3px;
  }
  
  .day-number {
    font-size: 12px;
  }
  
  .player-avatar {
    width: 18px;
    height: 18px;
  }
}

/* =========================
   NAVIGATION AKTIV STATUS
   ========================= */
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Strafkatalog-Button speziell behandeln */
.nav-link.active[href="strafkatalog.html"] {
  color: #fff !important;
  background: rgba(244, 67, 54, 0.3) !important;
}

/* Kalender-Button speziell behandeln */
.nav-link.active[href="kalender.html"] {
  color: #fff !important;
  background: #2e2e2e !important;
}

/* Regeln-Button speziell behandeln */
.nav-link.active[href="regeln.html"] {
  color: #fff !important;
  background: rgba(76, 175, 80, 0.3) !important;
}

/* =========================
   KALENDER MEHRPERSONEN STYLES
   ========================= */

/* Mehrere Spieler-Avatare im Kalendertag */
.player-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin-top: 4px;
}

.player-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-players {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Ausgewählte Spieler Section */
.selected-players-section {
  margin: 20px 0;
  padding: 15px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.selected-players-section h4 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.selected-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  align-items: center;
}

.no-players-selected {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* Spieler-Chips */
.selected-player-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 4px 8px 4px 4px;
  color: white;
  font-size: 12px;
  transition: all 0.2s ease;
}

.selected-player-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.selected-player-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.selected-player-chip span {
  font-weight: 500;
}

.remove-player-chip {
  background: rgba(255, 67, 54, 0.8);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: white;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.remove-player-chip:hover {
  background: rgba(255, 67, 54, 1);
  transform: scale(1.1);
}

/* Player Selection Items mit Mehrfach-Auswahl */
.player-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
}

.player-select-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.player-select-item.selected {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.player-select-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-select-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-select-name {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

/* Kalendertage mit mehreren Spielern */
.kalender-day.has-player {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(33, 150, 243, 0.3));
  border-color: rgba(76, 175, 80, 0.5);
}

.kalender-day.has-player:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(33, 150, 243, 0.4));
  transform: translateY(-2px);
}

/* Modal Anpassungen für Mehrpersonen */
.kalender-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  max-height: none;
  overflow: visible;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .page-box.strafkatalog-page {
    padding: 15px;
  }
  
  .page-box.kalender-page {
    padding: 15px;
  }
  
  .player-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  
  .selected-players-list {
    min-height: 40px;
  }
  
  .selected-player-chip {
    font-size: 11px;
    padding: 3px 6px 3px 3px;
  }
  
  .selected-player-chip img {
    width: 14px;
    height: 14px;
  }
  
  .remove-player-chip {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
  
  .player-select-item {
    padding: 10px;
  }
  
  .player-select-avatar {
    width: 28px;
    height: 28px;
  }
  
  .player-select-name {
    font-size: 13px;
  }
}

/* Regeln-Button speziell behandeln */
.nav-link.active[href="regeln.html"] {
  color: #fff !important;
  background: rgba(76, 175, 80, 0.3) !important;
}

/* =========================
   MARKTPLATZ ITEM CARD STYLES
========================= */
.item-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.item-title {
  flex: 1;
}

.item-title h4 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.item-player-heads {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.item-player-heads img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.item-player-heads img:hover {
  transform: scale(1.2);
}

.item-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.price-buy {
  color: #4CAF50;
  font-weight: 600;
  font-size: 14px;
}

.price-sell {
  color: #f44336;
  font-weight: 600;
  font-size: 14px;
}

.price-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

.price-up {
  color: #4CAF50;
}

.price-down {
  color: #f44336;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* =========================
   MARKTPLATZ PAGE STYLES
========================= */

/* OPSUCHT Marktplatz Dashboard Styles */
body.marktplatz-page {
  background: url("background_items.png") center / cover no-repeat;
}

/* Markt Dashboard Styles */
.market-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.market-header {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.market-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.market-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin: 0;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #4CAF50;
  margin: 8px 0 4px 0;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.market-controls {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
}

.search-box::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.refresh-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.market-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
}

.items-grid {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  max-height: 800px;
  overflow-y: auto;
}

.items-grid::-webkit-scrollbar {
  width: 8px;
}

.items-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.items-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.item-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
}

.item-category {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.item-prices {
  text-align: right;
}

.price-buy {
  color: #4CAF50;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.price-sell {
  color: #f44336;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.price-change {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.price-up {
  color: #4CAF50;
}

.price-down {
  color: #f44336;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-movers {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mover-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mover-item:last-child {
  border-bottom: none;
}

.mover-name {
  font-size: 14px;
  color: white;
}

.mover-change {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.alert-panel {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.alert-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-size: 14px;
}

.alert-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.alert-btn {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  border: none;
  border-radius: 8px;
  padding: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.alert-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.loading {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
}

.error {
  text-align: center;
  padding: 40px;
  color: #f44336;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .market-content {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .market-dashboard {
    padding: 12px;
    gap: 12px;
  }
  
  .market-controls {
    flex-direction: column;
  }
  
  .search-box {
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
  }
}

/* Marktplatz-Button speziell behandeln */
.nav-link.active[href="marktplatz.html"] {
  color: #fff !important;
  background: rgba(76, 175, 80, 0.3) !important;
}

/* =========================
   ITEM DETAILS MODAL STYLES
========================= */
.item-details-modal {
  max-width: 600px;
  width: 90%;
}

.item-info-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
}

.item-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.item-modal-details h3 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.item-modal-category {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px 0;
  font-size: 14px;
}

.item-modal-prices {
  display: flex;
  gap: 16px;
}

.price-buy-modal,
.price-sell-modal {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.price-buy-modal {
  color: #4CAF50;
}

.price-sell-modal {
  color: #f44336;
}

.item-modal-players {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.item-modal-player-head {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
}

.item-modal-player-head:hover {
  transform: scale(1.1);
}

.item-players-section {
  margin-bottom: 20px;
}

.item-players-section h3 {
  color: white;
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.players-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.player-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-info {
  flex: 1;
}

.player-name {
  color: white;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.player-amount {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.player-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-style: italic;
  margin: 0;
}

.player-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  margin: 4px 0 0 0;
  font-style: italic;
}

.player-actions {
  display: flex;
  gap: 8px;
}

.player-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.player-action-btn.delete-btn {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
}

.player-action-btn.delete-btn:hover {
  background: rgba(244, 67, 54, 0.3);
}

.item-entry-section h3 {
  color: white;
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-size: 14px;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #333;
  color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-submit {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================
   REGELN PAGE STYLES
========================= */
.page-box.regeln-page {
  max-width: 1000px;
  margin: 30px auto;
  padding: 30px 34px;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.regeln-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.regeln-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.regeln-header .page-title {
  color: #fff;
  font-size: 28px;
  margin: 0;
  flex: 1;
}

.regeln-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.last-updated {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-style: italic;
}

.edit-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.edit-btn:hover {
  background: linear-gradient(135deg, #45a049, #4CAF50);
  transform: translateY(-2px);
}

.regeln-container {
  background: rgba(20, 20, 20, 0.9);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
}

.regel-section {
  margin-bottom: 30px;
}

.regel-section:last-child {
  margin-bottom: 0;
}

.regel-section h2 {
  color: #4CAF50;
  font-size: 22px;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

.regel-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.regel-content p {
  margin: 0 0 10px 0;
  display: flex;
  align-items: flex-start;
}

.regel-content p:last-child {
  margin-bottom: 0;
}

.changes-container {
  background: rgba(20, 20, 20, 0.9);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.changes-container h2 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 20px 0;
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.change-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  border-left: 4px solid #4CAF50;
}

.change-date {
  color: #4CAF50;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.change-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
  line-height: 1.4;
}

.change-author {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-style: italic;
}

/* =========================
   REGELN MODAL STYLES
   ========================= */
.regeln-modal {
  max-width: 800px;
  width: 90%;
}

.regeln-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 400px;
  font-family: inherit;
}

.regeln-textarea:focus {
  outline: none;
  border-color: rgba(76, 175, 80, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.regeln-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================
   REGELN RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .page-box.regeln-page {
    padding: 15px;
  }
  
  .regeln-page {
    padding: 10px;
  }
  
  .regeln-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .regeln-header .page-title {
    font-size: 24px;
  }
  
  .regeln-meta {
    align-items: center;
  }
  
  .regeln-container {
    padding: 20px;
  }
  
  .regel-section h2 {
    font-size: 20px;
  }
  
  .changes-container {
    padding: 15px;
  }
  
  .regeln-modal {
    width: 95%;
    max-width: none;
  }
  
  .regeln-textarea {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .regeln-header .page-title {
    font-size: 20px;
  }
  
  .regel-section h2 {
    font-size: 18px;
  }
  
  .regeln-container {
    padding: 15px;
  }
  
  .regel-content p {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .change-item {
    padding: 10px;
  }
}
