/* style.css */

/* ---------------------------------- */
/* 1. CSS Variablen (Root)
/* ---------------------------------- */
:root {
    /* Farbpalette (Pastell) */
    --primary-color: #a7b5d5; /* Pastellblau */
    --secondary-color: #f7d9c4; /* Pastellpfirsich */
    --accent-color: #c7ceea; /* Pastelllila */
    --background-light: #fdfaf6; /* Sehr helles Creme */
    --background-dark: #3a3d4a; /* Dunkles Schiefergrau */
    --text-color: #333333; /* Dunkelgrau */
    --text-color-light: #FFFFFF;
    --heading-color: #222222; /* Fast Schwarz */
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.15);

    /* Schriftarten */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Übergänge */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Spacing */
    --header-height: 80px;
}

/* ---------------------------------- */
/* 2. Globale Stile & Resets
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-wrap: balance;
}

h1 { font-size: 3.052rem; }
h2 { font-size: 2.441rem; }
h3 { font-size: 1.953rem; }
h4 { font-size: 1.563rem; }

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: #666;
}

/* ---------------------------------- */
/* 3. Komponenten-Stile
/* ---------------------------------- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none !important;
    text-align: center;
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color-hover);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #8e9cc1; /* Dunklerer Ton von primary */
    border-color: #8e9cc1;
    color: var(--text-color-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--text-color);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(167, 181, 213, 0.4);
}

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

/* Karten */
.card {
    background-color: var(--text-color-light);
    border-radius: 12px;
    box-shadow: 0 5px 25px var(--shadow-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-color-hover);
}

.card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

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

.card .card-content p {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ---------------------------------- */
/* 4. Layout-Stile
/* ---------------------------------- */

/* Header */
.site-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;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading-color);
    text-decoration: none;
}
.site-header.scrolled .logo,
.site-header.scrolled .nav-links a {
    color: var(--heading-color);
}
.site-header:not(.scrolled) .logo,
.site-header:not(.scrolled) .nav-links a {
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.site-header:not(.scrolled) .nav-links a:hover {
    color: var(--secondary-color);
}
.site-header:not(.scrolled) .logo:hover {
    color: var(--text-color-light);
    text-decoration: none;
}


.logo b {
    font-weight: 500;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none; /* Sichtbar nur auf Mobilgeräten */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}
.site-header.scrolled .burger-menu span {
    background-color: var(--heading-color);
}


/* Footer */
.site-footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

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

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

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 0.3rem 0;
    text-decoration: none;
}

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

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

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


/* ---------------------------------- */
/* 5. Sektion-Spezifische Stile
/* ---------------------------------- */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax-Effekt */
}

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

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

.hero-content h1 {
    color: var(--text-color-light);
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-content p {
    color: var(--text-color-light);
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Vision Section */
.vision-section {
    background-color: var(--text-color-light);
}

.vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-color);
}
.vision-image img {
    width: 100%;
    height: auto;
}

/* Innovation Section */
.innovation-section {
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    text-align: center;
}
.innovation-slider {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}
.slide {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    max-width: 350px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}
.slide:hover {
    transform: scale(1.05);
}
.slide-icon-container {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Clientele Section */
.clientele-section {
    background-color: #f7f8fc;
}
.clientele-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}
.client-logo img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-fast);
}
.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-light);
}
.testimonial-card {
    background-color: var(--text-color-light);
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-card .card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 5px var(--text-color-light), 0 0 0 7px var(--primary-color);
}
.testimonial-card blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #555;
}
.testimonial-card footer cite {
    font-weight: 700;
    font-style: normal;
    display: block;
    color: var(--heading-color);
}
.testimonial-card footer span {
    font-size: 0.9rem;
    color: #777;
}

/* Press/Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.resource-card {
    background-color: var(--text-color-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition-smooth);
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}
.resource-card h4 a {
    text-decoration: none;
    color: var(--heading-color);
}
.resource-card h4 a:hover {
    color: var(--primary-color);
}

/* Careers Section */
.careers-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color-light);
    text-align: center;
}

.careers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 40, 60, 0.8), rgba(90, 110, 150, 0.7));
}

.careers-content {
    position: relative;
    max-width: 700px;
}
.careers-content h2, .careers-content p {
    color: var(--text-color-light);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    background: var(--text-color-light);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px var(--shadow-color);
}
.contact-info p {
    line-height: 1.8;
}
.contact-info a {
    color: var(--text-color);
}
.contact-info a:hover {
    color: var(--primary-color);
}
.map-placeholder {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}
.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static Pages (About, Privacy, Terms) */
.page-header {
    padding: 8rem 2rem 4rem;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-header h1 {
    color: var(--text-color-light);
    position: relative;
    z-index: 2;
}

.content-section {
    padding: 5rem 0;
}
.content-section.page-section .container {
    max-width: 800px;
}
/* Wichtig: Abstand für den Header auf statischen Seiten */
body:has(.content-section.page-section) main {
    padding-top: var(--header-height);
}


/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page .site-footer {
    margin-top: auto;
}
.success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    padding: 2rem;
}
.success-container h1 {
    color: var(--success-color);
    font-size: 4rem;
}

/* ---------------------------------- */
/* 6. Media Queries (Responsiveness)
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .vision-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .vision-text {
        text-align: center;
    }
    .vision-text h2 {
        text-align: center !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    /* Burger Menu Aktivierung */
    .burger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-color-light);
        font-size: 1.5rem;
    }

    .site-header:not(.scrolled) .burger-menu span,
    .site-header.scrolled .burger-menu span {
        background-color: var(--text-color-light);
    }
    .site-header.scrolled .burger-menu.active span {
        background-color: var(--text-color-light);
    }
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
        flex-direction: row;
    }
}