/* ===================================
   ELTERN UND FAMILIENBERATUNG FRANZISKA REHAK
   CSS - MOBILE OPTIMIERT (Option 6)
   =================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a8f7b;
    --primary-dark: #4a7566;
    --secondary-color: #7ba695;
    --accent-color: #8fa399;
    --text-dark: #2c3e3b;
    --text-medium: #556662;
    --text-light: #7a8a86;
    --bg-light: #f5f7f6;
    --bg-white: #ffffff;
    --border-color: #e0e5e3;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    --section-padding: 80px 0;
    --container-max: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-bottom: 70px; /* Platz für Sticky Bar auf Mobile */
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVIGATION ========== */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.sticky {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--bg-white);
    transition: 0.3s;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 500px;
    background: linear-gradient(135deg, rgba(90, 143, 123, 0.85) 0%, rgba(123, 166, 149, 0.85) 100%),
                url('images/hero-background.jpg') center/cover no-repeat;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* ========== "MEHR LESEN" BUTTON ========== */
.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    margin-top: 15px;
    text-decoration: underline;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.read-more-btn:hover {
    opacity: 0.7;
}

.expandable-content {
    margin-top: 15px;
}

/* ========== SECTIONS ========== */
section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* ========== INTRO SECTION ========== */
.intro-section {
    background-color: var(--bg-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.intro-tagline {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.intro-text p {
    margin-bottom: 20px;
    color: var(--text-medium);
}

.intro-image {
    height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.intro-image .image-placeholder {
    background-image: url('images/intro-image.jpg');
}

.mission-image .image-placeholder {
    background-image: url('images/mission-image.jpg');
}

.philosophy-image .image-placeholder {
    background-image: url('images/philosophy-image.jpg');
}

.about-image .image-placeholder {
    background-image: url('images/portrait.jpg');
}

/* ========== SERVICES - AKKORDEON ========== */
.services-overview {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Akkordeon für Mobile */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
    display: none; /* Versteckt auf Desktop */
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* ========== MISSION, PHILOSOPHY SECTIONS ========== */
.mission-section, .philosophy-section {
    background-color: var(--bg-white);
}

.mission-grid, .philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-image, .philosophy-image {
    height: 400px;
}

.mission-content h2, .philosophy-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.mission-content p, .philosophy-content p {
    margin-bottom: 20px;
    color: var(--text-medium);
}

/* ========== QUOTE SECTION ========== */
.quote-section {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

cite {
    display: block;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-medium);
    font-style: normal;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-image {
    height: 350px;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.info-box {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.info-box p {
    margin-bottom: 10px;
}

.timeline {
    margin-top: 30px;
}

.timeline-item {
    margin-bottom: 25px;
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
}

.timeline-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-medium);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== STICKY MOBILE ACTION BAR ========== */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: none; /* Nur auf Mobile sichtbar */
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.mobile-action-btn:hover {
    opacity: 0.8;
}

.action-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.action-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 50px 0 20px;
}

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.9;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ========== RESPONSIVE DESIGN - MOBILE OPTIMIERT ========== */
@media (max-width: 768px) {
    /* Body Padding für Sticky Bar */
    body {
        padding-bottom: 80px;
    }

    /* Navigation */
    .nav-wrapper {
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero - REDUZIERT auf Mobile */
    .hero {
        min-height: 350px;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Grids zu 1-Spalten */
    .intro-grid,
    .mission-grid,
    .philosophy-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Services - AKKORDEON AKTIVIERT */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .accordion-icon {
        display: block; /* Sichtbar auf Mobile */
    }

    .accordion-item .accordion-content {
        max-height: 0;
        overflow: hidden;
    }

    .accordion-item.active .accordion-content {
        max-height: 500px;
        margin-top: 15px;
    }

    /* Sticky Mobile Bar - SICHTBAR */
    .mobile-action-bar {
        display: flex;
    }

    /* "Mehr lesen" Buttons sichtbar */
    .expandable-content {
        display: none;
    }

    .read-more-btn {
        display: block;
    }

    /* Sections Padding reduzieren */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    blockquote {
        font-size: 1.4rem;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .logo-image {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .logo-image {
        height: 45px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Desktop - Akkordeon immer offen */
@media (min-width: 769px) {
    .accordion-item .accordion-content {
        display: block !important;
    }

    .read-more-btn {
        display: none; /* Versteckt auf Desktop */
    }

    .expandable-content {
        display: block !important;
    }
}