/*
Theme Name: Eggern IT
Author: Timo Lorenz
Description: Custom Single Page WooCommerce Theme
Version: 1.0
*/
@font-face {
    font-family: 'n27regular';
    src: url('https://eggern-it.de/wp-content/themes/eggern-it/fonts/n27-regular-webfont.eot');
    src: url('https://eggern-it.de/wp-content/themes/eggern-it/fonts/n27-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('https://eggern-it.de/wp-content/themes/eggern-it/fonts/n27-regular-webfont.woff2') format('woff2'),
         url('https://eggern-it.de/wp-content/themes/eggern-it/fonts/n27-regular-webfont.woff') format('woff'),
         url('https://eggern-it.de/wp-content/themes/eggern-it/fonts/n27-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body, 
h1, h2, h3, h4, h5, h6, 
p, a, span, div, input, button, textarea {
    font-family: 'n27regular', sans-serif !important;
}


body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    touch-action: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.home, body.front-page {
    height: 100dvh;
    overflow: hidden;
    touch-action: none;
}

.eit-hide-scrollbar::-webkit-scrollbar { display: none; }
.eit-hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.eit-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

#eit-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1;
    pointer-events: none;
}

.eit-ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    height: 120vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

html.dark .eit-ambient-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(2, 6, 23, 0) 60%);
}

#eit-main-view {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

body.home #eit-main-view, 
body.front-page #eit-main-view {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}
body.eit-panel-open #eit-main-view {
    transform: scale(0.92);
    filter: blur(12px) grayscale(30%);
    opacity: 0.4;
    pointer-events: none;
}

:root {
    --orbit-radius: -150px;
    --ring-size: 300px;
}
@media (min-width: 768px) {
    :root {
        --orbit-radius: -260px;
        --ring-size: 520px;
    }
}
@media (min-width: 1024px) {
    :root {
        --orbit-radius: -320px;
        --ring-size: 640px;
    }
}

.eit-orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eit-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--ring-size);
    height: var(--ring-size);
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    animation: spin-ring 120s linear infinite;
}

.eit-orbit-ring-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--ring-size) + 200px);
    height: calc(var(--ring-size) + 200px);
    transform: translate(-50%, -50%);
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
}

.eit-orbit-ring-faint {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--ring-size) + 400px);
    height: calc(var(--ring-size) + 400px);
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(16, 185, 129, 0.04);
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    animation: spin-ring 180s linear infinite reverse;
}

@keyframes spin-ring {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.eit-hub-core {
    animation: pulse-core 4s ease-in-out infinite alternate, hub-enter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: absolute;
    z-index: 40;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.eit-hub-core:active {
    transform: scale(0.95) !important;
}

@keyframes hub-enter {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-core {
    0% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.1); }
    100% { box-shadow: 0 0 70px rgba(16, 185, 129, 0.4), inset 0 0 30px rgba(16, 185, 129, 0.2); }
}

.eit-orbit-item {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
    cursor: pointer;
    z-index: 20;
    animation: orbit-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: calc(var(--index) * 0.1s + 0.6s);
}

@keyframes orbit-appear {
    0% {
        transform: rotate(var(--angle)) translateY(0px) rotate(calc(-1 * var(--angle))) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) scale(1);
        opacity: 1;
    }
}

.eit-orbit-item:hover {
    transform: rotate(var(--angle)) translateY(calc(var(--orbit-radius) - 15px)) rotate(calc(-1 * var(--angle))) scale(1.1);
    z-index: 30;
}

.eit-orbit-item:active .eit-orbit-icon-container {
    transform: scale(0.85);
    transition: transform 0.1s;
}

.eit-orbit-icon-container {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.eit-tooltip-card {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.eit-orbit-item:hover .eit-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translate(0, 0);
}

.eit-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(0px);
    background-color: rgba(248, 250, 252, 0);
}

html.dark .eit-panel-overlay {
    background-color: rgba(2, 6, 23, 0);
}

.eit-panel-overlay.eit-active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(20px);
    background-color: rgba(248, 250, 252, 0.85);
}

html.dark .eit-panel-overlay.eit-active {
    background-color: rgba(2, 6, 23, 0.85);
}

.eit-panel-content {
    width: 100%;
    transform: translateY(60px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
    opacity: 0;
}

.eit-panel-overlay.eit-active .eit-panel-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.eit-panel-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.eit-panel-overlay.eit-active .eit-panel-card {
    opacity: 1;
    transform: translateY(0);
}

.eit-panel-overlay.eit-active .eit-panel-card:nth-child(1) { transition-delay: 0.15s; }
.eit-panel-overlay.eit-active .eit-panel-card:nth-child(2) { transition-delay: 0.25s; }
.eit-panel-overlay.eit-active .eit-panel-card:nth-child(3) { transition-delay: 0.35s; }
.eit-panel-overlay.eit-active .eit-panel-card:nth-child(4) { transition-delay: 0.45s; }
.eit-panel-overlay.eit-active .eit-panel-card:nth-child(5) { transition-delay: 0.55s; }

.eit-btn-close {
    position: sticky;
    top: 0;
    z-index: 60;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.eit-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.eit-btn-close:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.eit-input-field {
    transition: all 0.3s;
}

.eit-input-field:focus {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    transform: scale(1.01);
}

.eit-btn-primary {
    transition: all 0.3s;
}

.eit-btn-primary:hover {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.eit-btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.eit-filter-btn {
    transition: all 0.2s ease;
}
.eit-filter-btn.eit-active {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}
.eit-filter-btn:active {
    transform: scale(0.92);
}

.eit-nav-hint {
    animation: fade-in-up 1s ease forwards, pulse-hint 3s infinite alternate;
    animation-delay: 1.5s;
    opacity: 0;
    transform: translateY(5px);
}

@keyframes fade-in-up {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-hint {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes badge-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.eit-animate-badge-pop {
    animation: badge-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.eit-interactive-scale:active {
    transform: scale(0.9) !important;
    transition: transform 0.1s !important;
}

.low-performance-device *,
.low-performance-device *::before,
.low-performance-device *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.low-performance-device .blur-2xl,
.low-performance-device .bg-gradient-to-b {
    display: none !important;
}

.low-performance-device .shadow-2xl,
.low-performance-device .shadow-xl,
.low-performance-device .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #1e293b !important;
}