/* ========== GLOBAL ========== */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-accent: #a8d1ff;
    --text-muted: #ffffff;
    --card-shadow: 0 4px 14px rgba(0,0,0,.3);
    --transition-speed: 0.3s;
    --border-color: #2d2d2d;
    --primary-color-dark: #0056b3;
    --primary-color-rgb: 0, 123, 255;
}

body {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    min-height: 100vh;
    color: var(--text-primary);
}

/* ========== CONTAINERS ========== */
.page-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: transparent;
    border-radius: 16px;
    box-shadow: none;
    border: none;
}

/* ========== HEADER ========== */
.topbar {
    margin-bottom: 3rem;
    background-color: transparent;
    text-align: left;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 20px;
}

.topbar h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(120deg, #ffffff, #a8d1ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out;
    text-align: left;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 10px 0 0;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 200;
    animation: slideUp 1s ease-out;
    text-align: left;
}

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

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

/* ========== ADMIN SECTION ========== */
.admin-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-accent);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.admin-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.admin-icon {
    font-size: 1rem;
}

/* ========== CATEGORY GRID ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
    opacity: 1;
    filter: brightness(1.2);
}

.category-card:hover .card-img {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(1.3);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #ffffff;
    border-radius: 0 0 12px 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-content h3 {
    font-size: 2rem !important;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== FOOTER ========== */
.footer-tagline {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .page-container {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .topbar h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-content h3 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .page-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .topbar h1 {
        font-size: 1.75rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-link {
        width: 100%;
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* ========== LOGIN PAGE ========== */
.login-page {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 255px;
    margin: 0;
}

.login-container.compact {
    padding: 1.2rem;
    width: 255px;
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: 400;
}

.login-form {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    gap: 1.2rem;
}

.input-group {
    position: relative;
    margin-bottom: 0;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.login-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-button {
    width: 220px;
    padding: 1rem;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.512);
    border-radius: 12px;
    color: #b5b5b5a4;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button span {
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 40%,
        rgb(255, 255, 255) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100%;
    }
    100% {
        background-position: -100%;
    }
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.login-button:hover span {
    animation: shine 2s linear infinite;
}

.login-button i {
    transition: transform 0.3s ease;
    color: #b5b5b5a4;
}

.login-button:hover i {
    transform: translateX(4px);
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-top: 1rem;
}



.datenschutz-link {
    text-align: center;
    margin-top: 1.5rem;
}

.datenschutz-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.datenschutz-link a:hover {
    color: var(--primary-color);
}



/* ========== BUTTONS ========== */

button,
.form-box button {
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 29.2%;
}

button:hover {
    background-color: #0056b3;
}


/* ========== SUCCESS / ERROR ========== */

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: bold;
}

.error {
    color: red;
    margin-top: 1rem;
}

.success {
    color: #4caf50;
    text-align: center;
    margin-top: 1rem;
}

/* Spezifische Regel für Login-Seite */
.login-page .success {
    color: #4caf50 !important;
    text-align: center;
    margin-top: 1rem;
}

/* Überschreibt .flash.success für Login-Seite */
.login-page .flash.success {
    color: #4caf50 !important;
    text-align: center;
    margin-top: 1rem;
    background-color: transparent !important;
    border-color: transparent !important;
}

/* ========== TABLES ========== */
.name-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    background-color: var(--surface-color);
}

.name-table thead td {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.name-table td {
    padding: 0.5rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.8;
}

/* Add spacing between names */
.name-table td br {
    content: "";
    display: block;
    margin: 0.3rem 0;
}

/* Style for individual names */
.name-table td span {
    display: block;
    margin-bottom: 0.3rem;
}

.name-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.remove-button {
    all: unset;
    background: none;
    border: none;
    color: #ff6b6b;
    padding: 0;
    font-size: 0.8rem;
    font-weight: normal;
    cursor: pointer;
}

.remove-button:hover {
    all: unset;
    color: #ff8585;
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}


@media (max-width: 768px) {
    .name-table {
        font-size: 0.85rem;
    }
}


/* ========== PROGRAMM-TABELLE (Thema/Erklärung) ========== */



.programm-box {
    width: 75%;
    margin-top: 1.5rem auto;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-left: 10%;
    margin-right: 10%;
    border: 1px solid var(--border-color);
}

.training-list {
    margin-bottom: 1.5rem;
}

.training-list .header {
    position: sticky;
    top: 0;
    background-color: var(--surface-color);
    z-index: 1;
    border-bottom: 1px solid var(--border-color);
    padding: 0.15rem 0;
    margin-bottom: 0;
}

.training-list .row {
    border-bottom: 1px solid var(--border-color);
    padding: 0.15rem 0;
}

.training-list .row:first-child {
    margin-top: 0;
}

.spalte-thema {
    width: 20%;
    padding: 0.15rem 0.5rem;
    vertical-align: top;
}

.spalte-erklaerung {
    width: 70%;
    padding: 0.15rem 0.5rem;
    vertical-align: top;
}

.hinweis {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(29, 26, 26, 0);
    color: var(--text-secondary);
}

.hinweis * {
    color: inherit;
}

.programm-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.nav-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-button:hover {
    background-color: var(--primary-color-dark);
}

.heute-button {
    background-color: var(--accent-color);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    margin-left: 2rem;
}

.heute-button:hover {
    background-color: var(--accent-color-dark);
}

.kw-label {
    font-weight: bold;
    color: var(--text-color);
}

.arrow {
    cursor: pointer;
    transition: transform var(--transition-speed);
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .programm-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .programm-box {
        padding: 1rem;
    }
    
    .training-list .header,
    .training-list .row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .spalte-thema {
        font-weight: 600;
    }
    
    .programm-navigation {
        flex-wrap: wrap;
    }
    
    .nav-button {
        width: 36px;
        height: 36px;
    }
    
    .kw-label {
        font-size: 1rem;
    }
}

/* ========== FORMULAR ========== */

.form-box {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ========== KATEGORIEN ========== */
/* ---------- KACHELN / MENU ---------- */
/* MOBILE FIRST – 1 Kachel pro Reihe */
@media (max-width: 280px) {
  .category-grid {
    grid-template-columns: 1fr;
    --gap: .9rem;
  }

  .card-title {
    font-size: .95rem;
    padding: .55rem;
  }
}

/* DEFAULT (zwischen 481px und 899px) – größere Kacheln */
.category-grid {
  --gap: 1.2rem;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1.5rem 0 3rem;
}

/* GROßE BILDSCHIRME – kleinere Kacheln, mehr Spalten */
@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}




.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;             /* quadratisch – wirkt app-artiger */
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8);
  transition: filter .3s;
}

.category-card:hover .card-img { filter: brightness(.65); }

.card-title {
  position: absolute;
  inset: auto 0 0 0;               /* unten über die ganze Breite */
  padding: 1.35rem;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
  color: #e7e2e2;
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: .5px;
  /*backdrop-filter: blur(2px);*/
}



/* ---------- HEADER ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.topbar h1      { flex: 1 1 auto; margin: 0; font-size: 1.35rem; }
.subtitle       { flex: 1 1 100%; margin: .25rem 0 0; color: #555; }
.admin-link     { font-size: .9rem; text-decoration: none; color: #666; }
.admin-link:hover{ color:#000; }




/* ========== SONSTIGES ========== */

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #5db0f4;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.grid-separator {
    border-top: 3px solid #ccc;
    margin: 1rem 0;
    height: 1px;
}

.admin-link {
    text-align: right;
    margin-bottom: 1rem;
}

.admin-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link a:hover {
    color: #000;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
    .page-container,
    .sign_up-container {
        padding: 1rem;
        background-image: url('background.jpg'); /* Optional: anderes Hintergrundbild für mobile Ansicht */
        width: 100%; /* ✅ responsive Breite */
        max-width: 100%; /* Optional: falls woanders `max-width` gesetzt ist */
        box-sizing: border-box; /* stellt sicher, dass padding korrekt einberechnet wird */
    }

    .category-button img {
        height: 80px;
    }

    .category-button span {
        font-size: 0.9rem;
    }
}

.teilnehmer-header {
    display: block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.teilnehmer-header h3 {
    margin: 0;
}

.teilnehmer-count {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    
}


/* Nur container2 soll mitwachsen */
.teilnehmer-container {
    overflow-y: visible;
    flex-grow: 1;
    
}

textarea,
input[type="number"] {
    width: 90%;       /* oder 100%, je nach Wunsch */
    max-width: 800px; /* optional: verhindert überbreite Textfelder auf großen Bildschirmen */
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box; /* wichtig, damit padding nicht die Breite überschreitet */
}

.slot-section {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.location-block {
  flex: 1;
  min-width: 220px;
}

.location-block h4 {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  color: var(--text-primary);
}

.location-block label {
  display: block;
  margin-bottom: 1px;
  white-space: nowrap;
  color: var(--text-primary);
}
/* Collapsible container */
.collapsible {
  max-height: 400px; /* Set a default max-height */
  overflow: hidden;
  transition: max-height 0.4s ease;
}


.programm-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.programm-header h1 {
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
}

.programm-header .arrow {
  font-size: 1.5rem;
  margin-left: 0.5rem;
  color: #333;
}
.name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.name-row input[type="text"] {
    
    min-width: 100px;
    padding: 1.0rem;
    border-radius: 12px;
    
}

.name-links {
  margin-left: 163px;     /* push the group to the right */
  display: block;
           /* space *between* the links */
}

.name-link {
  font-size: 0.9rem;
  color: #0077cc;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  margin-bottom: 15px;
  margin-top: 10px;
}

.name-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}
.flash {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.flash.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #4cd964;
}

.flash.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #ff6b6b;
}
.back-button {
    display: inline-block;
    margin: 30px auto 0;
    padding: 10px 20px;
    background-color: var(--surface-color);
    color: var(--text-accent);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background-color: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.back-button i {
    margin-right: 8px;
}

.tables-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
}

.location-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 280px;
    max-width: 100%;
}

.name-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.name-table thead td {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.name-table td {
    padding: 0.5rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.8;
}

/* Add spacing between names */
.name-table td br {
    content: "";
    display: block;
    margin: 0.3rem 0;
}

/* Style for individual names */
.name-table td span {
    display: block;
    margin-bottom: 0.3rem;
}

.name-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.remove-button {
    all: unset;
    background: none;
    border: none;
    color: #ff6b6b;
    padding: 0;
    font-size: 0.8rem;
    font-weight: normal;
    cursor: pointer;
}

.remove-button:hover {
    all: unset;
    color: #ff8585;
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}


@media (max-width: 768px) {
    .tables-flex-container {
        gap: 1rem;
        padding: 0.5rem;
    }

    .location-container {
        padding: 1rem;
        min-width: 100%;
    }

    .name-table {
        font-size: 0.85rem;
    }

    .name-table thead td {
        padding: 0.4rem 0.2rem;
        font-size: 0.9rem;
    }

    .name-table td {
        padding: 0.4rem 0.2rem;
    }

    .name-table .remove-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .teilnehmer-anzeige td {
        font-size: 0.8rem;
    }

    .trainer-info {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .name-table {
        font-size: 0.8rem;
    }

    .name-table thead td {
        font-size: 0.85rem;
    }

    .name-table td {
        padding: 0.3rem 0.1rem;
    }

    .name-table .remove-button {
        padding: 0.1rem 0.3rem;
        font-size: 0.7rem;
    }

    .teilnehmer-anzeige td {
        font-size: 0.5rem;
    }
}

.info-icon {
    margin-left: 6px;
    color: #cdcdcd;
    cursor: pointer;
    position: relative;
    font-size: 0.9em;
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%; /* oberhalb vom Icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.info-icon:hover::after {
    opacity: 1;
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.header-bar h2 {
    margin: 0;
    flex-grow: 1;
}

/* Logo styles */
.logo {
    position: absolute;
    top: -40px;
    right: 0;
    width: 100px;
    height: auto;
}

.admin-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface-color);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-menu-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-title {
    font-weight: bold;
    margin-right: 1rem;
    color: var(--text-primary);
}

.admin-menu a {
    text-decoration: none;
    color: var(--text-accent);
    font-weight: 500;
    transition: color 0.2s;
}

.admin-menu a:hover {
    color: var(--text-primary);
}

.logout-button {
    background: none;
    border: none;
    color: #dc3545;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.logout-button i {
    margin-right: 6px;
}

@media (max-width: 768px) {
  .sign_up-container, .page-container {
    width: 95vw;
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
    box-sizing: border-box;
    /*min-height: 100vh; /* oder 300px für kleinere Container */
  }

  input[type="text"], select, button {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .sign_up-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
  }

  .sign_up-form div {
    margin-bottom: 12px;
  }

  .sign_up-form h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  .sign_up-form button {
    font-size: 1rem;
    padding: 10px;
  }
}
/* Modal-Stil */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    color: var(--text-primary);
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modal-content a {
    color: var(--text-accent);
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.close {
    color: var(--text-primary);
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-accent);
}

.datenschutz-link {
  margin-top: 20px;
  text-align: center;
}

.datenschutz-link a {
  text-decoration: none;
  color: #0056b3;
  font-weight: 300;
  font-size: 14px;
}

.datenschutz-link a:hover {
  text-decoration: underline;
}

.checkbox-card {
    margin: 0.5rem 0;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-card label {
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Default state for non-Fitness Fighting categories */
.checkbox-card label:not([class*="capacity-"]) {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Default checked state for non-Fitness Fighting categories */
.checkbox-card input[type="checkbox"]:checked + label:not([class*="capacity-"]) {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Fitness Fighting specific styles */
.checkbox-card label[class*="capacity-"] {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Fitness Fighting checked state - blue */
.checkbox-card input[type="checkbox"]:checked + label[class*="capacity-"] {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Capacity colors for booked slots - these will show when unchecked and has participants */
.checkbox-card label.capacity-low {
    background-color: #4CAF50 !important;
    color: #ffffff !important;
}

.checkbox-card label.capacity-medium {
    background-color: #FF9800 !important;
    color: #ffffff !important;
}

.checkbox-card label.capacity-full {
    background-color: #f44336 !important;
    color: #ffffff !important;
}

/* Hover effects */
.checkbox-card label:not([class*="capacity-"]):hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.checkbox-card label[class*="capacity-"]:hover {
    filter: brightness(90%) !important;
}

/* Disabled state */
.checkbox-card input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Small text styling */
.checkbox-card label small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Ensure unselect works by removing any styles that might prevent it */
.checkbox-card input[type="checkbox"]:not(:checked) + label {
    background-color: #000000 !important;
}

/* Override for unchecked capacity labels to show their colors */
.checkbox-card input[type="checkbox"]:not(:checked) + label.capacity-low {
    background-color: #4CAF50 !important;
}

.checkbox-card input[type="checkbox"]:not(:checked) + label.capacity-medium {
    background-color: #FF9800 !important;
}

.checkbox-card input[type="checkbox"]:not(:checked) + label.capacity-full {
    background-color: #f44336 !important;
}

.footer-tagline {
  text-align: center;
  color: #888888;
  font-size: 0.9rem;
  margin-top: 2.5rem; /* Abstand über dem Footer */
  
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.day-time-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.day-time-header .day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.day-time-header .time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Location container styles */
.location-container {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-container h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-left: 0;
}

/* Table styles */
.name-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.name-table thead td {
    padding: 0;
    text-align: left;
}

.name-table tbody td {
    padding: 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

.name-table tbody td:last-child {
    border-bottom: none;
}

/* Program container styles */
.programm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.programm-box {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Wochenprogramm Table Styles */
.training-list {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.training-list .header {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(400px, 2fr);
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.training-list .row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(400px, 2fr);
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    min-width: 600px;
}

.training-list .row:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.spalte-thema {
    font-weight: 500;
    color: var(--text-primary);
    padding-right: 1rem;
}

.spalte-erklaerung {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Navigation styles */
.programm-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.nav-button {
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.kw-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0 0.5rem;
    opacity: 0.8;
}

/* Teilnehmerliste Table Styles */
.day-time-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.day-time-header .day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.day-time-header .time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.location-container {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-container h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0.3rem;
    font-size: 1.3rem;
    padding-left: 0;
}

.name-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.name-table thead td {
    padding: 0;
    text-align: left;
}

.name-table tbody td {
    padding: 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

.name-table tbody td:last-child {
    border-bottom: none;
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
    .programm-container {
        height: calc(100vh - 1rem);
        padding: 0.5rem;
    }

    .programm-box {
        margin-top: 0.5rem;
        padding: 1rem;
    }

    .training-list {
        margin: 0.5rem 0;
        border-radius: 8px;
    }

    .training-list .header {
        display: none;
    }

    .training-list .row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        margin-bottom: 1rem;
        min-width: unset;
    }

    .spalte-thema {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: var(--text-accent);
        padding-right: 0;
    }

    .spalte-erklaerung {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .programm-navigation {
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .nav-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        min-width: 20px;
    }

    .kw-label {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
}

.hinweis {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(29, 26, 26, 0);
    border-radius: 8px;
    color: #f704ff !important;
}

.hinweis * {
    color: #f704ff !important;
}

.training-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1rem 0;
}

.training-list {
    width: 100%;
    border-collapse: collapse;
}

.training-list .header {
    position: sticky;
    top: 0;
    background-color: var(--surface-color);
    z-index: 1;
    border-bottom: 1px solid var(--border-color);
    padding: 0.15rem 0;
    margin-bottom: 0;
}

.training-list .row {
    border-bottom: 1px solid var(--border-color);
    padding: 0.15rem 0;
}

.training-list .row:first-child {
    margin-top: 0;
}

.spalte-thema {
    width: 30%;
    padding: 0.15rem 0.5rem;
    vertical-align: top;
}

.spalte-erklaerung {
    width: 70%;
    padding: 0.15rem 0.5rem;
    vertical-align: top;
}

.menu-logo {
    position: absolute;
    top: 0px;
    right: 20px;
    width: 80px;
    height: 80px;
    z-index: 10;
    margin-bottom: 20px;
}

.login-header .menu-logo {
    position: static;
    display: block;
    margin: 0 auto auto;
    width: 80px;
    height: 80px;
}

/* ========== ADMIN FORMS ========== */
.sign_up-container.anmeldungs-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.header-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
}

.header-bar h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.logout-button {
    background: none;
    border: none;
    color: var(--text-accent);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-speed);
}

.logout-button:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
}

.submit-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-1px);
}

.submit-button.secondary {
    background-color: var(--secondary-color);
}

.submit-button.secondary:hover {
    background-color: #5a6268;
}

/* ========== ADMIN TABLES ========== */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-color);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ========== FLASH MESSAGES ========== */
.flash {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.flash.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #4cd964;
}

.flash.error {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #ff6b6b;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== BACK BUTTON ========== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.back-button:hover {
    color: var(--primary-color);
}

.back-button i {
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ADMIN ========== */
@media (max-width: 768px) {
    .sign_up-container.anmeldungs-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-bar h2 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sign_up-container.anmeldungs-container {
        margin: 10px 10px auto;   
    }

    .aktuelle_woche {
        font-size: 0.8rem;
        font-weight: 500;
        color: #787878;
        margin: 0px 0 0 0;
        white-space: nowrap;
    }
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ========== BOTTOM NAVIGATION BAR ========== */
.bottom-nav {
    display: none; /* Hidden by default, shown on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(28, 28, 30, 0.85); /* iOS-like dark background with transparency */
    border-top: 0.5px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
    padding: 0.5rem 0;
    z-index: 1000;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6); /* iOS-like inactive color */
    padding: 0.5rem;
    flex: 1;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: -0.01em; /* iOS-like text spacing */
}

.nav-item.active {
    color: #007AFF; /* iOS blue */
}

.nav-item.active i {
    transform: translateY(-1px);
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item:not(.disabled):hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item:not(.disabled):active {
    transform: scale(0.95);
}

/* Show bottom nav only on mobile devices */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
    }

    /* Add padding to the bottom of the main content to prevent overlap with the nav bar */
    .sign_up-container.anmeldungs-container {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
        min-height: calc(100vh - 5rem - env(safe-area-inset-bottom));
    }

    /* Ensure content is scrollable */
    .sign_up-container.anmeldungs-container {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Adjust for devices with home indicator (iPhone X and newer) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
        background-color: rgba(28, 28, 30, 0.85);
    }
}

/* Prevent Safari from showing the URL bar on scroll */
@media screen and (max-width: 768px) {
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Add a wrapper to handle scrolling */
    .page-container {
        min-height: 100vh;
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
}

/* Table Scroll Container */
.table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    border-radius: 8px;
    background-color: var(--surface-color);
}

/* Tables Flex Container */
.tables-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
}

/* Location Container */
.location-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    min-width: 280px;
    max-width: 100%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Name Table */
.name-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    background-color: var(--surface-color);
}

.name-table thead td {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.name-table td {
    padding: 0.5rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.8;
}

/* Add spacing between names */
.name-table td br {
    content: "";
    display: block;
    margin: 0.3rem 0;
}

/* Style for individual names */
.name-table td span {
    display: block;
    margin-bottom: 0.3rem;
}

/* Day Time Header */
.day-time-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.day-time-header .day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.day-time-header .time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Teilnehmer Anzeige */
.teilnehmer-anzeige td {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 0.5rem;
}

.anzahl-zelle {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

/* Trainer Info */
.trainer-info {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trainer-info i {
    margin-right: 0.5rem;
    color: var(--text-accent);
}

/* Flash Message */
.flash-message {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background-color: var(--surface-color);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tables-flex-container {
        gap: 1rem;
        padding: 0.5rem;
    }

    .location-container {
        padding: 1rem;
        min-width: 100%;
    }

    .name-table {
        font-size: 0.85rem;
    }

    .day-time-header .day {
        font-size: 1rem;
    }

    .day-time-header .time {
        font-size: 0.8rem;
    }

    .trainer-info {
        font-size: 0.85rem;
    }
}

/* Name-Button Group Layout */
.name-button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0rem;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.participant-name {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

.name-table .remove-button {
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0; /* Prevents button from shrinking */
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.name-table .remove-button:hover {
    background: rgba(255, 0, 0, 0.2);
}

/* Table Layout */
.name-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    background-color: var(--surface-color);
}

.name-table thead td {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.name-table td {
    padding: 0.5rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

/* Day Time Header */
.day-time-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.day-time-header .day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.day-time-header .time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Teilnehmer Anzeige */
.teilnehmer-anzeige td {
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 0.5rem;
}

.anzahl-zelle {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

/* Einsatzplanung Styles */
.content-section {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.filter-header {
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-bg);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.filter-pill.active {
    background: var(--primary-color);
    color: white;
    opacity: 1;
}

.filter-pill i {
    font-size: 0.8rem;
}

.slots-section {
    margin-bottom: 2rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.slot-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.slot-card:hover {
    transform: translateY(-2px);
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.slot-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.time-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.slot-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slot-content .form-group {
    margin: 0;
}

.slot-content label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.slot-content label i {
    color: var(--primary-color);
}

.mitarbeiter-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.section-header {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mitarbeiter-list {
    margin-top: 2rem;
}

.mitarbeiter-list h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slots-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Selection Steps */
.selection-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.selection-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.location-tag,
.day-tag,
.course-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--secondary-bg);
    border: none;
    border-radius: 0.8rem;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.location-tag:hover,
.day-tag:hover,
.course-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.location-tag.active,
.day-tag.active,
.course-tag.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-tag i,
.day-tag i,
.course-tag i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.location-tag:hover i,
.day-tag:hover i,
.course-tag:hover i,
.location-tag.active i,
.day-tag.active i,
.course-tag.active i {
    color: white;
}

/* Enrollment Card */
.enrollment-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-top: 1rem;
}

.enrollment-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.enrollment-header h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.3rem;
}

.enrollment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-color);
}

.enrollment-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enrollment-content .form-group {
    margin: 0;
}

.enrollment-content label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.enrollment-content label i {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tag-grid {
        grid-template-columns: 1fr;
    }

    .enrollment-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.edit-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.edit-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #c82333;
}

.dashboard-registrations {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    background: var(--secondary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
}

.dashboard-registrations i {
    color: var(--primary-color);
}

/* Print styles for registration count */
@media print {
    .dashboard-registrations {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Info Toggle Styles */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-link {
    display: inline;
    cursor: pointer;
    color: #888;
    text-decoration: underline;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.info-link:hover {
    color: var(--text-primary);
    opacity: 1;
}

.info-content {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

.info-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.info-text ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.info-text li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Programm Info Styles */
.programm-info {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.programm-info.sommer-mode {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.programm-info.mugging-mode {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.programm-info.standard-mode {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.programm-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.programm-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .info-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .info-content {
        padding: 0.8rem;
    }
    
    .info-text h4 {
        font-size: 0.9rem;
    }
    
    .info-text li {
        font-size: 0.9rem;
    }
}

.location-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-weight: 500;
}

.location-link:hover .pulsate-icon {
    animation-play-state: paused;
    color: #007bff;
}

.pulsate-icon {
    font-size: 0.95em;
    opacity: 0.7;
    transition: color 0.2s, opacity 0.2s, transform 0.2s;
}

.location-link:hover .pulsate-icon {
    color: #007bff;
    opacity: 1;
    transform: scale(1.15);
}

@keyframes pulsate {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.pulsate-star {
    color: #ffe066 !important;
    animation: pulsate-star 1.5s infinite;
}

@keyframes pulsate-star {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.18); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.register-form {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 2rem auto;
    display: block;
}

.register-field {
    margin-bottom: 1.3rem;
}

.register-field:last-child {
    margin-bottom: 0;
}

.register-input, .register-button {
    width: 250px;
    height: 46px;
    padding: 0 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.register-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.13);
}

.register-button {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.register-button:hover {
    background: var(--primary-color-dark);
    color: #fff;
}


