/* ============================================================
   REEON – layout.css
   Seitenstruktur, Grid-Systeme, Abstände
   ============================================================ */


/* ─── SEITEN-LAYOUT ─────────────────────────────────────────── */

.hero__scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 33px;
    width: 50px;
    height: 50px;
    z-index: 2;
    transition: opacity 0.4s ease;
    animation: float 2s cubic-bezier(0.2, 0.02, 0.27, 1) infinite;
}
@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    40%       { transform: translate(-50%, 10px); }
}
.section .hero__scroll-hint {
    bottom: 22px;
    display: none;
}
@media (max-width: 900px) {
    .section .hero__scroll-hint {
        display: block;
    }
}
@media (max-width: 768px) {
    .hero__content {
        padding-bottom: 48px;
    }
}
@media (max-width: 540px) {
    .hero__socials {
        display: none;
    }
    .hero .hero__scroll-hint {
        bottom: 52px;
    }
}

/* ─── FOOTER ────────────────────────────────────────────────── */

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

@media (max-width: 500px) {
    .footer__inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}


/* ============================================================
   REEON – nav.css
   Navigation: Desktop Links + Mobile Hamburger Overlay
   ============================================================ */


/* ─── NAV LEISTE ────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 var(--container-padding);
    z-index: 100;
    transition: all 0.6s ease-in-out;
}



/* ─── NAV INNER ─────────────────────────────────────────────── */

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: calc(var(--container-width) - 48px);
    margin: 0 auto;
    border-radius: var(--border-radius);
}

/* Scrolled State: dunkler Hintergrund mit Blur */
.nav--scrolled {
    background: rgba(61,61,61,.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* ─── LOGO ──────────────────────────────────────────────────── */

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo svg {
    height: 27px;
    width: auto;
    display: block;
}


/* ─── LOGO ANIMATION ────────────────────────────────────────── */

.logo-head-triangle,
.logo-head-r,
.logo-head-e1,
.logo-head-e2,
.logo-head-o,
.logo-head-n {
    opacity: 1;
    transform-origin: 30% center;
    -webkit-animation: logoBlink 2s 1s ease-in-out 1;
    animation: logoBlink 2s 1s ease-in-out 1;
}
.logo-head-r        { animation-delay: 1.2s; }
.logo-head-e1       { animation-delay: 1.4s; }
.logo-head-e2       { animation-delay: 1.6s; }
.logo-head-o        { animation-delay: 1.8s; }
.logo-head-n        { animation-delay: 2s; }

@keyframes logoBlink {
    0%   { opacity: 1;   transform: scale(1)    translate(0px, 0px); }
    20%  { opacity: 0.1; transform: scale(0.94) translate(12px, 0px); }
    100% { opacity: 1;   transform: scale(1)    translate(0px, 0px); }
}


/* ─── DESKTOP LINKS ─────────────────────────────────────────── */

.nav__links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-family: var(--font-ui);
    font-size: var(--text-nav);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.nav__link:hover {
    color: transparent;
}


/* Link Roll */

.link-roll {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;

    -webkit-perspective: 300px;
       -moz-perspective: 300px;
        -ms-perspective: 300px;
            perspective: 300px;

    -webkit-perspective-origin: 50% 50%;
       -moz-perspective-origin: 50% 50%;
        -ms-perspective-origin: 50% 50%;
            perspective-origin: 50% 50%;
}
.link-roll:hover {
    background: none;
}
.link-roll span {
    display: block;
    position: relative;
    pointer-events: none;

    -webkit-transition: all 350ms ease;
    -moz-transition: all 350ms ease;
    -ms-transition: all 350ms ease;
    transition: all 350ms ease;
   
    -webkit-transform-origin: 50% 0%;
    -moz-transform-origin: 50% 0%;
    -ms-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
   
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.link-roll:hover span {
    background: none;

    -webkit-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
    -moz-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
    -ms-transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
    transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
}
.link-roll span:after {
    content: attr(data-title);
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    color: #ffffff7c;


    -webkit-transform-origin: 50% 0%;
    -moz-transform-origin: 50% 0%;
    -ms-transform-origin: 50% 0%;
    transform-origin: 50% 0%;

    -webkit-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
    -moz-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
    -ms-transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
    transform: translate3d( 0px, 105%, 0px ) rotateX( -90deg );
}


/* ─── HAMBURGER ─────────────────────────────────────────────── */

.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav__hamburger span {
    background-color: #fff;
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 3px;
}

/* Mittlerer Balken: Abstand nach oben und unten */
.nav__hamburger span:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.5s backwards;
    animation: outM 0.5s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

/* Aus-Animationen (beim Schliessen) */
.nav__hamburger span:nth-child(1) {
    -webkit-animation: outT 0.5s backwards;
    animation: outT 0.5s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}
.nav__hamburger span:nth-child(3) {
    -webkit-animation: outBtm 0.5s backwards;
    animation: outBtm 0.5s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

/* Ein-Animationen (beim Öffnen) */
.nav--open .nav__hamburger span:nth-child(1) {
    -webkit-animation: inT 0.5s forwards;
    animation: inT 0.5s forwards;
}
.nav--open .nav__hamburger span:nth-child(2) {
    -webkit-animation: inM 0.5s forwards;
    animation: inM 0.5s forwards;
}
.nav--open .nav__hamburger span:nth-child(3) {
    -webkit-animation: inBtm 0.5s forwards;
    animation: inBtm 0.5s forwards;
}

@keyframes inM {
    50%  { transform: rotate(0deg); }
    100% { transform: rotate(45deg); }
}
@keyframes outM {
    50%  { transform: rotate(0deg); }
    100% { transform: rotate(45deg); }
}
@keyframes inT {
    0%   { transform: translateY(0px)  rotate(0deg); }
    50%  { transform: translateY(8px)  rotate(0deg); }
    100% { transform: translateY(8px)  rotate(135deg); }
}
@keyframes outT {
    0%   { transform: translateY(0px)  rotate(0deg); }
    50%  { transform: translateY(8px)  rotate(0deg); }
    100% { transform: translateY(8px)  rotate(135deg); }
}
@keyframes inBtm {
    0%   { transform: translateY(0px)  rotate(0deg); }
    50%  { transform: translateY(-8px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(135deg); }
}
@keyframes outBtm {
    0%   { transform: translateY(0px)  rotate(0deg); }
    50%  { transform: translateY(-8px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(135deg); }
}


/* ─── MOBILE OVERLAY ────────────────────────────────────────── */

.nav__mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 90;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    display: flex;
    align-items: center;
    justify-content: center;

    /* Versteckt: nach rechts verschoben */
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.3, 0.1, 0.05, 1), opacity 0.1s ease;
    pointer-events: none;
}

/* Geöffnet */
.nav--open ~ .nav__mobile {
    transform: translateX(0);
    pointer-events: auto;
}

.nav__mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.nav__mobile-link {
    font-family: var(--font-ui);
    font-size: 32px;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

@keyframes navLinkSlide {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

.nav--open ~ .nav__mobile .nav__mobile-link {
    animation: navLinkSlide 1.2s cubic-bezier(0.47, 0.25, 0.18, 1) both;
}

.nav__mobile-socials {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}
.nav__mobile-socials img {
    width: 33px;
    height: 33px;
    display: block;
}

/* Socials */

.hero__socials {
    position: absolute;
    bottom: 35px;
    right: 43px;
    display: flex;
    gap: 20px;
}

.hero__socials img {
    width: 33px;
    height: 33px;
    display: block;
    transition: all var(--transition-default);
}
@media (hover: hover) and (pointer: fine) {
    .hero__socials a:hover img { opacity: 0.5; }
}


/* ─── RESPONSIVE ────────────────────────────────────────────── */


@media (max-width: 800px) {

    .nav__logo svg {
        height: 23px;
    }
}

@media (max-width: 540px) {

    /* Desktop Links ausblenden */
    .nav__links {
        display: none;
    }

    /* Hamburger einblenden */
    .nav__hamburger {
        display: flex;
    }
    .nav__inner {
        height: 50px;
    }
    .hero__socials {
        display: none;
    }
}
