/*
Theme Name: Web-Planer
Theme URI: https://example.com/web-planer
Author: Ihr Name
Author URI: https://example.com
Description: Ein modernes, responsives One-Page WordPress Theme für Portfolio und kreative Websites. Vollständig anpassbar über den WordPress Customizer mit deutscher Oberfläche. DSGVO-konform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: web-planer
Tags: one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, portfolio, one-page
*/

/* ===========================
   CSS VARIABLES - Modernes Farbschema
   =========================== */
:root {
    /* Moderne, warme Farben */
    --primary-color: #D4A574;
    --secondary-color: #8B5A3C;
    --accent-color: #E8956F;
    --background-light: #FAFAFA;
    --background-white: #FFFFFF;
    --background-dark: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    
    /* Typography - Moderne Schriftarten */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max-width: 1280px;
    
    /* Transitions */
    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   MODERNE TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}
h2 { 
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--secondary-color);
}

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

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ===========================
   MODERNE NAVIGATION
   =========================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) var(--transition-ease);
    padding: 24px 0;
    backdrop-filter: blur(10px);
}

.main-header.transparent {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    padding: 16px 0;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: all var(--transition-speed) var(--transition-ease);
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ===========================
   MODERN HERO SECTION
   =========================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAF7F2 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    opacity: 0.08;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    opacity: 0.06;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: left;
}

.hero-content h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--text-dark);
    color: var(--text-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed) var(--transition-ease);
    animation: fadeInUp 0.8s ease 0.2s backwards;
    box-shadow: var(--shadow-lg);
}

.hero-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

/* ===========================
   SECTION HEADERS - Modern
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 20px;
    position: relative;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ===========================
   ÜBER UNS - Modern Layout
   =========================== */
#about {
    background: var(--background-white);
}

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

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 16px;
    opacity: 0.1;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.about-text h3 {
    color: var(--text-dark);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===========================
   SERVICES - Modern Cards
   =========================== */
#services {
    background: var(--background-light);
}

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

.service-item {
    background: var(--background-white);
    padding: 48px 32px;
    border-radius: 16px;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.service-item:hover::before {
    transform: scaleX(1);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-ease);
}

.service-item:hover .service-icon {
    transform: rotate(5deg) scale(1.05);
}

.service-item h3 {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===========================
   PORTFOLIO - Modern Grid
   =========================== */
#portfolio {
    background: var(--background-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) var(--transition-ease);
}

.portfolio-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-ease);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(139, 90, 60, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-ease);
    padding: 32px;
    text-align: center;
}

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

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

.portfolio-overlay h3 {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-speed) var(--transition-ease) 0.1s;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform var(--transition-speed) var(--transition-ease) 0.15s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* ===========================
   KONTAKT - Modern Split Layout
   =========================== */
#contact {
    background: var(--background-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info h3 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-ease);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
}

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

.contact-item a {
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--background-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-speed) var(--transition-ease);
    background: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-dark);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   FOOTER - Modern
   =========================== */
.main-footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

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

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 12px;
    transition: all var(--transition-speed);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===========================
   MODERN COOKIE BANNER
   =========================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-white);
    padding: 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-light);
    transform: translateY(100%);
    transition: transform var(--transition-speed) var(--transition-ease);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    font-size: 0.95rem;
}

.cookie-btn.accept {
    background: var(--text-dark);
    color: var(--text-light);
}

.cookie-btn.accept:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.cookie-btn.decline:hover {
    border-color: var(--text-dark);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background-white);
        padding: 80px 24px 24px;
        transform: translateX(-100%);
        transition: transform var(--transition-speed) var(--transition-ease);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    
    .main-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.125rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
}

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

.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}
