/* ===========================================
   MOBILE DESIGN FÜR TTSF-GLEHN MITGLIEDERBEREICH
   =========================================== */
@media only screen and (max-width: 768px) {

  body {
    font-size: 16px;
    overflow-x: hidden;
    background-attachment: fixed;
  }

  /* ===== Menü / Navigation ===== */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 3000;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    font-size: 26px;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #002b5c, #ff6600);
    padding: 60px 20px 20px;
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    transition: left 0.35s ease;
  }

  .navbar.open {
    left: 0;
  }

  .navbar a {
    color: white !important;
    text-decoration: none;
    padding: 12px 8px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  /* ===== Layout & Karten ===== */
  .card {
    margin-top: 70px !important;
    padding: 14px !important;
    border-radius: 12px;
  }

  /* Tabellen → aufklappbare Blöcke */
  table { width: 100%; border-collapse: collapse; }
  thead { display: none; }

  tbody tr {
    display: block;
    background: rgba(0,0,0,0.3);
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none !important;
  }

  tbody td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #ffb84d;
  }

  /* ===== Buttons & Inputs ===== */
  .btn, button, select, input, textarea {
    font-size: 16px !important;
    padding: 10px 12px !important;
    border-radius: 8px;
  }

  button, .btn {
    width: 100%;
    margin-top: 4px;
  }

  /* ===== CHAT ===== */
  #chatbox {
    height: 60vh !important;
    overflow-y: auto !important;
    font-size: 15px;
    margin-bottom: 80px;
  }

  #chatForm {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    padding: 8px;
    z-index: 2500;
    display: flex;
    gap: 8px;
  }

  #chatForm input {
    flex: 1;
    font-size: 16px;
    border-radius: 6px;
  }

  /* ===== KALENDER ===== */
  #calendar {
    width: 100% !important;
    min-height: 600px !important;
  }

  .fc-toolbar-title {
    font-size: 1.1em !important;
  }

  .fc-button {
    padding: 4px 6px !important;
    font-size: 13px !important;
  }

  /* ===== MODAL (Termindetails) ===== */
  .modal {
    align-items: flex-start !important;
    padding-top: 60px;
  }

  .modal-content {
    width: 92% !important;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.4em;
  }

  .modal-content h3 {
    font-size: 1.2em;
  }

  .modal-content button {
    margin-top: 8px;
  }

  /* ===== Scrollbar für mobile Chats ===== */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 6px; }

}
/* ========== MOBILE EVENT-MODAL ========== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}
.modal-content {
  background: linear-gradient(145deg, #1e2a3a, #ff6600);
  color: white;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  overflow-y: auto;
  max-height: 85vh;
}
.modal-content h2 {
  margin-bottom: 10px;
}
.response-buttons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}
.response-buttons button {
  flex: 1;
  min-width: 100px;
  padding: 14px 10px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
.btn-yes { background: #2ecc71; }
.btn-no { background: #e74c3c; }
.btn-maybe { background: #f1c40f; color: #333; }

.participants {
  list-style: none;
  padding: 0;
  margin: 0;
}
.participants li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
/* === FullCalendar Styling für TTSF Glehn === */

.fc {
  color: #f5f2e8; /* zartes Hellbeige statt Weiß */
  font-family: "Segoe UI", Arial, sans-serif;
  background: transparent;
}

.fc-toolbar-title {
  color: #ffb84d; /* gold/orange Überschrift */
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.fc-col-header-cell-cushion {
  color: #ffcc80; /* Wochenüberschriften gold */
  font-weight: bold;
}

.fc-daygrid-day-number {
  color: #f0e0b0; /* Dezente Zahlen in gold */
  font-weight: 500;
}

/* Rahmenfarben */
.fc-theme-standard td, .fc-theme-standard th {
  border-color: rgba(255, 160, 50, 0.4);
}

.fc-theme-standard .fc-scrollgrid {
  border: 1px solid rgba(255, 160, 50, 0.5);
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(3px);
}

/* Heute-Markierung */
.fc-day-today {
  background: rgba(255, 120, 0, 0.25) !important;
  border: 1px solid rgba(255, 180, 50, 0.7);
}

/* Buttons oben */
.fc-button-primary {
  background-color: rgba(0, 30, 80, 0.9);
  border: 1px solid #ff6600;
  color: #ffcc99;
  text-shadow: none;
}

.fc-button-primary:hover {
  background-color: #ff6600;
  border-color: #ffcc99;
  color: #fff;
}

/* Event-Texte */
.fc-event {
  background: rgba(255, 150, 0, 0.15);
  border: 1px solid rgba(255, 160, 0, 0.6);
  border-radius: 6px;
  padding: 2px 4px;
}

.fc-event-title {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.fc-event-time {
  color: #ffcc66;
  font-weight: 500;
}

/* Legende */
.legend-container {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #ffcc80;
}
.legend-container span {
  margin: 0 8px;
}
/* === Formular- und Tabellen-Design für Mitgliederbereich === */
input[type="text"],
input[type="password"],
select {
  background: rgba(0, 0, 0, 0.4);
  color: #ffe6b3;
  border: 1px solid rgba(255, 150, 0, 0.7);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  background: rgba(255, 140, 0, 0.2);
  border-color: #ff9933;
  box-shadow: 0 0 8px rgba(255, 153, 51, 0.6);
}

/* Buttons */
button,
input[type="submit"],
.btn {
  background: linear-gradient(90deg, #ff6600, #ff9933);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: linear-gradient(90deg, #ff9933, #ffaa33);
  box-shadow: 0 0 10px rgba(255, 150, 0, 0.7);
}

/* Tabellen */
table {
  border-collapse: collapse;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff3d1;
  border-radius: 10px;
  overflow: hidden;
}
th {
  background: rgba(0, 0, 0, 0.5);
  color: #ffcc80;
  border-bottom: 2px solid rgba(255, 150, 0, 0.5);
}
td {
  border-bottom: 1px solid rgba(255, 150, 0, 0.2);
  padding: 8px;
}
tr:hover {
  background: rgba(255, 153, 51, 0.15);
  transition: 0.3s ease;
}

/* Rollen farblich */
.role-admin {
  color: #ff6600;
  font-weight: bold;
}
.role-member {
  color: #ffe6b3;
}
.role-captain {
  color: #33ccff;
  font-weight: bold;
}

/* Responsive Tabelle */
@media only screen and (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Dropdown-Design vereinheitlichen */
select {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.95em;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #ff8a00;
  box-shadow: 0 0 6px rgba(255, 138, 0, 0.8);
}

/* Optionen im Dropdown-Menü */
option {
  background-color: #222;   /* dunkler Hintergrund */
  color: #fff;              /* helle Schrift */
}

/* Hover-/Aktivzustand */
option:hover, option:checked {
  background-color: #ff8a00;
  color: #000;
}
