:root {
    --brand-red: #A40233;
    --brand-red-dark: #8B0229;
    --brand-blue: #00B0F0;
    --brand-blue-dark: #0090C5;
    --midnight: #0A0E27;
    --platinum: #E5E4E2;
    --graphite: #1C1C1C;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E0E0E0;
    --gray-300: #C0C0C0;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    --font-size-8xl: 6rem;
    --transition-base: 150ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-premium: 500ms cubic-bezier(0.23, 1, 0.320, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 100%;
}

section {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    color: var(--graphite);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
}

header {
    overflow: visible !important;
}

header nav {
    overflow: visible !important;
}

.nav-wrapper {
    overflow: visible !important;
}

p, span, div {
    word-break: break-word;
    overflow-wrap: break-word;
}

.font-extralight {
    font-weight: 200;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

#main-header {
    position: fixed;
    width: 100%;
    z-index: 90;
    background: transparent;
    transition: all var(--transition-premium);
    top: 12px !important;
}

#main-header .logo-image {
    height: 2.75rem;
}

#main-header .logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

#main-header .logo-subtext {
    font-size: 0.625rem;
    letter-spacing: 0.03em;
    margin-top: -0.125rem;
}

#main-header.scrolled {
    background: transparent;
    top: 12px !important;
}

#main-header .container > div {
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    transition: all var(--transition-premium);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#main-header.scrolled .container > div {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mobile-menu {
    will-change: transform;
    background: linear-gradient(135deg, var(--midnight) 0%, #0D1117 100%);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu .close-menu {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu .close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mobile-menu > div {
    padding-top: 5rem;
}

.mobile-menu nav {
    overflow-y: auto;
    max-height: calc(100vh - 10rem);
    padding-bottom: 2rem;
}

.menu-toggle:hover span {
    background: var(--brand-red);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width var(--transition-smooth);
}

.nav-item:hover::after {
    width: 100%;
}

.hero-slider {
    height: 100vh;
}

.hero-slider .swiper-slide {
    position: relative;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.4s;
}

.hero-text {
    animation-delay: 0.6s;
}

.hero-buttons {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.23, 1, 0.320, 1) 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

.animate-scroll {
    animation: scroll 2s infinite;
}

.product-card {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-premium);
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.02));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    opacity: 0;
}

.stat-item.visible {
    animation: countUp 0.6s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}

.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(2) { animation-delay: 0.1s; }
.stat-item:nth-child(3) { animation-delay: 0.2s; }
.stat-item:nth-child(4) { animation-delay: 0.3s; }

input, textarea, select {
    transition: all var(--transition-smooth);
    border: 1px solid #E0E0E0;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.1);
    outline: none;
}

button, .btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .btn:hover::before {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 0.9375rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.125rem;
        --font-size-2xl: 1.25rem;
        --font-size-3xl: 1.5rem;
        --font-size-4xl: 1.875rem;
        --font-size-5xl: 2.25rem;
        --font-size-6xl: 3rem;
        --font-size-7xl: 3.75rem;
        --font-size-8xl: 4.5rem;
    }
    
    #main-header {
        top: 0;
        padding: 0.5rem;
    }
    
    #main-header .container > div {
        border-radius: 15px;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    #main-header .logo-image {
        height: 2.5rem;
    }
    
    #main-header .logo-text {
        font-size: 1.125rem;
        letter-spacing: 0.08em;
    }
    
    #main-header .logo-subtext {
        font-size: 0.6rem;
        letter-spacing: 0.02em;
        margin-top: -0.1rem;
    }
    
    .hero-slider {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        word-break: normal;
        hyphens: none;
    }
    
    .hero-title .font-bold {
        font-weight: normal;
    }
    
    .hero-text {
        font-size: 1.125rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-break: normal;
        hyphens: none;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
    
    .text-6xl {
        font-size: 2.5rem !important;
    }
    
    .text-7xl {
        font-size: 3rem !important;
    }
    
    .text-8xl {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-6xl {
        font-size: 3rem !important;
    }
    
    .text-7xl {
        font-size: 3.5rem !important;
    }
    
    .text-8xl {
        font-size: 4rem !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-break: normal;
        hyphens: none;
    }
}

@media (max-width: 640px) {
    #main-header .container > div {
        padding: 0.75rem 1rem;
        border-radius: 15px;
    }
    
    #main-header .logo-image {
        height: 2.25rem;
    }
    
    #main-header .logo-text {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }
    
    #main-header .logo-subtext {
        font-size: 0.55rem;
        letter-spacing: 0.01em;
        margin-top: -0.075rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .font-bold {
        font-weight: normal;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .product-card h3 {
        font-size: 1.5rem;
    }
    
    .product-card p {
        font-size: 0.875rem;
    }
    
    .text-5xl {
        font-size: 1.75rem !important;
    }
    
    .text-6xl {
        font-size: 2rem !important;
    }
    
    .text-7xl {
        font-size: 2.5rem !important;
    }
}

@media print {
    header, footer, .hero-slider, .announcement-bar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(164, 2, 51, 0.1);
    border-radius: 50%;
    border-top-color: var(--brand-red);
    animation: spin 0.8s ease infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.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;
}

:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-contrast: high) {
    :root {
        --brand-red: #CC0033;
        --brand-blue: #0099FF;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-color-scheme: dark) {
}

.tag-standard {
    background-color: #000000; /* Black for Standard */
    color: white;
}

.tag-extra-red {
    background-color: #A40233; /* Wine red for Extra (Elit Studio) */
    color: white;
}

.tag-extra-blue {
    background-color: #00B0F0; /* Light blue for Extra (Atlantic) */
    color: white;
}

.tag-extra-green {
    background-color: #16A34A; /* Green for Extra (Elit Aktiv Elev) */
    color: white;
}

.tag-premium {
    background-color: #D4AF37; /* Gold for Premium (Essens) */
    color: white;
}

.tag-elit-studio {
    background-color: #A40233;
    color: white;
}

.tag-atlantic {
    background-color: #00B0F0;
    color: white;
}

.tag-elit-aktiv-elev {
    background-color: #16A34A;
    color: white;
}

.tag-essens {
    background-color: #D4AF37;
    color: white;
}