/**
 * Responsive Styles for Münsterbauverein Theme
 */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    z-index: 999;
    opacity: 0.7;
    display: none;
    text-decoration: none;
}

.back-to-top:hover {
    opacity: 1;
    color: var(--light-color);
}

.arrow-up {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--light-color);
    margin-top: 16px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--light-color);
    clip: auto !important;
    clip-path: none;
    color: var(--primary-color);
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 10px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Project Status Colors */
.project-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--light-color);
}

.project-status.geplant {
    background-color: #4b6584;
}

.project-status.in_arbeit {
    background-color: #e58e26;
}

.project-status.abgeschlossen {
    background-color: #2ecc71;
}

/* Filter Buttons */
.projekt-filter {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.filter-title {
    margin-right: 15px;
    font-weight: bold;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
}

.filter-button {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.filter-button:hover {
    background-color: #e0e0e0;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Responsive Layout Adjustments */
.content-wrap {
    display: flex;
    flex-wrap: wrap;
}

main.site-main {
    flex: 1 0 70%;
    padding-right: 30px;
}

.widget-area.sidebar {
    flex: 0 0 25%;
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex-basis: 50%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        padding: 10px;
    }
    
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        width: 100%;
    }
    
    .main-navigation .sub-menu a {
        padding-left: 30px;
    }
    
    .content-wrap {
        flex-direction: column;
    }
    
    main.site-main {
        padding-right: 0;
    }
    
    .widget-area.sidebar {
        margin-top: 30px;
        flex-basis: 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        margin-top: 15px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    .footer-column {
        flex-basis: 100%;
    }
    
    .projekt-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-title {
        margin-bottom: 10px;
    }
}