/* Custom CSS for luux.dev modern redesign */
@import url('fonts.css');

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll jumps */
}

:root {
    --primary-color: #6366f1;
    /* Cool Indigo (Calming & Professional) */
    --secondary-color: #ec4899;
    /* Vibrant Pink (Friendly Accent) */
    --bg-color: #f7f7ff;
    /* Very Light Lavender (Playful Personality) */
    --fg-color: #ffffff;
    /* Pure White (Cards & Reading Area) */
    --border-color: #e4e4f6;
    /* Soft Violet Tint (Subtle border) */
    --text-color: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(99, 102, 241, 0.1);

    /* Typography Source of Truth */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --text-base: 0.85rem;
    /* Global body text */
    --text-article: 0.875rem;
    /* Article paragraphs & excerpts */
    --text-h1: 1.6rem;
    /* Page Titles & Article Header */
    --text-h2: 1.25rem;
    /* Subheaders & Card Titles */
    --text-h3: 1.1rem;
    /* Tertiary Headers */
    --text-hero: 2.5rem;
    /* Giant Hero Title */

    /* Radii & Shadows */
    --radius-sm: 50px;
    /* Pill-shaped buttons */
    --radius-md: 16px;
    --radius-lg: 24px;
    /* Playful rounded cards */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.03);
    --shadow-md: 0 10px 25px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 10px 25px rgba(28, 25, 23, 0.08), 0 5px 15px rgba(99, 102, 241, 0.03);
    /* Lavender-tinted deep shadow (optimized radius for Firefox) */
}

body,
p,
a,
li,
span,
div,
input,
button,
textarea {
    font-family: var(--font-body);
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    line-height: 1.7;
    font-size: var(--text-base);
    /* Global slightly smaller text */
    overflow-x: hidden; /* Prevent side-to-side jumping on some mobile browsers */
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.luux-card-title {
    font-family: var(--font-heading) !important;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* Glassmorphism Header */
#header {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100000 !important;
    box-shadow: var(--shadow-sm) !important;
    /* transition: all is dangerous here as it animates address-bar resizes */
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, backdrop-filter;
    transform: translateZ(0); /* Hardware accelerated scroll */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Disable Quark's legacy layout-shifting scroll behavior */
body.header-fixed.header-animated #header.scrolled,
body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: auto !important;
}

body.header-fixed.header-animated #header.scrolled .logo svg,
body.header-fixed.header-animated #header.scrolled .logo img {
    height: 24px !important; /* Keep stable */
}

/* Ensure no parent transform breaks fixed header */
#page-wrapper {
    transform: none !important;
}

#header .navbar-section {
    padding: 0.5rem 0;
}

/* Offset for fixed header on standard pages so content is not swallowed */
body:not(.home) #page-wrapper {
    padding-top: 100px;
}

/* Home Page Hero Section Hack */
body.home {
    background-color: var(--bg-color);
    background-image: none;
}

body.home::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    /* Prevents background zooming when mobile address bar hides */
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.3)),
        url('/user/pages/01.home/luux-processed_website-scaled.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    /* GPU Layer Promotion: Explicit stable background context */
    will-change: transform; 
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Expose hero image by making top wrappers transparent */
body.home #page-wrapper,
body.home #start.section,
body.home #body-wrapper,
body.home #body-wrapper>.container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
}

body.home #footer {
    background: var(--bg-color);
}

.hero-fullscreen {
    position: relative;
    z-index: 10;
    height: 100vh;
    height: 100lvh; /* Fixed stable height for hero background */
    height: 100svh; /* Fallback for stable small viewport */
    width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    transition: opacity 0.3s ease;
}

body.mobile-nav-open .hero-fullscreen {
    opacity: 0;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-weight: 300;
    letter-spacing: -0.01em;
    animation: hero-fade-in 1.2s ease-out;
}

.hero-accent {
    font-family: var(--font-body), "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
    font-weight: 800 !important;
    display: inline-block;
    /* Optimized: Simple shadow (no compute-heavy filter) */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-left: 0.2em;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.hero-title:hover .hero-accent {
    transform: scale(1.1) rotate(5deg);
}

.hero-arrow {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-top: 40px;
    text-decoration: none !important;
    background-image: none !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    /* Optimized transition (avoiding 'all') */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease !important;
    animation: hero-bounce 3s infinite;
}

.hero-arrow i {
    transition: transform 0.3s ease;
}

.hero-arrow:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

.content-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
    /* Performance: Stripped all backdrop-filters for maximum scroll safety on every engine */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 4rem 3rem;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    max-width: 1300px;
    /* Increased max-width for "beefier" feel */
    margin: 0 auto;
    /* Performance: Separate this layer from the background for faster compositing */
    transform: translate3d(0, 0, 1px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Performance: Isolate stacking context for backdrop-filter optimization */
    isolation: isolate; 
    contain: content;
}

/* Intro Section Specific Styles */
.intro-section {
    padding: 6rem 4rem;
    /* Performance: MDN-recommended skip-of-paint for offscreen section */
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    /* Text left, Image right box */
    gap: 4rem;
    align-items: flex-start;
}

.intro-text h1 {
    font-size: 2.25rem;
    /* Down from 3rem */
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.intro-text {
    font-size: 0.9rem;
    /* Slightly smaller for better balance */
    line-height: 1.85;
    color: #334155;
    margin-right: 1rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

/* Identity Flags Below Intro - Polished Placement */
.intro-flags {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
    align-items: center;
    flex-wrap: nowrap; /* Forces one line on mobile */
    padding-bottom: 1rem;
}

.flag-item {
    height: 52px; /* Base height */
    width: auto;
    flex-shrink: 1; /* Allow slight scaling if necessary */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Containment: Isolated paint/layout box */
    contain: layout paint;
    box-shadow: 
        0 4px 10px -2px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: help;
    border-radius: 6px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
}

/* Responsive Scaling for Small Screens */
@media screen and (max-width: 480px) {
    .intro-flags {
        gap: 0.75rem;
    }
    .flag-item {
        height: 38px; /* Scales down to ensure 1-line fit on tiny devices */
    }
}

.flag-item svg,
.flag-item img {
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}

.flag-item:hover {
    transform: translateY(-8px) scale(1.08) rotate(3deg);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.15);
}

.flag-item:nth-child(even):hover {
    transform: translateY(-8px) scale(1.08) rotate(-3deg);
}

.intro-side {
    position: sticky;
    top: 120px;
}

.intro-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f1f5f9;
    border: 4px solid white;
    transform: rotate(2deg);
    /* Slightly playful angle */
    transition: transform 0.3s ease;
}

.intro-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

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

.recent-posts-sidebar {
    margin-top: 3rem;
    /* Performance: Skip-of-paint for offscreen sidebar blog modules */
    content-visibility: auto;
    contain-intrinsic-size: 1px 300px;
}

.recent-posts-sidebar h3 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    font-weight: 600;
    opacity: 0.8;
}

.luux-card-mini {
    background: var(--fg-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: block;
    text-decoration: none !important;
}

.luux-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.luux-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.luux-card-mini:hover::before {
    opacity: 1;
}

.luux-card-mini-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.luux-card-mini:hover .luux-card-mini-title {
    color: var(--primary-color);
}

.luux-card-mini-meta {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.luux-card-mini-meta i {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.6;
}

@media screen and (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-side {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .intro-text h1 {
        font-size: 2.5rem;
        text-align: left;
    }

    .intro-text {
        text-align: left;
    }

    .intro-section {
        padding: 4rem 2rem;
    }
}


/* Smooth Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    background-size: 100% 2px;
}

/* Modern Luux Cards for Blog Listing */
.luux-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Containment: Isolate card repaints */
    contain: layout paint;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Playful Gradient "Crown" on cards */
.luux-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0.8;
}

.luux-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.luux-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.luux-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.luux-card-meta {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.luux-tags-inline a {
    color: #64748b;
    margin-right: 0.3rem;
    text-decoration: none;
    background-image: none;
    transition: color 0.2s ease;
}

.luux-tags-inline a:hover {
    color: var(--primary-color);
}

.luux-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.luux-card-title a {
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: var(--text-color);
    background-image: none;
    /* Strip gradient underline */
    transition: color 0.2s ease;
}

.luux-card-title a:hover {
    color: var(--primary-color);
}

.luux-card-excerpt {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: var(--text-article);
}

.luux-card-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 1rem;
}

.luux-card-footer a {
    background: #f4f6f8;
    color: var(--text-color);
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-sm);
    /* Pill-shaped button */
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    background-image: none;
    display: inline-block;
}

.luux-card-footer a:hover {
    background: #e8ecf0;
    border-color: #cbd5e1;
    color: var(--text-color);
}

/* Override the aggressive global gradient for the Lesen button */
.luux-card-footer a.luux-lesen-btn {
    background: #f4f6f8 !important;
    color: var(--text-color) !important;
}

.luux-card-footer a.luux-lesen-btn:hover {
    background: #e8ecf0 !important;
    transform: translateY(0);
    box-shadow: none;
}

.luux-card-footer a:hover {
    background: #e8ecf0;
    color: var(--text-color);
}

/* Images inside posts */
article img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    height: auto;
}

/* Button enhancements — minimal style matching reading card buttons */
.btn,
.button {
    background: #f4f6f8;
    color: var(--text-color) !important;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    height: auto;
    /* Override Spectre's fixed height: 1.8rem */
    line-height: 1.4;
    /* Override Spectre's line-height: 1.2rem */
    text-align: center;
    letter-spacing: 0;
    background-image: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
}

.btn:hover,
.button:hover {
    background: #e8ecf0;
    border-color: #cbd5e1;
    color: var(--text-color) !important;
    transform: none;
    box-shadow: none;
}

/* Single Column Centered Layout for Blog Roll */
.luux-centered-layout .container {
    max-width: 1200px;
    margin: 0 auto;
}

.luux-page-content {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.luux-page-content h1 {
    font-size: var(--text-h1);
    color: var(--text-color);
    margin-top: 0;
}

.luux-blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

@media screen and (max-width: 768px) {
    .luux-blog-list {
        grid-template-columns: 1fr;
    }

    #header .navbar-section {
        padding-right: 0;
    }
}

/* Fix spacing for lists and nested lists */
li>p {
    margin-bottom: 0;
}

ul>li {
    margin-bottom: 1rem;
}

ul>li>ul {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

ul>li>ul>li {
    margin-bottom: 0.25rem;
}

/* -------------------------------------
 *  Single Writing Page (Reading Card)
 * ------------------------------------- */

.luux-reading-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--fg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

/* For mobile gracefully fallback */
@media screen and (max-width: 768px) {
    .luux-reading-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
    }
}

.luux-reading-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
}

.luux-reading-header h1 {
    font-size: var(--text-h1);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.luux-reading-header h3 {
    font-size: 1.25rem;
    color: #64748b;
    margin-top: 0;
    font-weight: 400;
}

.luux-reading-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.luux-reading-meta .luux-tags-inline a {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-decoration: none;
    color: #64748b;
    background-image: none;
}

.luux-reading-meta .luux-tags-inline a:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

.luux-reading-content {
    font-size: var(--text-article);
    /* Scaled reading length */
    line-height: 1.8;
    color: #334155;
    word-wrap: break-word;
}


.luux-reading-content p {
    margin-bottom: 1.5rem;
}

.luux-reading-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: var(--text-h2);
    font-weight: 500;
    color: #0f172a;
}

.luux-reading-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-h3);
    color: #0f172a;
}

.luux-reading-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: #f8fafc;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.luux-reading-content pre {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
}

.luux-reading-content img {
    margin: 2rem auto;
    display: block;
}

/* Responsive Image Float & Caption - Bulletproof */
.luux-reading-content .float-right-responsive {
    float: right !important;
    width: 350px !important;
    margin: 0.5rem 0 1.5rem 2.5rem !important;
    padding: 0 !important;
    z-index: 10;
    position: relative;
    display: block !important;
}

.luux-reading-content .float-right-responsive img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 !important;
}

.luux-reading-content .image-caption {
    display: block !important;
    margin-top: 0.75rem !important;
    font-size: 0.82rem !important;
    color: #64748b !important;
    text-align: center !important;
    font-style: italic !important;
    font-family: var(--font-body) !important;
    line-height: 1.4 !important;
}

@media screen and (max-width: 768px) {
    .luux-reading-content .float-right-responsive {
        float: none !important;
        width: 100% !important;
        margin: 0 0 2rem 0 !important;
        max-width: 100% !important;
    }
}

.luux-reading-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 600px) {
    .luux-reading-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .luux-reading-header {
        margin-bottom: 1.5rem;
    }
}

/* Media Split Layout for Post Content (e.g. CD layouts) */
.luux-media-split {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.luux-media-split .luux-media-split-content {
    flex: 1;
    min-width: 250px;
}

.luux-media-split .luux-media-split-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.luux-media-split .luux-media-split-image {
    flex-basis: 35%;
    max-width: 300px;
    min-width: 200px;
}

.luux-media-split .luux-media-split-image img {
    margin: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

@media screen and (max-width: 600px) {
    .luux-media-split {
        flex-direction: column-reverse;
        /* Image above text gracefully */
        gap: 1.5rem;
    }
}

/* Contact Page Grid Layout */
.luux-contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.luux-contact-layout>.luux-contact-info {
    flex: 1;
    min-width: 250px;
}

.luux-contact-layout>.luux-contact-form {
    flex: 1.5;
    min-width: 300px;
}

@media screen and (max-width: 600px) {
    .luux-contact-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Modern Form Elements */
.luux-contact-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.luux-contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.luux-contact-form label {
    font-weight: 600;
    display: block;
    color: var(--text-color);
    font-size: 0.85rem;
}

.luux-contact-form .required {
    /* Required star */
    color: var(--primary-color);
    margin-left: 2px;
}

.luux-contact-form input[type="text"],
.luux-contact-form input[type="email"],
.luux-contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
    margin-top: 0.2rem;
}

.luux-contact-form input:focus,
.luux-contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    /* Purple Soft Glow */
    background: #ffffff;
}

.luux-contact-form input[type="submit"] {
    display: inline-block;
    padding: 0.65rem 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--text-color);
    background: #f4f6f8;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    align-self: flex-start;
    margin-top: 0.3rem;
}

.luux-contact-form input[type="submit"]:hover {
    background: #e8ecf0;
    border-color: #cbd5e1;
    box-shadow: none;
    transform: none;
}

/* Contact form success banner */
.luux-form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #166534;
    font-weight: 500;
}

.luux-form-success-icon {
    font-size: 1.1rem;
    color: #22c55e;
    flex-shrink: 0;
}







/* -------------------------------------
 *  Mobile Menu & Responsive Redesign
 * ------------------------------------- */

/* Standardize desktop/mobile switch point */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle-wrapper {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .navbar-section.desktop-menu {
        display: none !important;
    }

    #header .container {
        padding-right: 0 !important;
    }

    #header .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 0 1rem;
    }

    #header .navbar-section {
        padding-right: 0 !important;
    }

    .mobile-menu-toggle-wrapper {
        display: flex;
        align-items: center;
        z-index: 10001;
        margin-right: -0.75rem;
        /* Ensure stable vertical position */
        align-self: center;
    }

    /* Override more Quark scroll-jumps for toggler */
    body.header-fixed.header-animated #header.scrolled ~ .mobile-menu .button_container,
    body.header-fixed.header-animated #header.scrolled .mobile-menu .button_container {
        top: auto !important;
    }

    /* Mobile Header Offset Adjustment */
    body:not(.home) #page-wrapper {
        padding-top: 80px;
    }

    #header {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transform: translateZ(0);
    }

    .content-wrapper {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.94)) !important;
        transform: translate3d(0, 0, 1px);
    }
}

/* Hamburger Toggle Styling */
.mobile-menu .button_container {
    position: relative !important;
    /* Overrides Quark's absolute/fixed jumps */
    top: auto !important;
    right: auto !important;
    height: 24px;
    width: 28px;
    cursor: pointer;
    z-index: 10002;
    transition: opacity 0.25s ease;
}

.mobile-menu .button_container:hover {
    opacity: 0.7;
}

.mobile-menu .button_container span {
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.35s ease;
}

.mobile-menu .button_container span.top {
    top: 0;
}

.mobile-menu .button_container span.middle {
    top: 10px;
}

.mobile-menu .button_container span.bottom {
    top: 20px;
}

/* Active State (X conversion) */
.mobile-menu .button_container.active span.top {
    transform: translateY(10px) rotate(45deg);
    background: var(--primary-color);
}

.mobile-menu .button_container.active span.middle {
    opacity: 0;
}

.mobile-menu .button_container.active span.bottom {
    transform: translateY(-10px) rotate(-45deg);
    background: var(--primary-color);
}

/* -------------------------------------
 *  Modern Glass Overlay Menu
 * ------------------------------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    background: var(--glass-bg);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay.open {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.overlay .mobile-logo {
    margin-bottom: 2rem;
    transform: translateY(-20px);
    transition: transform 0.5s ease;
}

.overlay.open .mobile-logo {
    transform: translateY(0);
}

.overlay nav.overlay-menu {
    width: 100%;
    text-align: center;
}

/* Cleanup Tree legacies in Mobile Menu */
.overlay-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.overlay-menu ul li {
    margin: 0;
    padding: 0 !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    background: transparent !important;
    border: none !important;
    position: relative;
}

.overlay-menu ul li:before {
    content: none !important;
    /* Remove Quark's legacy bullets */
}

.overlay.open .overlay-menu ul li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered load for menu items */
.overlay.open .overlay-menu ul li:nth-child(1) {
    transition-delay: 0.05s;
}

.overlay.open .overlay-menu ul li:nth-child(2) {
    transition-delay: 0.1s;
}

.overlay.open .overlay-menu ul li:nth-child(3) {
    transition-delay: 0.15s;
}

.overlay.open .overlay-menu ul li:nth-child(4) {
    transition-delay: 0.2s;
}

.overlay.open .overlay-menu ul li:nth-child(5) {
    transition-delay: 0.25s;
}

.overlay-menu ul li a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-color);
    text-decoration: none !important;
    background-image: none !important;
    letter-spacing: -0.01em;
    display: block;
    padding: 12px 40px;
    word-wrap: break-word;
    text-align: left !important;
}

.overlay-menu ul li a:hover,
.overlay-menu ul li a.active {
    color: var(--primary-color) !important;
    background: transparent !important;
}

.overlay-menu ul li a.dummy-link {
    cursor: pointer;
}

/* Custom styled Toggler */
.overlay-menu .toggler {
    position: absolute;
    right: 20px;
    top: 24px;
    /* Center with the first line of text */
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
}

.overlay-menu .toggler:before {
    content: "\f105" !important;
    /* FontAwesome Angle Right */
    font-family: 'FontAwesome' !important;
    font-size: 1.4rem;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.overlay-menu li.tree-opened>.toggler:before {
    transform: rotate(90deg);
    content: "\f107" !important;
    /* FontAwesome Angle Down */
    color: var(--primary-color);
}

.overlay-menu li.tree-empty>.toggler {
    display: none !important;
}

/* Nested Items Indentation & Spacing */
.overlay-menu ul ul {
    margin: 0 !important;
    padding-left: 20px !important;
    background: rgba(0, 0, 0, 0.02);
}

.overlay-menu ul ul li a {
    font-size: 1.3rem;
    opacity: 0.85;
    padding: 10px 40px;
}

/* Prevent scrolling when menu is open */
body.mobile-nav-open {
    overflow: hidden !important;
}

/* --- Form & Feedback Notices --- */
.notices {
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    border-left: 6px solid transparent;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notices.error,
.notices.red {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

.notices.success,
.notices.green {
    background: #f0fdf4;
    color: #166534;
    border-color: #22c55e;
}

.notices.warning,
.notices.yellow {
    background: #fffbeb;
    color: #92400e;
    border-color: #f59e0b;
}

.notices p {
    margin: 0;
}

/* --- Captcha Styling Fixes --- */
.basic-captcha {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 100%;
}

.basic-captcha img {
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    height: auto;
    max-height: 50px;
    background: white;
}

.basic-captcha .reload-captcha-button {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-left: none;
    border-right: none;
    padding: 0 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.basic-captcha .reload-captcha-button:hover {
    background: #e2e8f0;
}

.basic-captcha .reload-captcha-button svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.basic-captcha input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    margin-top: 0 !important;
    flex: 1;
}

/* --- "Playful" Navigation Icons --- */
.navbar .navbar-section a i.la,
.mobile-container .overlay-menu a i.la {
    margin-right: 0.5rem;
    font-size: 1.05em;
    /* Removed vertical-align in favor of flex centering on parent <a> */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Emoji nav icon — visually tuned to match i.la icon sizing */
.navbar-brand,
.navbar .navbar-section a,
.mobile-container .overlay-menu a {
    background-image: none !important;
    text-decoration: none !important;
}

.navbar .navbar-section a .nav-emoji,
.mobile-container .overlay-menu a .nav-emoji {
    margin-right: 0.3rem;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar .navbar-section a:hover .nav-emoji,
.mobile-container .overlay-menu a:hover .nav-emoji {
    transform: scale(1.3) rotate(-8deg);
}

/* Specific Home SVG Sprite — Retro Arcade Feel */
.alien-icon {
    display: inline-flex !important;
    align-items: center;
    position: relative;
    /* Promotion: Keeps animated sprite in GPU context */
    transform: translateZ(0); 
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    transform-origin: center bottom;
    vertical-align: middle;
}

/* Nudge the hero version specifically into better baseline alignment */
.hero-alien {
    margin-bottom: 0.25em; /* Lifts it up noticeably */
}

.alien-icon svg {
    display: block !important;
    width: 100%;
    height: 100%;
    overflow: visible !important;
}

.alien-icon svg path {
    fill: #a78bfa !important; /* Force violet body */
}

/* Optional: use the gradient if the browser supports it, 
   but the solid fill above is the safe fallback */
.alien-icon svg path {
    fill: url(#alien-grad-desktop) !important;
}

.mobile-container .alien-icon svg path {
    fill: url(#alien-grad-mobile) !important;
}

.alien-icon svg .frame-b {
    opacity: 0;
}

/* Hover Animation: Sprite Frame Swapping & Sparkle Effects */
.alien-icon-trigger:hover .alien-icon,
.navbar-brand:hover .alien-icon {
    transform: translateY(-5px) scale(1.1) !important;
}

/* Colorful Pixel Confetti Burst */
.alien-icon::before,
.alien-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: -1; /* Confetti stays behind the alien */
}

.alien-icon-trigger:hover .alien-icon::before,
.navbar-brand:hover .alien-icon::before {
    opacity: 1;
    animation: alien-confetti-a 0.7s ease-out infinite;
}

.alien-icon-trigger:hover .alien-icon::after,
.navbar-brand:hover .alien-icon::after {
    opacity: 1;
    animation: alien-confetti-b 0.7s ease-out infinite 0.35s; /* Offset for more density */
}

@keyframes alien-confetti-a {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(0.5);
        box-shadow: 0 0 0 0 #ff00ff, 0 0 0 0 #ffcc00;
        opacity: 0;
    }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(1.6);
        box-shadow: 
            -20px -20px 0 1px #ff00ff, 
            25px -15px 0 0 #ffcc00, 
            -30px 10px 0 1.5px #00ffff;
        opacity: 0;
    }
}

@keyframes alien-confetti-b {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(0.5);
        box-shadow: 0 0 0 0 #00ffff, 0 0 0 0 #00ff00;
        opacity: 0;
    }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(1.6);
        box-shadow: 
            24px -24px 0 1px #00ffff, 
            -18px -12px 0 0 #00ff00, 
            32px 10px 0 1.2px #ff00ff;
        opacity: 0;
    }
}

.alien-icon-trigger:hover .alien-icon svg .frame-a,
.navbar-brand:hover .alien-icon svg .frame-a {
    animation: alien-frame-a 0.4s steps(1) infinite;
}

.alien-icon-trigger:hover .alien-icon svg .frame-b,
.navbar-brand:hover .alien-icon svg .frame-b {
    animation: alien-frame-b 0.4s steps(1) infinite;
}

/* Click Animation: Quick Squish */
.navbar-brand:active .alien-icon {
    transform: scale(0.85) translateY(4px) !important;
    transition: transform 0.1s;
}


@keyframes alien-frame-a {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes alien-frame-b {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


.navbar .navbar-section a:hover i.la,
.mobile-container .overlay-menu a:hover i.la {
    transform: scale(1.3) rotate(-8deg);
}

.nav-icon-slug-home {
    color: var(--primary-color);
}

.nav-icon-slug-writings {
    color: var(--secondary-color);
}

.nav-icon-slug-workshops {
    color: #f59e0b;
}

.nav-icon-slug-uber-mich {
    color: #3b82f6;
}

.nav-icon-slug-kontakt {
    color: #10b981;
}

/* Sub-menu icon styling (slightly more discreet) */
.dropmenu ul li a i.la,
.tree li a i.la {
    font-size: 1rem;
    opacity: 0.85;
}

/* --- FINAL DROPDOWN CARET CLEANUP --- */
/* Broadly hide ALL potential caretaker artifacts (including the Hex 0107 boxes) */
.navbar a::after,
.navbar a:after,
.dropmenu a::after,
.dropmenu a:after,
.has-children a::after,
.has-children a:after,
.dropmenu li.has-children:after,
.dropmenu li.has-children::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Tighten horizontal spacing of navbar links and fix vertical alignment */
.navbar .navbar-section .dropmenu ul li a {
    padding: 0 9px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap;
}

/* Eliminate mysterious horizontal gaps between menu items */
.navbar .navbar-section .dropmenu ul {
    justify-content: flex-start !important;
}

.navbar .navbar-section .dropmenu ul li {
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/* Correctly Re-introduce our Line Awesome dropdown arrow */
/* We target the <a> inside .has-children with high specificity */
body #page-wrapper .navbar .navbar-section .dropmenu ul li.has-children>a::after {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    content: "\f107" !important;
    font-family: "Line Awesome Free" !important;
    font-weight: 900 !important;
    margin-left: 0.15rem !important;
    font-size: 0.7rem !important;
    color: inherit;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

/* Mobile Toggler Font Fix (Ensures no boxes on mobile) */
.overlay-menu .toggler::before,
.overlay-menu .toggler:before {
    font-family: "Line Awesome Free" !important;
    font-weight: 900 !important;
}

/* --- HIDDEN ARTIFACT FIX (BEFORE) --- */
/* Hide any legacy ::before pseudo-elements that might be causing the character box artifact */
.navbar a::before,
.navbar a:before,
.dropmenu a::before,
.dropmenu a:before,
.has-children a::before,
.has-children a:before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}
/* --- 4K & ULTRA-WIDE OPTIMIZATIONS (min-width: 1600px) --- */
@media screen and (min-width: 1600px) {
    :root {
        --text-base: 1.1rem; 
        /* Scaled up from 0.85rem for better legibility and line-length control */
        --text-article: 1.15rem; 
        /* Scaled up from 0.875rem */
        --text-h1: 2.6rem;
        --text-h2: 1.95rem;
        --text-h3: 1.65rem;
        --text-hero: 5.5rem;
    }

    .content-wrapper {
        max-width: 1600px;
        padding: 5rem 4rem;
    }

    .luux-centered-layout .container,
    #header .container {
        max-width: 1600px;
    }

    .luux-reading-card {
        max-width: 1350px;
        padding: 5.5rem 7rem;
        /* Balanced reading width with premium negative space */
    }
    .intro-grid {
        grid-template-columns: 1fr 480px;
        gap: 6rem;
    }

    .hero-title {
        font-size: clamp(4.5rem, 10vw, 6.5rem);
    }

    .hero-arrow {
        width: 92px;
        height: 92px;
        font-size: 2.6rem;
    }
    
    .intro-text {
        font-size: 1.15rem;
        line-height: 2.0;
    }
}

