/* Allgemeine Stile */
body {
  font-family: 'Roboto', sans-serif;
  padding-top: 60px;
  background: url('images/background.jpg') no-repeat center center fixed; /* Hintergrundbild */
  background-size: cover; /* Bild wird skaliert, um den gesamten Hintergrund zu füllen */
  color: #333;
  line-height: 1.6;
  margin: 0;
}

body.pt-bg {
  background-image: url('images/background_pt.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.br-bg {
  background-image: url('images/background_br.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2 {
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Textschatten für bessere Lesbarkeit */
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Sprachumschalter-Leiste */
#language-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 44px;
  background: rgba(255,255,255,0.7);
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between; /* Platz zwischen links und rechts */
}

#language-bar .page-switch {
  display: flex;
  gap: 8px;
}

#language-bar .page-switch button {
  margin-top: 0;
  background-color: #1196ca;
  color: white;
  border: none;
  border-radius: 8px;
  white-space: nowrap;
  padding: 4px 40px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#language-bar .page-switch button:hover {
  background-color: #2980b9;
}

#language-bar .page-switch label {
  margin-top: 0;
  background-color: #1196ca;
  color: white;
  border: none;
  border-radius: 8px;
  white-space: nowrap;
  padding: 4px 40px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#language-bar .page-switch label:hover {
  background-color: #2980b9;
}

#language-bar .page-switch label input[type="checkbox"] {
  display: none;
}

#language-bar .page-switch label:has(input[type="checkbox"]:checked) {
  background-color: #ad5476;
  color: white;
}

#language-bar select {
  margin-left: 0;
  margin-right: 24px;
  margin-top: 0;
  margin-bottom: 0;
  width: auto;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}


/* Container-Stile */
#settings-container, #verb-container {
  background: rgba(255, 255, 255); /* Halbtransparenter Hintergrund */
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Formularelemente */
select, input, button {
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

select:focus, input:focus, button:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Buttons */
button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

button:hover {
  background-color: #2980b9;
}

#specialChars {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.special-btn {
  width: auto;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  background: #f4f4f4;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  color: #000000;
}

.special-btn:hover {
  background: #e2e2e2;
}

/* Feedback-Stile */
#feedback {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  #settings-container, #verb-container {
    padding: 15px;
    max-width: 100%;
  }

  h1, h2 {
    font-size: 1.5em;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }

  select, input {
    font-size: 14px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  h1, h2 {
    font-size: 1.2em;
  }

  button {
    font-size: 12px;
    padding: 6px;
  }

  select, input {
    font-size: 12px;
    padding: 6px;
  }
}