@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* {
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding-top: 90px;
  background-color: #1e1e1e;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c2c2c;
  padding: 10px 20px;
  border-bottom: 2px solid #444;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar ul li a:hover {
  color: #00bcd4;
}

/* Hero Title */
.hero-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
}

/* Login-Link (in Navbar) */
#showLogin {
  background-color: #4CAF50;
  padding: 8px 14px;
  border-radius: 5px;
  color: white !important;
  transition: background-color 0.3s, transform 0.2s;
}

#showLogin:hover {
  background-color: #43a047;
  transform: scale(1.05);
}

/* Formular */
form {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
  transition: box-shadow 0.3s;
  color: #333;
}

form:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Überschrift */
h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 24px;
}

/* Labels */
label {
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #555;
}

/* Eingabefelder */
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s;
  color: #222;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Zeichenanzeige */
#charCount {
  font-weight: bold;
  font-size: 13px;
  color: #4CAF50;
}

/* Fehleranzeige */
input.error, select.error, textarea.error {
  border: 2px solid #e53935;
  background-color: #fff0f0;
}

.error-message {
  color: #e53935;
  font-size: 13px;
  margin-top: 4px;
}

/* Submit-Button */
button {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #43a047;
  transform: scale(1.02);
}

/* Statusnachricht */
#status {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  min-height: 24px;
}
