* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #585857;
}

.bg_img {
  margin: 0;
  background-color: #ffffff;
  background-image: url(login_bg.jpg);
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.error {
  color: red;
  text-align: center;
  margin: 40px;
}

.login, .register {
  width: 400px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 50px auto;
  padding: 15px;
  backdrop-filter: blur(10px);
  border-radius: 40px
}

.login h1, .register h1 {
  text-align: center;
  color: #953501;;
  font-size: 24px;
  margin-bottom: 2rem;
}

.login .links, .register .links {
  /*display: flex; */
  padding: 0 15px;
  align-content: center;
}

.login .links a, .register .links a {
  color: #953501;
  text-decoration: none;
  display: inline-flex;
  padding: 0 10px 10px 10px;
  font-weight: bold;
  display: flex;
  justify-content: center;  
}

.login .links a:hover, .register .links a:hover {
  color: #ef6500;
}

.login .links a.active, .register .links a.active {
  border-bottom: 3px solid #ef6500;
  color: #ef6500;
}

.login form, .register form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.login form label, .register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12%;
  height: 50px;
  background-color: #ef6500;
  color: #ffffff;
}

.login form input[type="password"], .login form input[type="text"], .login form input[type="email"], .register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
  width: 80%;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
}

.login form input[type="submit"], .register form input[type="submit"] {
  width: 50%;
  padding: 15px;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  background-color: #953501;;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.login form input[type="submit"]:hover, .register form input[type="submit"]:hover {
  background-color: #ef6500;
  transition: background-color 0.4s;
}

.login form #rememberme, .register form #rememberme {
  width: 100%;
  height: auto;
  padding: 5px 20px;
  background-color: transparent;
  color: #000;
  justify-content: flex-start;
}

.login form .msg, .register form .msg {
  padding: 0 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
} 

.login form > a, .register form > a {
  text-decoration: none;
  color: #5b6574;
  width: 100%;
  padding: 5px 20px;
}

.login form > a:hover, .register form > a:hover {
  color: #394049;
}

.navtop {
  background-color: #953501;;
  height: 60px;
  width: 100%;
  border: 0;
}

.navtop div {
  display: flex;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
}

.navtop div h1 {
  flex: 1;
  font-size: 24px;
  padding: 0;
  margin: 0;
  color: #eaebed;
  font-weight: normal;
}

.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  color: #c1c4c8;
  font-weight: bold;
}

.navtop div a i {
  padding: 2px 8px 0 0;
}

.navtop div a:hover {
  color: #eaebed;
}

body.loggedin {
  background-color: #f3f4f7;
}

.content {
  width: 1000px;
  margin: 0 auto;
}

.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 22px;
  border-bottom: 1px solid #e0e0e3;
  color: #4a536e;
}

.content .block {
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  margin: 25px 0;
  padding: 25px;
  background-color: #fff;
}

.content .block table {
  width: 100%;
}

.content .block table td {
  overflow: hidden;
  padding: 5px;
}

.content .block table td:first-child {
  font-weight: bold;
  color: #4a536e;
  padding-right: 15px;
}

.content .block table td:last-child {
  word-break: break-all;
}

.content .block p {
  padding: 5px;
  margin: 0 0 10px 0;
}

.content.profile form label {
  display: block;
  padding: 10px 0 5px 0;
}

.content.profile form input[type="text"], .content.profile form input[type="password"], .content.profile form input[type="email"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ddd;
}

.content.profile .profile-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #3274d6;
  margin: 15px 5px 0 0;
  padding: 10px 15px;
  border-radius: 0;
  -webkit-border-radius: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.content.profile .profile-btn:hover {
  background-color: #2868c7;
}

@media screen and (max-width: 400px) {
  .login, .register {
    width: 95%;
  }
}

@media screen and (max-width: 1000px) {
  .navtop {
    height: auto;
    padding: 10px;
  }
  .navtop div {
    flex-flow: wrap;
    width: 100%;
  }
  .navtop div h1 {
    display: block;
    flex-basis: 100%;
  }
  .navtop div a {
    padding: 10px 0;
    flex-basis: 50%;
  }
  .content {
    padding: 10px;
    width: 100%;
  }
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"] {
    width: 100%;
  }
}






 /* The snackbar - position it at the bottom and in the middle of the screen */
 #snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 300px; /* Set a default minimum width */
  width: 300px;
  margin-left: -150px; /* Divide value of min-width by 2 */
  background-color: #ff9506;
  /*color: #953501; /* Black background color */
  color: #662400; /* Black background color */
  /* border: 2px solid #ff9506; */
  font-weight: bold;
  text-align: center; /* Centered text */
  border-radius: 10px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
  animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
} 

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 10px auto; /* 15% from the top and centered */
  padding: 15px;
  border-radius: 25px;
  max-width: 600px; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-inline: 15px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
  margin-inline: 15px;
} 

.faq-p {
  padding-left: 15px;
}

.faq-main-title {
  margin-top: 10px;
  margin-bottom: 7px;
  text-align: center;
  color: #953501;;
  font-size: 20px;
}

.faq-title {
  color: #ff9506;
}

.top-right-div {
  position: fixed;
  top: 15px;
  right: 15px;
}

.top-right-div button {
  padding: 10px 20px;
  border: none;
  background-color: #953501;
  color: white;
  border-radius: 7px;
  cursor: pointer;
}

.top-right-div button:hover {
  background-color: #ff9506;
  transition: background-color 0.4s;
}

.back {
  margin: auto;
  padding-left: 6px
}

p {
  font-weight: bold;
  margin-top: 2rem;
  color: #953501;
}

.btn {
  width: 50%;
  padding: 15px;
  margin-top: 20px;
  background-color: #953501;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.btn:hover {
  background-color: #ef6500;
  transition: background-color 0.4s;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ff9506;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin-right: 7px;
}

/* Checked-Zustand */
input[type="checkbox"]:checked {
  background-color: #ff9506; /* gewünschte Farbe */
  border-color: #ff9506;
}

/* Optional: Haken anzeigen */
input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  position: absolute;
  top: 0;
  left: 3px;
}