/* css/pages/about.css - Styles spezifisch für Über uns Seite */

.about-hero-section {
    padding: 60px 0; /* Padding reduziert */
    padding-top: calc(var(--main-header-height-desktop) + 10px); /* Anpassung an Header-Höhe */
    background-color: var(--mid-bg-color); /* Bleibt helleres Grau als Intro */
    color: var(--primary-color);
    text-align: center;
}

.about-hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-hero-section .lead-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color-dark);
}

/* Story Section - HINTERGRUND AUF DUNKELGRAU GEÄNDERT */
.story-section {
    padding: 60px 0; /* Padding reduziert */
    background-color: var(--primary-color); /* Hintergrund auf Dunkelgrau geändert */
    color: var(--text-color-light); /* Textfarbe auf hell geändert für Kontrast */
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px; /* Mehr Abstand */
    align-items: center;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }
    .story-content {
        order: 1;
    }
    .story-image {
        order: 2;
    }
    /* Für ungerade Sektionen (jede zweite) Bild links, Text rechts */
    .story-section:nth-of-type(odd) .story-content { order: 2; } /* Passt die Reihenfolge für jede ODD Sektion an */
    .story-section:nth-of-type(odd) .story-image { order: 1; } /* Bild links */
    /* Für gerade Sektionen (jede erste, dritte etc., also die ungerade im CSS Zähler) Text links, Bild rechts */
    .story-section:nth-of-type(even) .story-content { order: 1; }
    .story-section:nth-of-type(even) .story-image { order: 2; }
}

.story-content h2 {
    font-size: 2.8em; /* Grösser */
    color: var(--text-color-light); /* Überschrift auf hell geändert */
    margin-bottom: 25px; /* Mehr Abstand */
    text-align: left; /* Links ausgerichtet */
}

.story-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1.5em; /* Mehr Abstand zwischen Absätzen */
    color: var(--text-color-light); /* Textfarbe auf hell geändert */
    text-align: justify; /* Blocksatz für Fliesstext */
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px; /* Grösser abgerundet */
    box-shadow: 0 15px 40px var(--shadow-medium); /* Stärkerer Schatten */
}

/* Values Section - Bleibt helleres Grau */
.values-section {
    padding: 80px 0; /* Padding reduziert */
    background-color: var(--mid-bg-color);
    color: var(--primary-color); /* Bleibt dunkel */
}

.values-section h2 {
    font-size: 2.8em; /* Grösser */
    color: var(--primary-color);
    margin-bottom: 60px; /* Mehr Abstand */
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Etwas breiter */
    gap: 30px;
}

.value-item {
    background-color: var(--light-bg-color); /* Helle Karte auf hellem Hintergrund */
    padding: 40px; /* Mehr Padding */
    border-radius: 12px; /* Abgerundeter */
    box-shadow: 0 8px 20px var(--shadow-light); /* Neuer Schatten */
    text-align: center;
    border-bottom: 5px solid var(--accent-color); /* Dickerer Akzentrand */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.value-icon {
    font-size: 3.5em; /* Grösser */
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 1.05em;
    color: var(--text-color-dark);
}

/* Team Section - HINTERGRUND AUF DUNKELGRAU GEÄNDERT */
.team-section {
    padding: 80px 0; /* Padding reduziert */
    background-color: var(--primary-color); /* Hintergrund auf Dunkelgrau geändert */
    color: var(--text-color-light); /* Textfarbe auf hell geändert für Kontrast */
}

.team-section h2 {
    font-size: 2.8em; /* Grösser */
    color: var(--text-color-light); /* Überschrift auf hell geändert */
    margin-bottom: 25px; /* Mehr Abstand */
    text-align: center;
}

.team-section .lead-text {
    font-size: 1.3em; /* Grösser */
    max-width: 900px; /* Breiter */
    margin: 0 auto 60px auto; /* Mehr Abstand */
    text-align: center;
    color: var(--text-color-light); /* Lead-Text auf hell geändert */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Etwas breiter */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: var(--mid-bg-color); /* Helle Karte auf dunklem Hintergrund */
    padding: 30px;
    border-radius: 12px; /* Abgerundeter */
    box-shadow: 0 8px 20px var(--shadow-light); /* Neuer Schatten */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.team-photo {
    width: 160px; /* Grösser */
    height: 160px; /* Grösser */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px; /* Mehr Abstand */
    border: 5px solid var(--accent-color); /* Dickerer Akzentrand */
    box-shadow: 0 0 0 5px rgba(var(--primary-color-rgb), 0.1); /* Zweiter Ring */
}

.team-member h3 {
    font-size: 2em; /* Grösser */
    color: var(--primary-color); /* Überschrift bleibt dunkel */
    margin-bottom: 8px; /* Mehr Abstand */
}

.team-member p {
    font-size: 1.1em; /* Grösser */
    color: var(--text-color-dark); /* Text bleibt dunkel */
    line-height: 1.5;
}

.member-bio {
    font-size: 0.95em; /* Etwas grösser */
    color: #666; /* Bleibt dunkel (oder auf var(--text-color-dark)) */
    margin-top: 15px; /* Mehr Abstand */
    line-height: 1.6;
}

/* Optional: CTA zum Schluss */
.cta-section {
    /* Diese Sektion ist bereits in home.css und layout.css definiert */
}

/* ========================================= */
/* Responsive Anpassungen für Über uns Seite */
/* ========================================= */
@media (max-width: 992px) {
    .story-grid {
        gap: 40px;
    }
    /* Team- und Values-Sektionen auf Responsive anpassen */
    .story-content h2, .values-section h2, .team-section h2 {
        font-size: 2.5em;
    }
    .story-content p, .value-item p, .team-member p {
        font-size: 1em;
    }
    .value-item, .team-member {
        padding: 30px;
    }
    .team-photo {
        width: 140px;
        height: 140px;
    }
    .team-member h3 {
        font-size: 1.8em;
    }
    .member-bio {
        font-size: 0.9em;
    }
    .values-grid {
        gap: 25px;
    }
    .value-item {
        padding: 25px;
        border-bottom-width: 3px;
    }
    /* Textfarbe für Story und Team Sektionen auf Responsive beibehalten */
    .story-section {
        color: var(--text-color-light);
    }
    .story-content h2 {
        color: var(--text-color-light);
    }
    .story-content p {
        color: var(--text-color-light);
    }
    .team-section {
        color: var(--text-color-light);
    }
    .team-section h2 {
        color: var(--text-color-light);
    }
    .team-section .lead-text {
        color: var(--text-color-light);
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 40px 0; /* Responsive Padding reduziert */
        padding-top: calc(var(--main-header-height-sm) + 10px); /* Anpassung an Header-Höhe */
    }
    .about-hero-section h1 {
        font-size: 2.5em;
    }
    .about-hero-section .lead-text {
        font-size: 1.1em;
    }
    .story-grid {
        grid-template-columns: 1fr; /* Stapel auf Mobile */
        gap: 30px;
    }
    .story-content h2 {
        text-align: center; /* Überschrift zentrieren auf Mobile */
        font-size: 2.2em;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(var(--text-color-light-rgb), 0.1); /* Randfarbe an hellen Text anpassen */
        margin-bottom: 20px;
    }
    /* Bildreihenfolge auf Mobile zurücksetzen, falls nötig, um Text-Bild-Text-Bild zu vermeiden */
    .story-content { order: initial !important; }
    .story-image { order: initial !important; }

    .values-section {
        padding: 60px 0; /* Responsive Padding reduziert */
    }
    .values-section h2, .team-section h2 {
        font-size: 2.2em;
    }
    .team-section {
        padding: 60px 0; /* Responsive Padding reduziert */
    }
    .team-section .lead-text {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    .team-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    .team-member h3 {
        font-size: 1.6em;
    }
    .team-member p {
        font-size: 0.95em;
    }
    .member-bio {
        font-size: 0.85em;
    }
    .values-grid {
        grid-template-columns: 1fr; /* Stapel auf Mobile */
    }
    .value-item {
        padding: 30px;
        border-bottom-width: 3px;
    }
    /* Textfarben auf Mobile beibehalten */
    .story-section {
        color: var(--text-color-light);
    }
    .story-content h2 {
        color: var(--text-color-light);
    }
    .story-content p {
        color: var(--text-color-light);
    }
    .team-section {
        color: var(--text-color-light);
    }
    .team-section h2 {
        color: var(--text-color-light);
    }
    .team-section .lead-text {
        color: var(--text-color-light);
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        padding: 30px 0; /* Responsive Padding weiter reduziert */
    }
    .about-hero-section h1 {
        font-size: 2em;
    }
    .about-hero-section .lead-text {
        font-size: 0.95em;
    }
    .story-section {
        padding: 30px 0; /* Responsive Padding weiter reduziert */
    }
    .story-content h2, .values-section h2, .team-section h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .story-content p {
        font-size: 0.95em;
    }
    .value-item {
        padding: 25px;
    }
    .value-icon {
        font-size: 3em;
    }
    .value-item h3 {
        font-size: 1.4em;
    }
    .value-item p {
        font-size: 0.9em;
    }
    .team-section {
        padding: 30px 0; /* Responsive Padding weiter reduziert */
    }
    .team-section .lead-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .team-photo {
        width: 100px;
        height: 100px;
    }
    .team-member h3 {
        font-size: 1.4em;
    }
    .team-member p {
        font-size: 0.9em;
    }
    .member-bio {
        font-size: 0.8em;
    }
    /* Textfarben auf Mobile beibehalten */
    .story-content h2 {
        color: var(--text-color-light);
    }
    .story-content p {
        color: var(--text-color-light);
    }
    .team-section h2 {
        color: var(--text-color-light);
    }
    .team-section .lead-text {
        color: var(--text-color-light);
    }
}