/* ========== FONTS ========== */

@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/bebas-neue-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/bebas-neue-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/caveat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/caveat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Permanent Marker';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/permanent-marker-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-bg-card: #161616;
    --color-text: #e8e4df;
    --color-text-muted: #8a8580;
    --color-accent: #d4851f;
    --color-accent-light: #e8a44a;
    --color-accent-glow: rgba(212, 133, 31, 0.15);
    --color-blood: #8b1a1a;
    --color-blood-light: #a52222;
    --color-blood-dark: #5c0e0e;
    --color-blood-glow: rgba(139, 26, 26, 0.15);
    --color-border: rgba(255, 255, 255, 0.06);

    --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-handwriting: 'Caveat', cursive;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading-overlay.done {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.loading-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 5rem);
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0;
    animation: loading-glitch-in 1.8s ease forwards;
    text-shadow: 0 0 80px rgba(212, 133, 31, 0.1);
}

@keyframes loading-glitch-in {
    0% { opacity: 0; transform: scale(0.95); }
    10% { opacity: 0.3; }
    20% { opacity: 0.1; transform: scale(0.95) translateX(-3px); }
    30% { opacity: 0.6; transform: scale(0.95) translateX(2px); }
    35% { opacity: 0.2; }
    50% { opacity: 0.8; transform: scale(0.98) translateX(-1px); text-shadow: -2px 0 rgba(139, 26, 26, 0.4), 2px 0 rgba(212, 133, 31, 0.4); }
    60% { opacity: 1; text-shadow: 0 0 80px rgba(212, 133, 31, 0.1); }
    80% { opacity: 1; transform: scale(1); }
    90% { opacity: 0.85; text-shadow: 1px 0 rgba(139, 26, 26, 0.3), -1px 0 rgba(212, 133, 31, 0.3); }
    100% { opacity: 1; transform: scale(1); text-shadow: 0 0 80px rgba(212, 133, 31, 0.2); }
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.accent {
    color: var(--color-accent);
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 5, 5, 0.35) 100%);
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 133, 31, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    will-change: transform;
}

.cursor-glow.active {
    opacity: 1;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to right, var(--color-blood), var(--color-accent));
    z-index: 10001;
    will-change: width;
}

/* ========== NAVIGATION ========== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: var(--transition-base);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: var(--transition-base);
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    color: var(--color-accent) !important;
    border: 1px solid var(--color-accent);
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
}

.nav-cta:hover {
    background: var(--color-accent);
    color: var(--color-bg) !important;
}

.nav-cta::after {
    display: none !important;
}

/* ========== HERO ========== */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 10px;
    background: linear-gradient(to bottom, transparent 50%, #0a0a0a 100%),
                linear-gradient(to top, transparent 70%, #0a0a0a 100%),
                linear-gradient(to right, transparent 70%, #0a0a0a 100%),
                linear-gradient(to left, transparent 70%, #0a0a0a 100%),
                url('../img/empty-street.webp') center/cover no-repeat;
    transform: scale(1.1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 133, 31, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(139, 26, 26, 0.04) 0%, transparent 40%),
        linear-gradient(to bottom, transparent 60%, var(--color-bg) 100%),
        rgba(0, 0, 0, 0.45);
}

.hero-fog {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    opacity: 1;
    will-change: transform;
}

.hero-fog-layer--1 {
    background: radial-gradient(ellipse 600px 300px at 30% 70%, rgba(212, 133, 31, 0.15), transparent);
    animation: fog-drift-1 25s ease-in-out infinite;
}

.hero-fog-layer--2 {
    background: radial-gradient(ellipse 800px 250px at 60% 50%, rgba(139, 26, 26, 0.12), transparent);
    animation: fog-drift-2 30s ease-in-out infinite;
}

.hero-fog-layer--3 {
    background: radial-gradient(ellipse 500px 200px at 80% 80%, rgba(232, 228, 223, 0.08), transparent);
    animation: fog-drift-3 20s ease-in-out infinite;
}

@keyframes fog-drift-1 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15%); }
}

@keyframes fog-drift-2 {
    0%, 100% { transform: translateX(5%); }
    50% { transform: translateX(-10%); }
}

@keyframes fog-drift-3 {
    0%, 100% { transform: translateX(-5%); }
    50% { transform: translateX(20%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-md);
}

.hero-pre {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 80px rgba(212, 133, 31, 0.15);
    animation: title-glitch 8s ease-in-out infinite;
    overflow: hidden;
}

.btn-entdecken:hover {
    transform: scale(1.1) !important;
    transition: all 250ms ease-in-out !important;
}

.char-split {
    display: inline-block;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--char-delay, 0s);
}

.hero-title.split-visible .char-split {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-thin {
    font-size: 0.5em;
    letter-spacing: 0.3em;
    opacity: 0.6;
    vertical-align: middle;
}

.spacer-tb {
    margin: 140px 0;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text);
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.hero-countdown {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.hero-countdown-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent-glow), 0 0 60px rgba(212, 133, 31, 0.08);
    animation: countdown-pulse 3s ease-in-out infinite;
}

.hero-countdown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.hero-countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.05em;
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent-glow);
    line-height: 1;
    animation: countdown-flicker 4s ease-in-out infinite;
}

.hero-countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

@keyframes countdown-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes countdown-flicker {
    0%, 90%, 93%, 96%, 100% { opacity: 1; }
    91% { opacity: 0.6; }
    94% { opacity: 0.8; }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-blood), var(--color-accent), transparent);
    animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes flicker {
    0%, 92%, 94%, 97%, 100% { opacity: 1; }
    93% { opacity: 0.8; }
    96% { opacity: 0.7; }
}

@keyframes heartbeat {
    0%, 100% { transform: scaleY(0.6); opacity: 0.3; }
    14% { transform: scaleY(1); opacity: 1; }
    28% { transform: scaleY(0.6); opacity: 0.3; }
    42% { transform: scaleY(0.85); opacity: 0.7; }
    56% { transform: scaleY(0.6); opacity: 0.3; }
}

@keyframes ember-float {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-50vh) translateX(30px) scale(0.8); }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(-20px) scale(0.2); opacity: 0; }
}

@keyframes ember-float-alt {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-50vh) translateX(-35px) scale(0.7); }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) translateX(25px) scale(0.2); opacity: 0; }
}

@keyframes ember-glow {
    0%, 100% { box-shadow: 0 0 3px rgba(212, 133, 31, 0.8); }
    50% { box-shadow: 0 0 8px rgba(212, 133, 31, 1), 0 0 16px rgba(139, 26, 26, 0.3); }
}

@keyframes title-glitch {
    0%, 95%, 97%, 100% { text-shadow: 0 0 80px rgba(212, 133, 31, 0.1); }
    96% { text-shadow: -2px 0 rgba(139, 26, 26, 0.4), 2px 0 rgba(212, 133, 31, 0.4), 0 0 80px rgba(212, 133, 31, 0.1); }
    98% { text-shadow: 1px 0 rgba(139, 26, 26, 0.3), -1px 0 rgba(212, 133, 31, 0.3), 0 0 80px rgba(212, 133, 31, 0.1); }
}

@keyframes cta-pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ========== EMBER PARTICLES ========== */

.global-particles {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: ember-float linear infinite, ember-glow 2s ease-in-out infinite;
}

.ember:nth-child(1)  { left: 8%;  bottom: -10px; animation-duration: 7s, 1.8s; animation-delay: 0s; width: 7px; height: 7px; }
.ember:nth-child(2)  { left: 20%; bottom: -10px; animation-duration: 11s, 2.5s; animation-delay: 1.5s; width: 3px; height: 3px; animation-name: ember-float-alt, ember-glow; }
.ember:nth-child(3)  { left: 35%; bottom: -10px; animation-duration: 9s, 1.8s; animation-delay: 3s; }
.ember:nth-child(4)  { left: 48%; bottom: -10px; animation-duration: 13s, 2.2s; animation-delay: 0.5s; width: 3px; height: 3px; animation-name: ember-float-alt, ember-glow; }
.ember:nth-child(5)  { left: 62%; bottom: -10px; animation-duration: 8s, 2.8s; animation-delay: 2s; width: 7px; height: 7px; }
.ember:nth-child(6)  { left: 78%; bottom: -10px; animation-duration: 10s, 2s; animation-delay: 4s; width: 3px; height: 3px; }
.ember:nth-child(7)  { left: 90%; bottom: -10px; animation-duration: 12s, 2.6s; animation-delay: 5.5s; background: var(--color-blood-light); }
.ember:nth-child(8)  { left: 5%;  bottom: -10px; animation-duration: 9s, 2.3s; animation-delay: 6.5s; background: var(--color-blood-light); width: 3px; height: 3px; animation-name: ember-float-alt, ember-glow; }
.ember:nth-child(9)  { left: 30%; bottom: -10px; animation-duration: 8s, 2s; animation-delay: 1s; width: 7px; height: 7px; background: var(--color-blood-light); }
.ember:nth-child(10) { left: 52%; bottom: -10px; animation-duration: 14s, 2.4s; animation-delay: 3.5s; width: 3px; height: 3px; animation-name: ember-float-alt, ember-glow; }
.ember:nth-child(11) { left: 72%; bottom: -10px; animation-duration: 10s, 1.6s; animation-delay: 7s; }
.ember:nth-child(12) { left: 42%; bottom: -10px; animation-duration: 11s, 2.8s; animation-delay: 8s; width: 3px; height: 3px; background: var(--color-blood-light); animation-name: ember-float-alt, ember-glow; }

/* ========== CLICK SPARKS ========== */

@keyframes spark-fly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.click-sparks {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px rgba(212, 133, 31, 0.8);
    animation: spark-fly 0.6s ease-out forwards;
}

/* ========== CURSOR TRAIL ========== */

.trail-ember {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9996;
    animation: trail-fade 0.8s ease-out forwards;
}

@keyframes trail-fade {
    0% { opacity: 0.8; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========== SECTION COMMON ========== */

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-lg);
}

/* ========== SYNOPSIS ========== */

.synopsis {
    padding: var(--space-2xl) 0;
}

.synopsis-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: start;
}

.synopsis-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: 560px;
}

.synopsis-meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.meta-value {
    font-size: 0.9rem;
    color: var(--color-text);
}

.synopsis-fans {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    letter-spacing: 0.03em;
    max-width: 560px;
}

.book-mockup {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 600px;
    padding-top: var(--space-xl);
}

.book-mockup::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 480px;
    background:
        radial-gradient(ellipse at 80% 90%, rgba(139, 26, 26, 0.12) 0%, transparent 30%),
        radial-gradient(ellipse at 20% 10%, rgba(100, 40, 10, 0.08) 0%, transparent 25%),
        radial-gradient(ellipse at 70% 30%, rgba(139, 26, 26, 0.06) 0%, transparent 20%);
    pointer-events: none;
    z-index: 1;
}

.book-cover {
    width: 320px;
    height: 480px;
    background: linear-gradient(145deg, #1a1510 0%, #0f0d0a 100%);
    border: 1px solid rgba(212, 133, 31, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow:
        10px 10px 30px rgba(0, 0, 0, 0.5),
        -2px -2px 10px rgba(212, 133, 31, 0.03);
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    will-change: transform;
}

.has-cursor .book-cover {
    transition: box-shadow var(--transition-slow), transform 0.15s ease-out;
}

.book-cover:hover {
    transform: translateY(-8px);
    box-shadow:
        15px 20px 40px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 133, 31, 0.08);
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 133, 31, 0.1);
}

.book-cover-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 0.95;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--color-text);
}

.book-cover-author {
    position: absolute;
    bottom: 30px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ========== LESEPROBE ========== */

.leseprobe {
    padding: var(--space-2xl) 0;
    background: transparent;
}

.leseprobe-book-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.leseprobe-book {
    position: relative;
}

.leseprobe-page {
    background: url('../img/empty-page.webp') center / 150% 150% no-repeat;
    container-type: inline-size;
    padding: 7.5%;
    overflow: hidden;
    box-sizing: border-box;
}


.leseprobe-chapter {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-size: 7cqw;
    letter-spacing: 0.08em;
    color: #1a0e04;
    text-shadow: 0 0 4px rgba(235, 220, 195, 0.9);
    margin-bottom: 4cqw;
    text-align: center;
}

.leseprobe-text p {
    font-size: 1.25rem;
    font-size: 4.6cqw;
    font-family: monospace;
    font-weight: bold;
    line-height: 1.6;
    color: #1e1008;
    text-shadow: 0 0 3px rgba(235, 220, 195, 0.8);
    margin-bottom: 3cqw;
}


.leseprobe-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.leseprobe-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: none;
    border: 1px solid rgba(212, 133, 31, 0.3);
    padding: 0.5rem 1.2rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.leseprobe-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.leseprobe-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.leseprobe-page-indicator {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

/* ========== QUOTE ========== */

.divider-quote {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-md);
}

.divider-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.quote-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.6s ease;
}

.quote-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-word.highlight {
    color: var(--color-accent);
}

/* ========== CHARAKTERE ========== */

.charaktere {
    padding: var(--space-2xl) 0;
}

.charaktere-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.char-card {
    perspective: 1000px;
    height: 480px;
    cursor: pointer;
}

.char-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.char-card:hover .char-card-inner,
.char-card.flipped .char-card-inner {
    transform: rotateY(180deg);
}

.char-card-front,
.char-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.char-card-front {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.char-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #141a14 0%, #0d100d 40%, #0a0f0a 70%, #111510 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.char-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.char-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(18deg, transparent 42%, rgba(255, 255, 255, 0.015) 42.5%, rgba(255, 255, 255, 0.015) 43%, transparent 43.5%),
        linear-gradient(165deg, transparent 55%, rgba(255, 255, 255, 0.02) 55.3%, rgba(255, 255, 255, 0.02) 55.6%, transparent 56%),
        linear-gradient(95deg, transparent 30%, rgba(255, 255, 255, 0.01) 30.2%, rgba(255, 255, 255, 0.01) 30.5%, transparent 30.8%),
        linear-gradient(140deg, transparent 70%, rgba(255, 255, 255, 0.015) 70.2%, rgba(255, 255, 255, 0.015) 70.5%, transparent 70.8%),
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.012) 20.1%, rgba(255, 255, 255, 0.012) 20.4%, transparent 20.6%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 35, 20, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.char-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 60%, transparent 100%);
}

.char-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.char-role {
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.char-card-back {
    transform: rotateY(180deg);
    background: var(--color-bg-card);
}

.char-notebook {
    width: 100%;
    height: 100%;
    position: relative;
    background: url('../img/notiz-zettel.webp') center / 140% 140% no-repeat;
    overflow: hidden;
}

.char-notebook-content {
    position: relative;
    z-index: 4;
    padding: 50px 44px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.char-scrawl-name {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.6rem;
    color: #2a1508;
    margin-bottom: 20px;
    text-decoration: underline;
    text-decoration-color: rgba(100, 15, 10, 0.4);
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    transform: rotate(-1deg);
}

.char-scrawl-field {
    margin-bottom: 8px;
    transform: rotate(-0.5deg);
}

.char-scrawl-label {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.95rem;
    color: #1f0e05;
    display: block;
    margin-bottom: 1px;
}

.char-scrawl-value {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    color: #2a1508;
    display: block;
    opacity: 0.92;
}

/* ========== KARTE ========== */

.karte {
    padding: var(--space-2xl) 0;
}

.karte-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

.karte-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.karte-placeholder {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(212, 133, 31, 0.035) 39px, rgba(212, 133, 31, 0.035) 40px),
        repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(212, 133, 31, 0.035) 39px, rgba(212, 133, 31, 0.035) 40px),
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.7) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(139, 26, 26, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(212, 133, 31, 0.08) 0%, transparent 45%),
        linear-gradient(160deg, #131310 0%, #0f0e0b 30%, #100d0a 60%, #0d0c09 100%);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: rgba(212, 133, 31, 0.18);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.karte-marker {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.karte-marker-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(212, 133, 31, 0.6), 0 0 20px rgba(212, 133, 31, 0.2);
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
}

.karte-marker:hover .karte-marker-dot,
.karte-marker.active .karte-marker-dot {
    background: var(--color-accent-light);
    box-shadow: 0 0 12px rgba(212, 133, 31, 0.8), 0 0 30px rgba(212, 133, 31, 0.3);
    transform: scale(1.3);
}

.karte-marker-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    animation: marker-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
}

@keyframes marker-ping {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    75%, 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.karte-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 133, 31, 0.2);
    padding: 0.8rem 1rem;
    min-width: 200px;
    max-width: 260px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: 20;
}

.karte-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(212, 133, 31, 0.2);
}

.karte-marker:hover .karte-tooltip,
.karte-marker.active .karte-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.karte-tooltip-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.karte-tooltip-desc {
    display: block;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.karte-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ========== AUTOR ========== */

.autor {
    padding: var(--space-2xl) 0;
}

.autor-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
}

.autor-photo {
    perspective: 600px;
}

.autor-photo-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border: 1px solid var(--color-border);
    display: block;
    transition: transform 0.25s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
}

.autor-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: 520px;
}

/* ========== STIMMEN ========== */

.stimmen {
    padding: var(--space-2xl) 0;
}

.stimmen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stimmen-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    transition: var(--transition-slow);
    overflow: hidden;
}

.stimmen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-blood);
    opacity: 0.5;
    transition: var(--transition-base);
}

.stimmen-card:hover::before {
    width: 100%;
    opacity: 0.7;
}

.stimmen-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.stimmen-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.stimmen-author {
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

/* ========== WARUM ========== */

.warum {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.warum::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 26, 26, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 133, 31, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.warum-intro {
    max-width: 700px;
    margin-bottom: var(--space-xl);
}

.warum-quote {
    font-family: var(--font-handwriting);
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    opacity: 0.85;
}

.warum-intro p:not(.warum-quote) {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.warum-themes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.warum-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    transition: var(--transition-slow);
    overflow: hidden;
}

.warum-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    opacity: 0.5;
}

.warum-card:hover {
    border-color: rgba(212, 133, 31, 0.15);
    box-shadow: 0 0 30px rgba(212, 133, 31, 0.05);
}

.warum-card-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--color-blood), var(--color-accent));
    margin-bottom: var(--space-md);
    transition: width var(--transition-base);
}

.warum-card:hover .warum-card-line {
    width: 80px;
}

.warum-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.15;
    position: relative;
}

.warum-card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    position: relative;
}

/* ========== KAUFEN ========== */

.kaufen {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.kaufen-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
    animation: flicker 6s ease-in-out infinite;
}

.kaufen-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 30px rgba(139, 26, 26, 0.1);
}

.kaufen .btn-primary {
    background: var(--color-blood);
    border-color: var(--color-blood);
    color: var(--color-text);
    position: relative;
}

.kaufen .btn-primary:hover {
    background: var(--color-blood-light);
    border-color: var(--color-blood-light);
    box-shadow: 0 0 30px var(--color-blood-glow), 0 0 60px rgba(139, 26, 26, 0.1);
}

.kaufen .btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: transparent;
    box-shadow: 0 0 20px var(--color-blood-glow);
    animation: cta-pulse 3s ease-in-out infinite;
    z-index: -1;
}

.kaufen-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.kaufen-isbn {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

/* ========== FOOTER ========== */

.footer {
    padding: var(--space-lg) 0 var(--space-md);
    background: linear-gradient(to bottom, var(--color-bg) 0%, rgba(8, 5, 5, 1) 100%);
    border-top: 1px solid rgba(139, 26, 26, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a,
.footer-social a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    letter-spacing: 0.05em;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(139, 26, 26, 0.1);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ========== REVEAL ANIMATIONS ========== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none;
}

[data-parallax] {
    will-change: transform, translate;
}

:is(.reveal, .reveal-left, .reveal-right, .reveal-scale):nth-child(2) { transition-delay: 0.1s; }
:is(.reveal, .reveal-left, .reveal-right, .reveal-scale):nth-child(3) { transition-delay: 0.2s; }
:is(.reveal, .reveal-left, .reveal-right, .reveal-scale):nth-child(4) { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .synopsis-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .synopsis-visual {
        order: -1;
    }

    .charaktere-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .char-card {
        height: 440px;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .stimmen-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .warum-themes {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }

    .autor-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .autor-photo-img {
        margin: 0 auto;
        max-width: 280px;
    }

    .autor-text p {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-links,
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 3.5rem;
        --space-xl: 3rem;
        --space-lg: 2.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transition: var(--transition-slow);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }

    .synopsis-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .book-cover {
        width: 240px;
        height: 360px;
    }

    .book-cover-title {
        font-size: 2.4rem;
    }

    .kaufen-buttons {
        flex-direction: column;
        align-items: center;
    }

    .kaufen-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .karte-canvas {
        aspect-ratio: 4 / 3;
    }

    .karte-marker-dot {
        width: 10px;
        height: 10px;
    }

    .karte-marker-ping {
        width: 10px;
        height: 10px;
    }

    .karte-tooltip {
        min-width: 160px;
        max-width: 200px;
        padding: 0.6rem 0.8rem;
    }

    .karte-tooltip-label {
        font-size: 0.85rem;
    }

    .karte-tooltip-desc {
        font-size: 0.75rem;
    }

    .divider-quote blockquote {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .book-mockup::after {
        width: 240px;
        height: 360px;
    }

    .ember:nth-child(n+7) {
        display: none;
    }

    .hero-countdown {
        gap: var(--space-sm);
    }

    .hero-countdown-cell {
        min-width: 50px;
    }

    .leseprobe-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .char-card {
        height: 460px;
    }

    .char-notebook-content {
        padding: 34px 26px 28px;
    }

    .char-scrawl-name {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .char-scrawl-field {
        margin-bottom: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ember,
    .spark,
    .trail-ember,
    .hero-title,
    .kaufen-title,
    .scroll-line,
    .kaufen .btn-primary::after {
        animation: none;
    }

    .global-particles,
    .click-sparks,
    .cursor-glow {
        display: none;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .char-split {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .loading-title {
        animation: none;
        opacity: 1;
    }

    .loading-overlay.done {
        transition-duration: 0.2s;
        transform: none;
    }

    .hero-fog {
        display: none;
    }

    .hero-countdown-text,
    .hero-countdown-value {
        animation: none;
    }

    .quote-word {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .typewriter-cursor {
        animation: none;
    }
}

/* ========== LEGAL PAGES (Impressum / Datenschutz) ========== */

.legal-page {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-page .nav {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.legal-back {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.legal-back:hover {
    color: var(--color-accent);
}

.legal-main {
    flex: 1;
    padding: calc(var(--space-xl) + 2rem) 0 var(--space-xl);
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.legal-h2-main {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(212, 133, 31, 0.25);
    line-height: 1.2;
}

.legal-section {
    margin-bottom: var(--space-md);
}

.legal-section h2,
.legal-section h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    font-weight: 400;
}

.legal-emphasis {
    border-left: 3px solid var(--color-accent);
    padding: var(--space-sm) var(--space-md);
    background: rgba(212, 133, 31, 0.04);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.legal-emphasis h3 {
    text-transform: none;
}

.legal-emphasis p {
    font-size: 0.85rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.legal-section p,
.legal-section ul {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    max-width: 780px;
}

.legal-section ul {
    padding-left: 1.25rem;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 133, 31, 0.3);
    transition: var(--transition-base);
}

.legal-section a:hover {
    color: var(--color-accent-light);
    border-bottom-color: var(--color-accent-light);
}

.legal-section strong {
    color: var(--color-text);
    font-weight: 500;
}

.legal-source {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-lg);
}

.legal-source a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

.legal-footer {
    padding: var(--space-md) 0;
    background: linear-gradient(to bottom, var(--color-bg) 0%, rgba(8, 5, 5, 1) 100%);
    border-top: 1px solid rgba(139, 26, 26, 0.15);
}

.legal-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.legal-footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.legal-footer-links {
    display: flex;
    gap: var(--space-md);
}

.legal-footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.legal-footer-links a:hover {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .legal-back {
        font-size: 0.75rem;
    }

    .legal-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
