/* Grundlayout */
html, body {
  height: 100%;
  margin: 0;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #10C903;
  min-height: 100vh;
}

/* Hauptbereich */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container */
.container {
  max-width: 600px;
  width: 100%;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Überschriften */
h1 {
  margin-bottom: 1rem;
  text-align: center;
}

/* Buttons */
.button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

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

/* Formulare */
.form-group {
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* 2FA */
#code-container {
  margin-top: 1rem;
}

#code-container label,
#code-container input {
  margin-bottom: 0.5rem;
}

/* Fehlermeldung */
.error-message,
.error-title {
  color: red;
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 1rem 0;
  /* border-top: 1px solid #eee; */
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #10C903;
  /* border-bottom: 1px solid #ccc;*/
  font-size: 1rem;
}

/* Linke Seite: topbar-left */
.topbar-left {
    flex: 1; /* nimmt den gesamten verfügbaren Platz ein */
    display: flex;
    justify-content: flex-start; /* nach links ausrichten */
}

/* Hamburger Menü Button */
.hamburger {
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    /*display: none;  Wird nur angezeigt, wenn der Benutzer angemeldet ist */
}

/* Mittlere Seite: topbar-middle */
.topbar-middle {
    flex: 1; /* nimmt ebenfalls verfügbaren Platz ein */
    display: flex;
    justify-content: center; /* zentriert den Inhalt */
    align-items: center;
}

/* Für das Logo */
.topbar-middle .logo {
  max-height: 3rem;
  width: auto;
}

/*----------------------------------------------------------------------*/
.topbar-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.globe-icon, .account-logo {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
}

.navbar-right {
	list-style-type: none;
	display: flex;
	padding: 0;
	margin: 0;
}

.navbar-right li {
	margin-right: 1.25rem;
	position: relative;
}

.navbar-right > li:hover .nav2,
.navbar-right > li .nav2:hover  {

	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.nav2 {
	border-radius: 0.3125rem;
	background: white;
	list-style-type: none;
	padding: 0.25rem;
	display: block;
	position: absolute;
	top: 2rem;
	right: -0.375rem;
	box-shadow: 0.25rem 0.25rem 0.625rem rgba(16, 100, 0, 0.8);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Erstellen des Pfeils für das Dropdown-Menü */
.nav2::before {
	content: "";
	position: absolute;
	top: -0.625rem; /* Pfeil oben an der Kante der Unterliste */
	right: 0.75rem; /* Positioniert den Pfeil */
	border-left: 0.375rem solid transparent;
	border-right: 0.375rem solid transparent;
	border-bottom: 0.6875rem solid #ffffff; /* Farbe des Pfeils */
	opacity: 0; 
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.navbar-right li:hover .nav2::before,
.navbar-right li .nav2:hover::before {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.nav2 button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  width: 100%;
}

.nav2 button:hover {
	background: #F0F0F0;
	border-radius: 0.25rem;	
}

.nav2 li {
	padding: 0;
	margin: 0;
}

.nav2 li:hover {
	background: #F0F0F0;
	border-radius: 0.25rem;
}

.nav2-link,
.nav2-link:link,
.nav2-link:visited,
.nav2-link:hover,
.nav2-link:active {
	display: block;
	padding: 0.25rem 1rem 0.25rem 0.25rem;
	margin: 0;
	text-decoration: none;
	color: black;
}

/*----------------------------------------------------------------------*/
/* Navbar, standardmäßig versteckt */
.navbar {
    display: none; /* Anfangs unsichtbar */
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #10C903;
    width: 100%;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.navbar ul li {
    padding: 10px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
}

/* Display the hamburger menu for screens below 768px */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Zeige den Hamburger-Button nur auf kleinen Bildschirmen */
    }
}

/* Wenn die Navbar sichtbar ist */
.navbar.open {
    display: block;
}

