/* =====================================================================
   ypsilonminus – Dark Avant-Garde Gallery Architecture
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@300;400;700&family=JetBrains+Mono:wght@300;400;500&family=Oswald:wght@200;400;700&display=swap');

:root {
    --bg-dark: #0a0b0e;
    --bg-panel: #12141a;
    --bg-card: #161822;
    --text-primary: #f2f3f7;
    --text-muted: #8b909e;
    --text-dim: #525665;
    
    --border-hairline: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.4);
    
    --accent-fryth: #c93b2b;
    --accent-stiehler: #2b6ec9;
    --accent-bigl: #3aa35c;
    --accent-gold: #c4a77d;
    --status-available: #3aa35c;

    --font-display: 'Oswald', 'Anton', sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* =====================================================================
   1. Typography Mix (Condensed / Narrow & Monospace)
   ===================================================================== */

h1, h2, h3, .brand-title, .section-title, .hero-headline, .artist-card-name, .artist-title, .artwork-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    border-radius: 0px !important; /* STRICTLY NO ROUND BUTTONS */
}

/* =====================================================================
   2. Architectural Buttons (Strictly No Round / Pill Buttons!)
   ===================================================================== */

.btn-architectural {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 24px;
    border-radius: 0px !important; /* Strictly sharp corners */
    border: 1px solid var(--border-hairline);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-architectural:hover, .btn-architectural.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.btn-architectural-transparent {
    background: transparent;
}

.btn-architectural-full {
    width: 100%;
}

.btn-filter-pill {
    padding: 8px 16px;
}

.btn-inquire-lg {
    width: 100%;
    padding: 18px 24px;
    font-size: 13px;
}

/* =====================================================================
   3. Kinetic Hairlines & Counter-Scrolling Grid Rules
   ===================================================================== */

.hairline-h {
    width: 100%;
    height: 1px;
    background: var(--border-hairline);
    position: relative;
    overflow: hidden;
}

.hairline-h::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: counterSweep 8s linear infinite;
}

@keyframes counterSweep {
    0% { left: -40%; }
    100% { left: 140%; }
}

/* =====================================================================
   4. Floating Global Header & Subdomain Switcher
   ===================================================================== */

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 11, 14, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-hairline);
}

.brand-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.brand-scope-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-hairline);
    padding-left: 10px;
}

.nav-center {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.subdomain-label {
    margin-right: -10px;
}

.subdomain-select {
    background: transparent;
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 0;
    outline: none;
    cursor: pointer;
}

.subdomain-select option {
    background: var(--bg-panel);
    color: var(--text-primary);
}

/* =====================================================================
   5. Hero Section (Atmospheric 3D Space)
   ===================================================================== */

.hero-section {
    position: relative;
    height: 90vh;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 40px;
    background: radial-gradient(circle at 50% 30%, #1c202a 0%, #0a0b0e 75%);
    overflow: hidden;
    margin-top: 60px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: contrast(1.1) brightness(0.85);
}

.hero-overlay-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-super {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.hero-headline {
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-headline .light {
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
}

.hero-headline .bold {
    font-weight: 700;
    color: #ffffff;
}

.hero-description {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

/* =====================================================================
   6. Artists Showcase & Cards
   ===================================================================== */

.section-wrapper {
    padding: 80px 40px;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1;
}

.artist-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    padding: 32px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-active);
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent, #ffffff);
    opacity: 0.8;
}

.artist-card-fryth { --card-accent: var(--accent-fryth); }
.artist-card-stiehler { --card-accent: var(--accent-stiehler); }
.artist-card-bigl { --card-accent: var(--accent-bigl); }

.artist-card-media {
    position: relative;
    width: calc(100% + 64px);
    margin: -32px -32px 24px -32px;
    height: 240px;
    overflow: hidden;
    background: #000;
}

.artist-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
    filter: brightness(0.85) contrast(1.05);
}

.artist-card:hover .artist-card-media img {
    transform: scale(1.06);
    filter: brightness(1) contrast(1.1);
}

.artist-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 24, 34, 1) 0%, rgba(22, 24, 34, 0.4) 40%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.artist-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(10, 11, 14, 0.85);
    border: 1px solid var(--border-hairline);
    padding: 4px 8px;
    color: #ffffff;
    z-index: 2;
}

.artist-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111318;
}

.text-accent-fryth { color: var(--accent-fryth); }
.text-accent-stiehler { color: var(--accent-stiehler); }
.text-accent-bigl { color: var(--accent-bigl); }

.hero-backdrop-default {
    background-image: url('/uploads/artists/fryth/visual/paintings/Die Schoepfung - Oel ErdeAscheTaubendreck on canvas - 300x180-Triptychon.jpg');
}

.artist-card-header {
    margin-bottom: 20px;
}

.artist-card-name {
    font-size: 38px;
    margin-bottom: 8px;
}

.artist-pseudonyms {
    color: var(--text-dim);
}

.artist-bio-preview {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.artist-disciplines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.artist-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-hairline);
    padding-top: 20px;
    margin-top: 20px;
}

/* =====================================================================
   7. Featured Artworks & Grid
   ===================================================================== */

.artworks-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.artworks-masonry-artist {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.artwork-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.artwork-item:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px);
}

.artwork-media-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.artwork-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-item:hover .artwork-media-container img {
    transform: scale(1.05);
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14161f;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
}

.artwork-caption {
    padding: 20px;
}

.artwork-caption-artist {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.artwork-caption-title {
    font-size: 20px;
    margin-bottom: 4px;
}

.artwork-caption-title-sm {
    font-size: 17px;
}

.artwork-caption-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* =====================================================================
   8. Artist Split-Screen Page
   ===================================================================== */

.artist-page-wrapper {
    margin-top: 80px;
}

.artist-split-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.artist-portrait-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 12px;
    margin-bottom: 24px;
}

.artist-portrait-img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.15);
    display: block;
}

.artist-portrait-placeholder {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161822;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.artist-subdomain-meta {
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 12px;
}

.artist-bio-full {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.artist-title {
    font-size: clamp(48px, 7vw, 90px);
    line-height: 0.95;
    margin-bottom: 20px;
}

.artist-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

/* =====================================================================
   9. Artwork Detail Page
   ===================================================================== */

.breadcrumb-nav {
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.breadcrumb-active {
    color: #ffffff;
}

.artwork-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.artwork-frame-box {
    background: #000000;
    border: 1px solid var(--border-hairline);
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    cursor: zoom-in;
}

.artwork-zoom-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(10, 11, 14, 0.88);
    border: 1px solid var(--border-hairline);
    padding: 6px 12px;
    pointer-events: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.artwork-frame-box:hover .artwork-zoom-hint {
    border-color: #ffffff;
}

.artwork-frame-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.artwork-text-box {
    margin-top: 40px;
    padding: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
}

.artwork-text-content {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-line;
}

.artwork-title-lg {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    margin: 12px 0 24px;
}

.artwork-meta-divider {
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.artwork-meta-value-mono {
    font-family: var(--font-mono);
    font-size: 14px;
}

.status-badge-available {
    font-family: var(--font-mono);
    color: var(--status-available);
    font-size: 13px;
}

.related-section {
    margin-top: 50px;
}

.related-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 12px;
    transition: border-color 0.2s ease;
}

.related-card:hover {
    border-color: var(--border-active);
}

.related-thumb {
    width: 50px;
    height: 50px;
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================================
   10. 3D Gallery View
   ===================================================================== */

.room3d-wrapper {
    margin-top: 60px;
    min-height: 80vh;
}

.room3d-canvas-box {
    background: #000;
    border: 1px solid var(--border-hairline);
    height: 65vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room3d-center-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.room3d-accent-label {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.room3d-heading {
    font-size: 28px;
    margin-bottom: 16px;
}

.room3d-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* =====================================================================
   11. Persistent Bottom Waveform Audio Player
   ===================================================================== */

.persistent-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(10, 11, 14, 0.88);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-hairline);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn-play {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hairline);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
}

.player-btn-play:hover {
    background: #ffffff;
    color: #000000;
}

.player-wave-canvas {
    width: 240px;
    height: 32px;
}

.player-track-info {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.player-meta-right {
    display: flex;
    gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .global-header {
        padding: 14px 20px;
    }
    .nav-center {
        display: none;
    }
    .section-wrapper, .hero-section {
        padding: 40px 20px;
    }
    .artwork-detail-layout {
        grid-template-columns: 1fr;
    }
    .persistent-player-bar {
        padding: 0 20px;
    }
}

/* =====================================================================
   7. Architectural Custom Cursor
   ===================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: #ffffff;
    pointer-events: none;
    z-index: 99999;
    transform: translate3d(-100px, -100px, 0);
    border-radius: 0; /* Strictly sharp */
}

.cursor-crosshair {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 99998;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                margin 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s ease, 
                background-color 0.2s ease;
    border-radius: 0 !important; /* Strictly sharp architectural crosshair */
}

.cursor-crosshair.cursor-hover {
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.04);
}

.cursor-crosshair.cursor-active {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    border-color: var(--accent-fryth);
}

/* =====================================================================
   8. Deep-Zoom Lightbox Overlay
   ===================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(12px);
    z-index: 90000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(18, 20, 26, 0.8);
}

.lightbox-controls {
    display: flex;
    gap: 8px;
}

.btn-lb-zoom {
    padding: 6px 14px;
    font-size: 11px;
}

.lightbox-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.lightbox-viewport img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-top: 1px solid var(--border-hairline);
    background: rgba(18, 20, 26, 0.8);
}

/* =====================================================================
   9. Discrete Artwork Inquiry Modal
   ===================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(10px);
    z-index: 95000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    width: 90%;
    max-width: 580px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-hairline);
}

.modal-close-btn {
    padding: 4px 10px;
    font-size: 13px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 0 !important; /* Strictly sharp */
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.form-input-readonly {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

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

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.form-status {
    color: var(--accent-gold);
}

/* =====================================================================
   10. Three.js 3D Virtual Gallery Room Viewport & HUD
   ===================================================================== */
body.gallery3d-mode {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: fixed;
    top: 0;
    left: 0;
    touch-action: none;
}

body.gallery3d-mode main {
    height: 100vh;
    overflow: hidden;
}

body.gallery3d-mode .global-footer,
body.gallery3d-mode .counter-scroll-line {
    display: none !important;
}

.gallery3d-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0b0e;
}

.gallery3d-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.gallery3d-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery3d-topbar {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}

.gallery3d-top-left, .gallery3d-top-right {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery3d-scope-switcher {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 12, 16, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 4px 8px;
    backdrop-filter: blur(10px);
}

.btn-scope-pill {
    padding: 6px 12px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border: 1px solid transparent;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.btn-scope-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-scope-pill.active {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-color: var(--border-active);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.07);
}

.room-scope-indicator {
    color: var(--text-accent-primary, #ff0055);
}

@media (max-width: 900px) {
    .gallery3d-topbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 20px;
    }
    .gallery3d-scope-switcher {
        flex-wrap: wrap;
    }
}

.btn-gallery-back {
    padding: 8px 16px;
}

.gallery3d-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 14, 0.75);
    backdrop-filter: blur(8px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery3d-guide-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.guide-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    padding: 40px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.guide-title {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.05em;
    margin: 16px 0 8px;
}

.guide-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-guide-dismiss {
    padding: 12px 28px;
    background: #ffffff;
    color: #0a0b0e;
    font-weight: 700;
}

.btn-guide-dismiss:hover {
    background: var(--text-muted);
}

.gallery3d-artwork-hud {
    position: absolute;
    bottom: 80px;
    left: 40px;
    z-index: 25;
    background: rgba(18, 20, 26, 0.9);
    border: 1px solid var(--border-active);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.gallery3d-artwork-hud.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.hud-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hud-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.04em;
    margin: 4px 0 2px;
}

.hud-artist {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
}

.hud-details {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

.hud-actions {
    display: flex;
    gap: 12px;
}

/* =====================================================================
   11. 404 Error Screen Styling (Zero Inline Styles)
   ===================================================================== */
.error-404-container {
    padding: 120px 40px;
    font-family: var(--font-mono);
    color: #ffffff;
    background: var(--bg-dark);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-404-title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 0.08em;
}

.error-404-desc {
    margin-top: 16px;
    color: var(--text-muted);
}

.error-404-action {
    margin-top: 28px;
}

.error-404-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-hairline);
    color: var(--accent-fryth);
    text-transform: uppercase;
}

.error-404-link:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* =====================================================================
   12. Admin & Curator Dashboard Styles (Zero Inline Styles)
   ===================================================================== */
.admin-body {
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.admin-header {
    background: rgba(18, 20, 26, 0.95);
    border-bottom: 1px solid var(--border-active);
}

.btn-logout {
    padding: 6px 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.admin-main {
    padding-top: 80px;
    min-height: 100vh;
}

.admin-content, .admin-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
}

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header .brand-title {
    font-size: 36px;
    margin: 10px 0;
}

.admin-alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-left: 3px solid;
    font-family: var(--font-mono);
    font-size: 12px;
}

.admin-alert-error {
    background: rgba(201, 59, 43, 0.15);
    border-color: var(--accent-fryth);
    color: #ff8577;
}

.admin-alert-success {
    background: rgba(58, 163, 92, 0.15);
    border-color: var(--status-available);
    color: #79e39b;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.admin-stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    padding: 24px;
}

.admin-stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 10px;
    color: #ffffff;
}

.admin-section-block {
    margin-bottom: 60px;
}

.admin-actions-bar {
    display: flex;
    gap: 12px;
}

.admin-table-wrapper {
    background: var(--bg-panel);
    border: 1px solid var(--border-hairline);
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-active);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-hairline);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-td-thumb {
    width: 60px;
}

.admin-thumb-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid var(--border-hairline);
    display: block;
}

.admin-td-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-inline-form {
    display: inline;
}

.btn-danger {
    color: var(--accent-fryth);
    border-color: rgba(201, 59, 43, 0.4);
}

.btn-danger:hover {
    background: var(--accent-fryth);
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.admin-upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-active);
    padding: 24px;
    margin-bottom: 30px;
}

.admin-upload-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 16px;
}

.admin-autodetect-badge {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-gold);
    display: none;
}

.admin-autodetect-badge.active {
    display: block;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
    accent-color: var(--status-available);
    width: 16px;
    height: 16px;
    border-radius: 0;
}

.form-select {
    cursor: pointer;
}

.form-select option, .form-select optgroup {
    background: var(--bg-panel);
    color: var(--text-primary);
}

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

.admin-back-link:hover {
    color: #ffffff;
}



/* =====================================================================
   12. Kinetic Marquee & Avant-Garde Typography Styles
   ===================================================================== */
.marquee-track-wrapper {
    width: 100%;
    overflow: hidden;
    background: #0d0f14;
    border-bottom: 1px solid var(--border-hairline);
    padding: 8px 0;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    animation: marqueeScroll 35s linear infinite;
}

.marquee-track .sep {
    color: var(--accent-gold);
    opacity: 0.7;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-kinetic-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: clamp(48px, 9.5vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 16px 0 28px;
    overflow: hidden;
}

.hero-char-wrap {
    display: inline-block;
    overflow: hidden;
}

.hero-char {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

.hero-char-bold .hero-char {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.hero-hud-coords {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 15;
    pointer-events: none;
}

.hero-hud-coords span {
    font-size: 10px;
    color: var(--accent-gold);
    background: rgba(10, 11, 14, 0.6);
    padding: 4px 8px;
    border: 1px solid var(--border-hairline);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 15;
}

.hero-scroll-indicator .mono-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--text-dim);
}

.scroll-line-v {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

.artist-card-num {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    z-index: 5;
    pointer-events: none;
}

.artist-subcat-section {
    margin: 20px 0 32px;
}

.artist-subcat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.btn-subcat-pill {
    padding: 6px 14px;
    font-size: 11px;
    background: #12141a;
    border: 1px solid var(--border-hairline);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.btn-subcat-pill:hover, .btn-subcat-pill.active {
    background: #ffffff;
    color: #0a0b0e;
    border-color: #ffffff;
    font-weight: 700;
}

/* Verbal Typographic Literary Card */
.artwork-verbal-card {
    background: #111319;
    border: 1px solid var(--border-hairline);
    padding: 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.artwork-verbal-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    background: #151820;
}

.verbal-badge {
    color: var(--accent-gold);
    font-size: 10px;
    margin-bottom: 8px;
}

.verbal-title {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.03em;
    color: #ffffff;
    margin: 4px 0 6px;
    line-height: 1.2;
}

.verbal-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.verbal-excerpt {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.verbal-read-link {
    color: #ffffff;
    font-size: 11px;
    align-self: flex-start;
    border-bottom: 1px solid var(--border-active);
    padding-bottom: 2px;
}

/* Tonal Audio / Project Card */
.artwork-tonal-card {
    background: #111319;
    border: 1px solid var(--border-hairline);
    padding: 28px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.artwork-tonal-card:hover {
    border-color: #3a86ff;
    transform: translateY(-4px);
    background: #141722;
}

.tonal-badge {
    color: #3a86ff;
    font-size: 10px;
}

.tonal-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: #ffffff;
    margin: 8px 0 4px;
}

.tonal-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.tonal-play-link {
    color: #ffffff;
    font-size: 11px;
    border-bottom: 1px solid rgba(58, 134, 255, 0.6);
    padding-bottom: 2px;
    margin-top: 14px;
    display: inline-block;
}

.tonal-thumb-wrap {
    position: relative;
    width: calc(100% + 56px);
    margin: -28px -28px 18px -28px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #090a0f;
}

.tonal-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) contrast(110%);
    transition: filter 0.3s ease, transform 0.4s ease;
    display: block;
}

.artwork-tonal-card:hover .tonal-thumb-wrap img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.04);
}

.tonal-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 10, 15, 0.15) 0%, rgba(17, 19, 25, 0.95) 100%);
    pointer-events: none;
}

.tonal-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Responsive Brutalist Media Embeds (YouTube & SoundCloud) */
.artwork-text-content iframe {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border-hairline);
    border-radius: 0;
    margin: 1.5rem 0;
    display: block;
    background: #000000;
}

.artwork-text-content iframe[src*="youtube.com"],
.artwork-text-content iframe[src*="youtu.be"] {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 280px;
}

.artwork-text-content iframe[src*="soundcloud.com"] {
    min-height: 166px;
    height: auto;
}

.tonal-wave-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    position: absolute;
    top: 24px;
    right: 24px;
}

.tonal-wave-icon span {
    width: 2px;
    background: #3a86ff;
    animation: waveBar 1.2s infinite ease-in-out alternate;
}

.tonal-wave-icon span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.tonal-wave-icon span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.tonal-wave-icon span:nth-child(3) { height: 10px; animation-delay: 0.5s; }
.tonal-wave-icon span:nth-child(4) { height: 16px; animation-delay: 0.2s; }
.tonal-wave-icon span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes waveBar {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.artwork-cat-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10, 11, 14, 0.85);
    border: 1px solid var(--border-hairline);
    padding: 3px 8px;
    font-size: 9px;
    color: var(--text-muted);
}

/* =====================================================================
   GLOBAL BRUTALIST ARCHITECTURAL FOOTER
   ===================================================================== */
.global-footer {
    background: #08090d;
    border-top: 1px solid var(--border-subtle);
    padding: 80px 48px 120px 48px;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-left {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-meta-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.footer-host-meta {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    padding-top: 8px;
    border-top: 1px solid var(--border-hairline);
}

.footer-right {
    display: flex;
    gap: 60px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.footer-nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom-bar {
    max-width: 1400px;
    margin: 60px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 10px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .global-footer {
        padding: 50px 24px 110px 24px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
    .footer-right {
        flex-wrap: wrap;
        gap: 40px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =====================================================================
   IMPRESSUM & LEGAL MODAL / PAGE
   ===================================================================== */
.modal-card-legal {
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    background: #0d0f15;
    border: 1px solid var(--border-active);
    padding: 36px;
}

.modal-legal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-hairline);
}

.legal-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.legal-org, .legal-org-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
}

.legal-line, .legal-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 4px 0;
}

.legal-line strong, .legal-text strong {
    color: var(--text-primary);
}

.legal-link, .legal-inline-link {
    color: #3a86ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-link:hover, .legal-inline-link:hover {
    color: #68a2ff;
}

.legal-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.legal-actions-bar, .legal-actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-hairline);
}

/* Standalone Legal Page Wrapper */
.legal-page-wrapper {
    min-height: 80vh;
    padding-top: 120px;
    padding-bottom: 120px;
}

.legal-page-container {
    max-width: 840px;
    margin: 0 auto;
}

.legal-card-main {
    background: var(--bg-panel);
    border: 1px solid var(--border-medium);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.legal-block {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-hairline);
}

.legal-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-vat {
    font-size: 15px;
    color: #3a86ff;
    font-weight: 600;
    margin-top: 4px;
}

/* =====================================================================
   DSGVO-KONFORME COOKIE CONSENT ABFRAGE
   ===================================================================== */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 64px;
    right: 28px;
    z-index: 92000;
    max-width: 480px;
    width: calc(100% - 56px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.cookie-banner-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.cookie-banner-card {
    background: rgba(13, 15, 21, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-hairline);
}

.cookie-version-tag {
    font-size: 10px;
    color: #3a86ff;
    letter-spacing: 0.1em;
}

.cookie-banner-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-details-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-details-collapse.active {
    max-height: 320px;
    opacity: 1;
    padding: 12px 0 6px 0;
}

.cookie-category-item {
    background: rgba(25, 28, 38, 0.6);
    border: 1px solid var(--border-hairline);
    padding: 12px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cookie-category-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-badge {
    font-size: 9px;
    color: #3a86ff;
}

.cookie-category-desc {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.cookie-category-desc code {
    font-family: var(--font-mono);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 4px;
}

.cookie-links-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.cookie-legal-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
}

.cookie-legal-link:hover {
    color: var(--text-primary);
}

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

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-hairline);
}

.btn-cookie-reject, .btn-cookie-accept {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    font-size: 11px;
}

.btn-cookie-reject {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}

.btn-cookie-reject:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .cookie-banner-wrapper {
        bottom: 56px;
        left: 12px;
        right: 12px;
        width: auto;
    }
    .cookie-banner-card {
        padding: 16px;
    }
    .cookie-banner-actions {
        flex-direction: column;
    }
}
