/* ========================================
   GRUNDLAGEN & RESET
======================================== */

body {
  font-family: Arial, sans-serif;         /* Grundschriftart für die gesamte Seite */
  background-color: #f8f9fa;              /* f8f9fa Helles Grau als Seitenhintergrund */
  padding: 0px 0;                         /* Kein Innenabstand oben/unten */
}


/* ========================================
   TYPOGRAFIE
======================================== */

/* Überschrift H2: Zentriert, mittelgroß, mit Abstand nach unten */
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

/* Überschrift H4: Farblich hervorgehoben */
h4 {
  color: #026f44; /* Dunkles Grün */
}


/* ========================================
   BESUCH-BLOCK
   (Custom Layout-Komponente)
======================================== */

.zeit-zeile {
  display: flex;              /* Flexbox-Layout für horizontale Ausrichtung */
  align-items: center;        /* Vertikale Zentrierung */
  margin-bottom: 10px;        /* Abstand zwischen den Zeilen */
}

.zeit-zeile .label {
  flex: 1;                    /* Füllt den verbleibenden Raum aus */
  font-weight: 500;           /* Etwas fetterer Text */
}

.zeit-zeile .uhrzeit {
  background-color: #026f44;  /* Dunkelgrüner Hintergrund */
  color: #ffffff;             /* Weißer Text */
  padding: 6px 12px;          /* Innenabstand für Lesbarkeit */
  border-radius: 5px;         /* Abgerundete Ecken */
  font-size: 1rem;            /* Standardgröße */
  min-width: 110px;           /* Mindestbreite für Konsistenz */
  text-align: center;         /* Zentrierter Text */
}

.ribbon {
  position: absolute;         /* Positioniert das Element absolut relativ zum nächstgelegenen positionierten Elternteil */
  right: -100px;              /* Verschiebt das Element 100px nach rechts außerhalb des Containers */
  bottom: 60px;               /* Positioniert das Element 60px über dem unteren Rand des Containers */
  width: 350px;               /* Setzt die Breite des Ribbons auf 350 Pixel */
  background: #026f44;        /* Hintergrundfarbe des Ribbons (Bootstrap Danger Rot) */
  color: white;               /* Textfarbe innerhalb des Ribbons auf Weiß setzen */
  text-align: center;         /* Zentriert den Text horizontal */
  font-size: 0.85rem;         /* Schriftgröße etwas kleiner als der Standard (rem = relative Einheit zur Schriftgröße des Root-Elements) */
  padding: 6px 0;             /* Vertikales Innenabstand von 6px, horizontal kein Padding */
  transform: rotate(-45deg);  /* Dreht das Element um -45 Grad (gegen den Uhrzeigersinn), damit es diagonal erscheint */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* Fügt einen Schatten unter dem Ribbon hinzu für einen 3D-Effekt */
  font-weight: 600;           /* Schriftstärke auf semi-bold setzen */
  z-index: 2;                 /* Stellt sicher, dass das Ribbon über anderen Elementen liegt (höhere Stapelreihenfolge) */
}


/* ========================================
   GREEN-BUTTONS-BLOCK
   (Custom Layout-Komponente)
======================================== */

.btn-green {
  background-color: #026f44;   /* Dunkelgrüner Hintergrund */
  border-color: #026f44;       /* Gleiche Farbe für den Rahmen */
  color: white;                /* Weißer Text */
  padding: 0.375rem 0.75rem;   /* Standard-Innenabstand oben/unten & rechts/links */
  border-radius: 0.25rem;      /* Leicht abgerundete Ecken */
  display: inline-block;       /* Button nimmt nur so viel Platz ein wie nötig */
  text-align: center;          /* Text zentrieren */
  cursor: pointer;             /* Zeiger beim Überfahren */
  text-decoration: none;       /* Keine Unterstreichung (auch bei <a>-Tags) */
}

.btn-green:hover {
background-color: color-mix(in srgb, var(--contrast-color), transparent 20%);
  color: #ffffff;              /* Textfarbe bleibt weiß */
}


/* ========================================
   ANGEBOTE-BLOCK
   (Custom Layout-Komponente)
======================================== */

.angebot {
  margin-bottom: 60px;         /* Abstand nach unten zwischen den Angeboten */
}

.angebot p:last-child {
    margin-bottom: 0; /* entfernt den unteren Abstand beim letzten Absatz */
}

.angebot-img {
  width: 100%;                 /* Bild passt sich der Breite des Containers an */
  height: auto;                /* Höhe wird proportional skaliert */
  border-radius: 8px;          /* Abgerundete Ecken */
  object-fit: cover;           /* Bild wird beschnitten, um den Container auszufüllen */
}

.angebot h4 {
  margin-top: 0;               /* Kein Abstand nach oben */
}

.angebot .btn-green {
  margin-top: 10px;            /* Abstand über dem Button innerhalb der Box */
}

.angebot ul {
  margin-bottom: 0px;
}


/* ========================================
   BEWOHNER-BLOCK
   (Custom Layout-Komponente)
======================================== */

.animal-box {
  text-align: center;     /* Zentriert den Text */
}

.animal-box img {
  width: 100%;           /* Bild nimmt volle Breite des Containers ein */
  height: 200px;         /* Fixe Höhe von 200px */
  object-fit: cover;     /* Bild wird zugeschnitten, um den Container vollständig auszufüllen, ohne Verzerrung */
  border-radius: 8px;    /* Abgerundete Ecken mit 8px Radius */
}

/* ========================================
   SATZUNGS-BLOCK
   (Custom Layout-Komponente)
======================================== */

/* Geöffneter Zustand: Grüner Hintergrund und weißer Text */
.accordion-button:not(.collapsed) {
  background-color: #026f44; /* Dunkles Grün */
  color: white;
}

.accordion-button:focus {
  outline: none;
  box-shadow: none;
}

/* Pfeil-Icon im geöffneten Zustand ebenfalls weiß */
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1); /* Icon invertieren für weiße Farbe */
}

/* Inhalt der geöffneten Akkordeon-Sektion */
.accordion-body {
  padding-top: 0rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  width: 100%;

  white-space: pre-line; /* Behalte manuelle Zeilenumbrüche (\n) */
  font-family: inherit; /* Gleiche Schrift wie restlicher Text */
  font-size: 1rem;
  line-height: 1.5; /* Lesbare Zeilenhöhe */
}

.custom-container {
  max-width: 700px !important; /* Erzwingt maximale Breite, überschreibt Bootstrap */
  width: 100%; /* Volle Breite innerhalb des Viewports */
}


/* ========================================
   GESCHICHTE-BLOCK
   (Custom Layout-Komponente)
======================================== */


container.timeline {
  max-width: 1000px; /* z.B. 900px, kannst du anpassen */
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;  /* Bootstrap-Padding erhalten */
  padding-right: 15px;
}

.timeline {
      position: relative;
      padding: 2rem 0;
    }
    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      left: 25%;
      width: 4px;
      height: 100%;
      background: #dee2e6;
      transform: translateX(-50%);
    }
    .timeline-item {
      position: relative;
      width: 100%;
      padding: 1.5rem 0;
    }
    .timeline-item .timeline-content {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .timeline-item.in-view .timeline-content {
      opacity: 1;
      transform: none;
    }
    .timeline-item .timeline-year {
      position: absolute;
      width: 300px;
      top: 1.5rem;
      font-size: 1.25rem;
      font-weight: bold;
      color: #026f44;
    }
.timeline-item .timeline-year {
  left: 0;
  text-align: left;
  padding-right: 1rem;
  color: #026f44;
}

.timeline-item .timeline-card {
  margin-left: 20%;
}
    .timeline-card {
      border: none;
      box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    }

    .timeline-item .timeline-year {
  margin-bottom: 2.75rem;
  margin-left: 1.75rem;
  display: block;
}

.timeline-item .col-md-4 img {
  height: 250px;      /* feste Höhe, passe an, was dir gefällt */
  width: 100%;        /* volle Breite des Containers */
  object-fit: cover;  /* Bild füllt Container aus, Zuschneiden wenn nötig */
  object-position: center center; /* Bild wird mittig ausgerichtet */
  border-radius: 0.25rem 0 0 0.25rem; /* wenn du die runden Ecken des Cards behalten willst */
}

    @media (max-width: 768px) {
      .timeline::before { left: 30px; }
      .timeline-item .timeline-year {
        position: relative;
        width: auto;
        left: auto;
        right: auto;
        text-align: left;
        padding: 0;
        margin-bottom: 0.5rem;
      }
      .timeline-item .timeline-card {
        margin: 0;
      }
        /*  Bild-Rundung anpassen für Mobil */
  .timeline-item .col-md-4 img {
    border-radius: 0.25rem 0.25rem 0 0 !important;
  }
    }


/* ========================================
   GREEN-CODE (Spendenseite)
======================================== */

.code-green {
  color: #026f44;        /* Setzt die Farbe auf Wasserstern "Grün" */
  font-size: 1.0rem;     /* Setzt die Schriftgröße auf Normalgröße */
}


/* ========================================
   FORMULAR-FELDER (Patenschaft, Mitgliedschaft)
======================================== */

.hidden {
  display: none !important; /* Blendet Felder aus wenn Patenschaft nicht verschenkt wird */
}

@media (min-width: 768px) {
  .container.formular-container { max-width: 700px; } /* Macht das Formularfeld maximal 700px */
}

@media (min-width: 768px) {
  .container.formular-container {
    max-width: 500px !important;
  }
}


/* ========================================
   BILDER-PARTNER 
======================================== */

.partner-box {
  text-align: center;
  padding: 10px;
}

.partner-box img {
  height: 120px;         /* feste Höhe für Harmonie */
  max-width: 100%;       /* Bild passt sich dem Container an */
  object-fit: contain;   /* Bild bleibt vollständig sichtbar */
  background-color: white;
  display: block;
  margin: 0 auto;
}


/* ========================================
   BILDER-KOOPERATIONEN 
======================================== */

.kooperationen-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================================
   RESPONSIVES DESIGN (Media Queries)
======================================== */

/* Bei größeren Bildschirmen wird die Maximalbreite der Öffnungszeitenbox begrenzt */
@media (min-width: 768px) {
  .container.oeffnungszeiten-container {
    max-width: 500px;
  }
}


/* ========================================
   SEITENKOPF (Page Title)
======================================== */

.page-title {
  color: var(--default-color);             /* Dynamische Schriftfarbe */
  background-color: var(--background-color-dark); /* Dynamischer Hintergrund */
  background-size: cover;                  /* Hintergrundbild vollständig anzeigen */
  background-position: center;             /* Bild mittig ausrichten */
  background-repeat: no-repeat;            /* Nicht wiederholen */
  padding: 80px 0;                         /* Oben & unten Abstand */
  text-align: center;                      /* Überschrift zentrieren */
  position: relative;                      /* Für ::before Pseudo-Element */
}

/* Transparente Überlagerung über dem Hintergrundbild */
.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color-dark), transparent 50%);
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
}

/* Hauptüberschrift im Page-Title Bereich */
.page-title h1 {
  font-size: 42px;     /* Große Schriftgröße */
  font-weight: 700;    /* Fette Schrift */
  margin-bottom: 0px;  /* Kein Abstand nach unten */
}


/* ========================================
   NAVIGATIONSVARIABLEN (CSS Custom Properties)
======================================== */

:root {

  --default-color: #ffffff;
  --background-color-white: #ffffff; /* z.B. grüner Hintergrund */
  --background-color-dark: #060606; 
  --background-color: #026f44; /* z.B. grüner Hintergrund */
  --contrast-color: #026f44;       /* Kontrastfarbe Weiß */
  --accent-color: #026f44; /* z.B. goldgelb als Akzent */
  --nav-color: #212529;                        /* Standardfarbe der Navigationslinks */
  --nav-hover-color: #026f44;                  /* Hoverfarbe der Links */
  --nav-mobile-background-color: #ffffff;      /* Hintergrund für mobile Navigation */
  --nav-dropdown-background-color: #ffffff;    /* Hintergrund für Dropdown-Menüs */
  --nav-dropdown-color: #212529;               /* Schriftfarbe im Dropdown-Menü */
  --nav-dropdown-hover-color: #116530;         /* Hoverfarbe im Dropdown-Menü */
}


/* ========================================
   LINKS & INTERAKTIONEN
======================================== */

a {
  color: var(--accent-color);                 /* Linkfarbe auf Basis des Akzents */
  text-decoration: none;                      /* Keine Unterstreichung */
  transition: 0.3s;                            /* Sanfter Übergang bei Hover */
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%); /* Leicht abgeschwächter Akzent beim Hover */
  text-decoration: none;                      /* Weiterhin keine Unterstreichung */
}


/* -----------------------------------------
   Hero / Carousel
   ----------------------------------------- */
.hero {
  padding: 0;
}
.hero .carousel {
  width: 100%;
  min-height: calc(100vh - 100px);
  position: relative;
  overflow: hidden;
}

.hero .carousel-item.initial-fade {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .carousel-item:before {
  content: "";
  background: color-mix(in srgb, var(--background-color-dark), transparent 60%);
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero .carousel-container {
  position: absolute;
  inset: 90px 64px 64px 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  text-align: center; /* <-- DAS ist der entscheidende Fix */
  z-index: 3;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
  color: #ffffff;
}
@media (max-width: 768px) {
  .hero h2 { font-size: 30px; }
}
.hero p {
  animation: fadeInDown 1s both 0.2s;
  color: #ffffff;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  opacity: 0.5;
  transition: 0.3s;
}
.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}
.hero .carousel-indicators {
  list-style: none;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0,100%,0); }
  to   { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0,-100%,0); }
  to   { opacity: 1; transform: translate3d(0,0,0); }
}




/* Preloader Container */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #ffffff; /* Weißer Hintergrund */
  transition: all 0.6s ease-out;
}

/* Spinner */
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 6px solid transparent;
  border-top-color: #026f44;    /* Dunkelgrün */
  border-bottom-color: #026f44; /* Dunkelgrün */
  border-radius: 50%;
  animation: animate-preloader 1.5s linear infinite;
}

/* Rotation */
@keyframes animate-preloader {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* -----------------------------------------
   Scroll Top Button
   ----------------------------------------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: #ffffff;
  line-height: 0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}



/* -----------------------------------------
   Kalender Seite
   ----------------------------------------- */


.kalender-navi-btn {
  background: none;
  border: none;
  color: #026f44; /* grüner Ton – passe ggf. an dein Design an */
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.2rem 0.5rem;
}

.kalender-navi-btn:hover {
  color: #218838; /* dunkleres Grün beim Hover */
}

/* -----------------------------------------
   Grüner Streifen Startseite
   ----------------------------------------- */


.green-section {
  background-color: #026f44;
  position: relative;
  overflow: visible; /* Wichtig, damit nichts abgeschnitten wird */
  color: white; /* Macht gesamten Text in .green-section weiß */

  padding-bottom: 50px;
}

.green-section .content-title {
  color: #f1c40f; /* Ein sehr dunkles Grün – du kannst auch eine andere Farbe wählen */
}

.green-section p:last-child {
  margin-bottom: 0;
}



.custom-container {
  position: relative;
  z-index: 1;
}

.overlap-image {
  margin-top: -60px; /* Bild über den Container hinausschieben */
  z-index: 2;
  position: relative;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* -----------------------------------------
   Navigation
   ----------------------------------------- */

.navbar-nav .nav-link {
    color: #000;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: #026f44;
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: #e6f2ed;
    color: #026f44;
  }

  /* Einstellbarer Abstand der Links */
  .nav-gap .nav-item {
    margin-left: 20px; /* <- Ändere hier den Abstand */
  }

  @media (max-width: 991.98px) {
    .nav-gap .nav-item {
      margin-left: 0;
    }
  }

  .navbar .nav-link:focus,
.navbar .dropdown-toggle:focus,
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler {
  border: none;
  box-shadow: none;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #026f44;
  color: #fff;
}

/* Einstellbarer Abstand der Links */
.nav-gap .nav-item {
  margin-left: 20px;
}


/* -----------------------------------------
   Veranstaltungen
   ----------------------------------------- */

@media (max-width: 767.98px) {
  .card img.rounded-start {
    border-radius: 0.375rem 0.375rem 0 0 !important; /* gleiche Rundung wie rounded-top */
  }
}

/* -----------------------------------------
   Vereinsgeschichte
   ----------------------------------------- */

  /* The actual timeline (the vertical ruler) */
.main-timeline-2 {
  position: relative;
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */

.site-footer {
  background-color: #eaeaea;
  color: #333;
  font-size: 16px;
}
.footer-top-line {
  height: 6px;
  background-color: #026f44;
}
.site-footer h5 {
  font-weight: bold;
}
.site-footer a {
  color: #026f44;
  text-decoration: none;
}
.site-footer a:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}
.social-icons a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #026f44;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}
.footer-opening {
  font-size: 1rem;
}

/* -----------------------------------------
   Tier Detail Seite
   ----------------------------------------- */

        .info-icon {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .info-icon img {
            width: 100px;
            margin-right: 1.5rem;
            flex-shrink: 0;
        }

        .polaroid {
            background: #fff;
            padding: 10px 10px 20px;
            box-shadow: 0 8px 12px rgba(0,0,0,0.2);
            transform: rotate(+2deg);
            margin-bottom: 1rem;
            text-align: center;
            border: 1px solid #ccc;
            max-width: 100%;
        }

        .polaroid img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto 10px;
        }

        .polaroid strong {
            display: block;
            margin-top: 5px;
        }

        .bedrohungsstatus img {
            filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
        }

        @media (max-width: 768px) {
            .row-cols-md-3 > div {
                margin-bottom: 2rem;
            }
        }

/* -----------------------------------------
   Vereinsgeschichte
   ----------------------------------------- */

.main-timeline-2::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: #026f44;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline-2 {
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline-2::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -11px;
  background-color: #026f44;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left-2 {
  padding: 0px 40px 20px 0px;
  left: 0;
}

/* Place the container to the right */
.right-2 {
  padding: 0px 0px 20px 40px;
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left-2::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  right: 30px;
  border: medium solid #026f44;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #026f44;
}

/* Add arrows to the right container (pointing left) */
.right-2::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  left: 30px;
  border: medium solid #026f44;
  border-width: 10px 10px 10px 0;
  border-color: transparent #026f44 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right-2::after {
  left: -14px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .main-timeline-2::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline-2 {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .timeline-2::before {
    left: 60px;
    border: medium solid #026f44;
    border-width: 10px 10px 10px 0;
    border-color: transparent #026f44 transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left-2::after,
  .right-2::after {
    left: 18px;
  }

  .left-2::before {
    right: auto;
  }

  /* Make all right containers behave like the left ones */
  .right-2 {
    left: 0%;
  }
}
