/* ===================================================================
 * VISUAL OVERRIDES — Dark & Minimal, Purple Accent #8E44AD
 * Drops in after stylesheet.css to unify the full site
 * =================================================================== */

/* -------------------------------------------------------------------
 * ACCENT COLOR VARIABLE — single source of truth
 * ------------------------------------------------------------------- */
:root {
    --accent: #8E44AD;
    --accent-light: #BF55EC;
    --accent-glow: rgba(142, 68, 173, 0.15);
}

/* -------------------------------------------------------------------
 * SECTION HEADINGS — consistent across all sections
 * small, uppercase, purple underline
 * ------------------------------------------------------------------- */
.s-portfolio h3,
.s-about h3,
#resume .resume-header h2,
#contact .section-intro h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 1.4rem;
    margin-bottom: 0;
}

.s-portfolio h3::after,
.s-about h3::after,
#resume .resume-header h2::after,
#contact .section-intro h2::after {
    content: "";
    display: block;
    height: 2px;
    width: 36px;
    background: var(--accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.s-portfolio__header,
.s-about .row,
#resume .resume-header,
#contact .section-intro .col-twelve {
    text-align: center;
}

/* -------------------------------------------------------------------
 * NAVIGATION — active + hover in purple
 * ------------------------------------------------------------------- */
.s-header__nav a:hover,
.s-header__nav a:focus,
.s-header__nav .current a {
    color: var(--accent-light);
}

/* Letter-spacing auf Nav-Links */
.s-header__nav a {
    letter-spacing: 0.12em;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* -------------------------------------------------------------------
 * HEADER — immer sichtbar, seamless Übergang transparent → sticky
 * ------------------------------------------------------------------- */
.s-header {
    position: fixed !important;
    top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
    z-index: 100;
}

/* offset & scrolling Klassen — kein Verstecken mehr */
.s-header.offset,
.s-header.scrolling {
    transform: none !important;
}

.s-header.sticky {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: transparent;
}

.s-header.sticky.scrolling {
    background-color: rgba(14, 14, 14, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* subtle purple underline on active nav item */
.s-header__nav .current a::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent);
    position: absolute;
    bottom: calc(var(--header-height) * 0.18);
    left: 0;
}

.s-header__nav li {
    position: relative;
}

/* -------------------------------------------------------------------
 * BURGER MENU — clean, kein lila Viereck
 * ------------------------------------------------------------------- */
.s-header__menu-toggle {
    background-color: transparent;
    width: 48px;
    height: var(--header-height);
    top: 0;
    right: 1.6rem;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.s-header__menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.s-header__menu-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
}

.s-header__menu-toggle .s-header__menu-icon {
    width: 22px;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.85);
}

.s-header__menu-toggle .s-header__menu-icon::before {
    top: -7px;
    width: 16px;
}

.s-header__menu-toggle .s-header__menu-icon::after {
    bottom: -7px;
    width: 19px;
}

/* X beim Öffnen */
.s-header__menu-toggle.is-clicked .s-header__menu-icon::before {
    top: 0;
    width: 22px;
}

.s-header__menu-toggle.is-clicked .s-header__menu-icon::after {
    bottom: 0;
    width: 22px;
}

/* -------------------------------------------------------------------
 * HERO — fixed im Hintergrund, Sections scrollen darüber
 * ------------------------------------------------------------------- */
#hero {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

/* Platzhalter damit der erste Scroll-Bereich korrekt beginnt */
#hero + * {
    margin-top: 100vh;
}

/* Alle Sections scrollen über den Hero */
.s-about,
.s-portfolio,
#resume,
#contact,
.s-footer {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------
 * ABOUT SECTION — dark background, consistent text
 * ------------------------------------------------------------------- */
.s-about {
    background-color: var(--color-gray-18) !important;
    padding-top: calc(6 * var(--space));
    padding-bottom: var(--vspace-4);
}

.s-about .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.s-about h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 3rem;
}

.s-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto;
}

.s-about__pic {
    border: none;
    border-radius: 50%;
    width: 16rem;
    height: 16rem;
    object-fit: cover;
    object-position: top;
    filter: grayscale(20%);
    margin-bottom: 3.2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.s-about .column.large-3 {
    flex: 0 0 100%;
    max-width: 100%;
}

.s-about .column.large-9 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Demo reel button */
.s-about__content-bottom .btn--download {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    letter-spacing: .2em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.s-about__content-bottom .btn--download i {
    font-size: 2rem;
    line-height: 1;
}


.s-about__content-bottom .btn--download:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}


/* -------------------------------------------------------------------
 * PORTFOLIO SECTION
 * ------------------------------------------------------------------- */
.s-portfolio {
    background-color: var(--color-gray-18);
}

.s-portfolio h3 {
    color: white;
    margin-bottom: 3rem;
}

/* Portfolio card hover — purple tint overlay + scale */
.folio-item__thumb::before {
    background-color: rgba(50, 0, 70, 0.75);
}

.folio-item__thumb::after {
    content: "▶";
    font-family: var(--font-1);
    font-size: 2.2rem;
    font-weight: 300;
    color: white;
    height: 48px;
    width: 48px;
    line-height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    text-indent: 3px;
}

.folio-item:hover .folio-item__thumb::after {
    transform: scale(1);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.folio-item video {
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9);
}

.folio-item:hover video {
    transform: scale(1.04);
    filter: brightness(1);
}

/* Modal popup — dark */
.modal-popup {
    background-color: var(--color-gray-17);
    border-top: 3px solid var(--accent);
}

.modal-popup h5 {
    color: white;
    font-size: 2rem;
    margin-bottom: .8rem;
    padding: 0 4rem;
    padding-top: 2.4rem;
}

.modal-popup__desc p {
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    line-height: 1.8;
}

.modal-popup__details {
    background-color: transparent;
    border: 1px solid rgba(142, 68, 173, 0.5);
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: .05em;
    transition: all 0.25s ease;
}

.modal-popup__details:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* -------------------------------------------------------------------
 * RESUME / TIMELINE — modern minimal dark
 * ------------------------------------------------------------------- */
#resume {
    background-color: var(--color-gray-18);
    padding-top: 8rem;
    padding-bottom: 12rem;
}

#resume .resume-header {
    text-align: center;
    margin-bottom: 6rem;
}

#resume .resume-header h2 {
    color: white;
    margin-bottom: 0;
}

#resume .resume-timeline {
    max-width: 780px;
    margin: 0 auto;
}

#resume .timeline-wrap {
    position: relative;
    margin: 0;
    padding-left: 3.2rem;
}

#resume .timeline-wrap::before {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.07);
    position: absolute;
    left: 0;
    top: 0;
}

#resume .timeline-block {
    position: relative;
    padding: 0 0 5rem 4rem;
    float: none;
    clear: both;
}

#resume .timeline-block:last-child {
    padding-bottom: 0;
}

#resume .timeline-block::after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin-top: 5rem;
}

#resume .timeline-block:last-child::after {
    display: none;
}

/* dot instead of icon */
#resume .timeline-ico {
    width: 1rem;
    height: 1rem;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent-glow);
    position: absolute;
    left: calc(-3.2rem - 0.5rem); /* timeline-wrap padding-left + half dot width */
    top: .7rem;
    margin-left: 0;
    line-height: 1;
}

#resume .timeline-ico i {
    display: none;
}

/* date label */
#resume .timeline-header {
    float: none;
    width: auto;
    padding-right: 0;
    text-align: left;
    margin-bottom: .4rem;
}

#resume .timeline-header p {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: .2rem;
}

#resume .timeline-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
}

/* content */
#resume .timeline-content {
    margin-left: 0;
    padding-left: 0;
    padding-top: 0;
}

#resume .timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    margin-bottom: .5rem;
    margin-top: .2rem;
    padding-bottom: 0;
}

#resume .timeline-content h4::after {
    display: none;
}

#resume .timeline-content p {
    font-size: 1.5rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.55);
    margin: 0;
    padding: 0;
}

/* responsive overrides */
@media only screen and (max-width: 768px) {
    #resume .timeline-wrap {
        padding-left: 2.4rem;
    }
    #resume .timeline-block {
        padding-left: 3rem;
    }
    #resume .timeline-ico {
        left: calc(-2.4rem - 0.5rem); /* timeline-wrap padding-left + half dot width */
    }
    #resume .timeline-header h3 {
        font-size: 1.8rem;
    }
    #resume .timeline-wrap::before {
        left: 0;
    }
    /* override stylesheet.css padding-left: 7rem on header & content */
    #resume .timeline-header,
    #resume .timeline-content {
        padding-left: 0;
    }
}

@media only screen and (max-width: 480px) {
    #resume .resume-header h2 {
        font-size: 1rem;
    }
    #resume .timeline-header h3 {
        font-size: 1.6rem;
    }
    #resume .timeline-ico {
        left: calc(-2.4rem - 0.5rem);
    }
    #resume .timeline-header,
    #resume .timeline-content {
        padding-left: 0;
    }
}

/* -------------------------------------------------------------------
 * CONTACT SECTION
 * ------------------------------------------------------------------- */
#contact {
    background-color: var(--color-gray-18);
    padding-top: 10rem;
    padding-bottom: 14rem;
}

#contact .section-intro h2 {
    color: white;
    margin-bottom: 3rem;
}

#contact .section-intro p {
    color: rgba(255,255,255,0.55);
    font-size: 1.6rem;
    margin-bottom: 4rem;
}

.s-footer__social {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

@media only screen and (max-width: 768px) {
    #contact .section-intro .col-twelve {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Social icons */
.s-footer__social a {
    color: rgba(255,255,255,0.5);
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.s-footer__social a:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

.s-footer__social li {
    margin-right: 2.4rem;
}

.s-footer__social li:last-child {
    margin-right: 0;
}

/* -------------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------------- */
.s-footer {
    background-color: var(--color-gray-18);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.s-footer .row {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ss-copyright span {
    color: rgba(255,255,255,0.2);
    font-size: 1.2rem;
}

.s-footer a {
    color: rgba(255,255,255,0.35);
}

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

/* -------------------------------------------------------------------
 * SECTION SEPARATOR — subtle gradient dividers between sections
 * ------------------------------------------------------------------- */
.s-about,
.s-portfolio,
#resume,
#contact {
    border-top: none;
    position: relative;
}

.s-portfolio::before,
#resume::before,
#contact::before {
    content: "";
    display: block;
    height: 1px;
    width: 70%;
    background: rgba(255,255,255,0.12);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.s-footer .row {
    border-top: none;
}


/* Remove dark strips at very top and bottom */
body {
    background-color: var(--color-gray-18);
}

/* -------------------------------------------------------------------
 * HERO BUTTON — mobile: zentriert, nicht volle Breite
 * ------------------------------------------------------------------- */
@media only screen and (max-width: 768px) {
    .s-hero__content .row.s-about__content-bottom {
        text-align: center;
    }

    .s-hero__content .vimeo_btn {
        display: inline-flex;
        width: auto;
        max-width: 220px;
    }
}

/* Fix hero video not covering full height */
.hero_video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media only screen and (max-width: 768px) {
    .hero_video {
        object-position: left;
    }
}

/* ===================================================================
 * PORTFOLIO — Kacheln & Hover-Overlay UPDATE
 * =================================================================== */

/* Abgerundete Kacheln mit Schatten */
.folio-item__thumb {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.folio-item:hover .folio-item__thumb {
    box-shadow: 0 8px 40px rgba(142, 68, 173, 0.3);
    transform: translateY(-3px);
}

.folio-item video {
    border-radius: 10px;
    width: 100%;
    display: block;
    vertical-align: bottom; /* entfernt den inline whitespace unter dem Video */
}

/* weißer Hintergrund der thumb-Wrapper entfernen */
.folio-item__thumb {
    background-color: transparent !important;
}

/* Altes ::after (Play-Kreis) ausblenden — wird durch neues Overlay ersetzt */
.folio-item__thumb::after {
    display: none !important;
}

/* Overlay-Div */
.folio-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.folio-item:hover .folio-item__overlay {
    opacity: 1;
    visibility: visible;
}

/* Titel im Overlay — fährt von unten rein */
.folio-item__title {
    color: white;
    font-family: var(--font-1);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.folio-item:hover .folio-item__title {
    transform: translateY(0);
}

/* Play-Icon im Overlay */
.folio-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    padding-left: 3px; /* optisch zentriert */
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1),
                border-color 0.35s ease,
                background-color 0.35s ease;
}

.folio-item:hover .folio-item__icon {
    transform: scale(1);
    border-color: var(--accent-light);
    background-color: rgba(142, 68, 173, 0.2);
    color: var(--accent-light);
}

/* ===================================================================
 * MODAL — Dark Theme & aufgeräumtes Layout
 * =================================================================== */

/* Dark background, kein weißer Rand */
.modal-popup {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border-top: 3px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Video füllt den Modal-Header komplett aus */
.modal-popup video {
    width: 100%;
    display: block;
    margin: 0;
    max-height: 480px;
    object-fit: cover;
    border-radius: 0;
}

/* Desc-Bereich */
.modal-popup__desc {
    padding: 2.4rem 3.2rem 2.8rem;
}

/* Header-Zeile: Titel links, Button rechts */
.modal-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.modal-popup h5 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

/* Rig-Button — inline im Header */
.modal-popup__details {
    position: static;          /* override des alten absolute */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-family: var(--font-1);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: transparent;
    border: 1px solid rgba(142, 68, 173, 0.4);
    border-radius: 20px;
    padding: 0.5rem 1.4rem;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.modal-popup__details::before {
    content: "↗";
    font-size: 1rem;
}

.modal-popup__details:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.modal-popup__desc p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 1.5rem;
    line-height: 1.85;
    margin: 0;
}