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

body {
    font-family: Arial, sans-serif;
    background-color: #e6f2ec;
    color: #2b3e34;
}

/* Header und Navigation */
header {
    background: linear-gradient(135deg, #2b3e34, #1a3d29);
    padding: 1rem 0;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}

/* Logo */
.logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative;
    margin: 0 10px;
}

.nav-links a {
    color: #e6f2ec;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7fcb87;
}

/* Dropdown Menü */
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a3d29;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 5px 0;
}

.dropdown-content a {
    color: #e6f2ec;
    font-weight: normal;
}

.dropdown-content a:hover {
    color: #7fcb87;
}

/* Sprachauswahl */
.language-select {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.language-select a {
    font-weight: 700;
    color: #7fcb87;
    text-decoration: none;
}

.language-select a:hover {
    color: #e6f2ec;
}

/* Hauptbereich */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

#intro {
    text-align: center;
    padding: 2rem 0;
}

#intro h1 {
    font-size: 2.5rem;
    color: #1a3d29;
    margin-bottom: 1rem;
}

#intro p {
    font-size: 1.2rem;
    color: #4f6655;
}

#latest-news h2 {
    font-size: 2rem;
    color: #2b3e34;
    margin-bottom: 1rem;
    text-align: center;
}

/* Kartenstil für Beiträge */
.post {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post h3 {
    font-size: 1.5rem;
    color: #2b3e34;
    margin-bottom: 0.5rem;
}

.post p {
    color: #4f6655;
    margin-bottom: 1rem;
}

.post a {
    color: #7fcb87;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post a:hover {
    color: #2b3e34;
}

/* Footer */
footer {
    background: #1a3d29;
    color: #e6f2ec;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-top: 1rem;
}

footer a {
    color: #7fcb87;
    text-decoration: none;
}

footer a:hover {
    color: #e6f2ec;
}

/* Newsletter */
.newsletter {
    margin-bottom: 1rem;
}

.newsletter h3 {
    color: #7fcb87;
}

.newsletter form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.newsletter input[type="email"] {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    width: 250px;
}

.newsletter button {
    padding: 0.5rem 1rem;
    background-color: #7fcb87;
    color: #1a3d29;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #5fa568;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
    
    .language-select {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .logo {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }
}

.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;
}