/* styles.css */

/* ================================
   Tabellen-Layout
   ================================ */

/* Wrapper für horizontales Scrollen */
.table-responsive {
    overflow-x: auto;
}

/* Grundlegende Tabellen-Stile */
#veranstaltungen-table {
    width: 100%;
    border-collapse: separate;
    font-family: Arial, sans-serif;
    border: 3px solid #2E2E2E;
    box-shadow: 0 20px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

/* Zellen-Stile */
#veranstaltungen-table th,
#veranstaltungen-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #2E2E2E;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 0 0 2px black;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s ease;
	width: 5%;
}

/* Header-Zellen */
#veranstaltungen-table th {
    background-color: #434343;
    color: #ffffff;
    font-weight: bold;
}

/* Spaltenbreiten */
#veranstaltungen-table th:nth-child(2),
#veranstaltungen-table td:nth-child(2) { width: 7%;  }  /* KW */
#veranstaltungen-table th:nth-child(3),
#veranstaltungen-table td:nth-child(3) { width: 10%; }  /* Datum */
#veranstaltungen-table th:nth-child(4),
#veranstaltungen-table td:nth-child(4) { width: 15%; }  /* Treffpunkt */
#veranstaltungen-table th:nth-child(5),
#veranstaltungen-table td:nth-child(5) { width: 15%; }  /* Anmeldefrist */
#veranstaltungen-table th:nth-child(6),
#veranstaltungen-table td:nth-child(6) { width: 20%; }  /* Info */
#veranstaltungen-table th:nth-child(7),
#veranstaltungen-table td:nth-child(7) { width: 25%; }  /* Teilnehmer */

/* Spezielle Ausrichtung für Info-Spalte */
#veranstaltungen-table th:nth-child(6) { text-align: center !important; }
#veranstaltungen-table td:nth-child(6) { text-align: left   !important; }

/* Zebra-Streifen & Hover */
#veranstaltungen-table tr:nth-child(even) {
    background-color: #434343;
    color: #ffffff;
}
#veranstaltungen-table tr:nth-child(odd) {
    background-color: #4C4C4C;
    color: #ffffff;
}
#veranstaltungen-table tr:hover {
    background-color: #242424;
}

/* Status-Klassen */
.expired   { background-color: #ffcccc; }
.active    { background-color: #ccffcc; }
.deadline  { color: #000000; }

/* Formulare ohne Schatten */
.centered-form form {
    border: none;
    margin: 0;
    background-color: #ffffff;
    box-shadow: none;
}

/* ================================
   Button-Container
   ================================ */

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center !important;;
    align-items: center;
}

/* ================================
   Button-Grundstil
   ================================ */



#generatePdfButton,
#kccWebsiteButton,
.logout-button,
.custom-button,
.custom-button-absagen {
    background-color: #0A0A1B !important;
    color: #ffffff;
    font-size: 14px;
    padding: 20px 40px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.1s;
    max-height: 55px;
}



.logout-button {
   font-size: 14px !important;
}


/* Generischer Hover für alle Buttons */
#generatePdfButton:hover,
#kccWebsiteButton:hover,
.logout-button:hover,
.custom-button:hover,
.custom-button-absagen:hover {
    background-color: #010614;
}

/* Spezifische Button-Varianten */
.custom-button {
    background-color: #4caf50 !important; 
    color: #090909;
    font-weight: bold;
    padding: 1px 20px;
}
.custom-button:focus,
.custom-button:active {
    background-color: #4caf50;
    color: #ffffff;
    box-shadow: inset 2px 2px 6px #c5c5c5, inset -2px -2px 6px #4caf50;
    transform: scale(0.97);
}

.custom-button-absagen {
    background-color: #EB443F !important;
    color: #090909;
    font-weight: bold;
}
.custom-button-absagen:focus,
.custom-button-absagen:active {
    background-color: #EB443F;
    color: #ffffff;
    box-shadow: 7px 5px 56px -10px #EB443F;
    transform: scale(0.97);
}

/* Zusätzliche Abstände */
#kccWebsiteButton {
    margin-top: 12px;
}
#generatePdfButton {
    margin-top: 12px;
}

/* ================================
   Responsive Anpassungen
   ================================ */

@media (max-width: 768px) {
    /* Tabellen-Schriftgröße */
    #veranstaltungen-table th,
    #veranstaltungen-table td {
        font-size: 10px;
    }
    /* Buttons mobil: volle Breite */
    #generatePdfButton,
    #kccWebsiteButton,
   
    .custom-button,
    .custom-button-absagen {
        font-size: 13px;
        padding: 15px 30px;
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 480px) {
    /* Buttons noch kompakter */
    #generatePdfButton,
    #kccWebsiteButton,
    .logout-button,
    .custom-button,
    .custom-button-absagen {
        font-size: 12px;
        padding: 12px 24px;
    }
}


@media (max-width: 768px) {
  .logout-button {
    font-size: 12px !important;
 padding: 15px 30px !important;
  }
}




/* ist von form-template */
 
/* Generelles Form-Styling */
body {
    font-family: 'Merriweather', sans-serif;
    background-color: #f5f5f5;
}

/* Chosen/Select2 Input anpassen */
.select2-search__field {
    color: #ffffff !important;
    text-align: left;
    font-size: 14px;
    padding-left: 0;
    height: 40px;
    box-sizing: border-box;
background-color: #212121 !important;
}
.select2-search__field::placeholder {
    color: #ffffff !important;
    font-size: 14px;
    text-align: left;
}

/* Formular-Container */
form {
    background: linear-gradient(145deg, #2E2E2E, #505050) padding-box,
                linear-gradient(145deg, #2E2E2E, #505050) border-box;
    border: 2px solid transparent;
    padding: 32px 24px;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

/* Formular-Gruppen */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-group label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}
.form-group select {
    width: 100%;
    padding: 0 10px;
    border: 1px solid #ada6a6;
    border-radius: 5px;
    background-color: #212121 !important;
    color: #ffffff;
    font-size: 1.2rem;
    height: 40px;
    box-sizing: border-box;

}

.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 100%;
    margin-top: -2px !important;
    padding: 0;
}



/* Formular-Buttons */
.custom-button,
.custom-button-absagen {
     padding: 10px 20px;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    text-align: center;
}

.custom-button:focus,
.custom-button:active {
    background-color: #4caf50;
    color: #ffffff;
    box-shadow: inset 2px 2px 6px #c5c5c5, inset -2px -2px 6px #4caf50;
    transform: scale(0.97);
}

/* Logout-Button im Formular */
.logout-button {
    background-color: #06153B;
    color: #ffffff;
    padding: 20px;
    font-size: 12px;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.logout-button:focus,
.logout-button:active {
    outline: none;
}

/* Select2 Overrides */
.select2-container--default .select2-selection--multiple {
    background-color: #212121 !important;
    border: 1px solid #ffffff;
    padding-left: 10px;
    height: 40px;
    font-size: 1.2rem;


}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffffff;
    color: #212121;
    border: none;
    font-size: 14px;
    text-align: center;
    padding: 0 6px;
    margin: 4px 4px 0 0;
¥
}
.select2-results__option {
    background-color: #212121;
    color: #ffffff;
}

/* Responsive für Formular-Template */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
    }
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }
    .custom-button,
    .custom-button-absagen {
        width: 100%;
        margin-bottom: 10px;
    }
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        width: 26%;
        font-size: 12px;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .select2-search__field {
        font-size: 10px;
        padding-left: 0;
    }
    .select2-search__field::placeholder {
        font-size: 12px;
    }
}

