:root {
  --vereinsgelb: #FFD700;
  --vereinsschwarz: #000000;
  --vereinsgrau: #e5e5e5;
  --vereinsdunkelgrau: #2c2c2c;
}

body {
  background-color: var(--vereinsgrau);
  color: var(--vereinsschwarz);
  font-family: 'TikTok Sans', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px; /* Feste Höhe */
  background-color: var(--vereinsdunkelgrau);
  color: var(--vereinsgelb);
  padding: 0 1rem; /* horizontal */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 10000;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

main#view-container {
  margin-top: 1rem; /* etwas Abstand unter Navigation */
  padding: 1rem;
}

.logout-btn {
  margin-left: auto;
  margin-right: 1.5rem;
  padding: 0.2rem 0.5rem;
  background-color: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  border: none;
  border-radius: 1.5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
}

.logout-btn:hover {
  background-color: var(--vereinsschwarz);
  color: var(--vereinsgelb);
}

/* Wenn Burger-Menü aktiv ist UND Bildschirm schmal */
@media (max-width: 768px) {
  .logout-btn {
    transform: translateX(-3rem);
  }
}

/* Navigation */

nav#nav-menu {
  position: relative;
  background-color: var(--vereinsschwarz);
  margin-top: 56px; /* Abstand, damit unter Header */
  z-index: 1000;
  width: 100%;
}

/* Hauptmenü als horizontale Leiste (Desktop) */

nav#nav-menu > ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menüeinträge */
nav#nav-menu li {
  position: relative;
}

/* Oberpunkt-Buttons */
.nav-btn {
  display: block;
  background-color: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  border: none;
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
	font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.nav-btn:hover {
  background-color: var(--vereinsgelb);
  color: var(--vereinsschwarz);
}

/* Untermenü (Desktop) */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--vereinsschwarz);
  display: none;
  min-width: 180px;
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Untermenü anzeigen, wenn aktiv */
.submenu.active {
  display: flex;
}

/* Untermenü-Listelemente */
.submenu li {
  width: 100%;
  border-left: none;  /* Entfernt linken schwarzen Streifen */
  padding-left: 0;    /* Entfernt Einrückung */
  margin: 0;
}

/* Unterpunkt-Buttons */
.nav-sub-btn {
  display: block;
  background-color: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  border: none;
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s;
  border-left: none !important;
  box-shadow: none !important;
}

.nav-sub-btn:hover {
  background-color: var(--vereinsgelb);
  color: var(--vereinsschwarz);
}

/* Burger Button */
.burger-btn {
  display: none; /* Nur mobil sichtbar */
  position: absolute;
  margin-right: 15px;
  top: 8px;
  right: 8px;
  width: 40px; /* größerer Button */
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 11000;
  padding: 0;
}

/* Linien (Hamburger Striche) */
.burger-btn div {
  width: 17px;      /* größere Breite */
  height: 2px;      /* höhere Linien */
  background-color: var(--vereinsgelb);
  margin: 3px 0;    /* mehr Abstand zwischen Linien */
  transition: 0.4s;
}

/* Responsive Styles für mobile */

@media (max-width: 768px) {
  /* Burger-Button einblenden */
  .burger-btn {
    display: block;
  }

  /* Navigation als seitliches Menü, standardmäßig versteckt */
  nav#nav-menu {
    position: fixed;
    top: 0px; /* Direkt unter Header (Header ist 56px hoch) */
    left: 0;
    width: 80%;
    max-width: 200px;
    height: calc(100vh - 56px);
    background-color: var(--vereinsschwarz);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 6px rgba(0,0,0,0.5);
  }

  /* Menü sichtbar, wenn active */
  nav#nav-menu.active {
    transform: translateX(0);
  }

  /* Vertikale Liste */
  nav#nav-menu > ul {
    flex-direction: column;
  }

  /* Oberpunkte volle Breite */
  .nav-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 2rem;
  }

  /* Untermenü mobil unter dem Überpunkt */
  .submenu {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    background-color: var(--vereinsschwarz);
    padding-left: 1rem;
  }

  .submenu.active {
    display: flex;
  }

  /* Unterpunkte mobil leicht eingerückt, volle Breite */
  .nav-sub-btn {
    padding-left: 3rem;
    font-size: 1rem;
  }
	
  main#view-container {
  margin-top: 4rem; /* etwas Abstand unter Navigation */
  padding: 1rem;
 }
}

/* Login-Page */

.login-wrapper {
  display: flex;
  align-items: center;     /* vertikal */
  justify-content: center; /* horizontal */
  min-height: calc(75vh - 56px);
  margin-top: 56px;
}

.login-box {
  background: #fff;
  padding: 2rem;
  margin-top: 56px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 350px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--vereinsschwarz);
}

.login-box input {
  width: 95%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.login-box button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.login-box button:hover {
  background-color: var(--vereinsgelb);
  color: var(--vereinsschwarz);
}

.pass-reset-link {
  text-align: right;
  margin-top: -0.5rem;
  font-size: 0.9rem;
}

.pass-reset-link a {
  color: var(--vereinsschwarz);
  text-decoration: underline;
  transition: color 0.3s;
}

.pass-reset-link a:hover {
  color: var(--vereinsgelb);
}

/* Registrieren-Button */
.register-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  padding: 0.75rem 1.7rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,0.10);
  transition: 
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s,
    transform 0.12s;
  margin: 0.7em 0;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  box-shadow: 0 3px 16px #ffd70080;
  outline: none;
  transform: scale(1.04) translateY(-2px);
}


/* EVENTS */

.event-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.event-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.event-view h2 {
  text-align: center;
  margin-top: 1rem;
  color: var(--vereinsschwarz);
}

.event-box {
  background-color: #fff;
  border-left: 6px solid var(--vereinsgelb);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  border-radius: 6px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  .event-box {
    overflow-x: auto;
    display: block;
    /* Wenn du willst, max-width auf 100vw: */
    max-width: 100vw;
  }
}
.event-title {
  text-align: center;
  text-decoration: underline;
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: var(--vereinsschwarz);
}

/* Rückmelde-Buttons in einer Zeile */
.event-actions {
  display: flex;
  align-items: center;
  gap: 0.6em;
  justify-content: space-evenly;
  margin-top: 1.2em;
  width: 100%;
	min-width: 320px;
}

.event-times {
  min-width: 320px; /* Damit in kleinen Boxen nichts umbrechen MUSS */
}

/* Rückmelde-Buttons Standarddesign */
.btn-small {
  min-width: 92px;
  padding: 0.55rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  background: #f3f3f3;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.18s;
  margin-right: 0.5em;
}
.btn-small:last-child {
  margin-right: 0;
}
.btn-small:not(.selected):hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 2px 10px rgba(34,34,0,0.12);
  transform: translateY(-1px) scale(1.03);
}
.btn-small.selected.zusage {
  background: #16a34a;
  color: #fff;
  border: 2px solid #16a34a;
  box-shadow: 0 2px 8px #16a34a40;
}
.btn-small.selected.absage {
  background: #dc2626;
  color: #fff;
  border: 2px solid #dc2626;
  box-shadow: 0 2px 8px #dc262640;
}
.btn-small.selected.unsicher {
  background: #eab308;
  color: #fff;
  border: 2px solid #eab308;
  box-shadow: 0 2px 8px #eab30840;
}
.btn-small:disabled,
.btn-small.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #ccc !important;
  color: #888 !important;
  border: none !important;
  box-shadow: none !important;
}

.btn-feedbacks {
  background: #f6f6f6;
  color: #4b4b4b;
  border: 1.3px solid #FFD700;
  border-radius: 16px;
  padding: 0.4rem 1.2rem;
  font-weight: bold;
  font-size: 0.90rem;
  transition: background 0.2s, color 0.2s, border 0.18s, transform 0.16s;
  margin-left: 0.5em;
  margin-bottom: 1em;
}
.btn-feedbacks:hover {
  background: var(--vereinsgelb);
  color: #000;
  transform: scale(1.06);
}

@media (max-width: 400px) {
  .btn-zusage,
  .btn-absage,
  .btn-unsicher,
  .btn-feedbacks{
    /* Nur Icon anzeigen, Text verstecken */
    font-size: 1.2em;
    width: 2.3em;
    min-width: 0;
    padding: 0.4em 0;
    text-indent: -9999px;  /* Text „ausblenden“ */
    position: relative;
  }
  .btn-zusage::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 1.3em;
  }
  .btn-absage::after {
    content: "╳";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 1.3em;
  }
  .btn-unsicher::after {
    content: "?";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 1.3em;
  }
  .btn-feedbacks::after {
    content: "👥";
    position: absolute;
	justify-conent: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    font-size: 1.4em;
	}
}

/* Kommentarbereich */
.response-comment-area {
  margin-top: 0.75rem;
  background: #f8f8e6;
  border-radius: 6px;
  padding: 0.5rem;
  border: 1px solid #eee09e;
}
.response-comment-area textarea {
  width: 90%;
  resize: none;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0.15rem;
  font-size: 1rem;
  font-family: inherit;
}

/* --- Popup zentral auf der Seite --- */
.feedback-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 360px;
  max-width: 97vw;
  max-height: 80vh;
  z-index: 2000;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.28);
  padding: 1.1em 1.3em 1em 1.3em;
  border: 2px solid #ffd700;
  display: flex;
  flex-direction: column;
}
.feedback-popup-inner {
  overflow-y: auto;
  flex: 1;
}
.feedback-popup h4 {
  margin: 0 0 1em 0;
  font-size: 1.2em;
}
.feedback-gruppe ul {
  margin: 0 0 1em 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
}
.feedback-gruppe strong {
  font-size: 1em;
}
.feedback-kommentar {
  color: #888;
  font-style: italic;
  margin-left: 0.5em;
  font-size: 0.97em;
}
.btn-feedback-close {
  background: transparent !important;
  color: #dc2626 !important;
  border: none !important;
  font-size: 1em;
  float: right;
  margin-left: 0.7em;
  cursor: pointer;
}

@media (max-width: 500px) {
  .feedback-popup { width: 98vw; }
}

/* Getränke & Speisen buchen */

.booking-view {
  max-width: 480px;
  margin: 1.5em auto 2.5em auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 1.8em 1.5em 1.2em 1.5em;
  overflow-x: auto;
}
.booking-view h2 {
  text-align: center;
  color: var(--vereinsschwarz);
  margin-top: 0;
  margin-bottom: 1.1em;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.product-table {
  width: 80%;
  table-layout: fixed;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  background: #fcfcfc;
  overflow: hidden;
}

@media (max-width: 600px) {
  .product-table {
    font-size: 0.90em;
    min-width: 350px; /* Damit nicht zu breit für ganz kleine Geräte */
  }
}
.product-table th:nth-child(1),
.product-table td:nth-child(1) {  /* Datum-Spalte */
  white-space: nowrap;
}
.product-table th, .product-table td {
  padding: 0.4em 0.55em;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}
.product-table th {
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  font-size: 1.05em;
  border-bottom: 2px solid #ddd;
  padding: 0.4em 0.55em;
  text-align: center;
  white-space: nowrap;
  overflow: clip;
}
.product-table tr:nth-child(even) td {
  background: #faf6e0;
}
.count-input {
  width: 40px;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0.25em 0.2em;
  font-size: 1.05em;
  text-align: center;
}
.booking-submit {
  display: flex;
  justify-content: center;
  margin-top: 1.2em;
}
#booking-msg {
  text-align: center;
  min-height: 1.6em;
  margin-top: 1em;
  font-size: 1.07em;
}

.today-orders-section {
  margin-top: 2.2em;
  background: #fff;
  border-radius: 8px;
  padding: 1.5em 1.2em 1em 1.2em;
  box-shadow: 0 2px 8px #0001;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.today-orders-section h3 {
  text-align: center;
  color: var(--vereinsschwarz);
  margin-top: 0;
  margin-bottom: 1.1em;
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.order-header-row {
  display: flex;
  align-items: center;
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  padding: 0.42em 0.2em 0.42em 0.2em;
  font-weight: bold;
  font-size: 1.07em;
  border-radius: 6px 6px 0 0;
}
.order-header-row span {
  flex: 1;
  text-align: left;
}
.order-header-row .order-product { flex: 2; }

.order-row {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.53em 0.2em 0.53em 0.2em;
  background: #fcfcfc;
  font-size: 1.04em;
}
.order-row:nth-child(even) {
  background: #faf6e0;
}
.order-row:last-child { border-bottom: none; }

.order-product { flex: 2; }
.order-qty { flex: 1; }
.order-price { flex: 1; color: #333; }
.order-time { flex: 1.1; color: #666; font-size: 0.98em; }
.order-delete-btn {
  border: none;
  background: transparent;
  font-size: 1.22em;
  color: #dc2626;
  cursor: pointer;
  margin-left: 0.7em;
  transition: color 0.18s;
  padding: 0.15em 0.3em;
}
.order-delete-btn:hover {
  color: #b91c1c;
}

.orders-empty {
  color: #999;
  text-align: center;
  padding: 1em 0;
  font-style: italic;
  font-size: 1.05em;
}

.order-header-row,
.order-row {
  gap: 0.35em;
  padding: 0.4em 0.12em 0.4em 0.12em;
  font-size: 1.04em;
}

/* Auf sehr kleinen Geräten noch kompakter */
@media (max-width: 520px) {
  .today-orders-section {
    padding: 1em 0.3em 0.7em 0.3em;
    max-width: 99vw;
  }
  .order-header-row,
  .order-row {
    gap: 0.13em;
    padding: 0.33em 0.03em 0.33em 0.03em;
    font-size: 0.97em;
  }
  .order-product,
  .order-qty,
  .order-price,
  .order-time {
    font-size: 0.98em;
    word-break: break-word;
  }
  .order-delete-btn {
    font-size: 1em;
    padding: 0.05em 0.1em;
  }
  .today-orders-section {
  overflow-x: auto;
}
}

/* STRAFEN */


.penalty-view form {
  background: #f6f6f8;
  padding: 1.3em 1.5em 1em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  max-width: 440px;
  margin: 1.5em auto;
  overflow-x: auto;
}
.penalty-view label {
  display: block;
  margin-top: 0.8em;
  font-weight: 500;
}
.penalty-view select, .penalty-view input[type="text"] {
  width: 100%;
  padding: 0.35em 0.5em;
  margin-top: 0.2em;
  border-radius: 5px;
  border: 1px solid #d4d4d4;
  background: #fff;
}

.penalty-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7em;
  margin-top: 1em;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.penalty-footer .btn-primary,
.penalty-footer #btn-bestleistung {
  white-space: normal; /* Verhindert Umbruch im Button */
  flex: 0 0 auto;      /* Button wird nie gequetscht oder gedehnt */
  background: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  padding: 0.33rem 0.9rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.0rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  margin: 0.5em 0;
  /* Entferne margin-right/left, sonst "wandern" Buttons zu weit raus! */
  margin-right: 0.8rem;
  margin-left: 0.8rem;
  min-width: 0;           /* Wichtig, damit Buttons nicht zu breit werden */
  width: 60%
  box-sizing: border-box;
}

.penalty-footer .btn-primary:hover, 
.penalty-footer .btn-primary:focus,
.penalty-footer #btn-bestleistung:hover, 
.penalty-footer #btn-bestleistung:focus {
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  box-shadow: 0 3px 16px #ffd70080;
  outline: none;
  transform: scale(1.04) translateY(-2px);
}

.footer-oder {
  display: block;
  text-align: center;
  font-size: 1.5em;
  width: 100%;
}

.table-penaltys {
  x-overflow: scroll;
  flex-wrap: nowrap;
}

@media (max-width: 400px) {
  .penalty-view form {
    max-width: 98vw;
    padding: 1em 0.4em 0.7em 0.6em;
  }
  .penalty-footer {
    gap: 0.5em;
  }
}

/* NEWS */

.news-entry {
  border-radius: 8px;
  background: #f8fafc;
  margin: 1.5em 0;
  padding: 1.2em 1.5em;
  box-shadow: 0 2px 8px #0001;
}
.news-title {
  margin: 0 0 0.4em 0;
  font-size: 1.3em;
  font-weight: bold;
}
.news-meta {
  color: #888;
  font-size: 0.95em;
  margin-bottom: 0.7em;
}
.news-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.3em;
  margin: 2em 0 0 0;
}
.btn-show-more {
  margin-top: 0.8em;
  border-radius: 6px;
  background: #e5e7eb;
  border: none;
  padding: 0.45em 1em;
  cursor: pointer;
  font-size: 1em;
}
.btn-show-more:hover {
  background: #cbd5e1;
}
.news-content {
  margin-bottom: 0.6em;
}

/* DOCS & LINKS */

.docs-entry {
  background: #f1f5f9;
  border-radius: 8px;
  margin: 1em 0;
  padding: 0.9em 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.18em;
}
.docs-link {
  font-size: 1.09em;
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  word-break: break-all;
}
.docs-link:hover {
  color: #1e40af;
}
.docs-meta {
  color: #7a7a7a;
  font-size: 0.97em;
}

/* STATISTIKEN */

/* Stile für den Filter-Wrapper */
.bestleistung-filter-view {
  max-width: 480px;
  display: grid;
  justify-items: center;
  margin: 1.5em auto 0.7em auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 1.2em 1.3em 0.9em 1.3em;
  overflow-x: auto;
  text-align: center; /* Überschrift & Co mittig */
}

.bestleistung-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bestleistung-filter-form label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin: 0;
  width: 100%;
  text-align: center;
  gap: 0.5em;
}

.bestleistung-filter-form select {
  min-width: 120px;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 0.33em 0.6em;
  font-size: 1em;
  margin: 0; /* Entfernt links/rechts spacing */
}

.bestleistung-filter-form .btn-primary {
  margin: 0 auto;
}

/* Stile für die Bestleistungs-Liste */

.bestleistung-list-view {
  max-width: 780px;
  margin: 1.1em auto 2.5em auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 1.8em 1.5em 1.2em 1.5em;
  overflow-x: auto;
  text-align: center; /* Tabelle mittig */
}
#bestleistung-list {
	text-align: center;
}

#best-type, #best-achiever {
	width: 10rem;
}
/* Responsive Tabelle */
@media (max-width: 600px) {
  .bestleistung-filter-view,
  .bestleistung-list-view {
    max-width: 98vw;
    padding: 1em 0.4em 0.7em 0.6em;
  }
  #bestleistung-list table,
  #bestleistung-list th, 
  #bestleistung-list td {
    font-size: 0.97em;
    padding: 0.33em 0.35em;
  }
  .bestleistung-filter-form {
    flex-direction: column;
    gap: 0.8em;
    align-items: stretch;
  }
}

/* GETRÄNKE */

/* Filter-Button mittig unter den Filtern (nur für Getränke-Statistik) */
.getraenke-filter-form .filter-btn-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
}

.getraenke-filter-form .btn-primary {
  min-width: 120px;
  font-size: 1em;
  padding: 0.5em 1.2em;
}

.getraenke-filter-form {
  display: flex;
  flex-direction: column;      /* NEU: stapelt alles untereinander */
  gap: 0.7em;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 1.3em;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.getraenke-filter-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  min-width: 130px;
  margin-bottom: 0.2em;
}

.getraenke-filter-form .filter-btn-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
}

/* FOTOALBEN */

.album-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  gap: 1em;
  margin: 1.5em 0;
}
.album-photos-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px #0001;
  cursor: pointer;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: box-shadow 0.2s;
}
.album-photos-grid img:hover {
  box-shadow: 0 4px 12px #0003;
}

.foto-modal {
  position: fixed;
  z-index: 12000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,24,24,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.foto-modal-content {
  position: relative;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.foto-modal img {
  max-width: 90vw;
  max-height: 65vh;
  margin-bottom: 1em;
  border-radius: 8px;
  box-shadow: 0 6px 32px #0009;
  background: #eee;
}
.foto-modal-caption {
  color: #fff;
  text-align: center;
  font-size: 1.08em;
  margin-bottom: 1.1em;
}
.foto-modal-close {
  position: absolute;
  top: -6px; right: 0.7em;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.1em;
  cursor: pointer;
}
.foto-modal-prev, .foto-modal-next {
  background: #fff7;
  color: #222;
  border: none;
  font-size: 1.7em;
  margin: 0 1.2em;
  border-radius: 100%;
  width: 2.2em;
  height: 2.2em;
  cursor: pointer;
  transition: background 0.2s;
}
.foto-modal-prev:hover, .foto-modal-next:hover {
  background: #fff;
}
@media (max-width:600px) {
  .foto-modal img { max-height: 42vh; }
}

/* --- Admin-Bereich Menü und Container --- */
#admin-menu {
  display: flex;
  gap: 0.8em;
  margin-bottom: 1.4em;
  flex-wrap: wrap;
  justify-content: center;
}

#admin-menu button {
  background: var(--vereinsdunkelgrau);
  color: var(--vereinsgelb);
  border: none;
  border-radius: 8px;
  padding: 0.65em 1.4em;
  font-size: 1.08em;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.17s;
  margin-bottom: 0.2em;
}

#admin-menu button:hover, #admin-menu button:focus {
  background: var(--vereinsgelb);
  color: var(--vereinsdunkelgrau);
  transform: translateY(-2px) scale(1.05);
  outline: none;
}

/* Der Admin-Container */
#admin-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  padding: 2em 1.4em;
  max-width: 620px;
  margin: 0 auto 2.2em auto;
  min-height: 180px;
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 700px) {
  #admin-container {
    padding: 1em 0.4em;
    max-width: 99vw;
  }
  #admin-menu {
    gap: 0.4em;
    flex-direction: column;
    align-items: center;
  }
}

/* --- Termin-Formular --- */
#event-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 500px;
  margin: 0 auto;
  background: #fcfcfc;
  border-radius: 9px;
  box-shadow: 0 2px 9px #0001;
  padding: 1.2em 1.4em 1.2em 1.4em;
}

#event-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: var(--vereinsschwarz);
  gap: 0.15em;
  font-size: 1.05em;
}

#event-form input,
#event-form select,
#event-form textarea {
  margin-top: 0.18em;
  padding: 0.48em 0.5em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.22s;
}

#event-form input:focus,
#event-form select:focus,
#event-form textarea:focus {
  border-color: var(--vereinsgelb);
  outline: none;
}

#event-form textarea {
  min-height: 3.2em;
  resize: vertical;
}

#event-form button[type="submit"] {
  margin-top: 0.7em;
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  border: none;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: bold;
  padding: 0.75em 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffd7002b;
  transition: background 0.19s, color 0.19s, transform 0.13s;
}
#event-form button[type="submit"]:hover,
#event-form button[type="submit"]:focus {
  background: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  transform: scale(1.04);
}

#event-feedback {
  font-size: 1em;
  margin-top: 0.5em;
  min-height: 1.4em;
  color: #18a34a;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
}

@media (max-width: 600px) {
  #event-form {
    padding: 0.7em 0.15em;
    max-width: 99vw;
  }
}

/* --- Einzahlung-Formular --- */
#einzahlung-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 460px;
  margin: 0 auto;
  background: #fcfcfc;
  border-radius: 9px;
  box-shadow: 0 2px 9px #0001;
  padding: 1.2em 1.4em 1.2em 1.4em;
}

#einzahlung-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: var(--vereinsschwarz, #222);
  gap: 0.18em;
  font-size: 1.06em;
}

#einzahlung-form input,
#einzahlung-form select {
  margin-top: 0.16em;
  padding: 0.5em 0.6em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.19s;
}

#einzahlung-form input:focus,
#einzahlung-form select:focus {
  border-color: var(--vereinsgelb, #f5e400);
  outline: none;
}

#einzahlung-form button[type="submit"] {
  margin-top: 0.6em;
  background: var(--vereinsgelb, #f5e400);
  color: var(--vereinsschwarz, #222);
  border: none;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: bold;
  padding: 0.75em 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffd70022;
  transition: background 0.17s, color 0.17s, transform 0.13s;
}
#einzahlung-form button[type="submit"]:hover,
#einzahlung-form button[type="submit"]:focus {
  background: var(--vereinsschwarz, #222);
  color: var(--vereinsgelb, #f5e400);
  transform: scale(1.045);
}

#einzahlung-feedback {
  font-size: 1em;
  margin-top: 0.3em;
  min-height: 1.3em;
  color: #1b942d;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
}

@media (max-width: 600px) {
  #einzahlung-form {
    padding: 0.7em 0.15em;
    max-width: 99vw;
  }
}

#news-form {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 500px;
  margin: 0 auto;
  background: #fcfcfc;
  border-radius: 9px;
  box-shadow: 0 2px 9px #0001;
  padding: 1.2em 1.4em 1.2em 1.4em;
}

#news-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: var(--vereinsschwarz, #222);
  gap: 0.15em;
  font-size: 1.05em;
}

#news-form input,
#news-form textarea {
  margin-top: 0.18em;
  padding: 0.48em 0.5em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.22s;
}

#news-form textarea {
  min-height: 4em;
  resize: vertical;
}

#news-form input:focus,
#news-form textarea:focus {
  border-color: var(--vereinsgelb, #f5e400);
  outline: none;
}

#news-form button[type="submit"] {
  margin-top: 0.7em;
  background: var(--vereinsgelb, #f5e400);
  color: var(--vereinsschwarz, #222);
  border: none;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: bold;
  padding: 0.75em 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffd7002b;
  transition: background 0.19s, color 0.19s, transform 0.13s;
}
#news-form button[type="submit"]:hover,
#news-form button[type="submit"]:focus {
  background: var(--vereinsschwarz, #222);
  color: var(--vereinsgelb, #f5e400);
  transform: scale(1.04);
}

#news-feedback {
  font-size: 1em;
  margin-top: 0.5em;
  min-height: 1.4em;
  color: #1b942d;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* --- Formular für Dokumente hochladen (admin_docs.php) --- */
#docs-form {
  display: flex;
  flex-direction: column;
  gap: 1.08em;
  max-width: 440px;
  margin: 0 auto;
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 2px 10px #0001;
  padding: 1.2em 1.5em 1.3em 1.5em;
}

#docs-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: var(--vereinsschwarz, #232323);
  gap: 0.16em;
  font-size: 1.07em;
}

#docs-form input[type="text"],
#docs-form input[type="url"] {
  margin-top: 0.17em;
  padding: 0.52em 0.7em;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.19s;
}

#docs-form input[type="file"] {
  margin-top: 0.16em;
  border: none;
  background: none;
  font-size: 1em;
  font-family: inherit;
}

#docs-form input[type="text"]:focus,
#docs-form input[type="url"]:focus {
  border-color: var(--vereinsgelb, #f5e400);
  outline: none;
}

#docs-form button[type="submit"] {
  margin-top: 0.7em;
  background: var(--vereinsgelb, #f5e400);
  color: var(--vereinsschwarz, #232323);
  border: none;
  border-radius: 8px;
  font-size: 1.09em;
  font-weight: bold;
  padding: 0.77em 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffd70022;
  transition: background 0.15s, color 0.15s, transform 0.11s;
}
#docs-form button[type="submit"]:hover,
#docs-form button[type="submit"]:focus {
  background: var(--vereinsschwarz, #232323);
  color: var(--vereinsgelb, #f5e400);
  transform: scale(1.045);
}

#docs-feedback {
  font-size: 1em;
  margin-top: 0.3em;
  min-height: 1.3em;
  color: #1b942d;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
}

@media (max-width: 600px) {
  #docs-form {
    padding: 0.8em 0.18em;
    max-width: 99vw;
  }
}

/* Benutzerverwaltung */

/* --- Benutzerverwaltung: Kompaktere Buttons --- */
#users-table .btn-user-save {
  padding: 0.35em 0.7em;
  font-size: 0.85em;
  border-radius: 5px;
  background: var(--vereinsgelb, #f5e400);
  color: var(--vereinsschwarz, #222);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#users-table .btn-user-save:hover,
#users-table .btn-user-save:focus {
  background: var(--vereinsschwarz, #222);
  color: var(--vereinsgelb, #f5e400);
}

#users-table .row-feedback {
  font-size: 0.78em;
}

/* --- Einzahlungen / Balances Admin-Liste --- */
.balances-view {
  max-width: 820px;
  margin: 1.2em auto 2.2em auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  padding: 1.2em 1.4em 1.4em 1.4em;
}

.balances-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8em;
  margin-bottom: 0.6em;
}
.balances-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--vereinsschwarz);
}
.balances-meta {
  color: #666;
  font-size: 0.95rem;
}

/* Tabelle */
.balances-table {
  width: 100%;
  border-collapse: collapse;
  background: #fcfcfc;
}
.balances-table thead th {
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  text-align: left;
  font-weight: 700;
  padding: 0.55em 0.6em;
  border-bottom: 2px solid #ddd;
}
.balances-table tbody td {
  padding: 0.5em 0.6em;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-break: break-word;
}
.balances-table tbody tr:nth-child(even) td {
  background: #faf6e0;
}

.col-name   { width: auto; }
.col-amount { width: 160px; text-align: right; }
.col-date   { width: 200px; }

/* Zellen */
.cell-amount { text-align: right; font-variant-numeric: tabular-nums; }
.cell-date   { white-space: nowrap; }
.cell-empty  { text-align: center; color: #777; }

/* Responsive Tabelle (Labels in kleinen Screens) */
@media (max-width: 640px) {
  .balances-table thead { display: none; }
  .balances-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2em;
    padding: 0.6em 0.35em;
    border-bottom: 1px solid #eee;
  }
  .balances-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: transparent !important;
    padding: 0.25em 0.35em;
    border: none;
  }
  .balances-table tbody td::before {
    content: attr(data-label);
    color: #666;
    margin-right: 0.8em;
    font-weight: 600;
  }
  .cell-name::before   { content: "Name"; }
  .cell-amount::before { content: "Betrag (€)"; }
  .cell-date::before   { content: "Datum"; }
}

/* Pagination */
.admin-pagination {
  display: grid;
  gap: 0.4em;
  justify-items: center;
  margin-top: 0.9em;
}
.admin-pagination ul {
  list-style: none;
  display: flex;
  gap: 0.35em;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.admin-pagination .page-item,
.admin-pagination .page-prev,
.admin-pagination .page-next,
.admin-pagination .page-ellipsis {
  display: inline-flex;
}
.admin-pagination .page-link {
  display: inline-block;
  padding: 0.35em 0.7em;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--vereinsgelb);
  color: var(--vereinsschwarz);
  background: #fff;
  transition: background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s;
  font-weight: 600;
}
.admin-pagination .page-link:hover {
  background: var(--vereinsgelb);
  color: var(--vereinsschwarz);
  box-shadow: 0 2px 8px #ffd70055;
  transform: translateY(-1px);
}
.admin-pagination .page-link.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
  background: #f3f3f3;
}
.admin-pagination .current .page-link,
.admin-pagination .current > span.page-link {
  background: var(--vereinsschwarz);
  color: var(--vereinsgelb);
  border-color: var(--vereinsschwarz);
  cursor: default;
}
.admin-pagination .pagination-info {
  font-size: 0.92rem;
  color: #666;
}
