/* Hervorgehobener Block für h1 und den darauffolgenden Paragraph */
.welcome .highlight-block {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: -80px auto;
    max-width: 1200px;
  	height: 650px;
    text-align: center;
    box-shadow: 0 4px 10px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 7;
    margin-bottom: 60px; /* Vergrößert den Abstand zwischen Highlight Block und Slideshow */
}

.welcome .highlight-block h1 {
    font-size: 2.5rem; /* Größere Schriftgröße */
    color: #555; /* Auffällige Farbe */
    margin-bottom: 20px; /* Abstand zum darauffolgenden Paragraph */
    font-family: 'Arial', sans-serif; /* Einheitliche Schrift */
}

.welcome .highlight-block p {
    font-size: 1.2rem; /* Angenehme Lesbarkeit */
    line-height: 1.8; /* Genügend Abstand zwischen den Zeilen */
    color: #333; /* Gut lesbare Textfarbe */
    margin: 40px; /* Verhindert unnötige Abstände */
}

.welcome .highlight-block h3 {
    text-align: center;
    font-size: 2.0rem;
    max-width: 1000px;
    width: 100%; /* Sicherstellen, dass das h3 100% der Breite des Containers einnimmt */
    color: #08351c;
    margin: 0 auto 10px auto; /* Automatische Ränder links und rechts für Zentrierung */
}

.maps-link {
    color: #005c8e;
    text-decoration: none;
}

/* Hover-Effekt für den Link */
.maps-link:hover {
    color: #599be1 !important; /* Farbe ändern beim Hover */
}

/* Progress Bar Container */
.progress-container {
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    margin: 20px auto;
    text-align: center;
}

/* Progress Bar Hintergrund */
.progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(
        135deg, /* Winkel der Schraffur */
        rgba(0, 0, 0, 0.1) 0px,  /* Farbe und Startpunkt */
        rgba(0, 0, 0, 0.1) 6px, /* Wiederholungsabstand */
        rgba(255, 255, 255, 0) 10px, /* Lücke zwischen den Linien */
        rgba(255, 255, 255, 0) 20px /* Ende der Linie */
    );
    border: 4px solid #333;
    border-radius: 15px;
    overflow: visible;
    z-index: 10;
}

/* Fortschrittsanzeige */
.progress {
    height: 100%;
    border-radius: 10px 0 0 10px;
    transition: width 1.0s ease-in-out;
    background: linear-gradient(45deg, #ffc505, #e74c3c);
}

/* Milestones Container */
.milestones {
    position: absolute;
    top: -15px; /* Marker über der Progressbar */
    left: 0;
    width: 100%;
    pointer-events: none; /* Nicht klickbar */
    z-index: 2;
}

/* Einzelner Milestone */
.milestone {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%); /* Zentriert den Milestone */
    justify-content: flex-end; /* Damit die Beschreibung immer unter dem Punkt ist */
}

/* Linie des Milestones */
.milestone .line {
    width: 2px;
    transform: translateY(13px);
    height: 27px; /* Höhe der Linie */
    background-color: #777;
    z-index: 1;
}

/* Punkt am Ende der Linie */
.milestone .progress-dot {
    width: 24px;
    height: 24px;
    transform: translateY(15px);
    border-radius: 50%;
    background-color: #08351c;
    box-shadow: 0 4px 10px 2px rgba(0, 0, 0, 0.4);
    margin-top: 15px; /* Punkt über der Linie */
    z-index: 2;
}

.milestone .description-percentage {
    margin-top: 30px;
}

/* Beschreibung unter dem Dot */
.milestone .description {
    margin-top: 20px;
    position: absolute;
    top: 100px; /* Abstand zum Punkt */
    width: 140px; /* Breite der Beschreibung */
    height: 60px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
    overflow: hidden;
}

#progress-text, #value-euro {
    display: inline-block; /* Zeilenweise Anordnung */
    margin: 0 5px;
}

/* JETZT SPENDEN BUTTON */
.donlink {
	margin-top: 20px;
	background-color: none;
  	color: #f2f2f2; /* Textfarbe des Links */
    text-decoration: none; /* Entfernt Unterstreichung */
    font-size: 15px; /* Größe des Textes */
    align-items: center; /* Zentriert das Icon vertikal */
}

.donlink a {
    background-color: transparent; /* Hintergrund entfernen */
    color: #0a0a0d; /* Textfarbe beibehalten oder anpassen */
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #f2f2f2;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.donlink a:hover {
    background-color: #f2f2f2; /* heller Hintergrund beim Hover */
    color: #08351c; /* Textfarbe invertieren beim Hover */
}

.donlink a:visited,
.donlink a:active,
.donlink a:focus {
    background-color: transparent; /* sicherstellen, dass keine Standardfarbe verwendet wird */
    outline: none; /* optional: entfernt blauen Fokusrahmen */
}


/* Allgemeiner Stil für nachfolgende Absätze und Inhalte */
.welcome .content-section {
    margin: 20px auto; /* Zentrierung mit Abstand nach oben und unten */
    max-width: 800px; /* Maximale Breite für die Inhalte */
    text-align: center; /* Inhalte zentrieren */
    padding: 20px; /* Innenabstand für eine klare Struktur */
}

.welcome .content-section p {
    font-size: 1rem; /* Normale Schriftgröße */
    line-height: 1.6; /* Lesbarer Zeilenabstand */
    color: #555; /* Dezente Textfarbe */
}

.welcome .content-section h3 {
    font-size: 1.8rem; /* Überschrift hervorheben */
    color: #e65c00; /* Akzentfarbe */
    margin-bottom: 10px; /* Abstand zur Überschrift */
}


/* Stil für den schwarzen Banner mit Hintergrundbild */
.full-width-banner {
    position: relative; /* Für das Stapeln von Elementen */
    width: 100%;
    height: 1100px;
    overflow: hidden; /* Überschüssiges Bild abschneiden */
    margin-top: -450px;
}

.full-width-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Bild über die gesamte Breite skalieren */
    height: 100%; /* Bild über die gesamte Höhe skalieren */
    object-fit: cover; /* Bild proportional zuschneiden und füllen */
    z-index: 1; /* Hinter der Überlagerung */
}

.full-width-banner::after {
    content: ""; /* Pseudo-Element für die schwarze Überlagerung */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.836); /* Schwarzer halbtransparenter Overlay */
    z-index: 2; /* Über dem Bild */
}

/* News Container */
.news-container {
  margin: 20px auto;
  max-width: 900px;
  z-index: 10;
  margin-top: 20px;
}

.news-container h3 {
  font-size: 1.8em;
  margin-top: -10px;
  margin-bottom: 20px;
  color: #2c3e50;
  border-bottom: 3px solid #eee;
  padding-bottom: 10px;
  z-index: 10;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  gap: 15px;
  z-index: 11;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  max-height: 250px;   /* maximale Höhe */
  overflow: hidden;
}


.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.news-image-side {
  width: 200px;
  height: 200px;
  object-fit: cover;    /* proportional zugeschnitten */
  border-radius: 8px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;  /* für Button unten */
  padding: 0 5px 40px 10px; /* mehr Platz unten, damit Text nicht überlappt */
}

.news-content h4 {
  margin: 0;
  margin-bottom: -30px;
  margin-left: 40px;   /* rückt Überschrift etwas nach rechts */
  font-size: 1.7em;
  color: #555;
}

.news-content p {
  margin: -20px 0 40px 10px; /* Platz unten für Button */
  color: #555;
  font-size: 0.95em;
}

.news-content .read-more {
  position: absolute;   /* fix unten rechts */
  bottom: 60px;
  right: 40px;
  text-decoration: none;
  font-weight: bold;
  color: #0066cc;
  transition: color 0.2s ease;
}

.news-content .read-more:hover {
  color: #004999;
}

/* Mobile Ansicht */
@media screen and (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr; /* nur 1 Spalte */
  }

  .news-card {
    flex-direction: row;      /* Bild links, Text rechts bleibt */
    height: 170px;            /* etwas höher für sauberen Abstand */
    padding: 10px;
    position: relative;       /* Bezugspunkt für Button */
    overflow: hidden;
  }

  .news-image-side {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .news-content {
    position: relative;
    padding: 0 10px 45px 8px;  /* unten Platz für Button geschaffen */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .news-content h4 {
    font-size: 0.9em;
    margin: 0 0 6px 2px;
    color: #333;
  }

  .news-content p {
    font-size: 0.55em;
    color: #555;
    margin: 0 0 10px 5px;

    /* Textabschneidung mit "..." */
    display: -webkit-box;
    -webkit-line-clamp: 3;       /* Anzahl der sichtbaren Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-content .read-more {
    position: absolute;
    bottom: 15px;    /* fix am unteren Rand */
    right: 8px;   
    font-size: 0.9em;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .news-content .read-more:hover {
    color: #004999;
  }
}



/* Slideshow container */
.slideshow-container {
    width: 1000px;
    position: absolute; /* Ändert relative zu absolute */
    top: 1010px; /* Abstand vom oberen Rand */
    left: 50%;
    transform: translateX(-50%); /* Zentriert horizontal */
    z-index: 9;
}
  
  /* Hide the images by default */
  .mySlides {
    display: none;
  }
  
  /* Next & previous buttons */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
  
  /* Caption text */
  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: -28px;
    width: 100%;
    right: 10px;
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }

  .caption-link {
    color: #f2f2f2; /* Textfarbe des Links */
    text-decoration: none; /* Entfernt Unterstreichung */
    font-size: 15px; /* Größe des Textes */
    display: inline-flex; /* Ermöglicht Icon neben Text */
    align-items: center; /* Zentriert das Icon vertikal */
    transition: color 0.3s ease; /* Weicher Übergang bei Hover */
    }

    .caption-link:hover {
        color: hsl(224, 34%, 50%); /* Farbe bei Hover */
    }

    .external-link {
        margin-left: 15px; 
        margin-right: 5px; /* Abstand zwischen Icon und Text */
        font-size: 16px; /* Größe des Icons */
    }
    
    
/* Container für die Dots */
.dot-container {
    position: absolute; /* Absolut positioniert innerhalb des Slideshow-Containers */
    bottom: 20px; /* Abstand vom unteren Rand */
    left: 50%; /* Zentrierung horizontal */
    transform: translateX(-50%); /* Zentriert den Container horizontal */
    display: flex; /* Flexbox für horizontale Anordnung der Dots */
    gap: 10px; /* Abstand zwischen den Dots */
    z-index: 10; /* Über dem Bild sichtbar */
}

/* Stil für die einzelnen Dots */
.dot {
    height: 12px;
    width: 12px;
    background-color: transparent; /* Transparenter Hintergrund */
    border: 1px solid #ffffff; /* Rahmenfarbe */
    border-radius: 50%; /* Runde Dots */
    transition: background-color 0.6s ease; /* Weicher Übergang bei Hover oder Aktivierung */
    cursor: pointer; /* Zeigt einen klickbaren Bereich */
}

/* Aktiver Dot */
.dot.active {
    background-color: #ffffff; /* Hintergrundfarbe für aktiven Dot */
}

/* Hover-Effekt */
.dot:hover {
    background-color: #c1ffc4; /* Hintergrundfarbe beim Hover */
}

  
  
  .active {
    background-color: #757575;
  }
  
  
  .dot:hover {
    background-color: #c1ffc4;
  }
  
  /* Fading animation */
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }

.external-link {
    text-decoration: none; /* Entfernt die Unterstreichung */
    margin-left: 2px; /* Abstand zum Text */
    font-size: 16px; /* Größe des Icons */
    vertical-align: middle; /* Zentriert das Icon */
    transition: color 0.3s ease; /* Weicher Farbübergang bei Hover */
}

/* Stylen des content-wrapper */
.content-wrapper {
    display: flex; /* Flexbox, um die Container nebeneinander anzuzeigen */
    justify-content: center; /* Zentriert die Kacheln auf der horizontalen Achse */
    gap: 40px; /* Enge Abstand zwischen den Kacheln */
    margin-top: 20px; /* Abstand zum Slideshow-Container */
    margin-bottom: 50px;
    width: 100%; /* Nutzt die gesamte Breite */
}

/* Allgemeine Stilregeln für Kacheln */.instagram-container, .donation-container {
    padding: 20px; /* Abstand innerhalb der Kacheln */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ein leichter Schatten für den 3D-Effekt */
    width: 100%; /* Kacheln füllen zunächst den verfügbaren Raum */
    max-width: 600px; /* Maximale Breite der Kacheln */
}

.instagram-container {
    background-color: #ffffff; /* Helle Hintergrundfarbe für die Kacheln */
    display: flex; /* Ermöglicht zentriertes Layout */
    align-items: center; /* Zentriert den Inhalt vertikal */
    justify-content: center; /* Zentriert den Inhalt horizontal */
    box-sizing: border-box; /* Schließt Padding in die Breite mit ein */
}

.donation-container {
    background-color: #08351cea; /* Helle Hintergrundfarbe für die Kacheln */
    font-family: Arial, sans-serif; /* Lesbare Schriftart */
}

/* Optional: Anpassung für die Instagram-Embed-Kacheln */
.instagram-container blockquote {
    margin: 0; /* Verhindert zusätzlichen Abstand */
    padding: 0;
}

/* Überschriften */
.donation-container h3,
.donation-container h4 {
    margin-top: 20px; /* zusätzlicher Abstand oben */
    font-size: 2.5em;
    color: #c3dac7; /* Helle Schriftfarbe */
    text-align: center;
}

/* Beschreibungen */
.donation-container p {
    font-size: 1.5em;
    color: #e6e6e6; /* Dezente Schriftfarbe */
    text-align: center;
    margin: 10px 0;
}

/* Spendenbutton-Bereich */
.kachel-buttons {
    display: flex; /* Buttons nebeneinander */
    justify-content: center; /* Zentriert die Buttons horizontal */
    gap: 1rem; /* Abstand zwischen den Buttons */
    align-items: center; /* Vertikale Zentrierung */
}


.kachel-buttons a {
    display: flex; /* Flexbox für Inhalt des Buttons */
    align-items: center; /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    text-decoration: none; /* Standard-Link-Dekoration entfernen */
    color: white; /* Textfarbe */
    font-weight: bold;
    padding: 10px 20px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    height: 50px; /* Einheitliche Höhe für alle Buttons */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    transition: background-color 0.3s ease; /* Animation für Hover-Effekt */
}

.paypal-icon {
    width: 24px; /* Größe des Icons */
    height: 24px; /* Größe des Icons */
    margin-right: 10px; /* Abstand zwischen Icon und Text */
}

/* PayPal Button */
.paypal-button2 {
    background-color: #005c8e; /* PayPal Blau */
}

.paypal-button2:hover {
    background-color: #00466f; /* Dunkleres Blau */
}


/* Überweisung Button */
.spenden-link {
    background-color: #28a745; /* Grün */
}

.spenden-link:hover {
    background-color: #1f7d33; /* Dunkleres Grün */
}

.inline-link {
    color: #cbffd4; /* Blau passend zu PayPal */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #7cc085; /* Dunkleres Blau beim Hover */
}


/* Trennlinie */
.divider {
    border-top: 1px solid #ddd;
    margin: 20px 0;
}


/* Mitglied werden Button */
.membership-button {
    display: block;
    text-align: center;
    background-color: #ffffff; 
    color: #333;
    padding: 20px 30px;
    margin: 15px auto;
    font-size: 2em;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 400px; /* Begrenzte Breite */
}

.membership-button:hover {
    background-color: #b8b8b8; /* Dunkleres Gelb */
}


/* Medienabfragen für mobile Ansicht */
@media screen and (max-width: 768px) { /* Anpassung für mobile Geräte */
    html, body {
        overflow-x: hidden; /* Deaktiviert horizontales Scrollen */
    }
    .welcome .highlight-block {
        max-width: 98%;
        height: 510px;
        margin-top: -30px;
    }
    .welcome .highlight-block h1 {
        font-size: 1.8rem;
        margin-top: -5px;
        margin-bottom: 10px;
    }
    .welcome .highlight-block p {
        font-size: 1rem;
        line-height: 1.0;
        margin: 0px;
        margin-bottom: 20px;
    }
    .welcome .highlight-block h3 {
        font-size: 1.2rem;
        width: 100%;
        margin-bottom: 10px;
    }
    #progress-text, #value-euro {
        margin: 0 0px; /* statt 5px Seitenabstand in normaler Ansicht */
    }
    .progress-container {
        margin-top: 0px;
    }
    .milestone .progress-dot {
        width: 20px;
        height: 20px;
        transform: translateY(10px);
    }
    .milestone .description-percentage {
        margin-top: 15px;
    }
    .milestone .description {
        margin-top: 5px;
        width: 65px; /* Breite der Beschreibung */
        height: 60px;
        font-size: 8px;
        margin-right: 1px;
    }
    .slideshow-container {
        width: 95%;
        top: -240px; /* Abstand vom oberen Rand */
        position: relative; /* Ändert relative zu absolute */
        z-index: 9;
    }
    .full-width-banner {
        position: relative; /* Für das Stapeln von Elementen */
        width: 100%;
        height: 300px;
        margin-top: -90px;
    }
    .content-wrapper {
        display: flex;
        flex-direction: column; /* Stapelt die Elemente vertikal */
        align-items: center; /* Zentriert die Elemente horizontal */
        gap: 20px; /* Abstand zwischen den Kacheln */
        margin-top: -200px;
    }
    .instagram-container,
    .donation-container {
        width: 90%;
    }
    .membership-button {
        padding: 0px 15px;
        margin: 10px auto;
    }
    .membership-button a {
        font-size: 22px;
    }
    .donation-container h3 {
        font-size: 26px;
    }
    .donation-container h4 {
        font-size: 24px;
    }
    .donation-container p {
        font-size: 1.2rem;
    }
    .divider {
        margin: 0px 0;
    }
    .paypal-button2 {
        font-size: calc(1vw + 1vh); /* Passt die Textgröße dynamisch an */
    }
}