/* ========================================
   Logopädie Herne - Main Stylesheet
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    background: #fff;
}

a {
    color: #7bb51b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5a8a0f;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #7bb51b;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

/* ========================================
   Header Bar (Top)
   ======================================== */
.header-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.875rem;
}

.header-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.header-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.875rem;
}

.header-links li a:hover {
    color: #7bb51b;
}

.header-links li a .icon {
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dropdown menus in header */
.header-dropdown {
    position: relative;
}

.header-dropdown > h3,
.header-dropdown > button {
    background: none;
    border: none;
    color: #666;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}

.header-dropdown > h3::after,
.header-dropdown > button::after {
    content: '▼';
    font-size: 0.6rem;
}

.header-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 15px;
}

.header-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu ul li {
    margin-bottom: 8px;
}

.dropdown-menu ul li:last-child {
    margin-bottom: 0;
}

.dropdown-menu ul li a {
    color: #666;
    display: block;
    padding: 5px 0;
}

.dropdown-menu ul li a:hover {
    color: #7bb51b;
}

/* ========================================
   Main Header / Navigation
   ======================================== */
.header-navigation {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-navigation-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation ul li a,
.main-navigation ul li strong {
    color: #666;
    font-size: 1rem;
    padding: 10px 0;
    display: block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.active a,
.main-navigation ul li.active strong {
    color: #7bb51b;
    border-bottom-color: #7bb51b;
}

.main-navigation ul li strong {
    font-weight: 400;
    color: #7bb51b;
    border-bottom-color: #7bb51b;
}

/* Search button */
.nav-search {
    display: flex;
    align-items: center;
}

.nav-search input {
    display: none;
}

.nav-search button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.nav-search button:hover {
    color: #7bb51b;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.main-navigation-mobile {
    display: none;
}

/* ========================================
   Hero / Tagline Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #7bb51b 0%, #5a8a0f 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/background.png') center center no-repeat;
    background-size: cover;
    opacity: 0.1;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hero-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 25px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.3);
}

/* ========================================
   Main Content
   ======================================== */
.content-wrapper {
    padding: 60px 0;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Feature Box */
.feature-box {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.feature-box-text {
    flex: 1;
}

.feature-box-image {
    flex-shrink: 0;
}

.feature-box-image img {
    max-width: 260px;
}

/* Post-it style contact box */
.contact-postit {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-postit p {
    color: #7bb51b;
    margin-bottom: 10px;
}

.contact-postit .phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7bb51b;
}

.contact-postit .email {
    color: #7bb51b;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-section {
    margin: 40px 0;
}

.gallery-section h2 {
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-grid figure img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.05);
}

/* ========================================
   Lists with bullets
   ======================================== */
.content-list ul,
.list-gif ul {
    margin: 20px 0;
}

.content-list ul li,
.list-gif ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #666;
}

.content-list ul li::before,
.list-gif ul li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: #7bb51b;
    font-size: 0.6rem;
    top: 5px;
}

/* Two column lists */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ========================================
   Team Section
   ======================================== */
.team-section {
    margin: 40px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: left;
}

.team-member .image-wrapper {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.team-member .image-wrapper img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .image-wrapper img {
    transform: scale(1.03);
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-member h4 {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.85rem;
    color: #999;
}

/* Team photo */
.team-photo {
    margin-bottom: 30px;
}

.team-photo img {
    width: 100%;
    border-radius: 5px;
}

.team-photo p {
    margin-top: 15px;
    font-style: italic;
}

/* ========================================
   Content Text Sections
   ======================================== */
.content-text {
    margin-bottom: 40px;
}

.content-text h2 {
    margin-bottom: 20px;
}

.content-text .rte p {
    margin-bottom: 1rem;
}

.content-text .rte a {
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.page-footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.footer-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-navigation ul li a,
.footer-navigation ul li strong {
    color: #666;
    font-size: 0.95rem;
}

.footer-navigation ul li a:hover {
    color: #7bb51b;
}

.footer-navigation ul li strong {
    color: #7bb51b;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links ul li a {
    color: #999;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: #7bb51b;
}

/* Back to top */
.footer-top-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #7bb51b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.footer-top-link.visible {
    opacity: 1;
    visibility: visible;
}

.footer-top-link:hover {
    background: #5a8a0f;
    color: #fff;
}

/* ========================================
   Leistungen Page
   ======================================== */
.services-intro {
    margin-bottom: 40px;
}

.services-section {
    margin-bottom: 40px;
}

.services-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-info {
    max-width: 800px;
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-info strong {
    color: #333;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .feature-box {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-bar-inner {
        justify-content: center;
    }
    
    .header-links {
        justify-content: center;
    }
    
    .header-right {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation-mobile.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .main-navigation-mobile ul {
        padding: 20px;
    }
    
    .main-navigation-mobile ul li {
        margin-bottom: 15px;
    }
    
    .main-navigation-mobile ul li a,
    .main-navigation-mobile ul li strong {
        display: block;
        padding: 10px 0;
        color: #666;
    }
    
    .main-navigation-mobile ul li strong {
        color: #7bb51b;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* ========================================
   Material Icons (inline)
   ======================================== */
.icon-location::before { content: '📍'; }
.icon-phone::before { content: '📞'; }
.icon-email::before { content: '✉️'; }
.icon-search::before { content: '🔍'; }
.icon-menu::before { content: '☰'; }
.icon-close::before { content: '✕'; }
.icon-arrow-up::before { content: '↑'; }
