/* Allgemeine Stile */
body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #b4e0d4; /* Weißer Hintergrund für die gesamte Website */
}

/* Allgemeine Stile für die Abschnitte */
.section {
    padding: 50px 20px;
    text-align: center;
    background: #b4e0d4;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4caf50; /* Setze die Farbe auf das gleiche Grün */
    text-align: center; /* Zentriere den Text */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
	background-color: #f0f0f0;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4caf50;
    color: white;
}

/* Container */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.edit-button-container {
    text-align: center;
    margin: 20px 0;
}

.edit-button {
    background-color: red; /* Grüner Hintergrund */
    color: white; /* Weiße Schrift */
    padding: 10px 20px; /* Innenabstand */
    text-decoration: none; /* Unterstreichung entfernen */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 16px; /* Schriftgröße */
}

.edit-button:hover {
    background-color: #45a049; /* Dunklere Farbe beim Hover */
}

/* Header (Hero Section) */
.hero {
    background: linear-gradient(135deg, #ed1111, #f2d40f);
    background-image: url('Schoenau1.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    text-align: center;
    position: relative;
    padding: 120px 20px 300px;
    z-index: 10;
    clip-path: ellipse(80% 100% at 50% 0%);
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 900;
    z-index: 3;
    color: #333;
}

.hero span {
    color: #ffd700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
    z-index: 3;
    color: #333;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Welle im Header */
.hero-wave {
    position: absolute;
    bottom: -0px;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    display: block;
    z-index: 1;
}

/* Kalender Abschnitt */
#calendar-controls {
    text-align: center;
    margin-bottom: 20px;
}

button {
    margin: 0 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button.active {
    background-color: #f5640a; /* Hervorhebung */
}

#calendar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.day {
    width: 14.28%; /* 7 Tage, 100% / 7 = 14.28% */
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    text-align: center;
    position: relative;
}

.day-header {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
}

/* Über das Dorf Abschnitt */
.dorf-section {
    padding: 50px 20px;
    text-align: center;
    background: #b4e0d4;
}

.dorf-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4caf50; /* Setze die Farbe auf das gleiche Grün */
	text-align: center; /* Zentriere den Text */
}

/* Neuigkeiten Abschnitt */
.news-section {
    padding: 50px 20px;
    text-align: center;
    background: #b4e0d4;
}

.news-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4caf50;
}

/* Kalender Abschnitt */
.calendar-section {
    padding: 50px 20px;
    text-align: center;
}

.calendar-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4caf50; /* Setze die Farbe auf das gleiche Grün wie die anderen Überschriften */
}

/* Dorfvereine Abschnitt */
.vereine-section {
    padding: 50px 20px;
    text-align: center;
    background: #b4e0d4;
}

.vereine-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4caf50; /* Setze die Farbe auf das gleiche Grün */
	text-align: center; /* Zentriere den Text */
}

/* Kontakt Abschnitt */
.contact-section {
    padding: 50px 20px;
    text-align: center;
    background: #b4e0d4; /* Weißer Hintergrund */
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4caf50;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: white; /* Weißer Hintergrund */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4caf50;
}

.submit-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #f5640a;
}

/* Footer */
.footer {
    background: #4caf50;
    color: white;
    text-align: center;
    padding: 20px 10px;
}

.footer p {
    margin: 0;
}

.popup {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 1000; /* Über anderen Inhalten */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparentes Hintergrund */
}

.popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Breite des Popups */
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.accordion {
      border: 1px solid #ccc;
      border-radius: 30px;
      margin-bottom: 10px;
}
.accordion-header {
      display: flex;
      align-items: center;
      cursor: pointer;
      padding: 2px 8px;
      background-color: #4caf50;
      border-bottom: 1px solid #ccc;
	  border-radius: 30px;
}
.accordion-header:hover {
      background-color: #65db6a;
}
.accordion-header .arrow {
      width: 0;
      height: 0;
      margin-right: 10px;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 6px solid #333;
      transition: transform 0.3s ease;
      transform: rotate(-90deg);
}
.accordion-header.active .arrow {
      transform: rotate(0deg);
}
.accordion-content {
      max-height: 0;
      overflow: auto;
	  border-radius: 30px;
      padding: 0 10px;
      transition: max-height 0.3s ease, padding 0.3s ease;
      background-color: #fff;
}
.accordion-content.open {
      max-height: 1000px; /* Setzen Sie eine ausreichend große Höhe */
      padding: 10px;
	  border-radius: 30px;
}

.accornews {
      border: 1px solid #ccc;
      border-radius: 30px;
      margin-bottom: 10px;
}
.accornews-header {
      display: flex;
      align-items: center;
      cursor: pointer;
      padding: 2px 8px;
      background-color: #4caf50;
      border-bottom: 1px solid #ccc;
	  border-radius: 30px;
}
.accornews-header:hover {
      background-color: #65db6a;
}
.accornews-header .arrow {
      width: 0;
      height: 0;
      margin-right: 10px;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 6px solid #333;
      transition: transform 0.3s ease;
      transform: rotate(-90deg);
}
.accornews-header.active .arrow {
      transform: rotate(0deg);
}
.accornews-content {
      max-height: 0;
      overflow: hidden;
      padding: 0 10px;
      transition: max-height 0.3s ease, padding 0.3s ease;
      background-color: #fff;
}
.accornews-content.open {
      max-height: 800px; /* Setzen Sie eine ausreichend große Höhe */
      overflow: auto;
      padding: 10px;
}

/* Lade-Indikator */
.loading-indicator {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.dots {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Medienanfragen */
@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-section p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 15px;
    }
}

/* Stil für den Abonnieren-Button */
.btn-secondary {
	border-radius: 30px;
    background-color: #540d0d; /* Beispiel für einen blauen Hintergrund */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #911111; /* Dunklerer Blauton beim Hover */
}