/**
 * Material Flow Theme
 * ===================
 * Emotional Liquid Metal Design für HENX3D
 *
 * Features:
 * - Liquid Metal Effekte
 * - Morphing Blob Shapes
 * - Fluid Animationen
 * - Warme Metallic-Farben (Gold, Kupfer, Bronze)
 * - Organische Formen
 * - Smooth Gradient Transitions
 *
 * @version 1.0.0
 * @created 2026-01-05
 */

/* ============================================
   ROOT VARIABLES - Material Flow
   ============================================ */
:root {
    /* === FARBPALETTE === */
    /* Primärfarben - Warme Metalle */
    --mf-primary-deep-bronze: #1a1410;        /* Dunkle Bronze */
    --mf-primary-rich-brown: #2d2416;         /* Reiches Braun */
    --mf-primary-warm-slate: #3d3428;         /* Warmer Schiefer */

    /* Sekundärfarben - Metallic Töne */
    --mf-secondary-copper: #b87333;           /* Kupfer */
    --mf-secondary-bronze: #cd7f32;           /* Bronze */

    /* Akzentfarben - Liquid Gold */
    --mf-accent-gold-bright: #ffd700;         /* Helles Gold ⭐ Primary */
    --mf-accent-gold-rich: #ffb700;           /* Reiches Gold */
    --mf-accent-amber: #ffbf00;               /* Bernstein */
    --mf-accent-rose-gold: #b76e79;           /* Roségold */
    --mf-accent-platinum: #e5e4e2;            /* Platin */

    /* Neutrale Farben */
    --mf-white: #ffffff;
    --mf-cream: #faf8f3;                      /* Cremeweiß */
    --mf-black: #000000;

    /* === TYPOGRAFIE === */
    --mf-font-heading: 'Playfair Display', 'Lora', serif;  /* Elegant Serif */
    --mf-font-body: 'Outfit', 'Inter', sans-serif;
    --mf-font-accent: 'Fraunces', 'Lora', serif;

    /* Font Sizes */
    --mf-text-xs: 0.75rem;     /* 12px */
    --mf-text-sm: 0.875rem;    /* 14px */
    --mf-text-base: 1rem;      /* 16px */
    --mf-text-lg: 1.125rem;    /* 18px */
    --mf-text-xl: 1.25rem;     /* 20px */
    --mf-text-2xl: 1.5rem;     /* 24px */
    --mf-text-3xl: 1.875rem;   /* 30px */
    --mf-text-4xl: 2.25rem;    /* 36px */
    --mf-text-5xl: 3rem;       /* 48px */
    --mf-text-6xl: 4rem;       /* 64px */

    /* === SPACING === */
    --mf-space-xs: 0.5rem;     /* 8px */
    --mf-space-sm: 1rem;       /* 16px */
    --mf-space-md: 1.5rem;     /* 24px */
    --mf-space-lg: 2rem;       /* 32px */
    --mf-space-xl: 3rem;       /* 48px */
    --mf-space-2xl: 4rem;      /* 64px */
    --mf-space-3xl: 6rem;      /* 96px */

    /* === SHADOWS === */
    --mf-shadow-sm: 0 2px 12px rgba(255, 215, 0, 0.15);
    --mf-shadow-md: 0 4px 20px rgba(255, 215, 0, 0.2);
    --mf-shadow-lg: 0 8px 32px rgba(255, 215, 0, 0.25);
    --mf-shadow-xl: 0 16px 48px rgba(255, 215, 0, 0.3);

    /* Metallic Glow */
    --mf-glow-gold: 0 0 30px rgba(255, 215, 0, 0.5),
                     0 0 60px rgba(255, 215, 0, 0.2);
    --mf-glow-copper: 0 0 30px rgba(184, 115, 51, 0.5),
                       0 0 60px rgba(184, 115, 51, 0.2);
    --mf-glow-rose: 0 0 30px rgba(183, 110, 121, 0.5),
                     0 0 60px rgba(183, 110, 121, 0.2);

    /* === BORDERS === */
    --mf-border-width: 2px;
    --mf-border-color: var(--mf-accent-gold-bright);
    --mf-border-radius: 24px;
    --mf-border-radius-lg: 32px;
    --mf-border-radius-xl: 48px;

    /* === GRADIENTS === */
    --mf-gradient-gold: linear-gradient(135deg,
        var(--mf-accent-gold-rich) 0%,
        var(--mf-accent-gold-bright) 50%,
        var(--mf-accent-amber) 100%
    );

    --mf-gradient-liquid: linear-gradient(135deg,
        var(--mf-accent-gold-bright) 0%,
        var(--mf-secondary-copper) 25%,
        var(--mf-accent-rose-gold) 50%,
        var(--mf-secondary-bronze) 75%,
        var(--mf-accent-gold-bright) 100%
    );

    --mf-gradient-dark: linear-gradient(180deg,
        var(--mf-primary-deep-bronze) 0%,
        var(--mf-primary-rich-brown) 100%
    );

    /* === TRANSITIONS === */
    --mf-transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --mf-transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --mf-transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
    --mf-transition-fluid: 1200ms cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-INDEX === */
    --mf-z-blobs: 1;
    --mf-z-content: 10;
    --mf-z-header: 100;
    --mf-z-modal: 1000;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
    font-family: var(--mf-font-body);
    font-size: var(--mf-text-base);
    line-height: 1.7;
    color: var(--mf-cream);
    background: var(--mf-gradient-dark);
    overflow-x: hidden;
}

/* Liquid Blob Background */
.liquid-blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--mf-z-blobs);
    pointer-events: none;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: blob-float 20s ease-in-out infinite;
}

.liquid-blob:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 20%;
    left: 10%;
    background: var(--mf-accent-gold-bright);
    animation-delay: 0s;
}

.liquid-blob:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 15%;
    background: var(--mf-secondary-copper);
    animation-delay: 4s;
}

.liquid-blob:nth-child(3) {
    width: 350px;
    height: 350px;
    bottom: 20%;
    left: 50%;
    background: var(--mf-accent-rose-gold);
    animation-delay: 8s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mf-font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mf-white);
}

h1 {
    font-size: var(--mf-text-6xl);
    line-height: 1.1;
    margin-bottom: var(--mf-space-lg);
}

h2 {
    font-size: var(--mf-text-5xl);
    line-height: 1.2;
    margin-bottom: var(--mf-space-md);
}

h3 {
    font-size: var(--mf-text-4xl);
    line-height: 1.3;
    margin-bottom: var(--mf-space-md);
}

/* Liquid Gold Title */
.liquid-title {
    background: var(--mf-gradient-liquid);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: liquid-flow 8s ease infinite;
}

@keyframes liquid-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Metallic Text */
.metallic-text {
    background: var(--mf-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-liquid {
    position: relative;
    padding: var(--mf-space-sm) var(--mf-space-xl);
    font-family: var(--mf-font-heading);
    font-size: var(--mf-text-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--mf-primary-deep-bronze);
    background: var(--mf-gradient-gold);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--mf-border-radius);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--mf-transition-base);
    box-shadow: var(--mf-shadow-md), var(--mf-glow-gold);
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--mf-transition-slow), height var(--mf-transition-slow);
}

.btn-liquid:hover::before {
    width: 300px;
    height: 300px;
}

.btn-liquid:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow: var(--mf-shadow-xl), var(--mf-glow-gold);
}

/* Secondary Button - Outlined */
.btn-secondary,
.btn-flow {
    padding: var(--mf-space-sm) var(--mf-space-xl);
    font-family: var(--mf-font-heading);
    font-size: var(--mf-text-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--mf-accent-gold-bright);
    background: transparent;
    border: 2px solid var(--mf-accent-gold-bright);
    border-radius: var(--mf-border-radius);
    cursor: pointer;
    transition: all var(--mf-transition-base);
    box-shadow: var(--mf-shadow-sm);
}

.btn-flow:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--mf-glow-gold);
    transform: translateY(-3px);
}

/* ============================================
   CARDS - Liquid Panels
   ============================================ */
.card,
.service-card,
.portfolio-card {
    position: relative;
    padding: var(--mf-space-xl);
    background: linear-gradient(135deg,
        rgba(45, 36, 22, 0.9) 0%,
        rgba(26, 20, 16, 0.95) 100%
    );
    border: 2px solid transparent;
    border-radius: var(--mf-border-radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--mf-shadow-md);
    transition: all var(--mf-transition-base);
    overflow: hidden;
}

/* Liquid Border Animation */
.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--mf-gradient-liquid);
    background-size: 200% 200%;
    border-radius: var(--mf-border-radius-lg);
    opacity: 0;
    transition: opacity var(--mf-transition-base);
    z-index: -1;
    animation: liquid-flow 8s ease infinite;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--mf-shadow-xl), var(--mf-glow-gold);
}

/* Shimmer Effect */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all var(--mf-transition-fluid);
}

.card:hover::after {
    left: 100%;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: var(--mf-space-md);
    margin-bottom: var(--mf-space-lg);
    padding-bottom: var(--mf-space-md);
    border-bottom: 2px solid var(--mf-accent-gold-bright);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mf-gradient-gold);
    border-radius: 50%;
    box-shadow: var(--mf-glow-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: var(--mf-z-content);
    text-align: center;
    max-width: 1200px;
    padding: var(--mf-space-3xl) var(--mf-space-lg);
}

.hero-tagline {
    font-family: var(--mf-font-accent);
    font-size: var(--mf-text-xl);
    font-style: italic;
    color: var(--mf-accent-gold-bright);
    margin-bottom: var(--mf-space-md);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: var(--mf-text-2xl);
    color: var(--mf-cream);
    margin-bottom: var(--mf-space-2xl);
    line-height: 1.5;
}

/* ============================================
   GRID LAYOUT - Fluid Grid
   ============================================ */
.fluid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--mf-space-xl);
    padding: var(--mf-space-3xl) var(--mf-space-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--mf-accent-gold-bright);
    box-shadow: var(--mf-shadow-lg);
    z-index: var(--mf-z-header);
    transition: all var(--mf-transition-base);
}

.nav-link {
    position: relative;
    padding: var(--mf-space-sm) var(--mf-space-md);
    color: var(--mf-cream);
    text-decoration: none;
    font-family: var(--mf-font-body);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--mf-transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mf-gradient-gold);
    box-shadow: var(--mf-glow-gold);
    transform: translateX(-50%);
    transition: width var(--mf-transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mf-accent-gold-bright);
}

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

/* ============================================
   SECTION DIVIDERS - Liquid Flow
   ============================================ */
.section-divider {
    width: 100%;
    height: 3px;
    background: var(--mf-gradient-liquid);
    background-size: 200% 200%;
    margin: var(--mf-space-3xl) 0;
    border-radius: 2px;
    animation: liquid-flow 8s ease infinite;
    box-shadow: var(--mf-glow-gold);
}

/* ============================================
   FORMS
   ============================================ */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--mf-space-md) var(--mf-space-lg);
    font-family: var(--mf-font-body);
    font-size: var(--mf-text-base);
    color: var(--mf-white);
    background: rgba(45, 36, 22, 0.5);
    border: 2px solid var(--mf-accent-gold-bright);
    border-radius: var(--mf-border-radius);
    backdrop-filter: blur(5px);
    transition: all var(--mf-transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--mf-accent-gold-bright);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2), var(--mf-glow-gold);
    background: rgba(45, 36, 22, 0.8);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: var(--mf-text-4xl); }
    h2 { font-size: var(--mf-text-3xl); }
    h3 { font-size: var(--mf-text-2xl); }

    .hero-content {
        padding: var(--mf-space-2xl) var(--mf-space-md);
    }

    .fluid-grid {
        grid-template-columns: 1fr;
        gap: var(--mf-space-lg);
        padding: var(--mf-space-2xl) var(--mf-space-md);
    }

    .liquid-blob {
        filter: blur(40px);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-liquid {
    color: var(--mf-accent-gold-bright);
}

.bg-liquid {
    background: var(--mf-gradient-liquid);
    background-size: 200% 200%;
    animation: liquid-flow 8s ease infinite;
}

.glow-liquid {
    box-shadow: var(--mf-glow-gold);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--mf-transition-slow), height var(--mf-transition-slow);
}

.ripple:active::before {
    width: 200%;
    height: 200%;
}
