@charset "UTF-8";

/* ==========================================================================
   1. CSS Variablen & Theming (Light/Dark Mode System)
   ========================================================================== */
:root {
    /* 1.1 Typografie Variablen mit Fluid Scaling (clamp) */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-2xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
    --text-hero: clamp(3.5rem, 2rem + 6vw, 8rem);
    --text-huge: clamp(4rem, 3rem + 8vw, 12rem);

    /* 1.2 Light Theme Colors */
    --color-bg: #f1f0ea; 
    --color-text: #090b0b; 
    --color-primary: #000080; 
    --color-accent: #2E8B57; 
    --color-border: rgba(9, 11, 11, 0.1);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* 1.3 Layout & Spacing */
    --gap-bento: clamp(1rem, 2vw, 2rem);
    --radius-bento: 24px;
    --radius-large: 40px;
    --section-padding-y: clamp(5rem, 10vw, 10rem);
    --section-padding-x: clamp(1.5rem, 5vw, 5rem);
    --container-max: 1600px;
    
    /* 1.4 Animation Timings */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-fast: 0.3s ease;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --color-bg: #0a0a0c; 
    --color-text: #ffffff; 
    --color-primary: #4A505E; 
    --color-accent: #fd504e; 
    --color-border: rgba(255, 255, 255, 0.1);
    
    --glass-bg: rgba(20, 20, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-size: 100%;
}
html::-webkit-scrollbar { 
    display: none; 
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1rem;
}

p { margin-bottom: 1.5rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.title-huge { font-size: var(--text-huge); letter-spacing: -0.04em; line-height: 0.9; }
.title-large { font-size: var(--text-hero); letter-spacing: -0.03em; }
.title-medium { font-size: var(--text-2xl); letter-spacing: -0.02em; }
.subtitle-large { font-size: var(--text-xl); font-weight: 300; opacity: 0.8; }
.text-center { text-align: center; }

/* ==========================================================================
   3. Kinetischer Magnet Cursor
   ========================================================================== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-fast);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), background-color 0.25s ease, border-color 0.25s ease;
}

.cursor-outline.hover-active {
    width: 80px;
    height: 80px;
    background-color: var(--glass-bg);
    border-color: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    mix-blend-mode: difference;
}

/* ==========================================================================
   4. Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s var(--ease-out-expo);
}
.preloader.fade-out { transform: translateY(-100%); }
.preloader-content {
    display: flex; flex-direction: column; align-items: center; width: 300px;
}
.loading-text {
    font-family: var(--font-primary); font-size: var(--text-sm);
    text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 20px;
}
.progress-bar-container {
    width: 100%; height: 1px; background: var(--color-border);
    position: relative; overflow: hidden;
}
.progress-bar {
    width: 0%; height: 100%; background: var(--color-accent);
    transition: width 0.1s linear;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.navigation {
    position: fixed; top: 0; width: 100%;
    padding: 2rem var(--section-padding-x);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 9000; mix-blend-mode: difference; color: #fff;
}
.brand-text {
    font-family: var(--font-primary); font-weight: 900;
    font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.05em;
}
.nav-controls { display: flex; align-items: center; gap: 2rem; }
.theme-btn { background: none; border: none; color: inherit; cursor: none; }
.theme-btn.icon-sun { display: none; }
[data-theme="dark"].theme-btn.icon-moon { display: none; }
[data-theme="dark"].theme-btn.icon-sun { display: block; }

.hamburger { display: flex; flex-direction: column; gap: 6px; width: 30px; cursor: none; }
.hamburger span {
    display: block; height: 2px; width: 100%; background-color: currentColor;
    transition: transform 0.3s ease, width 0.3s ease;
}
.hamburger:hover span:nth-child(2) { width: 70%; transform: translateX(30%); }

/* ==========================================================================
   6. Hero Section & Background
   ========================================================================== */
.hero-section {
    min-height: 100vh; padding: var(--section-padding-y) var(--section-padding-x);
    display: flex; flex-direction: column; justify-content: center; position: relative;
}
.hero-content { max-width: var(--container-max); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero-sub { font-size: var(--text-xl); max-width: 800px; margin-top: 2rem; font-weight: 300; opacity: 0.8; }

.hero-bg-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
[data-theme="light"].hero-bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
}

.scroll-indicator { margin-top: 10vh; display: inline-flex; align-items: center; gap: 1rem; }
.scroll-text { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.scroll-line { width: 60px; height: 1px; background-color: var(--color-text); position: relative; overflow: hidden; }
.scroll-line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-accent); transform: translateX(-100%);
    animation: scrollAnim 2s infinite var(--ease-out-expo);
}
@keyframes scrollAnim {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   7. Bento Grid
   ========================================================================== */
.bento-section { padding: var(--section-padding-y) var(--section-padding-x); max-width: var(--container-max); margin: 0 auto; }
.section-header { margin-bottom: 4rem; max-width: 600px; }

.bento-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(250px, auto);
    gap: var(--gap-bento);
    grid-auto-flow: dense; 
}

.bento-item {
    border-radius: var(--radius-bento); padding: 2.5rem; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.bento-item:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.dark-glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--glass-shadow);
}
.light-glass { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); }
[data-theme="light"].light-glass { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); }

.primary-color-bg { background: var(--color-primary); color: #fff; }

.span-col-1 { grid-column: span 3; } 
.span-col-2 { grid-column: span 6; } 
.span-col-3 { grid-column: span 8; } 
.span-row-1 { grid-row: span 1; }
.span-row-2 { grid-row: span 2; }

.bento-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.flex-center { justify-content: center; align-items: center; text-align: center; }
.layout-row { flex-direction: row; align-items: center; gap: 2rem; }
.flex-half { flex: 1; }

.img-card { padding: 0; }
.img-card img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition-slow);
}
.img-card:hover img { transform: scale(1.08); }
.img-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; z-index: 2;
}

.stat-number { font-size: var(--text-hero); font-family: var(--font-primary); font-weight: 900; line-height: 1; color: var(--color-accent); }

.bar-chart { width: 100%; height: 150px; display: flex; align-items: flex-end; gap: 10px; }
.bar { width: 30%; background: var(--color-accent); position: relative; border-radius: 4px 4px 0 0; }
.bar span { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: bold; }

@media (max-width: 1024px) {
  .span-col-1 { grid-column: span 4; } 
  .span-col-2 { grid-column: span 8; } 
  .span-col-3 { grid-column: span 12; } 
  .layout-row { flex-direction: column; }
}
@media (max-width: 768px) {
  .bento-container { display: flex; flex-direction: column; }
  .bento-item { min-height: 300px; }
}

/* ==========================================================================
   8. Horizontales Scrollen
   ========================================================================== */
.horizontal-scroll-section { width: 100%; height: 100vh; overflow: hidden; position: relative; }
.horizontal-panels-container { height: 100vh; display: flex; flex-wrap: nowrap; width: 400vw; }
.panel { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; padding: var(--section-padding-x); position: relative; }
.inverted-panel { background-color: var(--color-text); color: var(--color-bg); }
.panel-content { max-width: 800px; z-index: 2; }
.panel-img-wrapper { width: 80vw; height: 70vh; border-radius: var(--radius-bento); overflow: hidden; position: relative; }
.panel-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.panel-caption { position: absolute; bottom: 5vh; right: 10vw; font-size: var(--text-lg); font-family: var(--font-primary); }

/* ==========================================================================
   9. 3D Stacking Cards
   ========================================================================== */
.three-d-stacking-section { padding: var(--section-padding-y) var(--section-padding-x); min-height: 150vh; perspective: 1500px; }
.cards-stack-container { max-width: 800px; margin: 4rem auto 0; position: relative; }
.stack-card {
    width: 100%; height: 400px; border-radius: var(--radius-bento); padding: 3rem;
    position: sticky; top: 20vh; margin-bottom: 5rem; box-shadow: var(--glass-shadow);
    display: flex; flex-direction: column; justify-content: center;
    transform-origin: center top; will-change: transform, opacity;
}
.card-number { font-size: var(--text-2xl); font-family: var(--font-primary); opacity: 0.2; position: absolute; top: 2rem; right: 3rem; }
.card-dark { background: #1a1a1a; color: #fff; }
.card-primary { background: var(--color-primary); color: #fff; }
.card-light { background: #f4f4f4; color: #111; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.creative-footer {
    padding: var(--section-padding-y) var(--section-padding-x) 2rem; background-color: var(--color-text); color: var(--color-bg);
    border-top-left-radius: var(--radius-large); border-top-right-radius: var(--radius-large);
    margin-top: 5vh; position: relative; overflow: hidden;
}
.footer-cta { margin-bottom: 10vh; }
.magnetic-btn {
    display: inline-block; margin-top: 2rem; padding: 1.5rem 4rem; background-color: var(--color-accent); color: #fff;
    border-radius: 100px; font-family: var(--font-primary); font-weight: 900; font-size: var(--text-lg);
    text-transform: uppercase; transition: transform 0.3s ease, background-color 0.3s ease;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; max-width: var(--container-max); margin: 0 auto; }
.brand-text-large { font-size: var(--text-2xl); font-family: var(--font-primary); font-weight: 900; margin-bottom: 1rem; }
.footer-links ul,.footer-social ul { list-style: none; margin-top: 1.5rem; }
.footer-links li,.footer-social li { margin-bottom: 1rem; }
.link-underline { position: relative; opacity: 0.7; transition: opacity var(--transition-fast); }
.link-underline::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0%; height: 1px;
    background-color: currentColor; transition: width var(--transition-fast);
}
.link-underline:hover { opacity: 1; }
.link-underline:hover::after { width: 100%; }

.footer-bottom { max-width: var(--container-max); margin: 5rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.5; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .flex-between { flex-direction: column; gap: 1rem; text-align: center; }
}
