/* Dieter Rams Inspired Design */
/*
    Principles reflected:
    - Good design is innovative (modern tech, subtle animations)
    - Good design makes a product useful (clear communication, easy navigation)
    - Good design is aesthetic (clean lines, harmonious colors, considered typography)
    - Good design makes a product understandable (intuitive structure)
    - Good design is unobtrusive (animations support, don't distract)
    - Good design is honest (clear representation of services)
    - Good design is long-lasting (timeless visual approach)
    - Good design is thorough down to the last detail (careful spacing, transitions)
    - Good design is environmentally friendly (efficient code, optimized for web)
    - Good design is as little design as possible (purposeful elements)
*/

:root {
    --primary-color: #2C3E50; /* Tiefes Blau-Grau */
    --secondary-color: #3498DB; /* Helleres, freundliches Blau */
    --accent-color: #1ABC9C; /* Lebendiges Türkis/Mint als Akzent */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #ECF0F1; /* Sehr helles Grau, fast Weiß */
    --card-background: #FFFFFF;
    --font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Klare, moderne Sans-Serif */
    --container-width: 1140px;
    --animation-duration-fast: 0.4s;
    --animation-duration-medium: 0.7s;
    --border-radius: 6px; /* Subtile Abrundungen */
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Basis für REM-Einheiten */
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Header & Navigation */
.main-header {
    background-color: var(--card-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color var(--animation-duration-fast) ease;
}

.main-nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400; /* Nicht zu fett, für Rams'sche Zurückhaltung */
    font-size: 0.95rem;
    transition: color var(--animation-duration-fast) ease;
    position: relative;
    padding-bottom: 0.4rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--animation-duration-fast) ease-out;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--secondary-color);
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher button {
    background: none;
    border: 1px solid transparent; /* Platz für Border bei Hover */
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    margin: 0 0.2rem;
    border-radius: var(--border-radius);
    transition: background-color var(--animation-duration-fast) ease, color var(--animation-duration-fast) ease, border-color var(--animation-duration-fast) ease;
    font-weight: 500;
}

.language-switcher button.active {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border-color: var(--secondary-color);
}
.language-switcher button:not(.active):hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.language-switcher span {
    color: #aaa;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem; /* Mehr Padding oben wegen fixiertem Header */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text-color);
    position: relative;
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem); /* Responsive Typografie */
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px; /* Freundliche, abgerundete Form */
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--animation-duration-fast) ease, background-color var(--animation-duration-fast) ease, box-shadow var(--animation-duration-fast) ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #17a78a; /* Etwas dunklerer Akzent für Hover */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Hero Background Animation (Subtle Particles) */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out alternate;
    opacity: 0; /* Start invisible, fade in with JS */
}

@keyframes float {
    0% { transform: translateY(20px) translateX(0px) scale(0.8); }
    100% { transform: translateY(-20px) translateX(15px) scale(1.2); }
}

/* General Section Styling */
.content-section {
    padding: 5rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block; /* Damit ::after korrekt positioniert wird */
    font-weight: 700;
}

.content-section h2::after { /* Subtile Unterstreichung für Titel */
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.content-section .section-intro {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    font-weight: 300;
}

.accent-bg {
    background-color: #f7f9fa; /* Ein noch helleres Grau für Abwechslung */
}

/* About Section - Collaboration Visual */
.collaboration-visual {
    margin: 2.5rem auto;
    width: 120px;
    height: 120px;
}
.collaboration-visual svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
#gear1 { /* Animation for gear1 is in HTML via <animateTransform> for this example */ }
#gear2 { /* Animation for gear2 is in HTML via <animateTransform> for this example */ }
/* If SVG animations were purely CSS driven:
#gear1 { animation: rotate 10s linear infinite; transform-origin: center; }
#gear2 { animation: rotate-reverse 8s linear infinite; transform-origin: center; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
*/


/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--card-background);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-align: left;
    transition: transform var(--animation-duration-fast) ease, box-shadow var(--animation-duration-fast) ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(44, 62, 80, 0.12);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
    color: var(--secondary-color); /* Für SVG fill/stroke */
}
.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.service-card p {
    font-size: 0.95rem;
    flex-grow: 1;
    color: #555;
    font-weight: 300;
}

/* Process / Collaboration Timeline */
.process-timeline {
    margin-top: 4rem;
    position: relative;
    padding: 2rem 0;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0; /* Start height 0 */
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: 0;
    transition: height 1s ease-out; /* For JS animation trigger */
}

.process-timeline.timeline-animated-via-js::before { /* Class added by JS to trigger animation */
    height: 100%;
}

.process-step {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: 0 auto 3rem auto;
    width: 90%;
    max-width: 550px;
    text-align: left;
    position: relative;
    border-left: 5px solid var(--secondary-color);
    z-index: 1; /* Above the timeline's ::before */
}

.process-step-number {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px var(--background-color);
}

.process-step h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.process-step p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #555;
    font-weight: 300;
}

/* Contact Form */
.contact-form-container {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: left;
    background: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.8rem;
}

.contact-form-container label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #DDE2E5;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color var(--animation-duration-fast) ease, box-shadow var(--animation-duration-fast) ease;
    background-color: #fdfdfd;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form-container textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form-container .cta-button {
    width: 100%;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--primary-color);
    color: rgba(236, 240, 241, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Animation Helper Classes (for JS Intersection Observer) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--animation-duration-medium) ease-out, transform var(--animation-duration-medium) ease-out;
}
.animate-on-scroll.delay-1 { transition-delay: 0.15s; }
.animate-on-scroll.delay-2 { transition-delay: 0.3s; }
.animate-on-scroll.delay-3 { transition-delay: 0.45s; }

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

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-on-scroll, .particle, .cta-button, .service-card, .nav-links a::after, .process-timeline::before {
        /* SMIL animations in SVG (<animateTransform>) are not reliably disabled by this,
           but CSS animations on #gear1, #gear2 would be. */
        animation: none !important;
        transition: none !important;
    }
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    .cta-button:hover { transform: none; }
    .service-card:hover { transform: none; }
    .process-timeline::before { height: 100% !important; } /* Ensure line is visible if JS anim is off */
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav { padding: 0.8rem 1rem; }
    .nav-links li { margin-left: 1.5rem; }
    .content-section { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; /* JS needed for mobile menu toggle */ }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .process-timeline::before { left: 20px; transform: none; }
    .process-step { width: calc(100% - 30px); margin-left: 30px; padding-left: 25px; }
    .process-step-number { left: -15px; transform: translateY(-50%); /* Adjusted for left alignment */ }
    .contact-form-container { padding: 2rem; }
}