/*
Theme Name: Schübeler Consulting Premium
Theme URI: https://schuebeler-consulting.de
Author: Schübeler Consulting
Author URI: https://schuebeler-consulting.de
Description: Premium consulting website theme with full customizer support, SEO optimization, and modern design. Built for consultants, coaches, and professional service providers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: schuebeler-consulting
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, portfolio, photography
*/

/**
 * Table of Contents:
 * 1. CSS Variables
 * 2. Base & Typography
 * 3. Layout & Structure
 * 4. Navigation
 * 5. Hero Section
 * 6. Components
 * 7. Sections
 * 8. Footer
 * 9. Responsive
 * 10. Utilities
 */

/* ============================================
   1. CSS Variables
   ============================================ */

:root {
    /* Colors - Bold & Modern Theme */
    --electric-blue: #0066FF;
    --vivid-orange: #FF6B35;
    --deep-purple: #6366F1;
    --neon-cyan: #06B6D4;
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-900: #0A0A0A;
    --neutral-800: #1F1F1F;
    --white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Manrope', var(--font-primary);
    
    /* Spacing */
    --container-max-width: 1400px;
    --section-padding: 8rem;
    --section-padding-mobile: 4rem;
    --nav-height: 80px;
    
    /* Effects */
    --transition-base: 0.3s ease;
    --transition-long: 0.6s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.3);
}

/* ============================================
   2. Base & Typography
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   3. Layout & Structure
   ============================================ */

.schuebeler-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.schuebeler-section {
    padding: var(--section-padding) 5%;
}

.schuebeler-section-alt {
    background: var(--white);
}

/* Main content: offset for fixed nav (prevents menu overlapping page titles) */
#main,
.schuebeler-main,
.schuebeler-page-content {
    padding-top: var(--nav-height);
}

/* Reservierter Bereich unten, damit der Chatbot CTA/Footer nicht überlagert */
body.schuebeler-front-page .schuebeler-main {
    padding-bottom: 7rem;
}
@media (min-width: 768px) {
    body.schuebeler-front-page .schuebeler-main {
        padding-bottom: 6rem;
    }
}

#main {
    scroll-margin-top: var(--nav-height);
}

/* ============================================
   4. Navigation
   ============================================ */

.schuebeler-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    backdrop-filter: blur(20px);
    background: rgba(250, 250, 250, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-base);
}

.schuebeler-nav.scrolled {
    padding: 1rem 5%;
    box-shadow: var(--shadow-md);
}

.schuebeler-nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schuebeler-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 250px;
}

.schuebeler-logo a {
    display: block;
}

.schuebeler-logo img,
.custom-logo {
    max-height: 60px;
    width: auto;
    max-width: 250px;
    display: block;
}

.schuebeler-nav.scrolled .schuebeler-logo img,
.schuebeler-nav.scrolled .custom-logo {
    max-height: 50px;
}

.schuebeler-nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    align-items: center;
}

.schuebeler-nav-menu li {
    position: relative;
}

.schuebeler-nav-menu a {
    color: var(--neutral-900);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.schuebeler-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width var(--transition-base);
}

.schuebeler-nav-menu a:hover::after,
.schuebeler-nav-menu .current-menu-item > a::after,
.schuebeler-nav-menu .current_page_item > a::after {
    width: 100%;
}

/* Submenu Styles – gut lesbar auf hellem Dropdown (auch bei dunklem Nav-Design) */
.schuebeler-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    list-style: none;
    margin: 0;
    z-index: 100;
}

.schuebeler-nav-menu li:hover > .sub-menu,
.schuebeler-nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.schuebeler-nav-menu .sub-menu li {
    margin: 0;
}

.schuebeler-nav-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    color: var(--neutral-900) !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.schuebeler-nav-menu .sub-menu a::after {
    display: none;
}

.schuebeler-nav-menu .sub-menu a:hover,
.schuebeler-nav-menu .sub-menu a:focus {
    background: var(--neutral-100);
    color: var(--electric-blue) !important;
}

.schuebeler-nav-cta {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    margin-left: 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.schuebeler-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    opacity: 1;
    color: var(--white);
}

/* Mobile Menu Toggle */
.schuebeler-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.schuebeler-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--neutral-900);
    border-radius: 3px;
    transition: var(--transition-base);
}

.schuebeler-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.schuebeler-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.schuebeler-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   5. Hero Section
   ============================================ */

.schuebeler-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.schuebeler-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.schuebeler-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 102, 255, 0.2);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schuebeler-hero-title {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.schuebeler-hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--neutral-800);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.schuebeler-hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ============================================
   6. Components
   ============================================ */

/* Buttons */
.schuebeler-btn-primary {
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
}

.schuebeler-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.4);
}

.schuebeler-btn-secondary {
    padding: 1.25rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
}

.schuebeler-btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Block-Editor-Buttons (auf allen WP-Seiten/Beiträgen) im Theme-Stil */
.schuebeler-main .wp-block-button .wp-block-button__link,
.schuebeler-main .wp-block-button__link {
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    color: var(--white) !important;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
    cursor: pointer;
}
.schuebeler-main .wp-block-button .wp-block-button__link:hover,
.schuebeler-main .wp-block-button__link:hover {
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.4);
}
/* Outline-Stil = Theme Secondary */
.schuebeler-main .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--electric-blue) !important;
    border: 2px solid var(--electric-blue);
}
.schuebeler-main .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--electric-blue);
    color: var(--white) !important;
}

/* Cards */
.schuebeler-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.schuebeler-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-blue), var(--deep-purple), var(--vivid-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.schuebeler-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.schuebeler-card:hover::before {
    transform: scaleX(1);
}

/* Blog preview cards – readable excerpt & meta */
.schuebeler-blog-card-date {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    color: var(--electric-blue);
}
.schuebeler-blog-card-excerpt {
    color: var(--neutral-800);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.schuebeler-blog-card-link {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 600;
}
.schuebeler-blog-card-link:hover {
    text-decoration: underline;
}

/* ============================================
   7. Sections
   ============================================ */

.schuebeler-section-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.schuebeler-section-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

/* Grid Layouts */
.schuebeler-grid {
    display: grid;
    gap: 2rem;
}

.schuebeler-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.schuebeler-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.schuebeler-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   8. Footer
   ============================================ */

.schuebeler-footer {
    padding: 4rem 5% 2rem;
    background: var(--neutral-900);
    color: var(--white);
}

.schuebeler-footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.schuebeler-footer-logo-wrapper {
    margin-bottom: 1.5rem;
}

.schuebeler-footer-logo-wrapper .custom-logo,
.schuebeler-footer-logo-wrapper .custom-logo-link img {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

.schuebeler-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.schuebeler-footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 500px;
    margin: 0;
    font-size: 1rem;
}

.schuebeler-footer-menu-wrapper {
    padding-top: 0.5rem;
}

.schuebeler-footer-menu-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.schuebeler-footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.schuebeler-footer-nav li {
    margin: 0;
}

.schuebeler-footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition-base);
    display: block;
    padding: 0.25rem 0;
}

.schuebeler-footer-nav a:hover {
    color: var(--electric-blue);
    opacity: 1;
}

.schuebeler-footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.schuebeler-footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   9. Responsive
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .schuebeler-menu-toggle {
        display: flex;
    }
    
    .schuebeler-nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-base);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .schuebeler-nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .schuebeler-nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .schuebeler-nav-menu li:last-child {
        border-bottom: none;
    }
    
    .schuebeler-nav-menu a {
        padding: 1rem 0;
        font-size: 1.125rem;
    }
    
    .schuebeler-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding-left: 1.5rem;
    }
    
    .schuebeler-nav-cta {
        display: none;
    }
    
    .schuebeler-hero-ctas {
        flex-direction: column;
    }
    
    .schuebeler-grid-2,
    .schuebeler-grid-3,
    .schuebeler-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .schuebeler-footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .schuebeler-footer-menu-wrapper,
    .schuebeler-footer-contact {
        padding-top: 0;
    }
    
    .schuebeler-footer-bottom {
        text-align: center;
    }
    
    .schuebeler-legal-links {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   10. Utilities
   ============================================ */

.schuebeler-text-gradient {
    background: linear-gradient(135deg, var(--neutral-900), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.schuebeler-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.schuebeler-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--electric-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.schuebeler-skip-link:focus {
    top: 0;
}

/* Social Media Links */
.schuebeler-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.schuebeler-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.schuebeler-social-link:hover {
    background: var(--electric-blue);
    color: var(--white);
    transform: translateY(-2px);
    opacity: 1;
}

/* Social Links in Footer */
.schuebeler-footer .schuebeler-social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.schuebeler-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.schuebeler-footer .schuebeler-social-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.schuebeler-footer .schuebeler-social-link:hover {
    background: var(--electric-blue);
    transform: translateY(-2px);
}

/* Footer Contact Section */
.schuebeler-footer-contact {
    padding-top: 0.5rem;
}

.schuebeler-footer-contact .schuebeler-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schuebeler-footer-contact .schuebeler-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.schuebeler-footer-contact .schuebeler-contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.schuebeler-footer-contact .schuebeler-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.schuebeler-footer-contact .schuebeler-contact-item a:hover {
    color: var(--electric-blue);
}

/* Footer Bottom with Legal Links */
.schuebeler-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.schuebeler-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* Breadcrumbs */
.schuebeler-breadcrumbs {
    padding: 2rem 5% 1rem;
    font-size: 0.875rem;
    color: var(--neutral-800);
}

.schuebeler-breadcrumbs a {
    color: var(--electric-blue);
    transition: var(--transition-base);
}

.schuebeler-breadcrumbs a:hover {
    opacity: 0.8;
}

.schuebeler-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--neutral-800);
}

/* ============================================
   Produktvorstellung (Seitenvorlage)
   ============================================ */

.schuebeler-template-produktvorstellung .schuebeler-product-hero {
    padding: var(--section-padding) 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.schuebeler-product-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.schuebeler-product-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.schuebeler-product-hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--neutral-800);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.schuebeler-product-hero-cta {
    margin-top: 1.5rem;
}

.schuebeler-template-produktvorstellung .schuebeler-product-content {
    padding: var(--section-padding) 5%;
}

.schuebeler-product-content-inner {
    max-width: 720px;
    margin: 0 auto;
}

.schuebeler-product-content-inner h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.schuebeler-product-content-inner h2:first-child {
    margin-top: 0;
}

.schuebeler-product-content-inner p {
    margin-bottom: 1.25rem;
}

.schuebeler-product-cta-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-100);
}

/* Buttons auf Produktseite im Theme-Stil (überschreibt Block- oder Kontext-Styles) */
.schuebeler-template-produktvorstellung .schuebeler-product-hero-cta .schuebeler-btn-primary,
.schuebeler-template-produktvorstellung .schuebeler-product-cta-bottom .schuebeler-btn-primary {
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    color: var(--white) !important;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
}
.schuebeler-template-produktvorstellung .schuebeler-product-hero-cta .schuebeler-btn-primary:hover,
.schuebeler-template-produktvorstellung .schuebeler-product-cta-bottom .schuebeler-btn-primary:hover {
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.4);
}
/* Block-Editor-Buttons im Produktinhalt wie Theme-Buttons aussehen lassen */
.schuebeler-template-produktvorstellung .schuebeler-product-content-inner .wp-block-button__link,
.schuebeler-template-produktvorstellung .schuebeler-product-content-inner .wp-block-button .wp-block-button__link {
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple)) !important;
    color: var(--white) !important;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
}
.schuebeler-template-produktvorstellung .schuebeler-product-content-inner .wp-block-button__link:hover,
.schuebeler-template-produktvorstellung .schuebeler-product-content-inner .wp-block-button .wp-block-button__link:hover {
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.4);
}

@media (max-width: 768px) {
    .schuebeler-template-produktvorstellung .schuebeler-product-hero {
        padding: var(--section-padding-mobile) 5%;
    }

    .schuebeler-template-produktvorstellung .schuebeler-product-content {
        padding: var(--section-padding-mobile) 5%;
    }
}

/* ============================================
   11. Premium WOW Effects
   ============================================ */

/* Animated Gradient Border on Cards */
.schuebeler-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
}

.schuebeler-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--electric-blue),
        var(--deep-purple),
        var(--vivid-orange),
        var(--neon-cyan),
        var(--electric-blue)
    );
    background-size: 300% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px 24px 0 0;
}

.schuebeler-card:hover::before {
    transform: scaleX(1);
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Premium Button Glow Effect */
.schuebeler-btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.schuebeler-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.schuebeler-btn-primary:hover::before {
    width: 300%;
    height: 300%;
}

.schuebeler-btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    border-radius: inherit;
    z-index: -2;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.schuebeler-btn-primary:hover::after {
    opacity: 1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; filter: blur(12px); }
    50% { opacity: 1; filter: blur(16px); }
}

/* Hero Floating Shapes */
.schuebeler-hero {
    position: relative;
    overflow: hidden;
}

.schuebeler-hero::before,
.schuebeler-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.schuebeler-hero::before {
    width: 600px;
    height: 600px;
    background: var(--electric-blue);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.schuebeler-hero::after {
    width: 500px;
    height: 500px;
    background: var(--deep-purple);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

/* Additional floating shape */
.schuebeler-hero-content::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--vivid-orange), var(--neon-cyan));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morphShape 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Staggered Grid Animation */
.schuebeler-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.schuebeler-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.schuebeler-grid > *:nth-child(1) { transition-delay: 0.1s; }
.schuebeler-grid > *:nth-child(2) { transition-delay: 0.2s; }
.schuebeler-grid > *:nth-child(3) { transition-delay: 0.3s; }
.schuebeler-grid > *:nth-child(4) { transition-delay: 0.4s; }
.schuebeler-grid > *:nth-child(5) { transition-delay: 0.5s; }
.schuebeler-grid > *:nth-child(6) { transition-delay: 0.6s; }
.schuebeler-grid > *:nth-child(7) { transition-delay: 0.7s; }
.schuebeler-grid > *:nth-child(8) { transition-delay: 0.8s; }

/* Section Reveal Animation */
.schuebeler-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.schuebeler-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Special Animation */
.schuebeler-hero {
    opacity: 1;
    transform: none;
}

/* Portfolio Image Tilt Effect */
.schuebeler-portfolio-image {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.schuebeler-portfolio-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.schuebeler-card:hover .schuebeler-portfolio-image img {
    transform: scale(1.05) rotate3d(1, 1, 0, 3deg);
}

/* Shine Effect on Cards */
.schuebeler-card {
    overflow: hidden;
}

.schuebeler-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: none;
    pointer-events: none;
}

.schuebeler-card:hover::after {
    animation: shine 0.8s ease forwards;
}

@keyframes shine {
    to {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Trust Bar Counter Animation Ready */
.schuebeler-trust-value {
    display: inline-block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.schuebeler-trust-label {
    font-size: 0.9rem;
    color: var(--neutral-800);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Testimonial Card Special Effect */
.schuebeler-testimonial-card {
    position: relative;
}

.schuebeler-testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: var(--electric-blue);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

/* Stars Rating Animation */
.schuebeler-stars {
    display: inline-flex;
    gap: 2px;
}

.schuebeler-stars .star {
    color: #FFD700;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.schuebeler-stars .star.filled {
    animation: starPop 0.3s ease backwards;
}

.schuebeler-stars .star:nth-child(1) { animation-delay: 0.1s; }
.schuebeler-stars .star:nth-child(2) { animation-delay: 0.2s; }
.schuebeler-stars .star:nth-child(3) { animation-delay: 0.3s; }
.schuebeler-stars .star:nth-child(4) { animation-delay: 0.4s; }
.schuebeler-stars .star:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Subtle Parallax for Sections */
.schuebeler-section-alt {
    position: relative;
    z-index: 1;
}

.schuebeler-section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* CTA Section Special Styling */
.schuebeler-cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple));
    color: white;
    overflow: hidden;
}

.schuebeler-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.schuebeler-cta-section .schuebeler-btn-primary {
    background: white;
    color: var(--electric-blue);
}

.schuebeler-cta-section .schuebeler-btn-primary:hover {
    background: var(--neutral-50);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Expert Section Image Frame */
.schuebeler-expert-image {
    position: relative;
    display: inline-block;
}

.schuebeler-expert-image::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-purple), var(--vivid-orange));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schuebeler-expert-image:hover::before {
    opacity: 1;
    animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Micro-interaction: Link Underline Animation */
.schuebeler-service-link,
.schuebeler-footer-nav a {
    position: relative;
    display: inline-block;
}

.schuebeler-service-link::after,
.schuebeler-footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.schuebeler-service-link:hover::after,
.schuebeler-footer-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Smooth Scroll Indicator */
.schuebeler-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--neutral-800);
    border-radius: 20px;
    opacity: 0.5;
}

.schuebeler-scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--electric-blue);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 32px; opacity: 0.3; }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .schuebeler-card::before,
    .schuebeler-card::after,
    .schuebeler-btn-primary::before,
    .schuebeler-btn-primary::after,
    .schuebeler-hero::before,
    .schuebeler-hero::after,
    .schuebeler-hero-content::before,
    .schuebeler-fade-in,
    .schuebeler-section,
    .schuebeler-stars .star {
        animation: none !important;
        transition: none !important;
    }
    
    .schuebeler-fade-in,
    .schuebeler-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Chatbot-Container (Botpress / Code-Snippets)
   ============================================ */

.schuebeler-chatbot-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9990;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.schuebeler-chatbot-container > * {
    pointer-events: auto;
}

/* Typische Botpress-/Chat-Widget-Iframes nicht über andere Elemente legen */
#schuebeler-chatbot-slot iframe,
#botpress-webchat,
[id^="botpress-"],
.bpw-layout {
    max-height: calc(100vh - 6rem);
}

@media (max-width: 767px) {
    .schuebeler-chatbot-container {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Botpress-Widget (wenn per Code-Snippets „Footer“ eingebunden) fest positionieren */
#botpress-webchat,
[id^="botpress-webchat"],
.bpw-floating-button {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 9990 !important;
}
@media (max-width: 767px) {
    #botpress-webchat,
    [id^="botpress-webchat"],
    .bpw-floating-button {
        bottom: 1rem !important;
        right: 1rem !important;
    }
}
