/*
Theme Name:        Medioora Template
Theme URI:         https://medioora.com
Author:            Medioora Team
Author URI:        https://medioora.com
Description:       Modernes WordPress-Theme fuer Medioora – gebaut auf Elementor. Enthält alle wichtigen Seiten-Templates mit Scroll-Animationen, Cookie-Banner und voller Elementor-Integration.
Version:           1.3.1
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       medioora
Tags:              elementor, one-page, full-width-template, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --color-primary:        #5B4EFF;
    --color-primary-light:  #7B70FF;
    --color-primary-dark:   #3D32CC;
    --color-secondary:      #00C8FF;
    --color-accent:         #FF6B6B;

    /* Dark Theme */
    --color-bg:             #0A0B1A;
    --color-bg-alt:         #0F1029;
    --color-surface:        #141530;
    --color-surface-alt:    #1A1D3D;
    --color-border:         rgba(255, 255, 255, 0.08);
    --color-border-strong:  rgba(255, 255, 255, 0.15);

    /* Typography */
    --color-text:           #E8EAF6;
    --color-text-muted:     #9BA3CC;
    --color-text-subtle:    #6B74A0;
    --color-heading:        #FFFFFF;

    /* Gradients */
    --gradient-primary:     linear-gradient(135deg, #5B4EFF 0%, #00C8FF 100%);
    --gradient-hero:        radial-gradient(ellipse at 60% 0%, rgba(91,78,255,0.3) 0%, transparent 60%), radial-gradient(ellipse at 0% 100%, rgba(0,200,255,0.15) 0%, transparent 50%), linear-gradient(180deg, #0A0B1A 0%, #0F1029 100%);
    --gradient-card:        linear-gradient(135deg, rgba(91,78,255,0.1) 0%, rgba(0,200,255,0.05) 100%);

    /* Spacing */
    --spacing-xs:   0.5rem;
    --spacing-sm:   1rem;
    --spacing-md:   1.5rem;
    --spacing-lg:   2.5rem;
    --spacing-xl:   4rem;
    --spacing-2xl:  6rem;
    --spacing-3xl:  8rem;

    /* Border Radius */
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --radius-xl:    32px;
    --radius-full:  9999px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow:  0 0 40px rgba(91,78,255,0.3);
    --shadow-glow-cyan: 0 0 40px rgba(0,200,255,0.2);

    /* Transitions */
    --transition-fast:    0.15s ease;
    --transition-normal:  0.3s ease;
    --transition-slow:    0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography Scale */
    --font-family-base:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm:    0.875rem;
    --font-size-base:  1rem;
    --font-size-md:    1.125rem;
    --font-size-lg:    1.25rem;
    --font-size-xl:    1.5rem;
    --font-size-2xl:   2rem;
    --font-size-3xl:   2.5rem;
    --font-size-4xl:   3.5rem;
    --font-size-5xl:   4.5rem;

    /* Layout */
    --container-max:   1280px;
    --container-wide:  1440px;
    --container-narrow: 800px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1 { font-size: clamp(2.5rem, 5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(2rem, 4vw, var(--font-size-4xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--font-size-2xl)); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--color-secondary); }

strong { font-weight: 600; color: var(--color-heading); }
em { font-style: italic; }

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* === SITE STRUCTURE === */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content { flex: 1; }

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge--primary {
    background: rgba(91, 78, 255, 0.15);
    border: 1px solid rgba(91, 78, 255, 0.3);
    color: var(--color-primary-light);
}

/* === ELEMENTOR OVERRIDES === */
.elementor-section .elementor-container {
    max-width: var(--container-max);
}

.elementor-page-title h1 {
    color: var(--color-heading);
}

/* Smooth scroll for anchor links */
.elementor-menu-anchor {
    scroll-margin-top: 80px;
}

/* === MOBILE OVERFLOW FIX (Homepage) === */
@media (max-width: 900px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    body.home #page,
    body.home #main,
    body.home .elementor,
    body.home .elementor-section-wrap,
    body.home .elementor-section {
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    body.home .elementor-column,
    body.home .elementor-widget-wrap {
        min-width: 0;
    }
}
