/*
Theme Name: Karl Friedrichs Metallbau
Theme URI: https://metallbau-friedrichs.de
Author: Karl Friedrichs Metallbau
Description: Custom WordPress Theme für Karl Friedrichs Metallbau - Schlosserei & Markisen in Viersen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metallbau
*/

/* ===== Local Fonts ===== */
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a:hover {
    color: #c44d00;
}

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

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

/* ===== Header ===== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

/* ===== Navigation ===== */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li.current-menu-item a,
nav ul li.current_page_item a {
    color: #e65a00;
    border-bottom-color: #e65a00;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ===== Hero Slider ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #1a1a1a;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    text-align: center;
    color: #fff;
    padding: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #e65a00;
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c44d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 90, 0, 0.3);
    color: #fff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #e65a00;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e65a00;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e65a00;
    color: #fff;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #e65a00;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* ===== About Section ===== */
.about {
    background: #f8f8f8;
}

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

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-image img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.1rem;
    margin: 15px 15px 10px;
    color: #333;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.5;
}

.service-card a {
    display: block;
    padding: 12px 15px;
    color: #e65a00;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.service-card a:hover {
    background: #f8f8f8;
}

/* ===== Leistungen Grid ===== */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.leistung-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.leistung-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.leistung-icon {
    width: 60px;
    height: 60px;
    background: #e65a00;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.leistung-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.leistung-content p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 15px 15px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-item-count {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

/* ===== Referenzen Categories ===== */
.referenz-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

a.referenz-category {
    text-decoration: none;
    color: inherit;
    display: block;
}

.referenz-category {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.referenz-category img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.referenz-category:hover img {
    transform: scale(1.05);
}

.referenz-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
    color: #fff;
}

.referenz-category-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.referenz-category-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Contact Section ===== */
.contact-section {
    background: #fff;
    padding: 60px 0;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #e65a00;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i,
.contact-item .contact-icon {
    width: 40px;
    height: 40px;
    background: #e65a00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: normal;
    font-size: 1.2rem;
}

.contact-item div h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-item div p,
.contact-item div a {
    color: #555;
    font-size: 0.95rem;
}

.contact-item div a:hover {
    color: #e65a00;
}

/* Contact Form */
.contact-form {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
}

.contact-form h3 {
    color: #e65a00;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e65a00;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #e65a00;
}

.checkbox-group label {
    font-weight: normal;
    cursor: pointer;
    line-height: 1.4;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero/slide1.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Partner Grid ===== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.partner-item {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.partner-item .partner-icon {
    width: 70px;
    height: 70px;
    background: #e65a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.partner-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.partner-item .partner-category {
    color: #e65a00;
    font-weight: 600;
    margin-bottom: 10px;
}

.partner-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* ===== Tipps Grid ===== */
.tipps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tipp-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.tipp-item .tipp-icon {
    width: 70px;
    height: 70px;
    background: #e65a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
}

.tipp-item h3 {
    color: #333;
    margin-bottom: 15px;
}

.tipp-item p {
    color: #666;
    margin: 0;
}

/* ===== Impressum ===== */
.impressum {
    background: #f8f8f8;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: #333;
}

.impressum-content p {
    margin-bottom: 10px;
    color: #555;
}

/* ===== Datenschutz ===== */
.datenschutz-content {
    max-width: 900px;
    margin: 0 auto;
}

.datenschutz-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: #333;
    border-bottom: 2px solid #e65a00;
    padding-bottom: 10px;
}

.datenschutz-content h3 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: #444;
}

.datenschutz-content p {
    margin-bottom: 15px;
    color: #555;
}

.datenschutz-content ul {
    margin: 15px 0 15px 30px;
    color: #555;
}

.datenschutz-content ul li {
    margin-bottom: 8px;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #e65a00;
}

/* ===== Footer ===== */
footer {
    background: #111;
    color: #999;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.footer-links a:hover {
    color: #e65a00;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid,
    .referenz-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .leistungen-grid {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tipps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        padding: 15px 20px;
    }

    .hero {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .gallery-grid,
    .referenz-categories,
    .services-grid,
    .partner-grid,
    .tipps-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }

    .slide-content {
        padding: 25px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .leistung-item {
        flex-direction: column;
        text-align: center;
    }

    .leistung-icon {
        margin: 0 auto;
    }
}
