/* ====================================
   F34R Portfolio v2 - Dark Modern
   ==================================== */

/* === FONTS === */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Colors – F34R / AEGIS Farbwelt */
    --bg-deep: #131313;        /* Hero, Footer */
    --bg-section: #000000;     /* Sections (About etc.) - Schwarz */
    --bg-card: #1a1d21;        /* Panels, Cards */
    --border: #2d333b;         /* Linien, Borders */
    --text-primary: #faf8f4;   /* Headlines - Soft Cream (subtiler) */
    --text-secondary: #a4abb8; /* Body, Meta - Hellgrau */
    --accent: #ff9b1a;         /* Orange – sparsam! */
    
    /* NEU: Creme als Highlight */
    --cream: #f4f0e8;
    --cream-dark: #e8e4dc;     /* für Hover etc. */
    --text-on-cream: #1a1a1a;  /* Typo auf Creme */
    
    /* Legacy aliases */
    --black: var(--bg-deep);
    --dark: var(--bg-section);
    --gray-dark: var(--bg-card);
    --gray: var(--border);
    --gray-light: var(--text-secondary);
    --white: var(--text-primary);
    --orange: var(--accent);
    
    /* Typography */
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
    --space-2xl: 180px;
    
    /* Layout */
    --container: 1400px;
    --padding: clamp(20px, 5vw, 80px);
    
    /* Animation */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.6s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    
    /* Page Transition – Fade only (transform breaks fixed positioning) */
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

body.is-loaded {
    opacity: 1;
}

body.is-fading-out {
    opacity: 0;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Fade Up - für einzelne Elemente */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Grid - zeitversetztes Einblenden */
.stagger-grid .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-grid .fade-up:nth-child(2) { transition-delay: 50ms; }
.stagger-grid .fade-up:nth-child(3) { transition-delay: 100ms; }
.stagger-grid .fade-up:nth-child(4) { transition-delay: 150ms; }
.stagger-grid .fade-up:nth-child(5) { transition-delay: 200ms; }
.stagger-grid .fade-up:nth-child(6) { transition-delay: 250ms; }
.stagger-grid .fade-up:nth-child(7) { transition-delay: 300ms; }
.stagger-grid .fade-up:nth-child(8) { transition-delay: 350ms; }
.stagger-grid .fade-up:nth-child(9) { transition-delay: 400ms; }
.stagger-grid .fade-up:nth-child(10) { transition-delay: 450ms; }
.stagger-grid .fade-up:nth-child(11) { transition-delay: 500ms; }
.stagger-grid .fade-up:nth-child(12) { transition-delay: 550ms; }
.stagger-grid .fade-up:nth-child(13) { transition-delay: 600ms; }
.stagger-grid .fade-up:nth-child(14) { transition-delay: 650ms; }
.stagger-grid .fade-up:nth-child(15) { transition-delay: 700ms; }
.stagger-grid .fade-up:nth-child(16) { transition-delay: 750ms; }

/* Image Reveal - Bild wird aufgedeckt */
.reveal {
    position: relative;
    overflow: hidden;
}

.reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-section, #000);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.reveal.is-visible::after {
    transform: scaleX(0);
}

/* Stagger für mehrere Reveals */
.reveal:nth-child(2)::after { transition-delay: 0.1s; }
.reveal:nth-child(3)::after { transition-delay: 0.2s; }
.reveal:nth-child(4)::after { transition-delay: 0.3s; }

::selection {
    background: var(--orange);
    color: var(--black);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* === CUSTOM CURSOR === */
.cursor, .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    display: none;
    will-change: transform, left, top;
}

@media (hover: hover) {
    /* Hide native cursor on desktop */
    html, html * {
        cursor: none !important;
    }
    
    .cursor {
        display: block;
        width: 8px;
        height: 8px;
        background: var(--orange);
        border-radius: 0;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    .cursor-follower {
        display: block;
        width: 40px;
        height: 40px;
        border: 1px solid var(--orange);
        border-radius: 0;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
        opacity: 0.5;
    }
    
    body:has(a:hover) .cursor,
    body:has(button:hover) .cursor {
        width: 16px;
        height: 16px;
    }
    
    body:has(a:hover) .cursor-follower,
    body:has(button:hover) .cursor-follower {
        width: 60px;
        height: 60px;
        opacity: 0.3;
    }
    
    /* White cursor on orange CTA section */
    body:has(.cta:hover) .cursor {
        background: var(--text-primary);
    }
    
    body:has(.cta:hover) .cursor-follower {
        border-color: var(--text-primary);
    }
}

/* === CONTAINER === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--padding);
}

/* Mobile-only line break */
.mobile-break {
    display: none;
}

/* Desktop-only line break */
.desktop-break {
    display: block;
}

/* === TYPOGRAPHY === */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header--center {
    text-align: center;
}

/* Text links - underline style */
.text-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(247, 152, 6, 0.6);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}

.text-link:hover {
    color: var(--orange);
    text-decoration-color: var(--orange);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.about-content {
    margin-top: -70px;
}

.section-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    max-width: 700px;
    line-height: 1.7;
}

.highlight {
    color: var(--orange);
}

.highlight-dot::after {
    content: '.';
    color: var(--orange);
}

.nowrap {
    display: inline;
    white-space: nowrap;
    word-break: keep-all;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.header.scrolled {
    background: rgba(19, 19, 19, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Gradient overlay for better nav readability on hero */
body:not(.about-page) .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body:not(.about-page) .header.scrolled::before {
    opacity: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--padding);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.logo-svg--footer {
    height: 24px;
}

/* Legacy text logo (fallback) */
.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.logo-dot {
    display: none;
}

.nav {
    display: flex;
}

.nav-inner {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--duration) var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--duration) var(--ease);
}

.nav-link:hover {
    color: var(--orange);
}

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

/* === WORK DROPDOWN === */
.nav-dropdown {
    position: relative;
}

.nav-link--dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    transition: transform 0.3s var(--ease);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown:hover .nav-link--dropdown {
    color: var(--orange);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #131313;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 200;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #131313;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item--active {
    background: rgba(255, 155, 26, 0.1);
}

.dropdown-item--active .dropdown-label {
    color: var(--accent);
}

.dropdown-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-desc {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
}

/* Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 8px;
}

.menu-line {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* === MOBILE MENU (Compact Style) === */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    background: rgba(19, 19, 19, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 4vw, 28px);
}

.mobile-section--secondary {
    gap: clamp(12px, 3vw, 20px);
}

.mobile-divider {
    width: 120px;
    height: 4px;
    background: var(--accent);
    margin: clamp(32px, 6vw, 48px) auto;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mobile-menu.active .mobile-divider {
    transform: scaleX(1);
    transition-delay: 0.3s;
}

.mobile-link {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(27px, 6.5vw, 47px);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s ease;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    padding: 0;
}

.mobile-link--small {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
}

.mobile-link--parent {
    display: block;
    text-align: center;
    width: 100%;
    pointer-events: none;
    cursor: default;
}

.mobile-dropdown-arrow {
    display: none;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu.active .mobile-link,
.mobile-menu.active .mobile-dropdown {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link:hover,
.mobile-link--small:hover {
    color: var(--orange);
}

/* Mobile Submenu */
.mobile-dropdown {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    text-align: center;
}

.mobile-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    padding: var(--space-sm) 0;
    margin-top: var(--space-xs);
}

.mobile-dropdown.active .mobile-submenu {
    display: flex;
}

.mobile-sublink {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 6px 0;
}

.mobile-sublink:hover {
    color: var(--text-primary);
}

.mobile-sublink--active {
    color: var(--accent);
}

/* Stagger Animation */
.mobile-menu.active .mobile-section:first-child .mobile-dropdown { transition-delay: 0.1s; }
.mobile-menu.active .mobile-section:first-child > a:nth-of-type(1) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-section:first-child > a:nth-of-type(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-section:first-child > a:nth-of-type(3) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-section--secondary .mobile-link:nth-child(1) { transition-delay: 0.45s; }
.mobile-menu.active .mobile-section--secondary .mobile-link:nth-child(2) { transition-delay: 0.5s; }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) var(--padding);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero.webp') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: -1;
}

/* Mobile: eigenes Hero-Bild */
@media (max-width: 768px) {
    .logo-svg {
        height: 33px;
    }
    
    .hero-bg {
        background-image: url('../img/hero_mobile.webp');
        background-position: center top;
        background-size: 250%;
    }
    
    .hero-bg::after {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    
    .hero {
        justify-content: flex-start;
        padding-top: 160px;
        min-height: 0;
        height: auto;
        padding-bottom: 400px;
    }
    
    .hero-title {
        margin-top: -40px;
        font-size: 32px !important;
    }
    
    .mobile-break {
        display: block;
    }
    
    .desktop-break {
        display: none;
    }
}

/* Extra small screens (iPhone 13 etc.) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 28px !important;
    }
}

.hero-content {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: var(--space-lg);
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--orange);
}

.hero-title {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line span {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(12px, 1.8vw, 16px);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-top: -15px;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero-scroll span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--border), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* === CATEGORY BAR (dezent, keine Fullwidth-Orange) === */
.category-bar {
    padding: var(--space-md) 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.chip {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    transition: all var(--duration) var(--ease);
    cursor: default;
    white-space: nowrap;
}

.chip:hover,
.chip.active {
    color: var(--text-primary);
    border-color: var(--accent);
}

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.filter-chips .chip {
    cursor: pointer;
}

.filter-chips .chip.active {
    color: var(--bg-deep);
    background: var(--accent);
    border-color: var(--accent);
}

/* === SECTIONS === */
.section {
    padding: var(--space-xl) 0;
    scroll-margin-top: 80px;
}

/* === INTRO SECTION === */
.intro {
    background: var(--bg-section);
    padding: var(--space-lg) 0;
}

.intro-content {
    max-width: 900px;
}

.intro-headline {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* === WORK / PROJECTS BENTO GRID === */
.work {
    padding: 120px 0 var(--space-2xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.project-card {
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 0;
    background: var(--bg-card);
    border: none;
    aspect-ratio: 1 / 1;
    transition: transform var(--duration) var(--ease);
}

.project-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.project-card.hidden {
    display: none;
}

/* Bento: Bild-Kachel */
.project-card--image {
    position: relative;
}

.project-card--image .project-card-image {
    position: absolute;
    inset: 0;
}

.project-card--image .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card--image .project-card-info {
    display: none;
}

/* Bento: Text-Kachel */
.project-card--text {
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-md);
}

.project-card--text .project-card-image {
    display: none;
}

.project-card--text .project-card-info {
    padding: 0;
    background: transparent;
}

.project-card--text .project-card-title {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.project-card--text .project-card-meta {
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* Bento: Graustufen-Hintergründe (dynamisch via JS) */
.project-card.project-card--text.bg-variant-a { background: #1a1a1a !important; }
.project-card.project-card--text.bg-variant-b { background: #252525 !important; }

/* Legacy color classes - können entfernt werden */
.project-card--teal { background: #252525; }
.project-card--orange { background: #333333; }
.project-card--gray { background: #1a1a1a; }
.project-card--green { background: #252525; }

.project-card--text .project-card-title,
.project-card--text .project-card-meta,
.project-card--text .project-card-category {
    color: var(--white);
}

/* === PAIRED HOVER EFFECT (nur Orange Overlay) === */

/* Orange Overlay für Bild-Kacheln */
.project-card--image .project-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 155, 26, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.project-card--image.pair-hover .project-card-image::after {
    background: rgba(255, 155, 26, 0.3);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: Mobile */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        aspect-ratio: 4 / 3;
    }
}

/* Old list style - kept for reference, can be removed */
.projects {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--bg-card);
    margin: var(--space-lg) 0;
}

.project {
    background: var(--bg-deep);
}

.project-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--padding);
    max-width: var(--container);
    margin: 0 auto;
    align-items: center;
    transition: background var(--duration) var(--ease);
}

.project:hover .project-link {
    background: var(--dark);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.project-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform var(--duration) var(--ease);
}

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--orange);
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity var(--duration) var(--ease);
}

.project:hover .project-overlay {
    opacity: 0.3;
}

.project-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.project-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    padding-top: 4px;
}

.project-info {
    flex: 1;
}

.project-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: var(--space-xs);
}

.project-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    transition: color var(--duration) var(--ease);
}

.project:hover .project-title {
    color: var(--orange);
}

.project-desc {
    font-size: 16px;
    color: var(--gray-light);
}

.project-arrow {
    font-size: 24px;
    color: var(--orange);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.project:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Alternate layout */
.project:nth-child(even) .project-link {
    direction: rtl;
}

.project:nth-child(even) .project-content {
    direction: ltr;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    transition: all var(--duration) var(--ease);
}

.btn-primary {
    background: var(--orange);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    transition: transform var(--duration) var(--ease);
}

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

/* Section CTA (zentrierter Button unter Grids) */
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* === ABOUT === */
.about {
    background: #000000;
}

.about .section-header {
    margin-bottom: var(--space-md);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.image-wrapper img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-badge {
    display: none; /* Entfernt */
}

/* Stats als dezente Zeile */
.about-stats-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    opacity: 0.8;
}

.about-stats-line strong {
    font-weight: 600;
    color: var(--text-secondary);
}

.stats-divider {
    color: var(--border);
    font-size: 8px;
}

.about-text p {
    color: var(--gray-light);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-content .btn {
    margin-top: var(--space-lg);
}

/* Stats entfernt - jetzt .about-stats-line */

/* === ABOUT PAGE (Standalone) === */

/* Keine runden Ecken auf About-Page */
.about-page * {
    border-radius: 0 !important;
}

/* Headline einzeilig auf Desktop */
.about-page .project-title {
    white-space: nowrap;
    font-size: clamp(28px, 5vw, 56px);
}

@media (max-width: 1024px) {
    .about-page .project-title {
        white-space: normal;
    }
}

/* Content Section: dunkler Hintergrund */
.about-content-section {
    background: #000;
    padding: 80px 0 60px;
}

/* Wrapper: gleiche Breite wie .container */
.about-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--padding);
}

/* Flow: Bild floatet rechts, Text drumherum */
.about-flow {
    margin-bottom: 0;
}

/* Abstand zwischen mehreren about-flow Blöcken */
.about-flow + .about-flow {
    margin-top: 4rem;
}

.about-flow::after {
    content: "";
    display: table;
    clear: both;
}

.about-portrait {
    float: right;
    margin: 0 0 2rem 7rem;
    width: 38%;
}

.about-portrait img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-flow p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-flow p:last-of-type {
    margin-bottom: 0;
}

.about-flow p strong {
    color: var(--text-primary);
}

.about-flow h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 6rem 0 1.5rem;
}

/* Erste h2 im Flow: kein Abstand nach oben */
.about-flow > h2:first-child {
    margin-top: 0;
}

.about-flow h2.impressum-headline {
    margin-top: 0;
}

/* h3 direkt nach h2: weniger Abstand */
.about-flow h2 + h3 {
    margin-top: 1rem;
}

.about-flow h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 3rem 0 0.75rem;
}

.about-flow h4 {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.5rem;
}

.legal-credits {
    margin-top: 2rem;
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.6;
}

.about-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.about-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.75em;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.85em + 2px);
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.about-list li strong {
    color: var(--text-primary);
}

/* Panel: zweispaltig, grauer Hintergrund */
.about-panel {
    background: #131313;
    padding: 3rem var(--padding);
    margin: 2.5rem 0 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
}

/* Panel: nur Opacity-Fade, kein translateY (verhindert Überlappen beim Animieren) */
.about-panel.fade-up {
    transform: none;
}

.about-panel.fade-up.is-visible {
    transform: none;
}

.about-panel-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.about-panel-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-panel-column li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-panel-column li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.85em + 3px);
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
}

/* KI im Workflow: erste h2 näher am Bild (weil kein Text dazwischen) */
.kiiw-page .about-flow h2:first-of-type,
.kiiw-page .about-flow h2.impressum-headline {
    margin-top: -1rem;
}

/* Mobile: weniger Abstand zwischen Blöcken */
@media (max-width: 900px) {
    .about-flow h2 {
        margin: 3rem 0 1.5rem;
    }
    
    .kiiw-page .about-flow h2:first-of-type,
    .kiiw-page .about-flow h2.impressum-headline {
        margin-top: 0;
    }
}

/* Responsive: About Page */
@media (max-width: 900px) {
    .about-portrait {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 2rem;
    }
    
    /* KI im Workflow: randabfallendes Bild */
    .kiiw-page .about-content-section {
        padding-top: 0;
    }
    
    .kiiw-page .about-wrapper {
        padding-top: 0;
    }
    
    .kiiw-page .about-flow:first-child {
        margin-top: 0;
    }
    
    .kiiw-page .about-portrait {
        width: calc(100% + 2 * var(--padding));
        margin: 0 calc(-1 * var(--padding)) 2rem;
    }
    
    .about-panel {
        grid-template-columns: 1fr;
        padding: 2.5rem var(--padding);
        gap: 2rem;
        margin-top: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-wrapper {
        padding: 0 var(--padding);
    }
    
    .about-page .project-title {
        font-size: clamp(24px, 8vw, 36px);
    }
    
    /* Globale Textgröße 15px für alle Fließtexte im Mobile */
    .about-flow p,
    .about-flow h2,
    .about-list li,
    .about-panel-column li {
        font-size: 15px;
    }
    
    .about-flow h2 {
        font-size: 26px;
    }
    
    .about-panel-column h3 {
        font-size: 16px;
    }
}

/* === SERVICES (Cream Break) === */
.services {
    background: var(--cream);
    color: #1a1a1a;
}

.services .section-label {
    color: var(--accent);
}

.services .section-title {
    color: #151515;
}

.services .section-title .highlight {
    color: var(--accent);
}

.services .section-header {
    margin-bottom: calc(var(--space-xl) / 2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--cream-dark);
    border-radius: 6px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.service {
    background: var(--cream);
    padding: var(--space-md) var(--space-lg);
    transition: background var(--duration) var(--ease);
}

.service:hover {
    background: var(--cream-dark);
}

.service-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.service-title {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: #1a1a1a;
}

.service-title .service-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(247, 152, 6, 0.6);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.service-title .service-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.service-desc {
    font-size: 18px;
    color: #4a4a4a;
    line-height: 1.7;
}

/* === CTA === */
.cta {
    background: var(--accent);
    text-align: center;
    padding: var(--space-lg) var(--padding);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.cta-title {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bg-deep);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 18px;
    color: var(--bg-deep);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    opacity: 0.85;
}

.cta .btn-primary {
    background: transparent;
    color: var(--bg-deep);
    border: 1px solid var(--bg-deep);
}

.cta .btn-primary:hover {
    background: var(--bg-deep);
    color: var(--text-primary);
}

/* === CONTACT === */
.contact .section-header {
    margin-bottom: var(--space-md);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.contact-email {
    display: block;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-decoration: underline;
    text-decoration-color: rgba(247, 152, 6, 0.6);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}

.contact-email:hover {
    color: var(--orange);
    text-decoration-color: var(--orange);
}

.contact-location {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: var(--space-lg);
}

.contact-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-light);
    transition: color var(--duration) var(--ease);
}

.social-link:hover {
    color: var(--orange);
}

/* Form */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 42px; /* Align with headline height */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Honeypot - unsichtbar für Spam-Bots */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font);
    font-size: 16px;
    color: var(--white);
    background: var(--dark);
    border: 1px solid var(--gray);
    border-radius: 0;
    transition: border-color var(--duration) var(--ease);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

/* Prevent autofill background color change */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--dark) inset !important;
    -webkit-text-fill-color: var(--white) !important;
    caret-color: var(--white);
}

/* Error state for form fields */
.form-group input.field-error,
.form-group textarea.field-error {
    border-color: #ff4444;
}

.form-group input.field-error::placeholder,
.form-group textarea.field-error::placeholder {
    color: #ff4444;
}

/* Form feedback messages */
.form-feedback {
    font-size: 14px;
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

.form-feedback.error {
    color: #ff4444;
    margin-top: var(--space-sm);
}

.form-feedback.success {
    color: var(--text-secondary);
    margin-top: 29px;
}

.form-feedback.success .success-title {
    display: block;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: var(--orange);
    margin-bottom: var(--space-sm);
}

.form-feedback.success .success-text {
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    padding: calc(var(--space-xl) / 2) 0 var(--space-md);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: calc(var(--space-xl) / 2);
}

.footer-brand .logo-text {
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-light);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a,
.footer-legal a {
    font-size: 14px;
    color: var(--gray-light);
    transition: color var(--duration) var(--ease);
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--orange);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-light);
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 1024px) {
    :root {
        --space-xl: 80px;
        --space-2xl: 120px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card--large {
        grid-column: span 2;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-image {
        order: -1;
    }
    
    .about-badge {
        right: var(--space-md);
    }
    
    .project-link {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .project:nth-child(even) .project-link {
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-location {
        margin-bottom: calc(var(--space-lg) / 2);
    }
    
    .contact-form-wrapper {
        margin-top: 0;
    }
    
    .form-feedback.success {
        margin-top: 0;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 64px;
        --space-2xl: 80px;
    }
    
    .nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* Work Grid Mobile: Kleines Thumb links, Text rechts */
    .work {
        padding-top: 64px;
    }
    
    .work .container,
    .work-all .container {
        padding: 0;
    }
    
    .work .section-header,
    .work-all .section-header {
        padding: 0 var(--padding);
    }
    
    .work-all .filter-bar {
        padding: 0 var(--padding);
    }
    
    .projects-grid {
        grid-template-columns: 100px 1fr;
        gap: 0;
    }
    
    .project-card {
        aspect-ratio: auto;
        min-height: 80px;
    }
    
    .project-card--image {
        aspect-ratio: 1;
    }
    
    .project-card--text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 12px var(--space-md) var(--space-sm);
        line-height: 1.3;
    }
    
    .project-card--text .project-card-info {
        text-align: left;
    }
    
    .project-card--text .project-card-title {
        font-size: 18px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .project-card--text .project-card-meta {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .project-card--large {
        grid-column: span 1;
    }
    
    /* About Mobile: Weniger Abstand zwischen Bild und Text */
    .about-grid {
        gap: var(--space-md);
    }
    
    .about-content {
        margin-top: 0;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        background: transparent;
        gap: var(--space-md);
        max-width: none;
        margin: 0;
    }
    
    .service {
        text-align: left;
        background: transparent;
        padding: 0;
    }
    
    .service:hover {
        background: transparent;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .about-stats {
        justify-content: space-between;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .about-badge {
        position: relative;
        right: auto;
        bottom: auto;
        display: inline-block;
        margin-top: var(--space-md);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .stat {
        text-align: left;
    }
}

/* === PROJECT PAGE === */
.work-all {
    padding-top: 140px;
    padding-bottom: 0;
}

.project-hero {
    padding-top: 140px;
    padding-bottom: var(--space-lg);
    background: var(--bg-deep);
    margin-bottom: -1px;
}

.project-header {
    max-width: 800px;
}

.project-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.project-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.project-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-meta-block {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.meta-value {
    font-size: 15px;
    color: var(--text-primary);
}

/* Project Images - Seamless Stack */
.project-image {
    position: relative;
    background: #000;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-image-overlay {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: 2;
}

/* Desktop: caption-below versteckt Overlay (nur Mobile sichtbar) */
.project-image--caption-below .project-image-overlay {
    display: none;
}

/* Gap between images (Desktop & Mobile) */
.project-image--gap {
    margin-top: var(--space-sm);
}

/* Gradient overlay for text readability */
.project-image-overlay::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--space-lg));
    left: calc(-1 * var(--space-lg));
    width: 450px;
    height: 280px;
    background: radial-gradient(ellipse at top left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 35%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.project-image-overlay .overlay-title {
    display: block;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.project-image-overlay .overlay-subtitle {
    display: block;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* Project Content */
.project-content {
    background: var(--bg-deep);
}

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

.content-block {
    margin-bottom: var(--space-xl);
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.content-block p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Content Lead (project intro text) */
.content-lead {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.project-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.project-content p:last-child {
    margin-bottom: 0;
}

/* Text block within seamless image stream */
.project-text-block {
    background: var(--cream);
    padding: var(--space-xl) var(--space-lg);
    margin-bottom: -1px; /* Verhindert 1px-Linie zum nächsten Element */
}

.project-text-block h3 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    margin-bottom: var(--space-md);
}

.project-text-block p {
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
}

.project-text-block p + p {
    margin-top: var(--space-md);
}

.project-text-block .content-lead {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    color: #151515;
    margin-bottom: var(--space-md);
}

/* Project Images - Seamless */
.project-images {
    background: #000;
}

.project-images.section {
    padding: 0;
}

.project-image {
    position: relative;
    margin-bottom: -1px;
}

.project-images .project-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: unset;
    object-fit: unset;
}

.image-grid {
    display: grid;
    gap: 0;
}

.image-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-grid-item {
    position: relative;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-grid-item .project-image-overlay {
    top: var(--space-md);
    left: var(--space-md);
}

/* Project Navigation */
.project-nav {
    background: var(--bg-deep);
    padding: var(--space-md) 0;
}

.project-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-xs) 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-nav-link:hover .nav-arrow,
.project-nav-link:hover .nav-label {
    color: var(--accent);
}

.nav-arrow {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.project-nav-link--prev {
    justify-content: flex-start;
}

.project-nav-link--all {
    flex-direction: column;
    text-align: center;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.project-nav-link--all:hover {
    border-color: var(--accent);
}

.project-nav-link--all:hover .nav-title {
    color: var(--accent);
}

.project-nav-link--all .nav-label {
    color: var(--accent);
}

.project-nav-link--next {
    justify-content: flex-end;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

/* Responsive Project Page */
@media (max-width: 768px) {
    .project-hero {
        padding-top: 100px;
    }
    
    .project-meta-block {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .image-grid--2,
    .image-grid--3 {
        grid-template-columns: 1fr;
    }
    
    .project-nav-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
    
    .project-nav-link--all {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: var(--space-xs);
    }
    
    /* Bilder randabfallend auf Mobile */
    .project-images .container {
        padding: 0;
    }
    
    .project-image-overlay {
        top: var(--space-sm);
        left: var(--space-sm);
    }
    
    /* Mobile text block styling */
    .project-text-block {
        padding: calc(var(--space-md) + 10px) var(--space-sm) var(--space-md);
    }
    
    .project-text-block .content-lead {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: var(--space-sm);
    }
    
    .project-text-block p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .project-image-overlay .overlay-title {
        font-size: 14px;
    }
    
    .project-image-overlay .overlay-subtitle {
        font-size: 11px;
    }
    
    /* Mobile: Bildtitel als separate Zeile ÜBER dem Bild */
    .project-image--caption-below {
        display: flex;
        flex-direction: column;
    }
    
    .project-image--caption-below .project-image-overlay {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        background: #1a1a1a;
        padding: var(--space-sm) var(--space-sm);
        order: -1;
    }
    
    .project-image--caption-below .project-image-overlay::before {
        display: none;
    }
    
    /* Globale Textgröße 15px für alle Fließtexte im Mobile */
    .section-intro,
    .intro-text,
    .about-text p,
    .project-subtitle,
    .about-list li,
    .service-card p,
    .service-desc,
    .cta-text,
    .contact-text,
    .footer p,
    .meta-value {
        font-size: 15px !important;
    }
}

/* === IMAGE ZOOM (Mobile In-Place) === */
.project-image img {
    transition: transform 0.25s ease;
    touch-action: manipulation; /* Disable Safari double-tap zoom */
}

.project-image img.is-zoomed {
    position: relative;
    z-index: 1000;
    cursor: grab;
}

.project-image img.is-zoomed.is-dragging {
    transition: none;
}

.project-image img.is-zoomed:active {
    cursor: grabbing;
}

.has-zoomed-img {
    z-index: 999;
    overflow: visible;
}

.project-image {
    touch-action: manipulation; /* iOS Safari fix */
}

/* === NEWSLETTER GRID === */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-grid .project-image {
    margin-bottom: 0;
}

.newsletter-grid .project-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === VIDEO GRID === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item {
    position: relative;
}

.video-wrapper {
    position: relative;
    background: #1a1d21;
    overflow: hidden;
}

.project-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 700/1244;
    object-fit: cover;
}

/* Central Play Button */
.video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 244, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.3s ease;
    z-index: 10;
}

.video-play-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
    color: var(--bg-deep);
}

.video-play-center svg {
    width: 28px;
    height: 28px;
}

.video-play-center .icon-pause {
    display: none;
}

.video-wrapper.is-playing .video-play-center {
    opacity: 0;
    pointer-events: none;
}

.video-wrapper.is-playing:hover .video-play-center {
    opacity: 1;
    pointer-events: auto;
}

.video-wrapper.is-playing .video-play-center .icon-play {
    display: none;
}

.video-wrapper.is-playing .video-play-center .icon-pause {
    display: block;
}

/* Fullscreen Button - Mobile only */
.video-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 244, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 15;
}

.video-fullscreen-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--bg-deep);
}

.video-fullscreen-btn svg {
    width: 18px;
    height: 18px;
}

/* Video Fullscreen Overlay */
.video-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-fullscreen-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.video-fullscreen-overlay video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.video-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 244, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.video-fullscreen-close:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--bg-deep);
}

.video-fullscreen-close svg {
    width: 20px;
    height: 20px;
}

.video-fullscreen-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.video-fullscreen-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

.video-fullscreen-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 244, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.video-fullscreen-overlay.is-paused .video-fullscreen-play {
    opacity: 1;
    pointer-events: auto;
}

.video-fullscreen-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
    color: var(--bg-deep);
}

.video-fullscreen-play svg {
    width: 32px;
    height: 32px;
}

/* Progress Bar */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, height 0.15s ease;
}

.video-wrapper:hover .video-progress,
.video-wrapper.is-playing .video-progress {
    opacity: 1;
}

.video-progress:hover {
    height: 6px;
}

.video-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
}

/* Newsletter Grid Mobile */
@media (max-width: 768px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }
    
    .newsletter-column {
        gap: 16px;
    }
}

/* Video Grid Mobile */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .video-play-center {
        width: 60px;
        height: 60px;
    }
    
    .video-play-center svg {
        width: 24px;
        height: 24px;
    }
    
    /* Override hover on mobile - button stays hidden during playback */
    .video-wrapper.is-playing .video-play-center,
    .video-wrapper.is-playing:hover .video-play-center {
        opacity: 0;
        pointer-events: none;
    }
    
    .video-fullscreen-btn {
        display: flex; /* Show on mobile */
        bottom: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    
    .video-fullscreen-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .video-progress {
        opacity: 1;
    }
}