@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;700&display=swap');

/* Layout: eine Viewport-Höhe, Footer immer sichtbar, kein Scroll wenn Inhalt passt */
:root {
    --accent: #ffffff;
    --accent-light: #e0e0e0;
    --accent-muted: rgba(255, 255, 255, 0.65);
    --accent-dark: #1a1a1a;
    --accent-soft: rgba(255, 255, 255, 0.1);
    --accent-border: rgba(255, 255, 255, 0.15);
    --surface-glass: rgba(0, 0, 0, 0.35);
    --surface-glass-hover: rgba(0, 0, 0, 0.5);
    --text-primary: #f5f6f7;
    --text-secondary: rgba(255, 255, 255, 0.82);
    --text-muted: rgba(255, 255, 255, 0.55);
    --spacing-section: clamp(2.5rem, 5vw, 4rem);
    --spacing-block: clamp(1.25rem, 3vw, 2rem);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-content: 1200px;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

* {
    box-sizing: border-box !important;
}

/* Loading Screen Styles */
.pre-landing {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #000000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.pre-landing.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.loading-logo {
    max-width: 200px;
    width: auto;
    height: auto;
    opacity: 0.9;
}

.loading-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 0;
    transition: width 0.3s ease;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.main-content {
    position: relative !important;
    z-index: 1 !important;
    flex: 1 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

.main-content.hidden {
    overflow: hidden !important;
    height: 100vh !important;
    display: none !important;
}

/* Under-Construction-Banner – schmaler Header oben */
.construction-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 28px;
    background: rgba(255, 180, 0, 0.15);
    border-bottom: 1px solid rgba(255, 200, 50, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.construction-text {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 220, 100, 0.95);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Page Container: füllt Resthöhe, scrollt nur bei Überlauf – Footer bleibt sichtbar */
.page-container {
    flex: 1;
    min-height: calc(100vh - 108px);
    margin-top: 108px;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

/* Work Page: zusätzlicher Abstand für Tab-Header */
#page-projekte .page-container {
    margin-top: 168px;
}

.page {
    min-height: calc(100vh - 108px);
    width: 100%;
    box-sizing: border-box;
}

.page.hidden {
    display: none !important;
}

.page:not(.hidden) {
    animation: pageEnter 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design für Loading Screen */
@media (max-width: 768px) {
    .loading-logo {
        max-width: 150px;
    }
    
    .loading-bar-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        max-width: 120px;
    }
    
    .loading-bar-container {
        width: 200px;
    }

    .construction-text {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        linear-gradient(135deg, #0d0e0f 0%, #16181a 30%, #1c1e22 50%, #16181a 70%, #0d0e0f 100%);
    background-attachment: fixed;
    position: relative;
}











/* Custom Scrollbar - Dark Theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 0;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 28px;
    width: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Fallback für TIF-Unterstützung */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.14em;
    transition: color var(--transition-base);
    position: relative;
}

.nav-menu a:hover {
    color: #e0e0e0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section: füllt verfügbaren Platz, kein Zwang zu vollem Viewport */
.hero {
    flex: 1;
    min-height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin-left: 10%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.name-first,
.name-middle,
.name-last {
    font-size: 3.8rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.9;
    text-align: left;
    display: block;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.name-first:hover,
.name-middle:hover,
.name-last:hover {
    transform: translateY(-2px);
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.name-first {
    background: linear-gradient(135deg, #f5f6f7 0%, #e8eaed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4.2rem;
    font-weight: 400;
}

.name-middle {
    background: linear-gradient(135deg, #dde2e6 0%, #c5cdd3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.name-last {
    background: linear-gradient(135deg, #e8eaed 0%, #d0d4d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4.0rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.profession-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-left: 1.5rem;
}

.profession-line {
    font-size: 1.6rem;
    font-weight: 400;
    opacity: 0.85;
    color: #f0f0f0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-variant: small-caps;
    text-align: left;
    display: block;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 650px;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.8s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 0;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}



.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6578 0%, #4a5568 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-image {
    max-width: 60%;
    height: auto;
    border-radius: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

/* Erweiterte Animationen */


@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Sections: kompakt, kein min-height – Inhalt passt auf eine Höhe */
section {
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Erweiterte Glasmorphismus-Effekte für Sections mit Animationen */
.section {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 2.5rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.section:nth-child(even) {
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.section:nth-child(odd) {
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.section-title {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.1s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    border-radius: 0;
}

/* About Section */
.about-section {
    background: transparent;
    color: white;
    position: relative;
    min-height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    padding: var(--spacing-section) var(--spacing-block);
    position: relative;
    z-index: 1;
}

/* Shared glass panel for subpages */
.subpage-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.subpage-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.about-text:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.about-text p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.85;
    text-align: left;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.015em;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.about-text p:nth-child(1) {
    animation-delay: 0.1s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.3s;
}

.about-text p:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-photo {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInScale 1s ease 0.2s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-photo:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 
        0 28px 80px rgba(0, 0, 0, 0.7),
        0 12px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.about-photo:hover::after {
    opacity: 1;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 6px rgba(0, 0, 0, 0.3);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item i {
    font-size: 2.25rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.skill-item:hover i {
    color: #ffffff;
    transform: scale(1.15) rotate(6deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.skill-item span {
    font-weight: 400;
    color: white;
}

/* Preview Section */
.preview-section {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%),
        url('/5276001177630278142.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    position: relative;
    min-height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.preview-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: transform 0.3s ease;
    border: none;
    color: white;
    overflow: visible;
}

.preview-card:hover {
    transform: none;
    box-shadow: none;
}

.preview-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.preview-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 1rem;
    opacity: 0.7;
}

.preview-card h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.005em;
}

.preview-card p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-section {
    background: transparent;
    color: white;
    min-height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* ─── Shared blurred wallpaper background – all subpage sections ─────── */

/* Blurred background image layer – Hero + alle Unterseiten */
.hero::before,
.projects-section::before,
.about-section::before,
.contact-section::before,
.impressum-section::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: url('/5276001177630278142.jpg') center center / cover;
    background-attachment: fixed;
    filter: blur(5px);
    z-index: 0;
    pointer-events: none;
}
@media (max-width: 1024px) {
    .hero::before,
    .projects-section::before,
    .about-section::before,
    .contact-section::before,
    .impressum-section::before,
    .preview-section {
        background-attachment: scroll;
    }
}

/* Dark overlay layer for readability */
.hero::after,
.projects-section::after,
.about-section::after,
.contact-section::after,
.impressum-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

/* All direct content children above the overlay */
.hero > *,
.projects-section > *,
.about-section > *,
.contact-section > *,
.impressum-section > * {
    position: relative;
    z-index: 2;
}

/* Work Header Tabs - Professioneller zweiter Header */
.work-header-tabs {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    box-sizing: border-box;
}

.work-tabs-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 1rem;
}

.work-tabs-container::-webkit-scrollbar {
    display: none;
}

.work-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: fit-content;
}

.work-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.work-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.work-tab.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.work-tab.active::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.work-tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

.tab-icon {
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.work-tab.active .tab-icon {
    opacity: 1;
}

.tab-label {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Work Tab Content - Volle Breite */
.work-tab-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.35s ease;
}

.work-tab-content.active {
    display: block;
}

.projects-section {
    padding-top: 60px; /* room for fixed work-header-tabs */
    min-height: calc(100vh - 80px); /* fixed tabs take no space in flow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ─── Tab Section (common) ──────────────────────────────── */
.tab-section {
    padding: 3rem 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.tab-intro-block {
    text-align: center;
    margin-bottom: 3rem;
}

.tab-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tab-section-intro {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 1.75rem;
    line-height: 1.75;
    font-weight: 300;
}

.tab-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.875rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
}

.tab-cta-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: #fff;
}

.tab-gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.95rem;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 0;
}

/* ── Work-Galerien: Einheitliches Grid, gleiche Kachelgröße, keine Layout-Shifts ── */
.tab-gallery-cinema,
.tab-gallery-widescreen,
.tab-gallery-masonry,
.tab-gallery-musicvideo,
.tab-gallery-frames {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0 2rem;
}

.tab-gallery-cinema .tab-gallery-card,
.tab-gallery-widescreen .tab-gallery-card,
.tab-gallery-masonry .tab-gallery-card,
.tab-gallery-musicvideo .tab-gallery-card,
.tab-gallery-frames .tab-gallery-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.tab-gallery-cinema .tab-gallery-card:not(.tab-gallery-card-video),
.tab-gallery-widescreen .tab-gallery-card:not(.tab-gallery-card-video),
.tab-gallery-masonry .tab-gallery-card:not(.tab-gallery-card-video),
.tab-gallery-musicvideo .tab-gallery-card:not(.tab-gallery-card-video),
.tab-gallery-frames .tab-gallery-card:not(.tab-gallery-card-video) {
    cursor: pointer;
}

.tab-gallery-cinema .tab-gallery-card:hover,
.tab-gallery-widescreen .tab-gallery-card:hover,
.tab-gallery-masonry .tab-gallery-card:hover,
.tab-gallery-musicvideo .tab-gallery-card:hover,
.tab-gallery-frames .tab-gallery-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.tab-gallery-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tab-gallery-cinema .tab-gallery-img,
.tab-gallery-widescreen .tab-gallery-img,
.tab-gallery-masonry .tab-gallery-img,
.tab-gallery-musicvideo .tab-gallery-img,
.tab-gallery-frames .tab-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tab-gallery-video {
    width: 100%;
    height: 100%;
    display: block;
}

.tab-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Caption unter dem Media (Titel, Beschreibung) – einheitliche Höhe */
.tab-gallery-card-caption {
    height: 4.5rem;
    min-height: 4.5rem;
    padding: 0 1.25rem;
    background: rgba(0,0,0,0.55);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.tab-gallery-card-caption h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.2rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-gallery-card-caption h3:last-child {
    margin-bottom: 0;
}

.tab-gallery-card-caption p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Overlay für Bild-Karten (Hover) – optional, falls nur Bild */
.tab-gallery-card:not(.tab-gallery-card-video) .tab-gallery-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tab-gallery-card:not(.tab-gallery-card-video):hover .tab-gallery-card-media::after {
    opacity: 1;
}

/* ── Responsive work tabs ── */
@media (max-width: 768px) {
    .tab-section { padding: 2rem 1.25rem 3rem; }
    .tab-section-title { font-size: 2rem; }
    .tab-gallery-cinema,
    .tab-gallery-widescreen,
    .tab-gallery-masonry,
    .tab-gallery-musicvideo,
    .tab-gallery-frames {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .tab-gallery-cinema,
    .tab-gallery-widescreen,
    .tab-gallery-masonry,
    .tab-gallery-musicvideo,
    .tab-gallery-frames {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Container */
.gallery-container {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 0;
}

.gallery-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) #252830;
}

.gallery-slider::-webkit-scrollbar {
    height: 8px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 0;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 0;
}

.gallery-slider::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.gallery-item {
    flex: 0 0 300px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: url('Für_Emil-Titel.png');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    color: white;
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3,
.gallery-overlay p {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 400;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.projects-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 4rem;
}

.project-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-info h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.005em;
}

.project-info p {
    font-size: 0.95rem;
    color: #d4d6da;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.project-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.film-reel {
    font-size: 6rem;
    color: #ffffff;
    opacity: 0.9;
}

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

/* Contact Section */
.contact-section {
    background: transparent;
    color: white;
    min-height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-panel {
    padding: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-content h3 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.contact-content > p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.75;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 0;
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.contact-item:hover::after {
    width: 180px;
    height: 180px;
}

.contact-item i {
    font-size: 1.35rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
}

.contact-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.social-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.social-link i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-link:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.social-link i {
    font-size: 1.3rem;
}

/* Cards */
.card {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}







.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ─── Impressum & Datenschutz Page ───────────────────────────── */
.impressum-section {
    background: transparent;
    color: white;
    min-height: calc(100vh - 80px);
    width: 100%;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.impressum-container {
    max-width: 720px;
}

.impressum-title {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.impressum-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.impressum-content {
    line-height: 1.75;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.impressum-content h2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: #fff;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.impressum-content h2:first-child {
    margin-top: 0;
}

.impressum-content h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    margin: 1.75rem 0 0.6rem;
}

.impressum-content p {
    margin: 0 0 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.impressum-content ul {
    margin: 0 0 1rem 1.5rem;
    color: rgba(255,255,255,0.85);
}

.impressum-content li {
    margin-bottom: 0.4rem;
}

.impressum-content a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.impressum-content a:hover {
    color: #fff;
}

.impressum-platforms li {
    margin-bottom: 0.75rem;
}

.impressum-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.impressum-footer a {
    color: rgba(255,255,255,0.8);
}

.footer-legal {
    margin-top: 0.5rem;
}

.footer-legal a {
    color: rgba(184, 188, 196, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Footer: immer am unteren Rand sichtbar */
/* Footer verstecken auf der Work-Seite (volllbild Galerie-Erlebnis) */
body[data-page="projekte"] .footer {
    display: none;
}

.footer {
    flex-shrink: 0;
    background: rgba(10, 11, 12, 0.95);
    color: var(--text-muted);
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer-url {
    font-weight: 400;
    color: var(--accent-light);
    letter-spacing: 0.04em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 98px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }

    /* Weniger Abstand oben auf Mobile – Banner 28px + Navbar 70px */
    .page-container {
        margin-top: 98px;
    }

    .hero,
    .about-section,
    .contact-section,
    .impressum-section {
        min-height: calc(100vh - 98px);
    }

    .page {
        min-height: calc(100vh - 98px);
    }

    section {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .impressum-section {
        padding: 2rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .profession {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .project-highlight {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Work Header Tabs – Mobile */
    .work-header-tabs {
        top: 98px;
        padding-left: max(1rem, calc(0.75rem + env(safe-area-inset-left)));
        padding-right: max(1rem, calc(0.75rem + env(safe-area-inset-right)));
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    .work-tabs-container {
        justify-content: flex-start;
        padding: 0 clamp(0.75rem, 3vw, 1.25rem);
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0.75rem;
        gap: 0;
    }

    .work-tab {
        padding: 0.85rem 1.35rem;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        flex-shrink: 0;
        scroll-snap-align: center;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }

    .work-tab::after {
        height: 2px;
    }

    .work-tab.active::after {
        height: 2px;
    }

    .tab-label {
        font-size: 0.75rem;
    }

    .work-tab-content {
        padding: 1.5rem 1rem;
        margin-top: 0;
    }
    
    .projects-content {
        padding: 1.5rem 1rem;
    }
    
    #page-projekte .page-container {
        margin-top: 146px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 1rem;
    }
    
    .about-text {
        padding: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.8;
    }
    
    .about-photo {
        max-width: 100%;
    }
    
    .portfolio-image {
        max-width: 80%;
    }
    
    .film-reel {
        font-size: 4rem;
    }
    
    .gallery-item {
        flex: 0 0 250px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .profession {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .preview-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    
    .preview-card iframe,
    .preview-placeholder {
        aspect-ratio: 16/9;
    }

    /* Weniger Abstand oben – Extra kleine Screens */
    section {
        padding: 1.5rem 0;
    }

    .about-content {
        padding: 1rem 0.75rem;
    }

    .impressum-section {
        padding: 1.5rem 0 3rem;
    }

    /* Work Header Tabs – Extra small screens */
    .work-header-tabs {
        padding-left: max(1rem, calc(0.5rem + env(safe-area-inset-left)));
        padding-right: max(1rem, calc(0.5rem + env(safe-area-inset-right)));
    }

    .work-tabs-container {
        padding: 0 clamp(0.75rem, 4vw, 1.25rem);
        scroll-padding-inline: 0.75rem;
    }

    .work-tab {
        padding: 0.75rem 1.15rem;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .tab-label {
        font-size: 0.7rem;
    }

    #page-projekte .page-container {
        margin-top: 143px;
    }

    .projects-section {
        padding-top: 50px;
    }

}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.education-grid,
.project-highlight,
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.nav-menu a:focus-visible {
    outline-offset: 4px;
}

/* ─── Global design presets (B&W visual effects) ─────────────────────── */

body[class*="design-preset-"]::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
}

body.design-preset-grain::after {
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

body.design-preset-vignette::after {
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

body.design-preset-scanlines::after {
    opacity: 0.35;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

body.design-preset-glow::after {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    box-shadow: inset 0 0 140px 60px rgba(0, 0, 0, 0.45);
}

body.design-preset-contrast #main-content {
    filter: grayscale(100%) contrast(1.12) brightness(0.96);
}

body.design-preset-contrast #pre-landing {
    filter: grayscale(100%) contrast(1.12) brightness(0.96);
}