/*
Theme Name: ImExProducts
Theme URI: https://www.imexproducts.de
Description: Next-Generation B2B Commerce Platform mit Quantum Field Design.
Author: ImExProducts Team
Author URI: https://www.imexproducts.de
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imexproducts
Tags: business, b2b, ecommerce, dark, modern, custom
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   GLOBAL
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #0a0e27;
}

/* ==========================================================================
   HINTERGRUND
   ========================================================================== */

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e27 0%, #001f4d 100%);
    overflow: hidden;
}

/* ==========================================================================
   SEIFENBLASEN
   ========================================================================== */

.soap-bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    will-change: left, top, width, height, opacity;
    background: radial-gradient(
        ellipse at 35% 30%,
        rgba(255,255,255,0.22) 0%,
        rgba(180,230,255,0.08) 30%,
        rgba(100,180,255,0.04) 55%,
        rgba(200,150,255,0.03) 75%,
        transparent 90%
    );
    border: 1.5px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 0 1.5px rgba(140,200,255,0.35),
        0 0 0 3px   rgba(200,150,255,0.12),
        inset 0 0 20px rgba(255,255,255,0.05),
        0 4px 20px  rgba(100,180,255,0.1);
    transition: opacity 0.6s ease;
}

.soap-bubble::before {
    content: '';
    position: absolute;
    top: 14%; left: 18%;
    width: 28%; height: 18%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.55) 0%, transparent 80%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.soap-bubble::after {
    content: '';
    position: absolute;
    top: 55%; left: 65%;
    width: 12%; height: 8%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.2) 0%, transparent 80%);
    border-radius: 50%;
}

.bubble-pop {
    animation: bubblePop 0.5s ease-out forwards;
}

@keyframes bubblePop {
    0%   { transform: scale(1);    opacity: 0.85; }
    40%  { transform: scale(1.18); opacity: 0.6;  }
    70%  { transform: scale(1.35); opacity: 0.2;  }
    100% { transform: scale(1.5);  opacity: 0;    }
}

/* ==========================================================================
   ANIMATIONEN
   ========================================================================== */

@keyframes gradient-shift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes nav-color-shift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes logo-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1);   }
    50%       { opacity: 0.6; transform: scale(1.1); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,14,39,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,160,220,0.2);
    padding: 15px 40px;
}

/* Logo links, Nav rechts */
header nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,160,220,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: logo-pulse 3s ease-in-out infinite;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #00A0DC 50%, #003087 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Navigation rechts */
nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

nav a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    /* Heller Farbwechsel */
    background: linear-gradient(90deg, #B8D4E8 0%, #ffffff 30%, #00A0DC 60%, #7dd4f5 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nav-color-shift 6s ease infinite;
    animation-delay: var(--nav-delay, 0s);
    transition: filter 0.3s;
}

nav li:nth-child(1) a { --nav-delay: 0s;    }
nav li:nth-child(2) a { --nav-delay: 1.5s;  }
nav li:nth-child(3) a { --nav-delay: 3s;    }
nav li:nth-child(4) a { --nav-delay: 4.5s;  }

nav a:hover {
    filter: brightness(1.4) drop-shadow(0 0 6px rgba(0,160,220,0.6));
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 96px 40px 64px;   /* -20% von 120/80 */
    color: white;
}

.hero-grid {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;       /* -20% */
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00A0DC 50%, #003087 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.hero-subtitle {
    font-size: 22px;
    color: #B8D4E8;
    margin-bottom: 40px;       /* -20% */
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;                 /* -20% */
    margin-bottom: 0;
}

.stat-box {
    background: rgba(0,48,135,0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,160,220,0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-cycle {
    cursor: pointer;
}

.stat-cycle:hover {
    border-color: rgba(0,160,220,0.5);
    box-shadow: 0 8px 28px rgba(0,160,220,0.15);
}

.stat-term {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    will-change: opacity, transform;
    background: linear-gradient(90deg, #ffffff, #00A0DC, #7dd4f5);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nav-color-shift 4s ease infinite;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #00A0DC;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: #B8D4E8;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services {
    padding: 96px 40px;        /* -20% von 120 */
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;       /* -20% von 80 */
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ffffff;
}

.section-header p {
    font-size: 20px;
    color: #B8D4E8;
}

/* 2 Karten nebeneinander, breiter */
.services-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: rgba(0,48,135,0.18);
    padding: 48px 40px;
    border-radius: 18px;
    border: 1px solid rgba(0,160,220,0.2);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Glow-Linie oben */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,160,220,0.6), transparent);
    transition: opacity 0.35s;
    opacity: 0.5;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,160,220,0.5);
    box-shadow: 0 16px 48px rgba(0,160,220,0.18);
    background: rgba(0,48,135,0.28);
}

.service-card:hover::before {
    opacity: 1;
}

/* Icon-Bereich */
.service-icon-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.service-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: rgba(0,160,220,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,160,220,0.25);
    filter: drop-shadow(0 0 10px rgba(0,160,220,0.3));
}

.service-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00A0DC;
    background: rgba(0,160,220,0.1);
    border: 1px solid rgba(0,160,220,0.3);
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 14px;
}

.service-card p {
    color: #B8D4E8;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 14px;
    color: #8eb8d8;
    padding-left: 18px;
    position: relative;
}

.service-features li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #00A0DC;
    font-weight: 700;
}

.service-link {
    color: #00A0DC;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s, filter 0.2s;
}

.service-link:hover {
    gap: 14px;
    filter: brightness(1.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: rgba(0,15,50,0.95);
    padding: 48px 40px 24px;   /* -20% */
    border-top: 1px solid rgba(0,160,220,0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;                 /* -20% */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-icon {
    width: 45px; height: 45px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,160,220,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: logo-pulse 3s ease-in-out infinite;
}

.footer-logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #00A0DC 50%, #003087 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.footer-links a {
    color: #B8D4E8;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-links a:hover { color: #00A0DC; }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #B8D4E8;
    font-size: 14px;
}

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

@media (max-width: 900px) {
    .services-main { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .hero h1 { font-size: 36px; }
    .hero-stats { grid-template-columns: 1fr; }
    footer { padding: 40px 20px 20px; }
    .footer-links { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   WORDPRESS INHALTSBEREICH (Gutenberg / Elementor)
   ========================================================================== */

.wp-content-area {
    color: #B8D4E8;
}

/* Gutenberg Blöcke im Theme-Kontext */
.wp-content-area h2 {
    font-size: 48px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 16px;
}

.wp-content-area > p:first-of-type {
    font-size: 20px;
    color: #B8D4E8;
    text-align: center;
    margin-bottom: 64px;
}

.wp-content-area .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.wp-content-area .wp-block-column {
    background: rgba(0,48,135,0.18);
    padding: 48px 40px;
    border-radius: 18px;
    border: 1px solid rgba(0,160,220,0.2);
    transition: all 0.35s ease;
}

.wp-content-area .wp-block-column:hover {
    transform: translateY(-6px);
    border-color: rgba(0,160,220,0.5);
    box-shadow: 0 16px 48px rgba(0,160,220,0.18);
}

.wp-content-area .wp-block-column h3 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 12px;
}

.wp-content-area .wp-block-column p {
    color: #B8D4E8;
    line-height: 1.7;
    font-size: 16px;
}

.wp-content-area .wp-block-column ul {
    list-style: none;
    margin: 16px 0;
}

.wp-content-area .wp-block-column ul li {
    font-size: 14px;
    color: #8eb8d8;
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.wp-content-area .wp-block-column ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #00A0DC;
    font-weight: 700;
}

.wp-content-area a {
    color: #00A0DC;
    font-weight: 600;
    text-decoration: none;
}

.wp-content-area a:hover {
    filter: brightness(1.3);
}

@media (max-width: 900px) {
    .wp-content-area .wp-block-columns { grid-template-columns: 1fr; }
}
