@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    --bg: #0c1021;
    --bg-accent: #0f172a;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #5cc8ff;
    --accent-strong: #a855f7;
    --accent-soft: rgba(92, 200, 255, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --glow: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --space-xl: 48px;
    --space-lg: 32px;
    --space-md: 20px;
    --space-sm: 12px;

    /* neue Variablen für Maus-Position */
    --mx: 20%;
    --my: 20%;
    --mx2: 80%;
    --my2: 10%;
}

html {
    min-height: 100%;
    background-color: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: env(safe-area-inset-top, 0px)
             env(safe-area-inset-right, 0px)
             env(safe-area-inset-bottom, 0px)
             env(safe-area-inset-left, 0px);
    color: var(--text);
    font-family: 'JetBrains Mono', 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
    background:
        radial-gradient(
            circle at var(--mx) var(--my),
            rgba(92, 200, 255, 0.10) 0%,
            rgba(92, 200, 255, 0.10) 28%,
            rgba(92, 200, 255, 0.0) 65%
        ),
        radial-gradient(
            circle at var(--mx2) var(--my2),
            rgba(168, 85, 247, 0.12) 0%,
            rgba(168, 85, 247, 0.12) 25%,
            rgba(168, 85, 247, 0.0) 60%
        ),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 60%, #0a0e1a 100%);
    display: flex;
    flex-direction: column;

    --cursor-dot-scale: 1;
    --cursor-ring-scale: 1;
}

@media (pointer: fine) {
    body:not(.cursor-native-visible) {
        cursor: none;
    }

    body:not(.cursor-native-visible) a,
    body:not(.cursor-native-visible) button,
    body:not(.cursor-native-visible) [role="button"],
    body:not(.cursor-native-visible) .color-block,
    body:not(.cursor-native-visible) .nav-pill,
    body:not(.cursor-native-visible) #cursor-speed-slider,
    body:not(.cursor-native-visible) #cursor-toggle {
        cursor: none !important;
    }
}

.cursor-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

.cursor-dot,
.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 999px;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    will-change: transform;
}

.cursor-dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(92, 200, 255, 0.4));
    box-shadow:
        0 0 12px rgba(92, 200, 255, 0.45),
        0 0 24px rgba(92, 200, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.cursor-ring {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(92, 200, 255, 0.3);
    background: radial-gradient(circle, rgba(92, 200, 255, 0.18), rgba(92, 200, 255, 0));
    filter: drop-shadow(0 10px 25px rgba(5, 11, 24, 0.35));
}

body.cursor-hovering .cursor-ring {
    border-color: rgba(168, 85, 247, 0.5);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28), rgba(92, 200, 255, 0.08));
}

body.cursor-hovering .cursor-dot {
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.95), rgba(168, 85, 247, 0.75));
    box-shadow:
        0 0 18px rgba(168, 85, 247, 0.5),
        0 0 32px rgba(92, 200, 255, 0.45);
}

body.cursor-hovering {
    --cursor-dot-scale: 2.35;
    --cursor-ring-scale: 1.28;
}

body.cursor-down .cursor-ring {
    border-color: rgba(255, 255, 255, 0.55);
}

body.cursor-down {
    --cursor-dot-scale: 0.85;
    --cursor-ring-scale: 0.9;
}

body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
    opacity: 0;
}

@media (pointer: coarse) {
    .cursor-layer {
        display: none;
    }
    body {
        cursor: auto;
    }
}

@media (pointer: fine) {
    body:not(.cursor-native-visible) {
        cursor: none;
    }

    body:not(.cursor-native-visible) a,
    body:not(.cursor-native-visible) button,
    body:not(.cursor-native-visible) [role="button"],
    body:not(.cursor-native-visible) .color-block,
    body:not(.cursor-native-visible) .nav-pill,
    body:not(.cursor-native-visible) #cursor-speed-slider,
    body:not(.cursor-native-visible) #cursor-toggle {
        cursor: none !important;
    }
}

.cursor-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

.cursor-dot,
.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 999px;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease,
                transform 0.32s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

.cursor-dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(92, 200, 255, 0.4));
    box-shadow:
        0 0 12px rgba(92, 200, 255, 0.45),
        0 0 24px rgba(92, 200, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.cursor-ring {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(92, 200, 255, 0.3);
    background: radial-gradient(circle, rgba(92, 200, 255, 0.18), rgba(92, 200, 255, 0));
    filter: drop-shadow(0 10px 25px rgba(5, 11, 24, 0.35));
}

body.cursor-hovering .cursor-ring {
    transform: translate3d(-50%, -50%, 0) scale(1.25);
    border-color: rgba(168, 85, 247, 0.5);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28), rgba(92, 200, 255, 0.08));
}

body.cursor-hovering .cursor-dot {
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.95), rgba(168, 85, 247, 0.75));
    box-shadow:
        0 0 18px rgba(168, 85, 247, 0.5),
        0 0 32px rgba(92, 200, 255, 0.45);
}

body.cursor-down .cursor-ring {
    transform: translate3d(-50%, -50%, 0) scale(0.9);
    border-color: rgba(255, 255, 255, 0.55);
}

body.cursor-down .cursor-dot {
    transform: translate3d(-50%, -50%, 0) scale(0.85);
}

body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
    opacity: 0;
}

@media (pointer: coarse) {
    .cursor-layer {
        display: none;
    }
    body {
        cursor: auto;
    }
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

p {
    margin: 0 0 var(--space-sm);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'JetBrains Mono', 'Inter', monospace;
    margin: 0 0 var(--space-sm);
}

img {
    max-width: 100%;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.text-muted {
    color: var(--muted);
}

.underline-link {
    position: relative;
    font-weight: 600;
}

.underline-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.underline-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 960px) {
    :root {
        --space-xl: 32px;
        --space-lg: 24px;
        --space-md: 16px;
    }
}
