/* =========================================
   GLOBAL
========================================= */

body {
    margin: 0;
    font-family: "laca-text-variable", sans-serif;
    background: #000;
    color: #fff;
    cursor: none;
}


/* =========================================
   HERO SECTION (HEADER)
========================================= */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vw * 0.5625);
    overflow: hidden;
    background: #000;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.hero:hover {
    filter: brightness(1.4);
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

#layerVideo {
    filter: brightness(1) blur(0px);
}


/* =========================================
   ABOUT ME SECTION
========================================= */

.aboutme-hero {
    position: relative;
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
}

/* Hintergrundbild */
.aboutme-hero .bg {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    filter: brightness(0.5);
    transition: filter 0.3s ease;
}

/* Vordergrundbild (Parallax + Scale) */
.aboutme-hero .fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    transform: scale(1.05) translate(0, 0);
    transform-origin: center;
    filter: brightness(0.5);
    transition: transform 0.25s ease-out, filter 0.3s ease;
}

/* Hover: Bilder werden heller */
.aboutme-hero:hover .bg,
.aboutme-hero:hover .fg {
    filter: brightness(1);
}

/* Button */
.aboutme-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 18px 50px;
    font-size: 1.6rem;
    border: 2px solid white;
    background: rgba(0,0,0,0.4);
    color: white;
    border-radius: 50px;
    cursor: none;
    z-index: 10;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Button Glow */
.aboutme-hero:hover .aboutme-button {
    box-shadow: 0 0 25px #ff9913;
    border-color: #ff9913;
    background: rgba(0,0,0,0.6);
}


/* =========================================
   CUSTOM CURSOR
========================================= */

.cursor-dot {
    position: fixed;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    transform: translate(-50%, -50%);
}
.cursor-dot.active {
    background: #ff9913;
    border-color: #ff9913;
    transform: translate(-50%, -50%) scale(1.3);
}



/* =========================================
   ABOUT TRIGGER BUTTON
========================================= */

.about-trigger {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.about-trigger button {
    background: white;
    border: 4px solid #ff9913;
    color: black;
    padding: 14px 40px;
    font-size: 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}

.about-trigger button:hover {
    background: #ff9913;
    color: black;
}


/* =========================================
   OVERLAY (BLUR + FADE)
========================================= */

.about-overlay {
    position: fixed;
    inset: 0;
    /* Start transparent and without backdrop so hidden overlays
       don't apply a permanent blur/dim to the page (fixes missing footer) */
    background: rgba(0,0,0,0.0);
    display: flex;
    justify-content: center;
    align-items: center;
     /* Keep hidden overlay behind most content so transparent overlay
         doesn't visually cover the page (footer, etc.). When shown,
         the z-index is raised below in the .show rule. */
     z-index: 5;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.about-overlay.show {
    opacity: 1;
    pointer-events: auto;
    /* Apply dim + blur only when the overlay is actually shown */
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    z-index: 9990;
}


/* =========================================
   ABOUT WINDOW (LIQUID GLASS + ANIMATION)
========================================= */

.about-window {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    position: relative;

    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.about-overlay.show .about-window {
    opacity: 1;
    transform: scale(1) translateY(0);
}


/* =========================================
   ABOUT WINDOW CONTENT
========================================= */

.close-about {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.about-content {
    display: flex;
    gap: 40px;
}

.about-media img,
.about-media video {
    width: 100%;
    border-radius: 8px;
}

.about-media {
    flex: 1;
}

.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }
}

.about-overlay,
.about-overlay * {
    cursor: none !important;
}

.aboutme-hero {
    margin-bottom: 60px; /* oder 80px, je nach Gefühl */
}

/* --- Referenzen Text --- */
.scroll-dynamic-text {
    font-size: 85px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    display: block;
    transform: skew(0deg);
    letter-spacing: 0px;
    transition: transform 0.05s linear, letter-spacing 0.05s linear;
}

/* --- Layout --- */
.references-grid {
    column-count: 2;
    column-gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .references-grid {
        column-count: 1;
    }
}

/* --- Thumbnails --- */
.reference-item {
    break-inside: avoid;
    margin-bottom: 30px;
    cursor: pointer;
}

.reference-thumb {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.reference-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.reference-thumb:hover {
    transform: scale(1.03);
    filter: brightness(1.12);
}

/* --- Filter Buttons --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-buttons button {
    padding: 8px 16px; /* 60% vom Über-mich-Button */
    font-size: 12px;   /* 60% von ~18px */
    font-weight: 500;
    border-radius: 30px; /* 60% von 50px */
    border: 2px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.10);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.filter-buttons button:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.filter-buttons button.active {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.6);
}

.filter-buttons button.active {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
}

/* --- Modal --- */
.ref-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.ref-modal.hidden {
    display: none;
}

.ref-modal-backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.45);
}

.ref-modal-content {
    position: relative;
    width: 800px;
    max-width: 90%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 24px;
    transform: scale(0.95);
    opacity: 0;
    animation: modalIn 0.3s forwards ease;
}

@keyframes modalIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ref-modal-left {
    flex: 0 0 60%;
}

.ref-modal-right {
    flex: 1;
    color: #fff;
}

.ref-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* Scrollbarer Inhalt */
.about-window {
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10; /* wichtig, damit die Gradients oben liegen */
}

/* Fade oben */
.about-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px; /* größerer Fade */
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.85),  /* stärker */
        rgba(0,0,0,0.0)
    );
    z-index: 20;
}

/* Fade unten */
.about-window::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px; /* größerer Fade */
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),  /* stärker */
        rgba(0,0,0,0.0)
    );
    z-index: 20;
}


.about-window {
    position: relative;
    max-height: 80vh;
    overflow: hidden;
}

.about-window-inner {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 12px;
}

/* Fade oben */
.about-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0)
    );
    z-index: 20;
}

/* Fade unten */
.about-window::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0)
    );
    z-index: 20;
}


/* Video iframe */
.ref-video-container iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border: none;
}


/* =========================================
   Capture, Create, Inspire Section
========================================= */
.highlight-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 120px;
}

/* Video verhält sich wie im Header: volle Breite, Höhe automatisch */
.highlight-bg-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.35;
}

/* Text liegt zentriert über dem Video */
.highlight-text-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-align: center;
    pointer-events: none; /* Klicks gehen nicht auf den Text */
}

#highlightDynamicWord {
    font-size: 75px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.6s ease, letter-spacing 0.6s ease;
}

.highlight-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 120px;
    margin-bottom: 120px; /* neuer Abstand nach unten */
}

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

.site-footer {
    width: 100%;
    padding: 40px 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-copy {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.references-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0; /* statt fester Höhe */
    text-align: center;
}

.references-placeholder p {
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
}
s
