/* Allgemeine Einstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

/* Header */
header {
  background-color: #000;
  padding: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*max-width: 1200px;*/
  margin: 0 auto;
  position: relative;
}

footer a {
    color: #ababab;
    font-family: "oswald", sans-serif;
    text-decoration: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  width: 5.3em;
}

/* Hamburger-Menü */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a, .logout-btn {
  text-decoration: none;
  color: white;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Logout Button */
.logout-btn {
  background: red;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: #f36c2e;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 1rem;
  /*background: linear-gradient(135deg, #007BFF, #0056b3);*/
  /*color: white;*/
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero button, form button {
  background-color: #f36c2e;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero button:hover {
  background-color: #000;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: #fff;
}

.feature {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
}

.feature h2 {
  margin-bottom: 1rem;
  color: #007BFF;
}

.feature p {
  color: #555;
}

.punkte {
    text-align: right;
}

.features .controls, .features .controls a  {
    background: #000;
    color: #f36c2e;
    text-align: left;
}

.features .controls  {
    margin: -1.5rem -1.5rem 0;
    border-radius: 10px 10px 0 0;
    padding: 0 0 0 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: #fff;
}

/* Tabelle Styling */
.table-container {
  width: 100%;
  overflow-x: auto; /* Ermöglicht horizontales Scrollen auf kleinen Bildschirmen */
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
}

th, td {
  padding: 0.3rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  /*background-color: #007BFF;*/
  /*background-color: #000;*/
  color: #f36c2e;
}

/* Alternierende Farben für Zeilen */
tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

button {
    display: block;
    clear: both;
    float: left;
}

/* Form handling */

form {
    margin: 0 0 0 10px;
}

form label {
    display: inline-flex;
    float: left;
    clear: both;
    width: 110px;
    margin: 0 0 10px  0;
}

form input[name='value'] {
    width: 30px;
}

form input, form select {
    display: inline-flex;
    float: left;
    margin: 0 0 10px  0;
    font-size: 1rem;
    padding: 2px 5px;
    clear: both;
    float: left;
}

form input[type='submit'] {
    clear: both;
    padding: 15px 20px;
    background: #f36c2e;
    border: #f36c2e;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

#prev_year a, #cur_year a, #next_year a {
    text-decoration: none;
    color: #f36c2e;
}


#prev_year {
    float:left;
    margin-top: 1rem;
    width: 33%;
    text-align: left;
    padding-left: 1rem;
}

#next_year {
    float: right;
    margin-top: 1rem;
    width: 33%;
    text-align: right;
    padding-right: 1rem; 
}

#cur_year {
    float: left;
    margin-top: 1rem;
    width: 33%;
}

/* Responsiv */
@media (max-width: 768px) {

    h3 {
        text-align: left;
        font-size: 1rem;
    }
   
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none; /* Kopfzeile ausblenden */
  }

  tr {
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
  }

  tr {
    border-bottom: 0.5rem solid #f36c2e; /* oder deine Wunschfarbe/-stärke */
  }
  
  td {
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #eee;
    min-height: 2.5rem;
    background: #fff;
    text-align: left;
    font-size: 1rem;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1em;
    top: 0.5em;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
    font-size: 1rem;
  }

  .feature p {
      text-align: left;
      font-size: 1rem;
  }
    .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #007BFF;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links.show {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}
