/* === DESIGN SYSTEM & Warmtrusted Premium Palette === */
:root {
    --bg-dark: #0f0b09;
    --bg-card: rgba(25, 20, 15, 0.55);
    --bg-glass: rgba(22, 17, 14, 0.65);
    --text-main: #f4efe6;
    --text-muted: #b8a99a;
    --border-color: rgba(212, 175, 55, 0.15);
    --accent-glow: rgba(212, 175, 55, 0.12);
    --accent-warm: rgba(212, 175, 55, 0.2);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 500;
    color: #fdfbf7;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === FILM GRAIN OVERLAY === */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    transform: translateZ(0);
    will-change: transform;
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 79px;
    top: calc(79px + env(safe-area-inset-top));
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0.2));
    z-index: 1001;
    transition: none;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* === HEADER === */
header {
    position: fixed;
    top: -150px;
    width: 100%;
    height: calc(80px + 150px + env(safe-area-inset-top));
    padding-top: calc(150px + env(safe-area-inset-top));
    background-color: rgba(10, 8, 6, 0.7);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: rgba(10, 8, 6, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-decoration: none;
    line-height: 1;
}



/* Base text */
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo span {
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 4px;
    margin-bottom: -4px;
    /* balance out the visual baseline */
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: rgba(212, 175, 55, 0.7);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover::after {
    width: 100%;
}

.cta-header {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 30px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-header:hover {
    background-color: #fdfbf7;
    color: #0a0806;
    border-color: #fdfbf7;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.cta-header:hover::before {
    opacity: 1;
}

/* === SEKTIONEN === */
section {
    padding: 160px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    background: rgba(212, 175, 55, 0.03);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
    font-weight: 300;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1), transparent);
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent);
    pointer-events: none;
}

/* === PREMIUM IMAGE WRAPPER === */
.premium-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    background-color: transparent;
}

.premium-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* === STANDARDIZED IMAGE RULES FOR PARALLAX === */
.premium-image-wrapper img,
.premium-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Force hide any native iOS Safari play buttons on background videos */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-enclosure {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}



.premium-image-wrapper img {
    transform: scale(1.02);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-image-wrapper:hover img {
    transform: scale(1.08);
}

.premium-image-wrapper:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.25);
}

/* === 1. HERO === */
.hero-scroll-wrapper {
    height: 200vh;
    position: relative;
}

#hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    padding: 0;
    overflow: hidden;
}

.hero-content-card {
    background: rgba(15, 12, 10, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 48px 44px;
    position: relative;
    overflow: hidden;
}

.hero-content-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
    left: var(--glow-x, 50%);
    top: var(--glow-y, 50%);
}

.hero-content-card:hover::before {
    opacity: 1;
}

.hero-content-card>* {
    position: relative;
    z-index: 1;
}

.hero-bg-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: -20px;
    background: linear-gradient(to bottom, rgba(10, 8, 6, 0.2) 0%, transparent 25%, transparent 65%, var(--bg-dark) 100%), linear-gradient(to right, rgba(10, 8, 6, 0.6) 0%, transparent 40%), radial-gradient(circle at center right, transparent 20%, rgba(10, 8, 6, 0.4) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-video-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero-portrait {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 2000px;
}

.hero-portrait-card {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 3.5/4.5;
    background: rgba(15, 12, 10, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.hero-portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-portrait-card:hover img {
    transform: scale(1.08);
}

#hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

#hero h1 span {
    color: #d4af37;
    font-weight: 300;
}

#hero p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 550px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background: #fdfbf7;
    color: #0a0806;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: linear-gradient(135deg, #fff, #d4af37);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-cta::after {
    content: '→';
    margin-left: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25), 0 0 80px rgba(212, 175, 55, 0.1);
}

.hero-cta:hover::after {
    transform: translateX(4px);
}

.hero-cta:hover::before {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    animation: fadeInUp 1.5s ease 1.5s both;
}

.scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
}

/* === 2. ABOUT === */
#about {
    position: relative;
    background-color: rgb(33, 18, 17);
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 60px;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-col .premium-image-wrapper {
    aspect-ratio: 1200 / 1386;
    /* matches exact image proportions, shortened by 10% */
}

.about-text-col {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-left: -80px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-text-col:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.glow-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glow-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card>* {
    position: relative;
    z-index: 1;
}

.about-text-col p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.about-text-col p strong {
    color: var(--text-main);
    font-weight: 500;
}



/* === 3. PHILOSOPHIE (STACKING CARDS & BONSAI) === */
#philosophy {
    background-color: rgba(212, 175, 55, 0.015);
}

.sticky-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.sticky-col {
    position: sticky;
    top: 120px;
}

.sticky-col .premium-image-wrapper {
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    background-color: #000;
}

.scroll-col {
    position: relative;
    padding-bottom: 0vh;
}

.philosophy-text-header {
    position: sticky;
    top: 120px;
    z-index: 5;
    margin-top: 648px;
    margin-bottom: 713px;
}

.scroll-card {
    position: sticky;
    background: rgba(15, 11, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6);
    transition: border-color 0.5s ease, transform 0.4s ease-out;
    transform-style: preserve-3d;
    margin-bottom: 0;
}

.card-1 {
    top: 350px;
    z-index: 10;
    margin-top: 0;
    margin-bottom: 351px;
}

.card-2 {
    top: 480px;
    z-index: 11;
    margin-top: 324px;
    margin-bottom: 205px;
}

.card-3 {
    top: 610px;
    z-index: 12;
    margin-top: 324px;
    margin-bottom: 54px;
}

.scroll-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    z-index: 100 !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
}

.scroll-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #fdfbf7;
    transition: color 0.3s ease;
}

.scroll-card:hover h3 {
    color: #d4af37;
}

.scroll-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.step-number {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.5);
    margin-bottom: 12px;
}

/* === 4. KONZEPT === */
#concept {
    text-align: center;
}

#concept .section-subtitle {
    margin: 0 auto 80px auto;
}

.concept-hub {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.concept-cards-wrapper {
    display: contents;
}

.concept-col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-row: 1 / 3;
    grid-column: 1;
    justify-content: center;
}

.concept-col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-row: 1 / 3;
    grid-column: 3;
    justify-content: center;
}

.concept-center-col {
    grid-row: 1 / 3;
    grid-column: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-left: -40px;
    margin-right: -40px;
}

.concept-center-image {
    width: 320px;
    aspect-ratio: 1/1;
    align-self: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-color);
    background: #000;
}

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

.concept-box {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease-out;
    position: relative;
    overflow: hidden;
    flex: 0 1 auto;
    transform-style: preserve-3d;
}

.concept-col-left .concept-box {
    padding-right: 60px;
}

.concept-col-right .concept-box {
    padding-left: 60px;
}

.concept-box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.concept-box:hover::before {
    opacity: 1;
}

.concept-box>* {
    position: relative;
    z-index: 1;
}

.concept-box:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.concept-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.concept-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

.concept-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* === 5. KALENDER === */
#contact {
    padding: 120px 0 40px;
    background: rgba(255, 255, 255, 0.01);
    /* Subtle visual separation */
}

.calendar-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.calendar-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    overflow: hidden;
    height: auto;
    min-height: 500px;
    /* Safe minimum, grows dynamically */
    position: relative;
    z-index: 5;
}

.calendar-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 570px;
    border: none;
    border-radius: 16px;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

/* Calendar loading skeleton */
.calendar-loading {
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    background: rgba(15, 11, 9, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.calendar-loading.loaded {
    opacity: 0;
    pointer-events: none;
}

.calendar-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-top-color: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.calendar-loading span {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.calendar-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 500px;
    opacity: 0.7;
    margin-bottom: 30px;
}

.calendar-note svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    width: 14px;
    height: 14px;
}

/* === FOOTER === */
footer {
    padding: 40px 0 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 1px;
    background: rgba(212, 175, 55, 0.5);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ============================================================ */
/* === LEGAL PAGES (Impressum & Datenschutz) === */
/* ============================================================ */
.legal-hero {
    padding-top: 140px;
    padding-top: calc(140px + env(safe-area-inset-top));
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.04), transparent 70%);
    pointer-events: none;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
    transition: color 0.3s ease;
}

.legal-back:hover {
    color: var(--text-main);
}

.legal-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.legal-back:hover svg {
    transform: translateX(-4px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 120px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.4s ease;
}

.legal-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.legal-card h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: #fdfbf7;
    position: relative;
    padding-bottom: 16px;
}

.legal-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), transparent);
}

.legal-card h3 {
    font-size: 1.15rem;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #fdfbf7;
}

.legal-card p,
.legal-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-card ul {
    list-style: none;
    padding: 0;
}

.legal-card ul li {
    padding-left: 20px;
    position: relative;
}

.legal-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
}

.legal-card a {
    color: #d4af37;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(212, 175, 55, 0.3);
    transition: text-decoration-color 0.3s ease;
}

.legal-card a:hover {
    text-decoration-color: rgba(212, 175, 55, 0.8);
}

.legal-card strong {
    color: var(--text-main);
    font-weight: 500;
}

/* ============================================================ */
/* === RESPONSIVE: TABLET (max 992px) === */
/* ============================================================ */
@media (max-width: 992px) {
    #hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
        padding-top: calc(100px + env(safe-area-inset-top));
    }

    .hero-content,
    .hero-portrait {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }

    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .about-grid,
    .sticky-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-col {
        margin-left: 0;
        margin-top: -40px;
        padding: 40px 30px;
    }

    .sticky-col {
        position: sticky;
        top: 80px;
        z-index: 0;
    }

    .sticky-col .premium-image-wrapper {
        aspect-ratio: 2 / 3;
        border-radius: 20px;
    }

    .concept-hub {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .concept-col-left,
    .concept-col-right {
        grid-column: 1;
        grid-row: auto;
        padding: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .concept-col-left .concept-box,
    .concept-col-right .concept-box {
        flex: 1 1 280px;
        padding: 32px;
    }

    .concept-center-col {
        grid-column: 1;
        grid-row: auto;
        margin: 30px 0;
        margin-left: 0;
        margin-right: 0;
    }

    .concept-center-image {
        width: 100%;
        max-width: 320px;
        aspect-ratio: 1/1;
    }

    /* Mobile: Stacking auf kleinen Bildschirmen deaktivieren */
    .scroll-col {
        padding-bottom: 40px;
    }

    .philosophy-text-header {
        position: relative;
        top: 0;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .scroll-card {
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 40px !important;
        z-index: 1 !important;
        background: rgba(15, 10, 5, 0.20) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
}

/* ============================================================ */
/* === RESPONSIVE: MOBILE (max 768px) === */
/* ============================================================ */
@media (max-width: 768px) {
    section {
        padding: 100px 0;
    }

    /* Legal pages mobile */
    .legal-hero {
        padding-top: 120px;
        padding-top: calc(120px + env(safe-area-inset-top));
        padding-bottom: 48px;
    }

    .legal-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .legal-card h2 {
        font-size: 1.35rem;
    }

    .legal-content {
        padding-bottom: 80px;
    }

    .hero-scroll-wrapper {
        height: auto;
    }

    #hero {
        min-height: auto;
        height: auto;
        position: relative;
    }

    #hero .container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding-top: 130px;
        padding-top: calc(130px + env(safe-area-inset-top));
        /* Increased top space */
        padding-bottom: 70px;
        /* Increased bottom space */
    }

    #hero h1 {
        font-size: 2.4rem;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-content-card {
        padding: 32px 24px 28px;
        border-radius: 20px;
        margin-top: 20px;
        /* More space above the card/tag */
    }

    .hero-portrait-card {
        max-width: 280px;
        aspect-ratio: 3/4;
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 20px;
    }

    .section-tag {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    /* About mobile */
    .about-grid {
        gap: 0;
    }

    .about-image-col .premium-image-wrapper {
        aspect-ratio: 1200 / 1386;
        /* Shortened by 10% */
        border-radius: 20px 20px 0 0;
    }

    .about-text-col {
        margin-top: -20px;
        padding: 32px 24px;
        border-radius: 0 0 20px 20px;
    }

    .about-text-col p {
        font-size: 1rem;
    }

    /* Philosophy mobile defaults to auto/sticky from tablet */

    .scroll-card {
        padding: 28px 24px;
    }

    .scroll-card h3 {
        font-size: 1.4rem;
    }

    .scroll-card p {
        font-size: 0.95rem;
    }

    /* Concept mobile */
    .concept-cards-wrapper {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 24px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .concept-cards-wrapper::-webkit-scrollbar {
        display: none;
    }

    .concept-col-left,
    .concept-col-right {
        display: contents;
    }

    .concept-col-left .concept-box,
    .concept-col-right .concept-box {
        flex: 0 0 85vw !important;
        min-width: 85vw !important;
        max-width: 85vw !important;
        padding: 28px 24px !important;
        scroll-snap-align: center;
        margin: 0 !important;
    }

    .concept-center-col {
        margin: 0 0 24px 0;
    }

    .concept-center-image {
        max-width: none;
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 20px;
    }

    .concept-box h3 {
        font-size: 1.1rem;
    }

    .concept-box p {
        font-size: 0.85rem;
    }

    /* Calendar mobile */
    #contact {
        padding-bottom: 20px;
    }

    .calendar-wrapper {
        margin-top: 20px;
        height: auto !important;
        min-height: 600px !important;
        padding: 4px;
        border-radius: 16px;
        overflow: visible !important;
    }

    .calendar-note {
        margin-top: 20px !important;
    }

    .calendar-wrapper iframe {
        border-radius: 12px;
        clip-path: none !important;
        margin-bottom: 0 !important;
    }

    .calendar-note {
        font-size: 0.8rem;
        padding: 0 16px;
    }

    /* Footer mobile */
    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* Header mobile */
    .logo {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }

    .logo span {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    /* Smooth mobile animations */
    .reveal {
        transform: translateY(20px);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .delay-1 {
        transition-delay: 0.1s;
    }

    .delay-2 {
        transition-delay: 0.2s;
    }

    .delay-3 {
        transition-delay: 0.3s;
    }

    .cta-header {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
}

/* ============================================================ */
/* === RESPONSIVE: SMALL MOBILE (max 480px) === */
/* ============================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 80px 0;
    }

    /* Legal pages small mobile */
    .legal-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .legal-card h2 {
        font-size: 1.2rem;
    }

    .legal-card p,
    .legal-card li {
        font-size: 0.88rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    .hero-content-card {
        padding: 24px 18px 22px;
    }

    .hero-portrait-card {
        max-width: 240px;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .about-text-col {
        padding: 24px 18px;
    }

    .about-text-col p {
        font-size: 0.9rem;
    }

    .scroll-card {
        padding: 24px 18px;
    }

    .scroll-card h3 {
        font-size: 1.25rem;
    }

    .concept-box {
        padding: 24px 18px;
    }

    .calendar-wrapper {
        min-height: 800px !important;
        height: auto !important;
        border-radius: 10px;
        padding: 0;
    }

    .calendar-note {
        margin-top: 15px !important;
    }

    .calendar-wrapper iframe {
        border-radius: 10px;
    }

    /* Reduce glow/shadow effects for performance on small screens */
    .premium-image-wrapper {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }
}

/* ============================================================ */
/* === RESPONSIVE: VERY SMALL (max 375px) === */
/* ============================================================ */
@media (max-width: 375px) {
    #hero h1 {
        font-size: 1.75rem;
    }

    .hero-portrait-card {
        max-width: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .calendar-wrapper {
        min-height: 600px !important;
        height: auto !important;
    }
}

/* ============================================================ */
/* === TOUCH DEVICE OVERRIDES === */
/* ============================================================ */
@media (hover: none) and (pointer: coarse) {

    /* Disable tilt/perspective transforms on touch (causes jank) */
    [data-tilt] {
        transform: none !important;
    }

    /* Keep glow visible but static on touch */
    .glow-card::before,
    .concept-box::before {
        opacity: 0.4;
        left: 50%;
        top: 50%;
    }

    /* Disable parallax background movement on touch */
    .hero-bg-frame {
        transform: none !important;
    }

    /* Simpler hover states for touch */
    .premium-image-wrapper:hover img {
        transform: scale(1.1);
    }

    .hero-portrait-card:hover img {
        transform: none;
    }

    .concept-box:hover {
        transform: none;
    }

    .hero-cta:hover {
        transform: none;
    }

    /* Reduce film grain on mobile for perf */
    body::after {
        opacity: 0.02;
    }
}