/* css/styles.css */

/* ----- Variablen & Reset ----- */
:root {
    --primary: #5e9b9d;
    --primary-light: #e2f0f0;
    --dark: #333;
    --gray: #777;
    --light-gray: #f5f7fa;
    --white: #fff;
    --shadow: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* ----- Header & Navigation ----- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 5px;
}

/* ----- Mobile Navigation ----- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* ----- Main Container ----- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ----- Hero Section (Startseite) ----- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 80vh;
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content h1 span {
    color: var(--primary);
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    height: 400px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(94, 155, 157, 0.3);
}

.btn:hover {
    background: #4a7e80;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94, 155, 157, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ----- Section Titel ----- */
.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
}

/* ----- Karten (Cards) ----- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.4s; }

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ----- Partner Logos (Platzhalter) ----- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
    justify-items: center;
}

.partner-item {
    background: var(--light-gray);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 1rem;
}

.partner-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ----- Werdegang (Timeline) ----- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(30px);
}

.timeline-year {
    min-width: 120px;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ----- Vorgehensweise (Steps) ----- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    width: 120px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ----- Kontaktformular ----- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 155, 157, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: var(--primary-light);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ----- Footer ----- */
footer {
    background: var(--light-gray);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gray);
}

/* ----- Animationen ----- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Responsive Anpassungen ----- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 100%;
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        gap: 0.5rem;
        transform: none;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        gap: 1.5rem;
    }
}

/* FAQ Akkordeon */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1rem 0 0;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* großzügig, damit Inhalt Platz hat */
    padding-bottom: 1rem;
}