/* Basis Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Sandrolike', sans-serif;
  color: #333;
  background-image: url('../styles/bg5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100%;
  width: 100%;
}

/* Favicon */
link[rel="icon"] {
  content: url('../bilder/favicon.ico');
}

/* Wrapper */
#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Header */
#headerblur {
  min-height: 220px;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
}

#headerbild {
  max-width: 100%;
  height: auto;
}

/* Navbar */
nav {
  position: relative;
  z-index: 2;
  background-image: url('../styles/nav.png');
  background-repeat: repeat-x;
  padding: 10px;
  border-radius: 10px;
  margin-top: -30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-left {
  display: flex;
  gap: 20px;
}

.nav-right {
  margin-left: auto;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a#active {
  background-color: rgba(0, 102, 204, 0.7);
}

/* Verstecke Login-Link nach Anmeldung */
.logged-in .login-link {
  display: none;
}

/* Hauptinhalt */
#content {
  margin-top: 20px;
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

#text1 h1, #text1 h2, #text1 h3 {
  color: #0066cc;
  margin-bottom: 15px;
}

/* Login & Admin-Bereich */
.form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 50px auto;
  text-align: center;
}

.form-container input, .form-container select, .form-container textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: block;
  box-sizing: border-box;
  height: 45px;
}

.form-container button {
  background: #007BFF;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

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

/* 404-Seite Spezialhintergrund */
.bg {
  height: 100vh;
  background-image: url('../bilder/404.gif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Responsivität für mobile Geräte */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin-bottom: 10px;
  }

  #headerblur {
    min-height: 150px;
  }

  #content {
    padding: 15px;
  }

  .form-container {
    max-width: 90%;
  }
}

/* Barrierefreiheit */
a:focus, button:focus, input:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Interaktive Effekte */
a, button {
  transition: transform 0.2s ease, background-color 0.3s ease;
}

a:hover, button:hover {
  transform: translateY(-3px);
}
