/*
Theme Name: Astra Child - Carolin Daub
Description: A modern, responsive WordPress theme based on the carolindaub.de design
Version: 1.5
Author: Custom Development
License: GPL v2 or later
Text Domain: astra-child
*/

/* Import parent Astra theme styles */
@import url("../astra/style.css");

/* Reset and base styles */
* {
    box-sizing: border-box;
}

/* FORCE VISIBILITY on ALL standard pages (Impressum, Datenschutz, etc.) */
body .site {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body .site-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body #primary {
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 400px;
    opacity: 1 !important;
    visibility: visible !important;
}

body .site-main {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body article {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* HIDE MENU on standard pages (Datenschutz, Impressum) - not needed there */
body:not(.custom-home-page) .main-navigation,
body:not(.custom-home-page) #ast-hf-menu-1,
body:not(.custom-home-page) .ast-header-break-point .main-navigation,
body:not(.custom-home-page) .ast-desktop .main-navigation {
    display: none !important;
}

/* Desktop-specific fixes - FORCE VISIBILITY ON ALL PAGES */
@media (min-width: 922px) {
    /* Remove :not(.custom-home-page) - apply to ALL pages including standard pages */
    body #page,
    body #content,
    body .site-content,
    body .ast-container,
    body #primary,
    body .content-area,
    body .site-main,
    body article,
    body .entry-header,
    body .entry-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Specific page layout fixes */
    body #page {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
    }
    
    body #content {
        flex-grow: 1 !important;
    }
    
    body #primary {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 60px 20px !important;
    }
    
    /* Force all content elements */
    body .entry-content *,
    body .entry-content p,
    body .entry-content h1,
    body .entry-content h2,
    body .entry-content h3,
    body .entry-content h4,
    body .entry-content ul,
    body .entry-content ol,
    body .entry-content li {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Override any Astra flex/grid on ALL pages */
    body.ast-separate-container .site-content .ast-container,
    body.ast-plain-container .site-content .ast-container {
        display: block !important;
    }
    
    /* Ensure no transform or positioning issues */
    body #primary,
    body .site-main,
    body article {
        transform: none !important;
        position: relative !important;
    }
}

body:not(.custom-home-page) .entry-header {
    margin-bottom: 30px;
}

body:not(.custom-home-page) .entry-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0;
}

body:not(.custom-home-page) .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

body:not(.custom-home-page) .entry-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
}

body:not(.custom-home-page) .entry-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

body:not(.custom-home-page) .entry-content p {
    margin-bottom: 20px;
}

body:not(.custom-home-page) .entry-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

body:not(.custom-home-page) .entry-content a:hover {
    color: #2c3e50;
}

body:not(.custom-home-page) .entry-content ul,
body:not(.custom-home-page) .entry-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

body:not(.custom-home-page) .entry-content li {
    margin-bottom: 10px;
}

body:not(.custom-home-page) .entry-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Ensure site content is visible */
body:not(.custom-home-page) .site-content {
    display: block;
}

body:not(.custom-home-page) .ast-container {
    display: block;
}

/* Hero Section - wie carolindaub.de */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #7f8c8d;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Navigation - Fixed wie auf carolindaub.de */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 50px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-menu a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Body spacing */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section:not(.hero-section) {
    min-height: auto;
}

/* Section Headers */
section h2 {
    font-size: 3rem;
    font-weight: 200;
    color: #2c3e50;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -1px;
    position: relative;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
}

/* CV Section */
.cv-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cv-content > p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 50px;
    color: #34495e;
}

.cv-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.cv-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.cv-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
}

.cv-section p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* Project Cards */
.project-row {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.project-card {
    flex: 1;
    min-width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.project-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card h3 a:hover {
    color: #3498db;
}

.project-venue {
    font-size: 14px;
    color: #e67e22;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content p {
    color: #7f8c8d;
    line-height: 1.7;
    font-size: 15px;
}

/* Ensemble Cards */
.ensembles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.ensemble-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ensemble-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #e74c3c);
}

.ensemble-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.ensemble-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.ensemble-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ensemble-card h3 a:hover {
    color: #9b59b6;
}

.ensemble-content p {
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 15px;
}

.ensemble-content p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Kontakt Section */
.kontakt-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-content > p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #34495e;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #7f8c8d;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 25px;
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    section {
        padding: 60px 15px;
    }
    
    section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .project-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .project-card, .ensemble-card {
        min-width: auto;
        padding: 25px;
    }
    
    .cv-sections, .ensembles-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cv-section, .contact-info {
        padding: 30px;
    }
    
    /* Mobile Hintergrundbild Fixes */
    .hero-section {
        background-attachment: scroll !important; /* Fixed attachment wird zu scroll auf mobile */
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        height: auto !important;
    }
    
    /* Alternative Hero Sections auch fixen */
    .alt-hero-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 100vh !important;
        height: auto !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card, .ensemble-card, .cv-section {
    animation: fadeInUp 0.6s ease-out;
}