/*
Theme Name: Handwerker One-Page Theme
Description: Ein modernes, responsives One-Page-WordPress-Theme für Handwerker verschiedener Gewerke. Traditionell und modern, clean & minimal gestaltet, mobilfreundlich und suchmaschinenoptimiert.
Version: 1.0
Author: Handwerker Theme
Text Domain: handwerker-theme
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Dieses Theme ist speziell für Handwerker wie Maler, Installateure, Elektriker entwickelt.
Farbpalette: #173753, #6daedb, #2892d7, #1b4353, #1d70a2
Schriftart: "Inter", sans-serif
*/

/* ===== CSS VARIABLEN ===== */
:root {
    --primary-color: #2892d7;
    --secondary-color: #173753;
    --accent-color: #6daedb;
    --dark-blue: #1b4353;
    --light-blue: #1d70a2;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --header-height: 80px;
}

/* ===== CSS RESET UND GRUNDLAGEN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 20px;
    color: var(--gray);
}

/* ===== LINKS ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--light-blue);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== LAYOUT UND CONTAINER ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HEADER UND NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: var(--secondary-color);
}

.site-description {
    margin: 0;
    font-size: 14px;
    color: var(--gray);
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.header-cta {
    margin-left: 20px;
    margin-top: 10px;
}

.btn-header-cta {
    padding: 12px 25px;
    font-size: 14px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 55, 83, 0.8), rgba(40, 146, 215, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--white);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 146, 215, 0.05), transparent);
    transition: left 0.6s;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: var(--white);
    font-size: 36px;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.default-icon {
    font-size: 36px;
}

.service-title {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-description {
    color: var(--gray);
    line-height: 1.6;
}

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

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

.about-text {
    padding-right: 20px;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--gray);
}

.about-features {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.feature-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-text {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: var(--white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-item {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 80px;
    color: var(--accent-color);
    font-family: serif;
    line-height: 1;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

.testimonial-location {
    font-weight: 400;
    color: var(--gray);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-blue));
    color: var(--white);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 40px;
}

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

.contact-icon {
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details a {
    color: var(--white);
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    display: none;
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.footer-nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--light-blue);
    transform: translateY(-3px);
}

/* ===== DGUV SECTION ===== */
.dguv-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 60px 0;
    margin: 60px 0;
}

.dguv-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.dguv-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.dguv-content ul li {
    position: relative;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    padding: 18px 24px 18px 48px;
    color: var(--secondary-color);
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(40,146,215,0.05);
    transition: box-shadow 0.2s;
}

.dguv-content ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
}

.dguv-content ul li strong {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .dguv-section {
        padding: 40px 0;
        margin: 40px 0;
    }
    .dguv-content ul li {
        padding: 14px 14px 14px 38px;
        font-size: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-content {
        gap: 60px;
    }
    
    .contact-content {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --header-height: 70px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Header Mobile */
    .header-content {
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .header-cta {
        order: 1;
        margin-left: 0;
        margin-right: 20px;
    }
    
    .btn-header-cta {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Hero Mobile */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-features {
        justify-content: center;
        gap: 30px;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Testimonials Mobile */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Footer Mobile */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-contact {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .service-item {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

