/* ==========================================================================
    GLOBALE VARIABLEN & BASIS
   ========================================================================== */
:root {
    --accent-color: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(15px);
    --transition-speed: 0.3s;
    --font-main: 'nexa', sans-serif;
    --font-display: 'ogg', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-main); /* Variable genutzt */
    font-weight: 200;
    font-style: normal;
    background-color: #000;
    color: white;
    overflow-x: hidden;
}

/* ==========================================================================
   BACKGROUND VIDEO (FIXED)
   ========================================================================== */
.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
    pointer-events: none;
}

/* ==========================================================================
    HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--accent-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo, .logo img {
    height: 55px;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: 300;
    transition: opacity var(--transition-speed);
}
.star-nav {
    margin: 0;
}
.main-nav a:hover { opacity: 0.7; }
.main-nav a.current { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
    COMMON SECTIONS
   ========================================================================== */
main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent;
}

.intro-section {
    text-align: center;
    padding: 150px 20px 50px;
    background: transparent;
}

.intro-section h1 {
    font-family: var(--font-display); /* Variable genutzt */
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin: 0;
}

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-weight: 500;
    border: none;
    background: none;
    color: #aaa;
    cursor: pointer;
    transition: color var(--transition-speed), background var(--transition-speed), border-color var(--transition-speed);
    padding: 0;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out forwards;
}

/* Zentrale fadeInUp Animation (wird von index.css mitgenutzt) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
 }

/* ==========================================================================
    FOOTER
   ========================================================================== */
.main-footer {
    background-color: rgba(17, 17, 17, 1);
    backdrop-filter: blur(10px);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-container a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-container a:hover { color: white; }

/* ==========================================================================
    MOBILE MENU
   ========================================================================== */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 6px; 
    cursor: pointer; 
    position: relative;
    z-index: 1010; /* immer über dem mobilen Menü bleiben */
}

.bar { 
    width: 30px; 
    height: 3px; 
    background-color: white; 
    border-radius: 2px; 
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1250px) 
{
    .logo, .logo img {
        height: 60px;
    }
    .menu-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(39, 42, 44, 0.9);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1005;
    }
    
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 40px; }
  
    
}

@media (max-width: 768px) {
    .logo, .logo img {
    height: 45px;
    margin: 0;
}
}

/* ==========================================================================
   SEITENSPEZIFISCHE STYLES (zentralisiert)
   ========================================================================== */

/*==============================HOME=================*/
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
}
.hero h1 {
    font-family: var(--font-display); /* Variable genutzt */
    font-style: italic;
    font-size: clamp(3rem, 10vw, 6rem);
    margin: 0;
    line-height: 1;
}

.flip-container {
    height: 1.5em; 
    line-height: 1.5em;
    overflow: hidden;
    margin-top: 10px;
    font-size: 1.2rem;
}

.flip-text {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    animation: rollOnce 0.7s cubic-bezier(0.645, 0.045, 0.355, 1) 2s forwards;
}

.flip-text span {
    display: block;
    height: 1.5em;
    text-align: center;
}

/* Text-Roll-Effekt */
@keyframes rollOnce {
    from { transform: translateY(0); }
    to { transform: translateY(-1.5em); }
}
@media (max-width: 1250px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.9rem;
    }
}

/* =======================CREATIONS=============================*/
.takealook-main .projekte-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.takealook-main #subject-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 200;
}

.takealook-main .filter-nav {
    margin-top: 25px;
    gap: 15px;
}
.takealook-main .filter-btn {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
}

.takealook-main .filter-btn.active,
.takealook-main .filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.takealook-main .slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.takealook-main .project-slider {
    display: flex;
    overflow: hidden;
    border-radius: 15px;
}

.takealook-main .project-card {
    min-width: 100%;
    display: none;
}

.takealook-main .project-card.active {
    display: block;
}

.takealook-main .mockup-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: #000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.takealook-main .bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.4);
    transform: scale(1.1);
    z-index: 1;
}

.takealook-main .project-img {
    position: relative;
    z-index: 2;
    height: 80%;
    max-width: 90%;
    margin-top: -2.5rem;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.takealook-main .mockup-container:hover .project-img {
    transform: scale(1.05);
}

.takealook-main .project-info-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 15px;
    width: 80%;
    margin: -50px auto 50px auto;
    position: relative;
    z-index: 2;
    text-align: left;
}

.takealook-main .project-info-glass h3 {
    font-size: 1.2rem;
}

.takealook-main .project-info-glass ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.takealook-main .project-info-glass li {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.takealook-main .nav-arrow {
    position: absolute;
    top: 250px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0;
}

.takealook-main .nav-arrow svg {
    width: 28px;
    height: 28px;
}

.takealook-main .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    cursor: pointer;
}

.takealook-main .prev { left: -30px; }
.takealook-main .next { right: -30px; }

@media (max-width: 1250px) {
    .takealook-main .mockup-container { height: 550px; }
    .takealook-main .project-img { height: 75%; }
    .takealook-main .nav-arrow {
        top: 175px;
        width: 50px;
        height: 50px;
    }
    .takealook-main .prev { left: 10px; }
    .takealook-main .next { right: 10px; }
    .takealook-main .project-info-glass {
        width: 90% !important;
        margin-top: -30px !important;
    }
    .takealook-main #subject-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .takealook-main .mockup-container { height: 400px; }
}

/* ====================HOBBYS & INTERESSEN==================*/
.hobbys-main-page .filter-nav {
    margin-top: 20px;
}

.hobbys-main-page .filter-btn {
    margin: 0 15px;
}

.hobbys-main-page .hobby-slider-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    margin: 3rem 0 4rem 0;
    padding: 50px 0 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hobbys-main-page .hobby-slider-container {
    position: relative;
    width: 90vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hobbys-main-page .quote-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.hobbys-main-page .quote-heading {
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 500;
    color: rgb(255, 255, 255);
    margin: 0;
    padding: 3rem;
    text-transform: none;
    text-shadow: 0 0 30px rgba(0, 0, 0, 1), 0 10px 30px rgba(0, 0, 0, 1);
    word-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    line-height: 1;
}

.hobbys-main-page .quote-heading span {
    display: block;
}

.hobbys-main-page .quote-author {
    margin: 1rem auto 0;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0.08em;
}


.hobbys-main-page .gear-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hobbys-main-page .gear-column.up .gear-track,
.hobbys-main-page .gear-column.down .gear-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hobbys-main-page .gear-track img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 0.5%;
}

.hobbys-main-page .gear-track img:first-child { height: 400px; }
.hobbys-main-page .gear-track img:nth-child(2) { height: 200px; }
.hobbys-main-page .gear-track img:last-child { height: 300px; }

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.hobbys-main-page .up .gear-track { animation: scrollUp 75s linear infinite; }
.hobbys-main-page .down .gear-track { animation: scrollDown 75s linear infinite; }

@media (max-width: 1250px) {
    .hobbys-main-page .hobby-slider-section { height: 60vh; }
    .hobbys-main-page .gear-gallery {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 30px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hobbys-main-page .hobby-slider-section { padding: 60px 0 80px 0; }
    .hobbys-main-page .hobby-slider-container { width: 95%; }
    .hobbys-main-page .gear-gallery {
        grid-template-columns: repeat(2, 1fr);
        aspect-ratio: 2 / 3;
        height: 60vh;
    }
    .hobbys-main-page .gear-track img:first-child { height: 350px; }
    .hobbys-main-page .gear-track img:nth-child(2) { height: 150px; }
    .hobbys-main-page .gear-track img:last-child { height: 250px; }
    .hobbys-main-page #quote-text {
        font-size: 3rem;
        letter-spacing: 0.1em;
        line-height: 1.3;
    }
    .hobbys-main-page .filter-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px 15px 10px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .hobbys-main-page .filter-btn {
        margin: 0;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    .hobbys-main-page main { min-height: auto !important; }
    .hobbys-main-page #quote-text {
        font-size: 2rem;
    }
}

/* ==========================MEINE GESCHICHTE===================*/
.aboutme-main .anchor-nav {
    margin-top: 20px;
}

.aboutme-main .anchor-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.aboutme-main .anchor-nav a:hover {
    color: white;
}

.aboutme-main .timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px 20px;
}

.aboutme-main .timeline-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.aboutme-main .timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 60px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 260px;
}

.aboutme-main .timeline-item.left { align-self: flex-start; text-align: right; left: 0; }
.aboutme-main .timeline-item.right { align-self: flex-end; text-align: left; left: 50%; }

.aboutme-main .timeline-img {
    position: absolute;
    top: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aboutme-main .left .timeline-img { right: -40px; }
.aboutme-main .right .timeline-img { left: -40px; }

.aboutme-main .timeline-img:hover {
    transform: scale(6);
    z-index: 100;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.aboutme-main .timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aboutme-main .timeline-content h3 { margin: 0; font-size: 1.3rem; font-weight: 600; }
.aboutme-main .timeline-content .year { display: block; color: #aaa; margin: 5px 0; }

@media (max-width: 768px) {
    .aboutme-main .timeline-line { left: 30px; transform: none; }
    .aboutme-main .timeline-item { width: 100%; left: 0 !important; padding-left: 70px; text-align: left !important; }
    .aboutme-main .anchor-nav {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 15px;
    }
    .aboutme-main .anchor-nav a {
        margin: 0;
        font-size: 0.85rem;
        padding: 5px;
    }
    .aboutme-main .timeline-img {
        left: -10px !important;
        width: 60px;
        height: 60px;
        transition: transform 0.4s ease, left 0.4s ease, width 0.4s ease, height 0.4s ease;
    }
    .aboutme-main .timeline-img:hover {
        width: 80vw;
        height: 80vw;
        left: 50vw !important;
        transform: translate(-50%, -10%);
    }
}