/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    background-color: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-left .logo img {
    height: 60px;
    padding: 5px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.main-navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.main-navbar ul li {
    position: relative;
}

.main-navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-navbar ul li a:hover {
    background-color: #34495e;
    border-radius: 8px;
}

/* Dropdown-Menü */
.main-navbar ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    list-style: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.main-navbar ul li:hover .dropdown {
    display: block;
}

.dropdown li a {
    color: #fff;
    padding: 0.5em 1em;
    display: block;
    text-decoration: none;
}

.dropdown li a:hover {
    background-color: #3498db;
}

/* Sprache- und Benutzeroptionen */
.header-right {
    position: relative;
    display: flex;
    align-items: center;
}

.language-dropdown {
    position: relative;
}

.language-dropdown .dropbtn {
    background-color: #2c3e50;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 0.5em 1em;
    border-radius: 4px;
}

.language-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* direkt unter dem Button */
    right: 0;
    background-color: #34495e;
    min-width: 100px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999; /* ganz oben im Stack */
    overflow: hidden; /* keine überlappenden Inhalte */
}

.language-dropdown:hover .dropdown-content,
.language-dropdown .dropbtn:focus + .dropdown-content {
    display: block;
}

.language-dropdown .dropdown-content a {
    color: #fff;
    padding: 0.5em 1em;
    display: block;
    text-decoration: none;
}

.language-dropdown .dropdown-content a:hover {
    background-color: #3498db;
}


/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 2em auto;
    padding: 2em;
}

.welcome-section {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.welcome-section h1 {
    font-size: 2em;
    color: #2c3e50;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5em;
    font-size: 0.9em;
}

.legal-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
}

.legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Box für Sektionen */
.section-box {
    background-color: #fff;
    padding: 1.5em;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-box h2 {
    color: #2c3e50;
    font-size: 1.5em;
}

.section-box p {
    margin-top: 0.5em;
    color: #555;
}

.section-box ul {
    margin-top: 1em;
    padding-left: 1.5em;
}

.section-box ul li {
    margin-bottom: 0.5em;
}

/* Blog-Post-Stil */
.blog-post {
    margin-bottom: 1.5em;
}

.blog-post h3 {
    font-size: 1.3em;
    color: #2c3e50;
}

.blog-post p {
    color: #555;
    margin: 0.5em 0;
}

.read-more {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Stil für Teammitglieder */
.team-member {
    margin-bottom: 1.5em;
}

.team-member h3 {
    font-size: 1.2em;
    color: #2c3e50;
}

.team-member p {
    color: #555;
    margin: 0.5em 0;
}

/* Stil für das Kontaktformular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 0.2em;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    padding: 0.8em 1.2em;
    font-size: 1em;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.success {
    color: green;
    font-weight: bold;
    margin-top: 1em;
}

.error {
    color: red;
    font-weight: bold;
    margin-top: 1em;
}

/* Allgemeiner Hover-Effekt für Hauptmenüpunkte */
.main-navbar ul li a:hover {
    background-color: #34495e;
    border-radius: 8px;
}

/* Hover-Effekt für Dropdown-Menüpunkte */
.dropdown li a {
    color: #fff;
    padding: 0.5em 1em;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown li a:hover {
    background-color: #3498db;
    color: #fff;
    border-radius: 4px;
}

.cookie-banner {
  position: fixed;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  z-index: 9999;
  font-size: 14px;
  opacity: 0;
  transition: bottom 0.6s ease, opacity 0.6s ease;
  width: 90%;
  max-width: 700px;
}

.cookie-banner.show {
  bottom: 20px;
  opacity: 1;
}

.cookie-banner.hide {
  bottom: -300px;
  opacity: 0;
}

.cookie-banner p {
  margin: 0 0 10px 0;
  text-align: center;
  color: #333;
}

.cookie-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cookie-btns button {
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-btns button:first-child {
  background: #ccc;
  color: #333;
}

.cookie-btns button:last-child {
  background: #0073e6;
  color: #fff;
}