/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    margin-top: 5.625rem;
    gap: 2rem;    
}

.hero-content {
    flex: 1 30%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 90vw;
    max-width: 1400px;
}

.hero-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    -webkit-text-stroke: 0.05px black;
}

.hero-title {
    font-size: 5.5rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    line-height: 6rem;
    color: var(--white);
    white-space: pre-line;
}

.hero-description {
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75rem;
    color: var(--white);
}

a {
    text-decoration: none;
}

/* Donation Card */
.donation-card {
    flex: 1 1 35%;
    background-color: var(--beige);
    border-radius: 1.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    height: fit-content;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.donation-title {
    font-size: 2.6875rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    color: var(--black);
}

.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.amount-option {
    background-color: var(--beige-light);
    border: none;
    padding: 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    text-align: right;
}

.amount-option:hover {
    background-color: var(--beige-hover);
    transform: translateY(-2px);
}

.amount-option.selected {
    background-color: var(--blue);
    color: var(--white);
}

/* Standardstil für nicht ausgewählte Buttons */
/* Wenn animiert werden soll */
.amount-option.none-selected {
    background-color: #df4b4b;
    animation: wiggle 1s ease;
}

/* Wiggle-Animation */
@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-3deg); }
  30%  { transform: rotate(3deg); }
  45%  { transform: rotate(-2deg); }
  60%  { transform: rotate(2deg); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

.amount-currency {
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 1.125rem;
    color: var(--black);
}

.amount-value {
    font-size: 2.125rem;
    font-weight: 700;
    color: var(--black);
}

.amount-option.selected .amount-currency,
.amount-option.selected .amount-value {
    color: var(--white);
}

.custom-amount {
    position: relative;
}

.custom-line {
    width: 100px;
    height: 1px;
    background-color: var(--black);
    margin: 1rem auto 0;
}

.donation-description {
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    color: var(--black);
}

.donate-button {
    background-color: var(--red);
    color: var(--white);
    font-size: 1.8125rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.donate-button:hover {
    background-color: var(--red-dark);
}

/* Statistics Section */
.stats-section {
    width: 100%;
    padding: 4rem 2rem;
    background-color: var(--beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

.stats-title {
    font-size: 4rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue);
}

/* Responsive grid */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
}

.stat-item {
    flex: 1 1 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.stat-number.blue {
    color: var(--blue);
}

.stat-number.red {
    color: var(--red);
}

.stat-label {
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    max-width: 100%;
    color: var(--black);
}

.stat-label.blue {
    color: var(--blue);
}

.stat-label.red {
    color: var(--red);
}

/* Project Section */
.project-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.project-image {
    flex: 1 1 300px;
    max-width: 372px;
    height: auto;
    border-radius: 1.75rem;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.project-content {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-title {
    font-size: 4rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue);
}

.project-description {
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75rem;
    color: var(--black);
}

.project-button {
    background-color: var(--blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: start;
}

.project-button:hover {
    background-color: var(--blue-dark);
}


/* About Section */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    padding: 4rem 6rem;
    background-color: var(--beige);
    position: relative;
    gap: 2rem;
}

.about-content {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.about-title {
    font-size: 4.625rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue);
}

.about-subtitle {
    font-size: 1.8125rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    color: var(--black);
}

.about-text {
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75rem;
    color: var(--black);
}

.about-button {
    background-color: var(--blue);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.about-button:hover {
    background-color: var(--blue-dark);
}

.about-image {
    flex: 1 1 50%;
    max-width: 700px;
    height: auto;
    border-radius: 1.5rem 0 0 0;
    object-fit: cover;
}

/* Optional background triangle as decorative element */
.about-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top right, transparent 50%, var(--beige) 50%);
    pointer-events: none;
}

/* News Section */
.news-section {
    width: 100%;
    padding: 4rem 2rem;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.news-title {
    font-size: 4.625rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--blue);
    margin-bottom: 2rem;
}

/* Grid for news cards */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 90vw;
}

/* Single news card */
.news-card {
    background-color: var(--white);
    width: 100%;
    max-width: 24.5rem;
    border-radius: 1.5625rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 19.3125rem;
    object-fit: cover;
    border-radius: 1.5625rem 1.5625rem 0 0;
}

.news-content {
    padding: 2.125rem 1.875rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    justify-content: space-between;
}

.news-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-headline {
    font-size: 1.8125rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
    line-height: 2.1875rem;
    color: var(--red);
    display: -webkit-box;
    line-clamp: 2; /* Max. Zeilenanzahl */
    -webkit-line-clamp: 2;        /* Max. Zeilenanzahl */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-text {
    font-size: 1.25rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75rem;
    color: var(--blue);
}

.news-button {
    margin-top: auto;
}


/* Contact Section */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding: 4rem 2rem;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    width: 100%;
    font-size: 4.625rem;
    font-family: 'Finlandica', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.form-input,
.form-textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--black);
    background: transparent;
    padding: 0.625rem 0;
    font-size: 1.125rem;
    outline: none;
    font-family: 'Figtree', Arial, sans-serif;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    color: var(--black);
    background-color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 2px solid var(--black);
    font-size: 1.5rem;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: var(--beige-hover);
    border-radius: 5px;
}

/* Map Section */
.contact-map {
    flex: 1 1 500px;
    max-width: 600px;
    height: 100%;
    min-height: 350px;
    border-radius: 1rem;
    object-fit: cover;
}



/* Carousel container */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    min-height: fit-content;
    height: 50vh;
}

/* Arrows */
.nav-arrow {
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
}

.nav-arrow:hover {
    transform: scale(1.1);
}


/* Carousel track */
.carousel-track {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Carousel items */
.carousel-item {
    flex: 0 0 100%;
    opacity: 0;
    gap: 2rem;
    transition: opacity 1s ease;
    display: none;
    justify-content: center;
    align-items: center;
}

.carousel-item.active {
    display: flex;
    opacity: 1;
}





/* Tablet und kleinere Desktops */
@media (max-width: 1200px) {
  .hero-section {
    padding-top: 12vh;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-content{
    max-width: 90%;
  }

  .hero-title {
    font-size: 4rem;
    line-height: 4.5rem;
  }



  .project-section {
    flex-direction: column;
    text-align: center;
  }

  .project-content {
    max-width: 40%;
    margin-top: 2rem;
    font-size: medium;
  }

  .project-content h2 {
    font-size: 1.5rem;
    }
    .project-content p {
        font-size: 1rem;
    }

    .project-image {
        max-width: 40%;
        min-width: 100px;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-button {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .nav-arrow {
        width: 10%;
        height: 10%;
        max-width: 50px;
        max-height: 50px;

    }



  .about-section {
    flex-direction: column;
    text-align: center;
  }



  .about-content,
  .about-image {
    max-width: 90%;
  }

  .news-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-section {
    flex-direction: column;
    align-items: center;
  }

  .contact-map {
    max-width: 100%;
    margin-top: 2rem;
  }

    .donation-card {
        max-width: 80vw;
        margin: 0 auto;
    }

    .donation-title {
        font-size: 1.5rem;
    }

    .amount-option {
        padding: 1rem;
    }

    .amount-value {
        font-size: 1.25rem;
    }

    .amount-currency {
        font-size: 1.25rem;
    }

    .amount-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .donation-description {
        font-size: 1rem;
    }

    .donate-button {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }


  .hero-content {
    width: 100%;
    flex-direction: column;
    padding-top: 5vh;
  }

  .hero-content {
    width: 100%;
    flex-direction: column;
  }

    .about-content {
    margin: 0 auto;
  }

  .about-button {
    width: 100%;
    text-align: center;
  }

  .about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
  }

}

@media (max-height: 800px) {
    .hero-section{
        padding-top: 30vh;
    }
}

/* Smartphones und kleinere Tablets */
@media (max-width: 768px) {

  .hero-title {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .amount-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-title,
  .news-title,
  .contact-title,
  .about-title {
    font-size: 2.5rem;
  }

  .news-card {
    width: 100%;
    max-width: 90%;
  }


      .carousel-item {
        flex-direction: column;
        align-items: center;
    }

    .project-content {
        max-width: 100%;
        margin-top: 1rem;
    }

    .project-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .project-section {
        padding: 0;
    }

    .project-button {
        width: 100%;
        text-align: center;
    }

    .carousel-container {
        height: 90vh;
    }

    .project-content {
        flex: 1 1 200px;
    }

    .contact-form {
        width: 80vw;
        min-width: 300px;
    }

    .form-group {
        flex: 1 1 200px;
        display: flex;
        flex-direction: column;
    }

    .form-label {
        font-size: 1rem;
    }



    .form-input,
    .form-textarea {
        font-size: 1rem;
    }

    .form-textarea {
        resize: vertical;
        min-height: 150px;
    }

    .form-submit {
        font-size: 1rem;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .stats-title {
    font-size: 2rem;
    }

    .about-section {
        padding: 4rem 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.25rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-button {
        font-size: 1rem;
        width: 100%;
    }

    .news-title {
        font-size: 2rem;
    }

    .news-headline {
        font-size: 1.5rem;
    }

    .news-text {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

}
