:root {
    --bg-color: #141414;
    --text-color: #e8e8e8;
    --accent-color: #ff6b00;
    --font-family: 'G', 'Geomanist', sans-serif;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(232, 232, 232, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100dvh;
    overflow: hidden;
    cursor: none !important;
}

@keyframes spin { to { transform: rotate(360deg); } }

a {
    text-decoration: none;
    color: inherit;
}

/* --- SPLIT LAYOUT --- */
.split-layout {
    display: flex;
    height: 100dvh;
    width: 100%;
}


/* --- SLIDESHOW HINTERGRUND --- */
.profile-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.profile-bg-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
    transform: scale(1.18); /* Stärker eingezoomt — zoomed langsam raus */
}

.profile-bg-slider .slide.active {
    opacity: 1;
    transform: scale(1.0);
    z-index: 1;
}

/* --- LINKE SEITE (VISUELLER FOKUS) --- */
.profile-side {
    position: relative;
    width: 70%;
    height: 100dvh;
    display: flex;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid var(--card-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #000;
}

.profile-side:hover .profile-hint {
    opacity: 1;
    transform: translateY(0);
}

.profile-side:hover .hint-icon {
    color: var(--accent-color);
}

.profile-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 5;
    pointer-events: none;
}

.profile-hint {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 100; /* Definitiv über dem Overlay */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.7; /* Leicht gedimmt im Ruhezustand */
    color: #ffffff;
    transform: translateX(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 2px solid #fff;
    padding: 10px 22px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-side:hover .profile-hint {
    opacity: 1;
    transform: translateX(0);
    color: #ffffff; /* Bleibt weiß wegen Orange-Hintergrund */
}

.profile-hint::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.profile-side:hover .profile-hint::before {
    width: 100%;
}

.hint-icon {
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.profile-side:hover .hint-icon {
    transform: translate(3px, -3px);
}

/* --- RECHTE SEITE (LINKS) --- */
.links-side {
    width: 30%;
    height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Scrollbarer Bereich — wächst und scrollt, Socials bleiben außen */
.links-inner {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 48px 28px 24px 36px;
    -webkit-overflow-scrolling: touch;
    /* scroll-behavior: smooth entfernt — Lenis übernimmt das, doppeltes smooth verursacht Layout-Sprünge */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,0,0.35) transparent;
    /* scrollbar-gutter: stable entfernt — reserviert Platz auch ohne Scrollbar → verursacht Sprünge auf kurzen Listen */
}
.links-inner::-webkit-scrollbar { width: 2px; }
.links-inner::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.35); border-radius: 1px; }
.links-inner::-webkit-scrollbar-track { background: transparent; }

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}


/* --- HEADER BLOCK --- */
.nx-header {
    flex-shrink: 0;
    background: var(--bg-color);
    padding: 32px 28px 20px 36px;
    border-bottom: 1px solid var(--card-border);
}

.nx-header-name {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--accent-color);
    line-height: 1;
    text-transform: uppercase;
}

.nx-header-sub {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(232, 232, 232, 0.5);
}

/* Kategorie */
.category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-title {
    display: flex;
    align-items: center;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent-color);
    margin-bottom: 4px;
    width: 70%;
}

/* Trenner: dünne → mittel → breit → langes Rechteck mit Spitze oben */
.category-title-bar {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 5px;
}

.ctb-s {
    height: calc(0.9em - 1px);
    background: var(--accent-color);
    flex-shrink: 0;
    align-self: center;
    margin-top: -2px;
}
.ctb-s1 { width: 2px; margin-right: 2px; }
.ctb-s2 { width: 4px; margin-right: 4px; }
.ctb-s3 { width: 7px; margin-right: 7px; }

.ctb-long {
    flex: 1;
    height: calc(0.9em - 1px);
    background: var(--accent-color);
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 0 100%);
    align-self: center;
    margin-top: -2px;
}



.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Link Button */
.link-btn {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 16px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--accent-color);
    border-radius: 2px;
    color: rgba(232, 232, 232, 0.85);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    z-index: 1;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,107,0,0.12) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.link-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--accent-color);
    transition: width 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.link-btn:hover {
    color: #ffffff;
    border-color: var(--accent-color);
    border-left-color: var(--accent-color);
    background: rgba(255,107,0,0.06);
}

.link-btn:hover::before { opacity: 1; }
.link-btn:hover::after  { width: 100%; }

.link-arrow {
    font-size: 0.85rem;
    opacity: 0.45;
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s;
    flex-shrink: 0;
}

.link-btn:hover .link-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* --- SOCIAL ICONS — fest am unteren Rand der rechten Spalte --- */
.socials-container {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    border-top: 1px solid var(--card-border);
    padding: 20px 28px 20px 36px;
    background: var(--bg-color);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    padding: 8px; /* Klickbare Fläche vergrößern */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Epic Spring Animation */
}

.social-icon svg,
.social-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icon:hover svg,
.social-icon:hover img {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(45%) sepia(90%) saturate(700%) hue-rotate(1deg) brightness(105%) contrast(105%) drop-shadow(0 4px 10px rgba(255, 107, 0, 0.5));
}


/* --- ANIMATIONS (Stagger) --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stagger-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98); /* Startet tiefer und leicht verkleinert */
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards; /* Längere, stärkere Kurve */
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .profile-side {
        width: 100%;
        height: 45vh; /* Override per 767px query below */
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .profile-hint {
        bottom: 20px;
        right: 20px;
        font-size: 0.85rem;
    }

    .links-side {
        width: 100%;
        height: 55vh;
        padding: 24px 20px 0 20px;
        overflow-y: auto;
    }

    .profile-name {
        font-size: 2.5rem;
    }
}

/* --- SLIDE DOTS --- */
.slide-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 5px; z-index: 10; }
.slide-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background 0.3s; }
.slide-dot.active { background: var(--accent-color); }

/* --- LINK ACTIVE FEEDBACK (Touch) --- */
.link-btn:active { transform: scale(0.97); }


/* --- KEIN HOVER-HINT AUF TOUCH-GERÄTEN --- */
@media (hover: none) { .portfolio-hint { display: none; } }

/* Drag-Over Feedback (Feature 2) */
.drag-over {
    border-color: var(--accent-color) !important;
    background: rgba(255, 107, 0, 0.05) !important;
}

/* Feature 5: Mobile 767px breakpoint */
@media (max-width: 767px) {
    .profile-side { height: 35vh; }
    .links-side   { height: 65vh; }
}
