:root {
    --color1: #404d47;
    --color2: #8bc53f;
    --color3: #3f4b47;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 20px;
    scroll-padding-top: 80px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #404d47;
    line-height: 1.6;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(139, 197, 63, 0.5);
    }
    50% {
        transform: scale(1.3); /* Vergrößert den Button leicht */
        box-shadow: 0 0 20px rgba(139, 197, 63, 0.8); /* Stärkere Leuchtaura */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(139, 197, 63, 0.5);
    }
}

header {
    background-color: #404d47;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.fw-bold {
    font-weight: bold;
}

main {
    padding-top: 60px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    background-color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links .dropdown-content ul,
.nav-links .dropdown-content ol {
    list-style: none;
}

.nav-links > .dropdown > .dropdown-content {
    display: none; /* Standardmäßig ausgeblendet */
    position: absolute;
    background-color:#8bc53f;
    color: #404d47;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links > .dropdown > .dropdown-content .dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    box-shadow: 2px 4px 8px 10px rgba(63, 75, 71, 0.5);
    background-color: #8bc53f;
    padding: 10px 0;
    z-index: 2;
    white-space: nowrap;
}

.nav-links > .dropdown > .dropdown-content .dropdown:hover > .dropdown-content {
    display: block;
}

.dropdown-content li:last-child {
    border-bottom: none; /* Keine Trennlinie beim letzten Element */
}

.nav-links > li:last-child > .dropdown-content {
    right: 0;
    left: auto;
}

.dropdown-content a {
    color: #404d47;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

/* Hover-Effekt für Dropdown-Links */
.dropdown-content a:hover {
    background-color:#404d47;
    color: white;
}

/* Dropdown-Menü anzeigen beim Hover auf das Listenelement */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content .dropdown {
    position: relative;
}

.dropdown-content .dropdown-content {
    top: 0;
    left: 100%;
    display: none;
    z-index: 2;
}

.dropdown-content .dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown-Container anpassen */
.dropdown {
    cursor: pointer;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }
  
  .burger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
  }

.hero {
    background-color: #8bc53f;
    color: white;
    padding: 50px 20px;
    margin-right: 50px;
    margin-left: 50px;
}

.slider {
    display: flex;
    justify-content: center;
    height: 600px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

footer {
    background-color: #404d47; 
    color: white;
    padding: 20px;
  }
  
  footer .footer-content {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
  }
  
  footer p {
    margin: 0; 
  }
  
  footer a.impressum-link {
    color: white; 
    text-decoration: none;
    margin-left: auto; 
  }
  
  footer a.impressum-link:hover {
    text-decoration: underline; 
  }

.ta-center {
    text-align: center;
}

.sections {
    padding: 50px;
    margin: 0 50px;
}

.sections:nth-child(even) {
    background-color: #8bc53f;
}

.main-content {
    flex: 5;
}

.content-wrapper {
    display: flex;
}

.donation-sticky {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    padding: 50px;
    top: 100px;
}

.donation-wrapper {
    flex: 1;
}

.button {
    margin-top: 50px;
    height: 50px;
    width: 100px;
    color: var(--color2);
    background-color: var(--color1);
    animation: pulse 2s infinite;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    border: none;
    font-size: 14px;
}

.button:hover {
    cursor: url('images/dog.png'), pointer;
}

.sections a {
    color: inherit;
    text-decoration: none;
}

.sections a:hover {
    color:blue;
}

.verein-wrapper {
    display: flex;
    padding-top: 100px;
}

.divider {
    width: 1px;
    background-color: var(--color3);
    margin: 0 10px;
}

.verein {
    flex: 1;
    scroll-margin-top: 60px;
}

.landing-page-quote {
    text-align: center;
    font-weight: bold;
    padding-top: 60px;
}

.about-us-pics {
    height: 100%;
    object-fit: cover;
    max-width: 300px;
    border-radius: 10px;
}

.about-us-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-us-info {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.about-us-pics-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.melanie-wrapper {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.melanie-info {
    display: flex;
    flex-direction: row-reverse;
}

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .verein-wrapper {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 1px;
        background-color: var(--color3);
        margin: 20px 0;
        align-self: center;
    }

    .nav-links {
        flex-direction: column;
        position: relative;
    }

    .nav-links > .dropdown > .dropdown-content {
        position: absolute;
        left: -70% !important;
        top: 0;
        display: none;
        background-color: #8bc53f;
        padding: 10px;
        width: 70%;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #8bc53f;
      padding: 10px 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 1000;
    }

    .burger-menu {
      display: flex;
    }
    .navbar ul {
      display: none;
      flex-direction: column;
      width: 40%;
      position: absolute;
      top: 89px;
      right: 0;
      background-color: #8bc53f;
      padding: 0;
      margin: 0;
      list-style: none;
    }
    .navbar ul.active {
      display: flex;
    }
    .navbar ul li {
      text-align: center;
      padding: 15px 0;
    }
    .navbar ul li a {
      text-decoration: none;
      color: #333;
      display: block;
      width: 100%;
    }
    .burger-menu .bar {
        background-color: white;
    }

    .dropdown > a {
        position: relative;
        padding-right: 20px;
    }
      
    .dropdown > a::after {
        content: '▼'; /* Standard-Pfeil */
        position: absolute;
        right: 5px;
        font-size: 0.8em;
        transition: transform 0.3s ease; /* Glatte Animation */
    }
      
    .dropdown > a.active::after {
        transform: rotate(180deg); /* Pfeil dreht sich */
    }
  }

  #contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #contact-form label[for="name"],
  #contact-form label[for="email"] {
    display: none;
  }

  #contact-form .name-email-input {
    display: flex;
    gap: 20px;
  }

  #contact-form input#name,
  #contact-form input#email {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
  }

  #contact-form #email {
    margin: 0;
  }

  #contact-form textarea {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .contact-button {
    align-self: center;
    text-decoration: underline;
    margin-top: 50px;
    height: 50px;
    width: 100px;
    color: var(--color2);
    background-color: var(--color1);
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    border: none;
    font-size: 14px;
}


  @media (max-width: 480px) {

    main {
        padding-top: 20%;
    }
    .navbar ul {
        width: 50%;
    }

    .hero, .sections {
        margin: 0;
        padding: 20px;
    }

    .donation-sticky {
        display: none;
    }

    .donation-wrapper {
        display: none;
    }

    .sections {
        padding: 10px;
        margin: 0;
        text-align: center;
    }

    .about-us-info {
        flex-direction: column;
        align-items: center;
    }

    .about-us-pics-container {
        width: 100%;
    }

    .about-us-header h2 {
        font-size: 1.5rem;
    }

    .melanie-wrapper {
        text-align: center;
    }

    .about-us-ptag p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .mobile-break {
        display: block;
    }
  }