/* style.css */

/* ---------------------------------- */
/*          CSS-VARIABLEN             */
/* ---------------------------------- */
:root {
    /* Farbpalette (Monochromatisch) */
    --color-background: #FFFFFF;
    --color-background-light: #F8F9FA;
    --color-text-primary: #333333;
    --color-text-secondary: #555555;
    --color-headings: #222222;
    --color-border: #E0E0E0;
    --color-accent: #000000;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Typografie */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --font-size-h1: clamp(2.5rem, 5vw, 4rem);
    --font-size-h2: clamp(2rem, 4vw, 3rem);
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --header-height: 80px;
    --section-padding: 5rem 0;
}

/* ---------------------------------- */
/*          GLOBALE STILE             */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text-secondary);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--color-headings);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------- */
/*         UTILITY-KLASSEN            */
/* ---------------------------------- */
.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: var(--color-background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-headings);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

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

/* ---------------------------------- */
/*        KOMPONENTEN-STILE           */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-family-headings);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-white);
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--color-white);
    color: var(--color-accent);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------- */
/*           HEADER & NAV             */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height);
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}
.header.scrolled .nav-logo {
    color: var(--color-accent);
}
.header:not(.scrolled) .nav-logo {
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-family: var(--font-family-body);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.header:not(.scrolled) .nav-link {
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.header.scrolled .nav-link {
    color: var(--color-text-secondary);
}

.header:not(.scrolled) .nav-link:hover,
.header.scrolled .nav-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-accent);
}

.header:not(.scrolled) .bar {
    background-color: var(--color-white);
}

/* ---------------------------------- */
/*           HERO-SEKTION             */
/* ---------------------------------- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.parallax-bg {
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/*        SEKTIONEN: KARTEN           */
/* ---------------------------------- */
.vision-cards, .services-grid, .projects-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.section-light .card {
    background-color: var(--color-white);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 250px; /* Feste Höhe für einheitliches Aussehen */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stellt sicher, dass das Bild den Container füllt, ohne das Seitenverhältnis zu verzerren */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}
.card-content h4 {
    margin-bottom: 0.5rem;
}

.card-content span {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

/* ---------------------------------- */
/*        METHODOLOGY SECTION         */
/* ---------------------------------- */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step .step-icon {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.step-icon svg {
    transition: transform 0.3s ease;
}

.step:hover .step-icon svg {
    transform: scale(1.1);
}


/* ---------------------------------- */
/*       EXTERNAL RESOURCES           */
/* ---------------------------------- */
.resources-list .resource-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s;
}

.resources-list .resource-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.resource-item .resource-title a {
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    color: var(--color-headings);
    text-decoration: none;
}
.resource-item .resource-title a:hover {
    text-decoration: underline;
}

.resource-item .resource-description {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ---------------------------------- */
/*           KONTAKTSEITE             */
/* ---------------------------------- */
.contact-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-title {
    margin-bottom: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form button {
    width: 100%;
}

.contact-details-container .contact-info p {
    margin-bottom: 1.5rem;
}
.contact-details-container .impressum-title {
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}


/* ---------------------------------- */
/*             ABOUT PAGE             */
/* ---------------------------------- */
.page-header {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    background-color: var(--color-background-light);
    text-align: center;
}

.page-header .section-intro {
    margin-bottom: 0;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.column-image .image-container {
    border-radius: 8px;
    overflow: hidden;
}

.section-cta {
    text-align: center;
}
.section-cta .btn {
    margin-top: 1rem;
}

/* ---------------------------------- */
/*      PRIVACY, TERMS, SUCCESS       */
/* ---------------------------------- */
.content-page {
    padding-top: calc(var(--header-height) + 3rem);
    max-width: 800px;
}

.content-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

/* ---------------------------------- */
/*              FOOTER                */
/* ---------------------------------- */
.footer {
    background-color: var(--color-headings);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer .social-links a {
    /* Text-based links as requested */
    display: inline-block;
}


/* ---------------------------------- */
/*         ANIMATIONEN                */
/* ---------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/*         MEDIA QUERIES              */
/* ---------------------------------- */
@media (max-width: 992px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
    .content-columns {
        grid-template-columns: 1fr;
    }
    .column-image {
        order: -1;
    }
}


@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link, 
    .header.scrolled .nav-link,
    .header:not(.scrolled) .nav-link {
        color: var(--color-text-primary);
        text-shadow: none;
    }
    .nav-link:hover {
        color: var(--color-accent);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 80vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 3rem 0;
    }
}