/* ==========================================================================
   Lokal eingebundene Schriftarten (Self-Hosted Google Fonts)
   ========================================================================== */

/* Montserrat - latin-ext (Umlaute, Sonderzeichen) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans - latin-ext (Umlaute, Sonderzeichen) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/opensans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/opensans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Grundlegende Einstellungen & Typografie
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

h1, h2, h3, h4, .site-title, nav {
  font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   Layout: Header, Main, Footer
   ========================================================================== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 1.5em;
}

footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3em 0 0 0;
}

/* ==========================================================================
   Komponenten: Header & Navigation
   ========================================================================== */
.logo-container {
  display: flex;
  align-items: center;
  padding: 1.5em 2em;
  background-color: white;
  position: relative;
}

.logo-image {
  height: 150px;
  margin-right: 15px;
}

.logo-text-image {
  height: 150px;
  width: auto;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav {
  background-color: #3498db;
  padding: 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 1em 1.5em;
  display: block;
  font-weight: 500;
  transition: background-color 0.3s;
}

nav a:hover,
nav a:focus {
  background-color: #2980b9;
  text-decoration: none;
  outline: none;
}

nav a.active {
  background-color: #2980b9;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 3px;
  background-color: white;
}

/* Mobile Menü Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  z-index: 101;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #2c3e50;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Animiertes Hamburger-Icon */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Komponenten: Seiten-spezifische Sektionen
   ========================================================================== */
.page-header {
  background-color: #3498db;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/page-header.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 3em 1em;
  margin-bottom: 2em;
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.2em;
  margin-bottom: 0.3em;
}

.page-header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.simple-header {
  background-image: none;
  background-color: #2c3e50;
  padding: 2em 1em;
}

.hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/tauben-header.png');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

.hero-content p {
  font-size: 1.2em;
  color: #34495e;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 2em;
  font-size: 2em;
  color: #2c3e50;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #3498db;
  margin: 0.5em auto 0;
}

.intro-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3em;
  padding: 0 1em;
}

.intro-section p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* ==========================================================================
   Komponenten: Karten (Highlights, News, Events etc.)
   ========================================================================== */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin: 3em 0;
}

.highlight-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 1.5em;
}

.highlight-card h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.4em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5em;
  margin-bottom: 0.8em;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  margin-top: 1em;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.news-preview {
  background-color: #f0f0f0;
  padding: 2em;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto 2em;
}

.news-preview h2 {
  color: #333;
  text-align: center;
}

.news-preview article {
  background-color: white;
  padding: 1.5em;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.news-preview h3 {
  color: #2c3e50;
  margin-top: 0;
}

.news-section {
  margin-bottom: 3em;
}

.news-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 3em;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  /* Verbesserte Anker-Navigation */
  scroll-margin-top: 100px;
  position: relative;
}

.news-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.news-content {
  padding: 2em;
}

.news-meta {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
  font-size: 0.9em;
  color: #7f8c8d;
}

.news-category {
  background-color: #3498db;
  color: white;
  padding: 0.2em 0.8em;
  border-radius: 20px;
}

.news-content h2 {
  margin-top: 0;
  color: #2c3e50;
}

/* News-Text: Strukturierter HTML-Content in News-Artikeln */
.news-text p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.news-text p:last-child {
  margin-bottom: 0;
}

.news-text h3 {
  color: #2c3e50;
  font-size: 1.3em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.news-text ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.news-text li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.news-text strong {
  color: #2c3e50;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1.5em;
}

.tag {
  background-color: #f0f0f0;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  font-size: 0.85em;
  color: #555;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.event-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
}

.event-date {
  background-color: #3498db;
  color: white;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

/* Gemeinsame Stile für Event-Datum (Karten und Modal) */
.event-day {
  font-size: 1.8em;
  font-weight: bold;
  display: block;
}

.event-month {
  text-transform: uppercase;
  font-size: 0.9em;
}

.event-details {
  padding: 1.5em;
  flex: 1;
}

.event-details h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #2c3e50;
}

.event-details p {
  margin: 0.5em 0;
  font-size: 0.9em;
  color: #555;
}

.event-details i {
  margin-right: 5px;
  color: #3498db;
}

.event-link {
  display: inline-block;
  margin-top: 1em;
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.event-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Komponenten: Footer
   ========================================================================== */
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5em;
}

.contact-info {
  grid-column: 1;
}

.footer-nav {
  grid-column: 2;
  justify-self: end;
}

.footer-column h3 {
  color: white;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 1em;
  position: relative;
  padding-bottom: 0.5em;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #3498db;
}

.contact-info p {
  margin: 0.5em 0;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: #3498db;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.7em;
}

.footer-nav a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #3498db;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1em;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s, transform 0.2s;
  position: relative;
}

/* Spezifische Anpassungen für einzelne Icons */
.social-links a i {
  font-size: 1.2em;
  line-height: 0; /* Verhindert zusätzlichen Raum unter den Icons */
  position: absolute; /* Absolute Positionierung für präzise Kontrolle */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Perfekte Zentrierung */
}

/* Spezifische Anpassungen für Facebook-Icon (oft nicht zentriert) */
.social-links a i.fa-facebook-f {
  font-size: 1.1em; /* Etwas kleiner */
  transform: translate(-50%, -50%); /* Perfekte Zentrierung */
}

/* Spezifische Anpassungen für Twitter-Icon */
.social-links a i.fa-twitter {
  font-size: 1.2em;
}

/* Spezifische Anpassungen für Instagram-Icon */
.social-links a i.fa-instagram {
  font-size: 1.3em;
}

.social-links a:hover {
  background-color: #3498db;
  transform: translateY(-2px);
}

.copyright {
  background-color: #2c3e50;
  margin-top: 3em;
  padding: 1.5em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright p {
  margin: 0;
  font-size: 0.9em;
  color: #bdc3c7;
  line-height: 1.5;
}

.copyright a {
  color: #bdc3c7;
  text-decoration: none;
}

.copyright a:hover {
  color: #3498db;
}

/* ==========================================================================
   Komponenten: Formulare & Rechtliches
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 5fr 8fr;
  align-items: start;
  gap: 2em;
  margin-bottom: 3em;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.contact-info-box, .contact-form-box {
  background-color: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-method {
  display: flex;
  margin-bottom: 1.5em;
}

.contact-icon {
  font-size: 1.5em;
  color: #3498db;
  margin-right: 1em;
  min-width: 30px;
}

.contact-details h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  color: #2c3e50;
}

.contact-details p {
  margin: 0.2em 0;
}

.social-contact {
  margin-top: 2em;
}

.social-contact h3 {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #2c3e50;
}

/* Verbesserte Sichtbarkeit für Social Media Icons in der Kontaktseite */
.social-contact .social-links a {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.social-contact .social-links a i {
  color: #3498db;
  font-size: 1.2em;
}

.social-contact .social-links a:hover {
  background-color: #3498db;
}

.social-contact .social-links a:hover i {
  color: white;
}

.contact-form .form-group {
  margin-bottom: 1.5em;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
}

.submit-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.8em 2em;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
}

.submit-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notice-box {
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 1em;
  margin-bottom: 1.5em;
  display: flex;
  align-items: flex-start;
}

.notice-box i {
  color: #3498db;
  font-size: 1.2em;
  margin-right: 10px;
  margin-top: 3px;
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #95a5a6;
}

.disabled:hover {
  background-color: #95a5a6;
  transform: none;
  box-shadow: none;
}

.legal-section {
  padding: 0 1em;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
  color: #2c3e50;
  margin-top: 2em;
  margin-bottom: 1em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: #3498db;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.legal-content p {
  margin-bottom: 1em;
}

.legal-content a {
  color: #3498db;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Bankdaten-Bereich */
.bank-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  position: relative;
}

.bank-details {
  margin-bottom: 20px;
}

.bank-details p {
  margin: 10px 0;
  font-size: 1.05em;
}

.copy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.copy-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  transition: background-color 0.3s, transform 0.2s;
}

.copy-button i {
  margin-right: 6px;
}

.copy-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.copy-all {
  margin-top: 10px;
  background-color: #2c3e50;
  padding: 10px 15px;
}

.copy-all:hover {
  background-color: #1a252f;
}

.copy-notification {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #2ecc71;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.copy-notification.show {
  display: flex;
  align-items: center;
  opacity: 1;
}

.copy-notification i {
  margin-right: 6px;
}

.donation-info {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.donation-info h3 {
  color: #2c3e50;
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* ==========================================================================
   Komponenten: Interaktive Elemente (FAQ, Modals)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1em;
  overflow: hidden;
}

.faq-question {
  padding: 1.5em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #2c3e50;
  flex: 1;
}

.faq-toggle {
  color: #3498db;
  min-width: 20px;
  text-align: center;
}

.faq-answer {
  padding: 0 1.5em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p, .faq-answer ul {
  margin-bottom: 1.5em;
  padding-bottom: 0.5em;
}

.faq-answer ul {
  padding-left: 1.5em;
}

/* --- MODAL STYLES (für alle Modals) --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

/* Klasse, die das Modal sichtbar macht */
.modal-overlay.modal-show {
  display: block;
}

.modal-container {
  position: relative;
  background-color: white;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  margin: 40px auto;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
  color: #f0f0f0;
}

/* Für "Was wir tun"-Modals */
#modal-overlay .modal-content {
  display: none;
}

/* Für Event-Modal */
#event-modal-content {
  display: block;
}

/* Verhindern des Scrollens des Hintergrunds */
body.modal-open {
  overflow: hidden;
}

/* --- SPEZIFISCHE STYLES FÜR "WAS WIR TUN"-MODALS --- */
#modal-overlay .modal-content h2 {
  background-color: #3498db;
  color: white;
  margin: 0;
  padding: 20px 30px;
  font-size: 1.8em;
  border-radius: 8px 8px 0 0;
}

#modal-overlay .modal-body {
  padding: 25px 30px 30px;
}

#modal-overlay .modal-body h3 {
  color: #2c3e50;
  margin: 1.5em 0 0.8em;
  font-size: 1.3em;
}

#modal-overlay .modal-body h3:first-child {
  margin-top: 0;
}

#modal-overlay .modal-body p {
  margin-bottom: 1em;
  line-height: 1.6;
}

#modal-overlay .modal-body ul {
  padding-left: 20px;
  margin-bottom: 1.5em;
}

#modal-overlay .modal-body li {
  margin-bottom: 0.8em;
  line-height: 1.5;
}

/* --- SPEZIFISCHE STYLES FÜR EVENT-MODAL --- */
.event-modal-header {
  background-color: #3498db;
  color: white;
  padding: 20px 30px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
}

.event-modal-date {
  background-color: white;
  color: #3498db;
  padding: 10px;
  border-radius: 6px;
  margin-right: 20px;
  text-align: center;
  min-width: 60px;
}

/* Keine doppelten Selektoren mehr - verwenden die gemeinsamen Stile oben */

.event-modal-header h2 {
  margin: 0;
  font-size: 1.8em;
  color: white;
  background-color: transparent;
  padding: 0;
}

.event-modal-body {
  padding: 25px 30px 30px;
}

.event-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.event-info p { 
  margin: 8px 0; 
}

.event-info i { 
  color: #3498db; 
  margin-right: 8px; 
}

.event-description { 
  margin-bottom: 20px; 
  font-size: 1.1em; 
  line-height: 1.6; 
}

.event-image { 
  margin: 20px 0; 
  border-radius: 6px; 
  overflow: hidden; 
}

.event-image img { 
  width: 100%; 
  height: auto; 
  display: block; 
}

/* Spezifische Anpassungen für das Aufklärung-Modal */
#aufklaerung-modal .modal-body {
  /* Verbesserte Textdarstellung */
  font-size: 0.95em;
  line-height: 1.6;
}

#aufklaerung-modal ul {
  /* Bessere Listenformatierung */
  padding-left: 18px;
  margin-bottom: 1.2em;
}

#aufklaerung-modal li {
  /* Mehr Platz zwischen den Listenpunkten */
  margin-bottom: 1em;
  padding-right: 5px;
}

#aufklaerung-modal h4 {
  /* Bessere Überschriften */
  color: #2c3e50;
  margin: 1.2em 0 0.7em;
  font-size: 1.1em;
}

/* Animation für das Modal */
@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ==========================================================================
   Komponenten: Über uns Seite
   ========================================================================== */
/* Abschnitt: Unsere Geschichte */
.about-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 3em;
  align-items: center;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Abschnitt: Unsere Mission */
.mission-section {
  margin-bottom: 3em;
}

.mission-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.mission-item {
  background-color: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mission-icon {
  font-size: 2.5em;
  color: #3498db;
  margin-bottom: 0.5em;
}

.mission-item h3 {
  margin-top: 0;
  color: #2c3e50;
}

/* Abschnitt: Unser Team */
.team-section {
  margin-bottom: 3em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.team-member {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.member-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.member-info {
  padding: 1.5em;
}

.member-info h3 {
  margin-top: 0;
  color: #2c3e50;
}

.member-role {
  color: #3498db;
  font-weight: 600;
  margin-bottom: 1em;
}

/* Abschnitt: Unsere Partner */
.partners-section {
  margin-bottom: 3em;
}

.partners-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2em;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.partner {
  background-color: white;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.partner img {
  max-width: 150px;
  height: auto;
  margin-bottom: 1em;
}

/* ==========================================================================
   Hilfsklassen & Animationen
   ========================================================================== */
/* Verbesserte Anker-Navigation */
@keyframes highlightFade {
  0% { background-color: rgba(52, 152, 219, 0.2); }
  100% { background-color: transparent; }
}

.highlight-item {
  animation: highlightFade 3s ease-out;
  border-left: 4px solid #3498db;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

/* Modal-Links und CTA-Box */
.modal-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.modal-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Call-to-Action Box im Modal */
.cta-box {
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.cta-box p {
  margin-bottom: 10px;
  font-weight: 600;
}

.cta-box .cta-button {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.cta-box .cta-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Danke-Seite Styles */
.thank-you-section {
  padding: 2em 0;
}

.thank-you-container {
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-box {
  background-color: white;
  padding: 3em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.thank-you-icon {
  font-size: 4em;
  color: #2ecc71;
  margin-bottom: 0.5em;
}

.thank-you-box h2 {
  color: #2c3e50;
  margin-bottom: 1em;
}

.thank-you-box p {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #555;
}

.thank-you-actions {
  margin-top: 2em;
}

/* Formular-Status-Meldungen */
.form-status {
  margin-top: 15px;
}

.success-message, .error-message {
  padding: 12px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success-message i, .error-message i {
  margin-right: 10px;
  font-size: 1.2em;
}

.success-message i {
  color: #28a745;
}

.error-message i {
  color: #dc3545;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .logo-container {
    padding: 1em;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
  
  .logo-image {
    height: 50px;
    margin-right: 10px;
    margin-bottom: 0;
  }
  
  .logo-text-image {
    height: 35px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #3498db;
    z-index: 100;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 70px;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  .main-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: block;
  }
  
  /* Overlay für den Hintergrund, wenn das Menü geöffnet ist */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  
  .menu-overlay.active {
    display: block;
  }
  
  /* Anpassung der aktiven Navigation für mobile Geräte */
  .main-nav a.active::after {
    width: 4px;
    height: 70%;
    left: 0;
    top: 15%;
    bottom: auto;
  }
  
  .hero-section {
    height: auto;
    padding: 3em 1em;
  }
  
  .hero-content {
    padding: 1.5em;
  }
  
  .hero-content h1 {
    font-size: 1.8em;
  }
  
  .section-title {
    font-size: 1.6em;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .contact-info, .footer-nav {
    grid-column: 1;
    justify-self: start;
  }

  .about-intro, .news-item {
    flex-direction: column;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.8em;
  }

  .modal-overlay {
    padding: 5px;
  }
  
  .modal-container {
    margin: 10px auto;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Für besseres Scrolling auf iOS */
  }
  
  #modal-overlay .modal-content h2, 
  .event-modal-header h2 {
    font-size: 1.5em;
    padding: 15px 20px;
  }
  
  #modal-overlay .modal-body, 
  .event-modal-body {
    padding: 15px 20px 20px;
  }

  .event-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .event-modal-date {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  /* Verbesserte Darstellung auf kleineren Bildschirmen */
  #aufklaerung-modal .modal-body {
    font-size: 0.9em;
    padding: 15px 20px;
  }
  
  #aufklaerung-modal li {
    line-height: 1.5;
  }
  
  .copy-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .copy-button {
    width: 100%;
    justify-content: center;
  }
  
  /* Verbesserte Schließen-Schaltfläche */
  .modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    z-index: 1002;
  }
  
  /* Größere Touch-Ziele für mobile Geräte */
  .cta-button, 
  .submit-button, 
  .read-more,
  .event-link {
    padding: 12px 20px;
    min-height: 44px; /* Apple empfiehlt mindestens 44px für Touch-Ziele */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .faq-question {
    padding: 15px;
    min-height: 44px;
  }
  
  .faq-toggle {
    padding: 10px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Verbesserte Abstände zwischen Elementen */
  .highlight-card {
    margin-bottom: 20px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  /* Verbesserte Lesbarkeit */
  body {
    font-size: 16px; /* Mindestens 16px für mobile Geräte */
  }
  
  p, li {
    line-height: 1.6;
  }
  
  /* Verbesserte Formulare für mobile Geräte */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 12px;
    font-size: 16px; /* Verhindert Zoom auf iOS */
  }
  
  .checkbox-group {
    margin: 20px 0;
  }
  
  .checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
  }
  
  /* Bessere Darstellung der Formularfelder */
  .form-group {
    margin-bottom: 20px;
  }
  
  .submit-button {
    width: 100%;
    margin-top: 10px;
  }
  
  /* Optimierte Bilder für mobile Geräte */
  .card-image {
    height: 200px; /* Etwas größer für bessere Sichtbarkeit */
  }
  
  .news-image img,
  .event-image img,
  .about-image img {
    max-height: 300px;
    object-fit: cover;
  }
  
  /* Verbesserte Darstellung von Bildern im Modal */
  .modal-body img {
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1em;
  }
  
  .cta-button {
    padding: 0.7em 1.5em;
    font-size: 0.85em;
  }
  
  .highlights {
    grid-template-columns: 1fr;
  }
  
  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
  
  .modal-container {
    margin: 5px;
    max-width: calc(100% - 10px);
    max-height: 88vh;
  }
  
  #modal-overlay .modal-content h2 {
    padding: 15px;
    font-size: 1.4em;
  }
  
  #modal-overlay .modal-body {
    padding: 15px;
  }
  
  #modal-overlay .modal-body h3 {
    font-size: 1.2em;
  }
  
  /* Verbesserte Darstellung auf sehr kleinen Bildschirmen */
  #aufklaerung-modal .modal-body {
    padding: 12px 15px;
    font-size: 0.85em;
  }
  
  #aufklaerung-modal ul {
    padding-left: 15px;
  }
  
  #aufklaerung-modal li {
    margin-bottom: 0.8em;
  }
  
  /* Verbesserte Lesbarkeit für kleine Bildschirme */
  #aufklaerung-modal p,
  #aufklaerung-modal li {
    margin-bottom: 0.6em;
    line-height: 1.4;
  }
}

/* Verbesserte Modal-Darstellung für mobile Geräte */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 85vh;
    margin: 10px auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Für besseres Scrolling auf iOS */
  }
  
  #modal-overlay .modal-content h2,
  .event-modal-header h2 {
    font-size: 1.3em;
    padding: 12px 15px;
    line-height: 1.3;
  }
  
  #modal-overlay .modal-body,
  .event-modal-body {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  
  /* Spezifisch für das Aufklärungs-Modal */
  #aufklaerung-modal .modal-body {
    padding: 12px 15px;
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  #aufklaerung-modal ul {
    padding-left: 15px;
    margin-bottom: 1em;
  }
  
  #aufklaerung-modal li {
    margin-bottom: 0.7em;
  }
}

/* Noch kleinere Bildschirme (Smartphones) */
@media (max-width: 480px) {
  .modal-container {
    width: 98%;
    margin: 5px auto;
    max-height: 88vh;
  }
  
  #modal-overlay .modal-content h2,
  .event-modal-header h2 {
    font-size: 1.2em;
    padding: 10px 12px;
  }
  
  #aufklaerung-modal .modal-body {
    font-size: 0.85em;
    padding: 10px 12px;
  }
  
  /* Verbesserte Lesbarkeit für kleine Bildschirme */
  #aufklaerung-modal p,
  #aufklaerung-modal li {
    margin-bottom: 0.6em;
    line-height: 1.4;
  }
}

/* Styling für optimierte mobile Modals */
.toggle-content-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 4px;
  color: #3498db;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9em;
}

.toggle-content-btn:hover {
  background-color: #e0e0e0;
}

.image-preview {
  text-align: center;
  margin: 15px 0;
  cursor: pointer;
}

.expand-image-text {
  display: block;
  font-size: 0.8em;
  color: #777;
  margin-top: 5px;
}

.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-image-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.fullscreen-image img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
}

.close-fullscreen {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Verbesserte Lesbarkeit im Modal */
.info-box {
  background-color: #e8f4f8;
  border-left: 4px solid #3498db;
  padding: 12px 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.info-box h4 {
  margin-top: 0;
  color: #2980b9;
  font-size: 1.1em;
  margin-bottom: 8px;
}

/* Responsive Anpassungen für die Info-Box */
@media (max-width: 480px) {
  .info-box {
    padding: 10px;
    margin: 10px 0;
  }
  
  .info-box h4 {
    font-size: 1em;
  }
}

/* Verbesserte Darstellung von Bildern im Modal */
.modal-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 4px;
}
