/*
Theme Name: Dining Data Child
Description: Custom child theme for Dining Data landing page
Template: generatepress
Version: 1.0.0
*/

@import url("../generatepress/style.css");

/* Custom Styles für Dining Data */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

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

/* Custom Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.dd-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.dd-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.dd-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.dd-nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s;
}

.dd-nav-links a:hover {
    color: #2563eb;
}

.dd-cta-button {
    background: #2563eb;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.dd-cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.dd-cta-button.secondary {
    background: transparent;
    color: #2563eb !important;
    border: 2px solid #2563eb;
}

.dd-cta-button.secondary:hover {
    background: #2563eb;
    color: white !important;
}

/* Mobile Menu */
.dd-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.dd-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

.dd-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.dd-mobile-menu.active {
    display: flex;
}

.dd-mobile-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Hero Section */
.dd-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.dd-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.dd-hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dd-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.dd-hero-image {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Trust Section */
.dd-trust-section {
    padding: 60px 0;
    background: #f8fafc;
    text-align: center;
}

.dd-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dd-trust-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

/* Section Headers */
.dd-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dd-section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.dd-section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.dd-features {
    padding: 80px 0;
    background: white;
}

.dd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dd-feature-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.dd-feature-card:hover {
    transform: translateY(-4px);
}

.dd-feature-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.dd-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.dd-feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Industries */
.dd-industries {
    padding: 80px 0;
    background: #f8fafc;
}

.dd-industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.dd-industry-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dd-industry-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Pricing */
.dd-pricing-preview {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.dd-pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dd-tier-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.dd-tier-card.featured {
    background: #2563eb;
    color: white;
    transform: scale(1.02);
}

.dd-tier-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dd-tier-description {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Final CTA */
.dd-final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    text-align: center;
}

.dd-final-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.dd-final-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.dd-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.dd-footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.dd-footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.dd-footer-section a:hover {
    color: white;
}

/* Image placeholders */
.dd-img-placeholder {
    background: linear-gradient(45deg, #e5e7eb, #f3f4f6);
    border: 2px dashed #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
}

/* 404 Styles */
.dd-404 {
    padding: 140px 0 80px;
    text-align: center;
    background: #f8fafc;
}

.dd-404 h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.dd-404 h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .dd-nav-links {
        display: none;
    }
    
    .dd-mobile-menu-toggle {
        display: flex;
    }
    
    .dd-hero {
        padding: 120px 0 60px;
    }
    
    .dd-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .dd-features,
    .dd-industries,
    .dd-pricing-preview {
        padding: 60px 0;
    }
    
    .dd-features-grid,
    .dd-industries-grid {
        grid-template-columns: 1fr;
    }
    
    .dd-pricing-tiers {
        grid-template-columns: 1fr;
    }
    
    .dd-tier-card.featured {
        transform: none;
    }
    
    .dd-final-cta {
        padding: 60px 0;
    }
    
    .dd-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .dd-hero {
        padding: 100px 0 50px;
    }
    
    .dd-feature-card,
    .dd-industry-card,
    .dd-tier-card {
        padding: 1.5rem;
    }
    
    .dd-hero-cta .dd-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Hide GeneratePress elements we don't need */
.site-footer .footer-widgets-container {
    display: none;
}

/* ========================================
   MOBILE FIXES FÜR DINING DATA WEBSITE
   ======================================== */

/* Fix für Burger-Menü bleibt schwarz Problem */
.dd-mobile-menu-toggle {
    z-index: 1001;
}

.dd-mobile-menu-toggle.active span {
    background: #374151 !important;
}

.dd-mobile-menu-toggle span {
    transition: all 0.3s ease;
}

.dd-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.dd-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.dd-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu z-index fix */
.dd-mobile-menu {
    z-index: 999;
}

/* ========================================
   FEATURES PAGE - NAHTLOSE INTEGRATION FIX
   ======================================== */
@media (max-width: 768px) {
    /* Nahtlose Integration Section */
    section .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Integration Diagram auf Mobile */
    .dd-img-placeholder {
        min-height: 200px;
        margin-top: 2rem;
    }
    
    /* Button Anpassung */
    section .dd-cta-button {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   KONTAKT PAGE - RESPONSIVE FIXES
   ======================================== */
@media (max-width: 768px) {
    /* Hauptcontainer für Kontaktformular und Info */
    section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Demo anfragen Form Box */
    section div[style*="background: white; padding: 2.5rem"] {
        padding: 1.5rem !important;
    }
    
    /* Sprechen Sie mit uns Bereich */
    section div[style*="background: white; padding: 2rem"] {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Schnell-Start Box */
    section div[style*="background: linear-gradient(135deg, #10b981"] {
        padding: 1.5rem !important;
    }
    
    /* FAQ Grid */
    section div[style*="grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Form Inputs auf Mobile */
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
}

/* Kleine Mobile Geräte (unter 480px) */
@media (max-width: 480px) {
    /* Noch kleinere Padding-Anpassungen */
    section div[style*="background: white; padding: 2.5rem"] {
        padding: 1rem !important;
    }
    
    section div[style*="background: white; padding: 2rem"] {
        padding: 1rem !important;
    }
    
    /* H3 und H4 Überschriften kleiner */
    section h3[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }
    
    section h4 {
        font-size: 1.1rem !important;
    }
    
    /* Button volle Breite */
    .dd-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   ALLGEMEINE MOBILE VERBESSERUNGEN
   ======================================== */
@media (max-width: 768px) {
    /* Bessere Touch-Targets für Links */
    .dd-mobile-menu a {
        padding: 0.75rem 1rem;
        display: block;
    }
    
    /* Sections Padding reduzieren */
    section[style*="padding: 80px 0"] {
        padding: 60px 0 !important;
    }
    
    section[style*="padding: 140px 0 80px"] {
        padding: 100px 0 60px !important;
    }
    
    /* Text Größen anpassen */
    h1[style*="font-size: clamp(2.5rem"] {
        font-size: 2rem !important;
    }
    
    p[style*="font-size: 1.25rem"] {
        font-size: 1.1rem !important;
    }
}

/* Overflow-X verhindern */
body {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}

/* Grid Fallback für ältere Browser */
@supports not (display: grid) {
    .dd-features-grid,
    .dd-industries-grid,
    .dd-pricing-tiers,
    .dd-footer-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .dd-features-grid > *,
    .dd-industries-grid > *,
    .dd-pricing-tiers > *,
    .dd-footer-grid > * {
        flex: 1 1 300px;
        margin: 1rem;
    }
}

body.dd-landing-page .dd-cta-button {
    background: #2563eb;
    color: rgba(255, 255, 255, 0.95);
}

body.dd-landing-page .dd-cta-button:hover,
body.dd-landing-page .dd-cta-button:focus {
    background: #1d4ed8 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Mobile Menu Toggle spezifisch */
body.dd-landing-page .dd-mobile-menu-toggle,
body.dd-landing-page .dd-mobile-menu-toggle:hover,
body.dd-landing-page .dd-mobile-menu-toggle:focus {
    background: transparent !important;
}

body.dd-landing-page .dd-mobile-menu-toggle span {
    background: #374151 !important;
}

/* Navigation Links */
body.dd-landing-page .dd-nav-links a:hover {
    color: #2563eb !important;
    background: transparent !important;
}

/* Mobile Menu Links */
body.dd-landing-page .dd-mobile-menu a:hover {
    color: #2563eb !important;
    background: transparent !important;
}