/* styles.css */

/* 1) Grundlegendes Layout & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: #121212; /* Dark Theme Hintergrund */
  color: #e0e0e0; /* Heller Text */
  font-family: "Roboto", "Helvetica", sans-serif;
  line-height: 1.5;
  min-height: 100%;
}

/* Container für zentrale Inhalte */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* 2) Überschriften, Texte */
h1,
h2,
h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #bb86fc; /* Primärfarbe für abgesetzte Überschriften */
}

h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0.5rem 0;
}

/* 3) Formulare & Uploads */
form {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Input-Felder, inkl. File-Upload */
input[type="file"] {
  color: #e0e0e0;
  background-color: #1e1e1e;
  border: 1px solid #bb86fc;
  padding: 0.5rem;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  border-radius: 4px;
}

input[type="file"]::-webkit-file-upload-button {
  background: #bb86fc;
  color: #121212;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

/* Submit-Button */
button[type="submit"] {
  background-color: #03dac5; /* Sekundärfarbe */
  color: #121212;
  margin-top: auto;
  border: 1px solid #03dac5;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #26e0d0; /* etwas helleres Teal */
}

/* 4) Tabellen-Design */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: #1e1e1e;
  border: 1px solid #03dac5; /* Sekundärfarbe als Rahmen */
  border-radius: 4px; /* abgerundete Ecken */
  overflow: hidden;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #2a2a2a; /* Dezent dunkler Trennstrich */
}

th {
  background-color: #2c2c2c;
  color: #bb86fc; /* Primärfarbe für Head-Zeilen */
  font-weight: 400;
}

tr:last-child td {
  border-bottom: none;
}

/* Kleiner Hover-Effekt auf Tabellenzeilen */
tbody tr:hover {
  background-color: #2a2a2a;
}

/* 5) Besonders wichtige Informationen hervorheben */
.big-attendance {
  font-size: 3rem;
  font-weight: 700;
  color: #bb86fc;
  margin: 1rem 0;
  text-align: center;
}

.big-attendance-note {
  font-size: 1rem;
  color: #cfd8dc; /* Hellgrau/Weißton */
  text-align: center;
}

/* 6) Responsives Design (mobile Ansicht) */
@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  /* Table headings ausblenden in Mobile, stattdessen 
     kann man z.B. :before-Content nutzen (erfordert 
     jedoch etwas mehr CSS). Für ein kurzes Beispiel hier: */
  thead tr {
    display: none;
  }
  td {
    border: none;
    position: relative;
    padding-left: 50%;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.75rem;
    font-weight: bold;
  }
}
