@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&amp;display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #2c5e1a, #3d7a26);
    color: white;
    text-align: center;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
}

nav {
    background: #2c5e1a;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
    border-radius: 8px;
}

nav ul li a:hover {
    background: #3d7a26;
    color: #fff;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c5e1a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background-color: #3d7a26;
    transform: translateY(-3px);
}

section {
    width: 80%;
    max-width: 1200px;
    padding: 30px;
    background: white;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c5e1a;
    margin-bottom: 30px;
}

section .leistungen-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

section .leistung-item {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

section .leistung-item:hover {
    transform: translateY(-5px);
}

section .leistung-item h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c5e1a;
    margin-bottom: 10px;
}

section .leistung-item p {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

section .leistung-item .leistung-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #2c5e1a;
    color: white;
    position: relative;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

footer a:hover {
    color: #3d7a26;
}

.leistung-item img {
    width: 300px;  /* Feste Breite */
    height: 200px;  /* Feste Höhe */
    object-fit: cover;  /* Bild passt sich an, ohne Verzerrung, aber es wird ggf. beschnitten */
    border-radius: 10px;  /* Abrundung der Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Optionaler Schatten */
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    footer {
        font-size: 0.9rem;
    }
}

/* Kontaktformular Styling */
.container form {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
}

.container form input,
.container form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.container form input:focus,
.container form textarea:focus {
    border-color: #2c5e1a;
    outline: none;
}

.container form textarea {
    height: 150px;
    resize: vertical;
}

.container form button {
    padding: 12px 20px;
    background-color: #2c5e1a;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.container form button:hover {
    background-color: #3d7a26;
    transform: translateY(-3px);
}

.container form button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Responsives Design für das Formular */
@media (max-width: 768px) {
    .container form {
        padding: 15px;
    }

    .container form input,
    .container form textarea {
        font-size: 0.9rem;
    }

    .container form button {
        font-size: 1rem;
    }
}

/* Styles für Notifications */
.notification {
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.notification.success {
    background-color: #4CAF50;
    color: white;
}

.notification.error {
    background-color: #f44336;
    color: white;
}

/* Optional: weitere Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.input-container {
    margin-bottom: 15px;
    padding: 10px;
}

.input-container input,
.input-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
}

/* Cookie-Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    z-index: 1000;
    display: none; /* Standardmäßig ausblenden */
}

.cookie-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.cookie-button:hover {
    background-color: #45a049;
}