:root {
    --text-primary: #09343f;
    --background-color: #f8f7f3;
    --divider-color: #6a949a;
    --global-padding: 2rem;
    --gutter: 2rem;
}

html {
    scroll-behavior: smooth;
}

@font-face {
  font-family: 'Figtree';
  src: local('Figtree'), url('fonts/Figtree-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Figtree Italic';
  src: local('Figtree Italic'), url('fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
}


/* FINSWEET FLUID RESPONSIVE TYPOGRAPHY - https://finsweet.com/client-first/docs/fluid-responsive */

html {
    font-size: calc(0.625rem + 0.41666666666666663vw);
}

@media screen and (max-width:1920px) {
    html {
        font-size: calc(0.625rem + 0.41666666666666674vw);
    }
}

@media screen and (max-width:1440px) {
    html {
        font-size: calc(0.8126951092611863rem + 0.20811654526534862vw);
    }
}

@media screen and (max-width:479px) {
    html {
        font-size: calc(0.7494769874476988rem + 0.8368200836820083vw);
    }
}

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    scroll-behavior: smooth;
    hyphens: auto;
}

.page-container {
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.content-container {
    padding-left: 4rem;
    padding-right: 4rem;
}

.two-column-layout {
    display: flex;
    gap: var(--gutter);
    margin-top: 1.5rem;
}

.column-left {
    flex: 1;
}

.column-right {
    flex: 1;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--divider-color);
    margin: 0;
}

h1 {
    font-weight: 400;
    font-size: 3rem;
    margin: 0;
}

h2 {
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
    margin-top: 2rem;
}

.flagline {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.65;
}

.hide {
    display: none !important;
}


/* CSS for section section:header */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    box-sizing: border-box;
}

.header-container {
    /* max-width: 1440px; */
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-menu-left,
.nav-menu-right {
    display: flex;
    align-items: center;
    gap: var(--gutter);
    flex: 1;
}

.nav-menu-right {
    justify-content: flex-end;
}

.header-logo img {
    height: 2.625rem;
    width: auto;
    display: none;
}


/* CSS for section section:hero */

.hero-section {
    height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    overflow: hidden;
}

.contour-bg-1 {
    position: absolute;
    left: -0.125rem;
    bottom: -0.125rem;
    width: 50%;
    height: auto;
}

.contour-bg-2 {
    position: absolute;
    right: -0.125rem;
    top: -0.125rem;
    width: 25%;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: 8rem;
    padding-bottom: 4rem;
    box-sizing: border-box;
}

.hero-content-mobile {
    display: none;
}

.hero-content-top,
.hero-content-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: var(--gutter);
}

.hero-content-bottom {
    align-items: flex-end;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    max-height: 25vh;
    flex: 1 1 auto;
    /* grow and shrink as needed */
}

.klima-title {
    width: 50%;
    height: auto;
    max-height: 25vh;
    object-fit: contain;
    /* preserve aspect ratio */
    object-position: left;
    /* align image content to left */
    align-self: stretch;
    /* makes sure it fills flex height */
    display: block;
    /* remove inline spacing */
    flex: 1 1 auto;
    /* grow and shrink as needed */
}

.echo-title {
    width: 50%;
    padding-left: 18%;
    height: auto;
    max-height: 25vh;
    object-fit: contain;
    /* preserve aspect ratio */
    object-position: right;
    /* align image content to right */
    align-self: stretch;
    /* makes sure it fills flex height */
    display: block;
    /* remove inline spacing */
    flex: 1 1 auto;
    /* grow and shrink as needed */
}

.hero-subtitle {
    max-width: 23ch;
    font-size: 1rem;
    line-height: 1.2;
    text-align: right;
    margin: 0;
    flex: 0 0 auto;
    /* no shrinking, only take as much space as text needs */
    text-wrap: balance;
}

.hero-logo-group {
    position: relative;
    width: auto;
    height: 3.6875rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: var(--gutter);
    flex: 0 0 auto;
    /* no shrinking, only take as much space as text needs */
}

.hero-logo-image {
    height: 3.6875rem;
    width: auto;
}

.header-logo {
    height: 100%;
    width: auto;
}

.header-logo:hover {
    opacity: 0.5;
}

.header-logo-image {
    height: 100%;
    width: auto;
}


/* CSS for section section:ziel */

.info-section {
    padding: 4rem 0;
}

.column-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.column-right p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.column-right .large-text {
    font-size: 1.5rem;
    line-height: 1.2;
}

.timeline-section {
    padding: 40px 0;
}

.timeline_item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 40px 0;
    gap: 40px;
    position: relative;
}

.timeline_center {
    flex: 0 0 2rem;
    /* Breite des Kreises */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.timeline_circle {
    width: 1rem;
    height: 1rem;
    background-color: #09343f;
    border-radius: 50%;
    transform: scale(0);
}

.timeline_left {
    flex: 1;
    text-align: left;
}

.timeline_right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slideshow {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow .slides img {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.slideshow .slides img.active {
    display: block;
}

.slideshow button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    /* kein Hintergrund */
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slideshow button:hover {
    opacity: 1;
}

.slideshow button.prev {
    left: -3rem;
    /* links vom Bild */
}

.slideshow button.next {
    right: -3rem;
    /* rechts vom Bild */
}


/* SVG inside buttons */

.slideshow button svg {
    width: 2rem;
    /* Pfeilgröße */
    height: 2rem;
    stroke: #09343f;
    /* Pfeilfarbe */
    stroke-width: 2;
    /* Pfeildicke */
    fill: none;
}

.timeline-divider {
    border: none;
    border-top: 1px solid rgb(0, 0, 0, 0.1);
    /* schwächer als normale Divider */
    margin: 20px 0;
}


/* CSS for section section:team */

.team-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-member {
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 1.5rem;
}

.team-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links img {
    width: 1.5rem;
    height: 1.5rem;
}

.team-member-role {
    font-size: 1rem;
    line-height: 1.2;
    opacity: 0.5;
    margin: 0;
}


/* CSS for section section:foerderung */

.funding-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.funding-details p {
    margin: 0;
    line-height: 1.2;
}

.medium-weight {
    font-weight: 500;
}

.funding-logos {
    position: relative;
    height: 3.75rem;
    margin-top: 1.25rem;
}

.funding-logos img {
    height: auto;
}


/* CSS for section section:kontakt */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-details p {
    margin: 0;
    line-height: 1.2;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.25rem;
    align-self: flex-start;
}

.email-link img {
    width: 1rem;
    height: 1rem;
}

.email-link span {
    line-height: 1;
}


/* CSS for section section:footer */

.site-footer {
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: var(--gutter);
}

.copyright {
    margin: 0;
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    gap: var(--gutter);
}

.footer-nav a {
    font-size: 1rem;
}


/* Tablet Breakpoint */

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-menu-left,
    .nav-menu-right {
        gap: 1rem;
        flex: 1 1 auto;
    }
    .hero-section {
        min-height: 100svh;
    }
    .contour-bg-1 {
        width: 75%;
    }
    .contour-bg-2 {
        width: 50%;
    }
    .hero-content {
        display: none;
    }
    .hero-content-mobile {
        display: flex;
    }
    .hero-content-top {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .klima-title,
    .echo-title {
        height: 25vw;
        width: auto;
    }
    .klima-title {
        object-position: left;
        padding-right: 10%;
    }
    .echo-title {
        object-position: right;
        padding-left: 28%;
    }
    .hero-subtitle {
        text-align: left;
    }
    .content-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-nav {
        gap: 1rem;
    }
}


/* Mobile Breakpoint */

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
        padding-top: 6rem;
    }
    .hero-content-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero-subtitle {
        max-width: none;
    }
    .hero-logo-group {
        width: 100%;
        justify-content: space-between;
    }
    .two-column-layout {
        flex-direction: column;
    }
    .footer-nav {
        gap: 1rem;
        flex-direction: column;
    }
}

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}