/* === Grundlayout === */
body {
	margin: 0;
    padding: 0;
    background-color: #2c2c2c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
	min-height: 100vh;
	 
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

main {
  flex: 1; /* ← sorgt dafür, dass der Inhaltsbereich den verfügbaren Platz bekommt */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Optional: zentriert vertikal */
  padding: 20px;
  box-sizing: border-box;
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #fff;
}

/* === Buttons === */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  background-color: #8B0000;
  color: white;
  transition: background-color 0.2s ease;
  margin: 5px 5px 10px 0;
}

.btn:hover {
  background-color: #B22222;
}

.btn-reset {
  background-color: #666;
}

.btn-reset:hover {
  background-color: #888;
}

.btn-logout {
  background-color: #8B0000;
}

.btn-logout:hover {
  background-color: #B22222;
}

/* === Formular-Elemente === */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #555;
  color: #fff;
  box-sizing: border-box;
}

input[type="submit"] {
  background-color: #8B0000;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #B22222;
}

/* === Modal-Fenster === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #333;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  color: #fff;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
}

/* === Tabellenübersicht (z. B. für admin.php) === */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 20px;
}

table thead {
  background-color: #333;
}

table thead th {
  padding: 12px;
  text-align: left;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #555;
}

table tbody td {
  padding: 10px;
  border-bottom: 1px solid #444;
  color: #eee;
  font-size: 0.9rem;
  vertical-align: top;
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
  }

  .row {
    flex-direction: column;
  }

  .col {
    min-width: 100%;
  }

  table thead {
    display: none;
  }

  table, table tbody, table tr, table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #bbb;
    display: block;
    margin-bottom: 4px;
  }
}
   h1 {
      margin-bottom: 40px;
    }

    .button-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      width: 80%;
      max-width: 800px;
    }

    .nav-button {
      background-color: #8B0000;
      border: none;
      padding: 20px;
      color: #fff;
      font-size: 1.2rem;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-align: center;
      text-decoration: none;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }

    .nav-button:hover {
      background-color: #B22222;
    }
	.btn-inact {
      background-color: #e4e4e4;
      border: none;
      padding: 20px;
      color: #fff;
      font-size: 1.2rem;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      text-align: center;
      text-decoration: none;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }

    @media (max-width: 600px) {
      .nav-button {
        font-size: 1rem;
        padding: 15px;
      }
    }
	  .welcome-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #3a3a3a;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    text-align: center;
  }

  .welcome-section h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
  }

  .welcome-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .welcome-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }

  .welcome-features li {
    background-color: #2c2c2c;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: #eee;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.05);
    text-align: left;
  }

  @media (max-width: 600px) {
    .welcome-section {
      margin: 20px;
      padding: 15px;
    }

    .welcome-section h1 {
      font-size: 1.5rem;
    }
  }
  .status-box {
  padding: 1rem;
  margin: 2rem auto;
  max-width: 500px;
  border-radius: 6px;
  text-align: center;
  font-size: 1.05rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.status-box.success {
  background-color: #e6ffed;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.status-box.verified {
  background-color: #d4edff;
  color: #004085;
  border: 1px solid #b8daff;
}
.status-box.logout {
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
}
.btn-logout-fixed {
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: #aa0000;
  color: white;
  font-size: 18px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: background 0.2s ease;
}

.btn-logout-fixed:hover {
  background-color: #cc0000;
}
