/*
Theme Name: Resonanz
Theme URI: https://guidoschenk.de
Author: Guido Schenk
Author URI: https://guidoschenk.de
Description: Ein dunkles, atmosphärisches WordPress-Theme für den Psychothriller "Resonanz" von Guido Schenk. Minimalistisch, cineastisch und spannungsgeladen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resonanz
Tags: dark, one-column, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════ */

:root {
    /* Colors */
    --color-bg-deep: #070c17;
    --color-bg-surface: #0b1121;
    --color-bg-elevated: #0f162b;
    --color-bg-card: rgba(15, 22, 42, 0.65);
    --color-bg-card-hover: rgba(20, 30, 55, 0.8);
    --color-accent: rgb(142, 207, 255);
    --color-accent-muted: rgba(142, 207, 255, 0.6);
    --color-accent-subtle: rgba(142, 207, 255, 0.15);
    --color-accent-glow: rgba(142, 207, 255, 0.25);
    --color-text-primary: #e2e8f4;
    --color-text-secondary: #8a9bb5;
    --color-text-muted: #556580;
    --color-border: rgba(142, 207, 255, 0.12);
    --color-border-hover: rgba(142, 207, 255, 0.3);
    --color-overlay: rgba(7, 12, 23, 0.82);

    /* Typography */
    --font-heading: 'Cinzel', 'Palatino Linotype', serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --fs-hero: clamp(3.5rem, 10vw, 8rem);
    --fs-h1: clamp(2rem, 4vw, 3.2rem);
    --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
    --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
    --fs-h4: 1.15rem;
    --fs-body: 1.05rem;
    --fs-small: 0.9rem;
    --fs-xs: 0.8rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --header-height: 80px;
    --border-radius: 6px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.4s;
}


/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(142, 207, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(142, 207, 255, 0.02) 0%, transparent 40%),
        linear-gradient(180deg, var(--color-bg-deep) 0%, #090f1e 50%, var(--color-bg-deep) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    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)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--duration) var(--ease-out);
}

a:hover {
    color: #fff;
}

ul, ol {
    list-style: none;
}

::selection {
    background: rgba(142, 207, 255, 0.25);
    color: #fff;
}


/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
}

h1 {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-md);
    text-shadow:
        0 0 20px var(--color-accent-glow),
        0 0 36px var(--color-accent-subtle);
}
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-sm); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--space-sm); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

blockquote {
    border-left: 3px solid var(--color-accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    background: var(--color-bg-card);
    font-style: italic;
    color: var(--color-text-secondary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.section-label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}


/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

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

.section--border-top {
    border-top: 1px solid var(--color-border);
}


/* ═══════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(7, 12, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--duration) var(--ease-out);
}

.site-header.scrolled {
    background: rgba(7, 12, 23, 0.95);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    transition: color var(--duration) var(--ease-out);
}

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

.site-branding .brand-accent {
    color: var(--color-accent);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-navigation a {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--duration) var(--ease-out);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent-glow);
    transition: width var(--duration) var(--ease-out);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-accent);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 100%;
}

/* Sub-menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: -var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-xs) 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: var(--space-xs) var(--space-md);
    display: block;
    text-transform: none;
    letter-spacing: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s var(--ease-out);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */

.hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(142, 207, 255, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(7, 12, 23, 0.82) 0%, rgba(9, 15, 27, 0.5) 100%);
    z-index: 0;
}

/* Atmospheric vertical lines */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 120px,
        rgba(142, 207, 255, 0.02) 120px,
        rgba(142, 207, 255, 0.02) 121px
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.hero-genre {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--space-md);
    text-shadow:
        0 0 32px var(--color-accent-glow),
        0 0 72px var(--color-accent-subtle);
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.4s forwards, glowBreathing 4s ease-in-out 2s infinite;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto var(--space-md);
    box-shadow: 0 0 12px var(--color-accent-glow);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-author {
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1.3s forwards;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--color-border-hover);
    border-radius: var(--border-radius);
    color: var(--color-accent);
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
}

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

.btn:hover::before {
    opacity: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

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

.btn--primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-bg-deep);
}

.btn--small {
    padding: 0.6rem 1.5rem;
    font-size: var(--fs-xs);
}


/* ═══════════════════════════════════════════════
   BOOK SHOWCASE SECTION
   ═══════════════════════════════════════════════ */

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

.book-cover {
    position: relative;
}

.book-cover-image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-surface) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(142, 207, 255, 0.05);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.book-cover-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(142, 207, 255, 0.05) 0%,
        transparent 40%,
        transparent 60%,
        rgba(142, 207, 255, 0.03) 100%
    );
}

.book-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.book-cover-image--mockup {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
    overflow: visible;
}

.book-cover-image--mockup::before {
    content: none;
}

.book-cover-image--mockup img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.book-cover-placeholder {
    text-align: center;
    padding: var(--space-lg);
}

.book-cover-placeholder .book-title-display {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
}

.book-cover-placeholder .book-author-display {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

.book-info h2 {
    margin-bottom: var(--space-md);
}

.book-info p {
    font-size: var(--fs-body);
    line-height: 1.8;
}

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

.book-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.book-meta-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.book-meta-value {
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════
   ABOUT PREVIEW SECTION
   ═══════════════════════════════════════════════ */

.about-preview {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.about-image:hover img {
    filter: grayscale(70%) contrast(1.08);
    transform: scale(1.02);
}

.about-image-placeholder {
    color: var(--color-text-muted);
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════
   BLOG / POST CARDS
   ═══════════════════════════════════════════════ */

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

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-muted), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
}

.post-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-bg-elevated);
    overflow: hidden;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-body {
    padding: var(--space-md);
}

.post-card-date {
    font-size: var(--fs-xs);
    color: var(--color-accent-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.post-card-title a {
    color: var(--color-text-primary);
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.post-card-link {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    transition: all var(--duration) var(--ease-out);
}

.post-card-link:hover {
    letter-spacing: 0.15em;
}


/* ═══════════════════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════════════════ */

.newsletter-section {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(142, 207, 255, 0.04) 0%, transparent 70%);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-content .section-label {
    justify-content: center;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 0.9rem 1.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    outline: none;
    transition: border-color var(--duration) var(--ease-out);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(142, 207, 255, 0.1);
}

.newsletter-success {
    display: none;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: var(--space-md);
}

.newsletter-success.visible,
.newsletter-success.is-visible {
    display: block;
    animation: fadeInUp 0.5s var(--ease-out) forwards;
}

.newsletter-success.is-error {
    color: #ffb4b4;
}

.newsletter-consent {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: var(--space-xs);
    text-align: left;
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

.newsletter-consent label {
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.newsletter-consent a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.newsletter-consent a:hover {
    color: #fff;
}

.newsletter-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.site-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: rgba(5, 8, 16, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer-description {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 350px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer-links {
    margin-bottom: var(--space-md);
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

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

.site-footer .widget {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 var(--space-md);
}

.site-footer .widget:last-child {
    margin-bottom: 0;
}

.site-footer .widget-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-sm);
    padding: 0;
    border: 0;
}

.site-footer .widget ul li {
    padding: 0;
    border: 0;
    margin-bottom: var(--space-xs);
}

.site-footer .widget ul li:last-child {
    margin-bottom: 0;
}

.site-footer .widget ul li a {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.site-footer .widget ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer-copyright {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

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

.footer-social a {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

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


/* ═══════════════════════════════════════════════
   PAGE TEMPLATES
   ═══════════════════════════════════════════════ */

.page-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(142, 207, 255, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, rgba(7, 12, 23, 0.82) 0%, rgba(9, 15, 27, 0.5) 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

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

.page-content .entry-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin-top: var(--space-xl);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.entry-content a {
    border-bottom: 1px solid var(--color-accent-subtle);
}

.entry-content a:hover {
    border-bottom-color: var(--color-accent);
}

.entry-content img {
    border-radius: var(--border-radius);
    margin: var(--space-lg) 0;
}


/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */

.author-profile {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-xl);
}

.author-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.author-photo:hover img {
    filter: grayscale(70%) contrast(1.08);
    transform: scale(1.02);
}

.author-bio h2 {
    margin-bottom: var(--space-md);
}

.author-bio p {
    line-height: 1.8;
}

.author-quote {
    position: relative;
    margin-top: var(--space-xl);
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-style: normal;
    color: var(--color-text-primary);
    text-align: center;
}

.author-quote::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 50%;
    width: 170px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.author-quote::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    width: 110px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--color-accent-muted), transparent);
}

.author-quote p {
    margin: 0 auto;
    max-width: 34ch;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-shadow:
        0 0 26px var(--color-accent-glow),
        0 0 44px var(--color-accent-subtle);
    line-height: 1.35;
}


/* ═══════════════════════════════════════════════
   BOOK PAGE
   ═══════════════════════════════════════════════ */

.book-detail {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-xl);
    align-items: start;
}

.book-detail-cover {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.book-detail-info h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.book-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.book-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.book-spec-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.book-spec-value {
    color: var(--color-text-primary);
    font-weight: 500;
}

.purchase-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.book-sample {
    margin-top: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
}

.book-sample p:last-child {
    margin-bottom: 0;
}

.book-sample-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-lg) 0;
}

.book-sample-more {
    margin-top: var(--space-md);
}

.book-sample-more summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    list-style: none;
    user-select: none;
}

.book-sample-more summary::-webkit-details-marker {
    display: none;
}

.book-sample-more summary::before {
    content: '+';
    font-size: 1rem;
    line-height: 1;
}

.book-sample-more[open] summary::before {
    content: '-';
}

.book-sample-full {
    margin-top: var(--space-md);
}

.book-sample-cta {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(142, 207, 255, 0.08) 0%, rgba(15, 22, 42, 0.35) 100%);
}

.book-sample-cta p {
    margin-bottom: var(--space-md);
}


/* ═══════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-form label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    outline: none;
    margin-bottom: var(--space-md);
    transition: border-color var(--duration) var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    height: fit-content;
}

.contact-info-item {
    margin-bottom: var(--space-lg);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item h4 {
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--fs-xs);
}

.contact-info-item p {
    color: var(--color-text-secondary);
    margin: 0;
}

.contact-info-card a {
    color: #fff;
}

.contact-info-card a:hover {
    color: #fff;
    opacity: 0.9;
}


/* ═══════════════════════════════════════════════
   BLOG ARCHIVE / LISTING
   ═══════════════════════════════════════════════ */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    align-items: start;
}

.blog-posts .post-card {
    margin-bottom: var(--space-lg);
}

.blog-posts .post-card-horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    font-size: var(--fs-small);
    transition: all var(--duration) var(--ease-out);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}


/* ═══════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════ */

.single-post-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-lg);
    text-align: center;
}

.single-post-header .post-meta {
    font-size: var(--fs-small);
    color: var(--color-accent-muted);
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.single-post-header h1 {
    max-width: 800px;
    margin: 0 auto var(--space-md);
}

.single-post-featured {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

.single-post-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-box {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin: var(--space-xl) 0;
}

.post-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-bg-elevated);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.post-author-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(7, 12, 23, 0.5) 0%, rgba(142, 207, 255, 0.2) 100%);
    pointer-events: none;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8) saturate(0.85) contrast(1.08) brightness(0.88);
    transform: scale(1.02);
    transition: filter var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.post-author-box:hover .post-author-avatar img {
    filter: grayscale(0.25) saturate(1) contrast(1.08) brightness(1);
    transform: scale(1.07);
}

.post-author-info h4 {
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.post-author-info p {
    font-size: var(--fs-small);
    margin: 0;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xl);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.post-nav-link:last-child {
    text-align: right;
}

.post-nav-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    transition: color var(--duration) var(--ease-out);
}

.post-nav-link:hover .post-nav-title {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.widget-title {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.widget ul li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(142, 207, 255, 0.05);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}

.widget ul li a:hover {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════════ */

.sidebar .search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: var(--space-md);
}

.sidebar .search-form .search-field {
    width: 100%;
    padding: 0.85rem 3rem 0.85rem 1.2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    outline: none;
    transition: border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.sidebar .search-form .search-field::placeholder {
    color: var(--color-text-muted);
}

.sidebar .search-form .search-field:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(142, 207, 255, 0.1);
}

.sidebar .search-form .search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--duration) var(--ease-out);
}

.sidebar .search-form .search-submit:hover {
    color: var(--color-accent);
}

.sidebar .search-form .search-field:focus ~ .search-submit {
    color: var(--color-accent);
}

.sidebar .wp-block-search .wp-block-search__label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.sidebar .wp-block-search .wp-block-search__inside-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 0;
}

.sidebar .wp-block-search .wp-block-search__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 3.2rem 0.85rem 1.2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    outline: none;
    transition: border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.sidebar .wp-block-search .wp-block-search__input::placeholder {
    color: var(--color-text-muted);
}

.sidebar .wp-block-search .wp-block-search__input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(142, 207, 255, 0.1);
}

.sidebar .wp-block-search .wp-block-search__button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: color var(--duration) var(--ease-out);
}

/* Lupe als SVG-Mask (ersetzt den "Suchen"-Text) */
.sidebar .wp-block-search .wp-block-search__button::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.sidebar .wp-block-search .wp-block-search__button:hover {
    color: var(--color-accent);
}

.sidebar .wp-block-search .wp-block-search__input:focus ~ .wp-block-search__button,
.sidebar .wp-block-search .wp-block-search__inside-wrapper:focus-within .wp-block-search__button {
    color: var(--color-accent);
}

.comments-area {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-lg);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
}

.comment .children {
    margin-top: var(--space-md);
    padding-left: var(--space-lg);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.comment-author {
    font-weight: 600;
    color: var(--color-text-primary);
}

.comment-date {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.comment-content p {
    font-size: var(--fs-small);
}

.comment-respond {
    margin-top: var(--space-xl);
}

.comment-form label {
    display: block;
    font-size: var(--fs-small);
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
}

.comment-form input:not([type="checkbox"]):not([type="hidden"]),
.comment-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    outline: none;
    margin-bottom: var(--space-md);
    transition: border-color var(--duration) var(--ease-out);
}

.comment-form input:not([type="checkbox"]):not([type="hidden"]):focus,
.comment-form textarea:focus {
    border-color: var(--color-accent);
}

.comment-form .comment-form-cookies-consent {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
    text-align: left;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--color-accent);
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.comment-form .comment-form-cookies-consent label {
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    display: inline;
}

.comment-form .comment-form-cookies-consent a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-form .comment-form-cookies-consent a:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════
   SEARCH FORM
   ═══════════════════════════════════════════════ */

.search-form {
    display: flex;
    gap: var(--space-xs);
}

.search-form .search-field {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    outline: none;
    transition: border-color var(--duration) var(--ease-out);
}

.search-form .search-field:focus {
    border-color: var(--color-accent);
}

.search-form .search-submit {
    padding: 0.7rem 1.2rem;
    background: var(--color-accent-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.search-form .search-submit:hover {
    background: var(--color-accent);
    color: var(--color-bg-deep);
}


/* ═══════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════ */

.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(142, 207, 255, 0.12);
    text-shadow: 0 0 60px rgba(142, 207, 255, 0.1);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404 h1 {
    margin-bottom: var(--space-md);
}

.error-404 p {
    margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════
   HERO PARTICLES CANVAS
   ═══════════════════════════════════════════════ */

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   RESONANCE RINGS — pulsing outward from center
   ═══════════════════════════════════════════════ */

.hero-resonance-rings {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resonance-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    opacity: 0;
    animation: resonancePulse 7s var(--ease-out) infinite;
}

.resonance-ring--2 { animation-delay: 2.3s; }
.resonance-ring--3 { animation-delay: 4.6s; }

@keyframes resonancePulse {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        width: min(900px, 90vw);
        height: min(900px, 90vw);
        opacity: 0;
        border-width: 0.5px;
    }
}

/* ═══════════════════════════════════════════════
   HERO TITLE — glitch effect
   ═══════════════════════════════════════════════ */

.hero-title {
    position: relative;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.hero-title::before {
    color: #ff3c5c;
    animation: glitchLayer1 8s infinite;
    clip-path: inset(0);
}

.hero-title::after {
    color: #00e5ff;
    animation: glitchLayer2 8s infinite;
    clip-path: inset(0);
}

@keyframes glitchLayer1 {
    0%, 89%, 91%, 93%, 95%, 100% {
        opacity: 0;
        transform: none;
        clip-path: inset(0);
    }
    89.5% {
        opacity: 0.8;
        transform: translate(-4px, -2px);
        clip-path: inset(20% 0 40% 0);
    }
    91.5% {
        opacity: 0.8;
        transform: translate(3px, 1px);
        clip-path: inset(60% 0 10% 0);
    }
    93.5% {
        opacity: 0.6;
        transform: translate(-2px, 3px);
        clip-path: inset(10% 0 70% 0);
    }
}

@keyframes glitchLayer2 {
    0%, 89%, 91%, 93%, 95%, 100% {
        opacity: 0;
        transform: none;
        clip-path: inset(0);
    }
    90% {
        opacity: 0.8;
        transform: translate(4px, 2px);
        clip-path: inset(40% 0 20% 0);
    }
    92% {
        opacity: 0.8;
        transform: translate(-3px, -1px);
        clip-path: inset(5% 0 50% 0);
    }
    94% {
        opacity: 0.6;
        transform: translate(2px, -3px);
        clip-path: inset(50% 0 20% 0);
    }
}

@keyframes glowBreathing {
    0%, 100% {
        text-shadow:
            0 0 32px var(--color-accent-glow),
            0 0 72px var(--color-accent-subtle);
    }
    50% {
        text-shadow:
            0 0 48px rgba(142, 207, 255, 0.5),
            0 0 100px rgba(142, 207, 255, 0.3),
            0 0 160px rgba(142, 207, 255, 0.1);
    }
}

/* Hero divider scanner effect */
.hero-divider {
    position: relative;
    overflow: hidden;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(142, 207, 255, 0.8), transparent);
    animation: scanLine 3s ease-in-out 1.5s infinite;
}

@keyframes scanLine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-title::before,
    .hero-title::after {
        animation: none;
        display: none;
    }
    .resonance-ring {
        animation: none;
        display: none;
    }
    .hero-divider::after {
        animation: none;
        display: none;
    }
    .hero-title {
        animation: fadeInUp 1s var(--ease-out) 0.4s forwards;
    }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-bg-surface);
        border-left: 1px solid var(--color-border);
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
        transition: right 0.4s var(--ease-out);
        z-index: 999;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation a {
        display: block;
        padding: var(--space-md) 0;
        font-size: var(--fs-body);
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation ul ul {
        position: static;
        border: none;
        background: none;
        box-shadow: none;
        padding-left: var(--space-md);
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }

    .book-showcase,
    .about-preview,
    .book-detail,
    .author-profile {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .book-cover-image {
        max-width: 360px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .blog-posts .post-card-horizontal {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .author-photo {
        position: static;
        max-width: 350px;
        margin: 0 auto;
    }

    .book-detail-cover {
        position: static;
        text-align: center;
    }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 5rem;
        --header-height: 64px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .sidebar .search-form .search-field {
        padding-right: 2.8rem;
    }

    .sidebar .wp-block-search .wp-block-search__input {
        padding-right: 2.8rem;
    }

    .book-meta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .book-specs {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-link:last-child {
        text-align: left;
    }

    .hero-title {
        letter-spacing: 0.06em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-content {
        padding: var(--space-md) 0;
    }
}
