/* === AUS DER HEIMAT KÜCHE - Premium Minimalist === */

:root {
    --charcoal: #1a1a1a;
    --charcoal-soft: #2d2d2d;
    --olive: #5c6b4f;
    --olive-dark: #3d4a33;
    --olive-light: #8a9a7a;
    --warm-white: #f8f6f1;
    --warm-bg: #f3f0e8;
    --cream: #ede8dc;
    --stone: #c8c0b0;
    --text-primary: #1a1a1a;
    --text-secondary: #6a6a6a;
    --text-tertiary: #9a9a9a;
    --border: rgba(26, 26, 26, 0.08);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* GSAP fallback: ensure content visible even if JS fails */
[data-animate] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
body.gsap-ready [data-animate] {
    opacity: 1 !important;
    transform: none !important;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--warm-white);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner { text-align: center; }

.preloader-logo {
    margin-bottom: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 100%;
    background: var(--olive);
    animation: loadBar 1.2s ease-in-out;
    transform-origin: left;
}

@keyframes loadBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(248, 246, 241, 0.92);
    padding: 14px 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.logo-svg {
    height: 36px;
    width: auto;
    color: var(--warm-white);
    transition: color 0.4s;
}

.navbar.scrolled .logo-svg {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 44px;
}

.nav-links a {
    color: rgba(248, 246, 241, 0.7);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--warm-white);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--charcoal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 22px; height: 1.5px;
    background: var(--warm-white);
    transition: all 0.3s;
}

.navbar.scrolled .nav-toggle span {
    background: var(--charcoal);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--charcoal);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(92, 107, 79, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 70%, rgba(200, 192, 176, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(92, 107, 79, 0.08) 0%, transparent 40%);
    animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particles canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 32px;
}

.hero-emblem-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(200, 192, 176, 0.15);
}

.emblem-ring.outer {
    inset: -12px;
    border-color: rgba(200, 192, 176, 0.08);
}

.hero-emblem-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: brightness(1.6) drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-line {
    width: 40px;
    height: 1px;
    background: var(--stone);
    margin: 0 auto 28px;
    transform-origin: center;
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.3px;
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--stone);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid rgba(200, 192, 176, 0.2);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
    background: rgba(200, 192, 176, 0.08);
    border-color: rgba(200, 192, 176, 0.4);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.6; transform: scaleY(0.6); }
}

/* === MARQUEE === */
.marquee {
    padding: 20px 0;
    background: var(--olive-dark);
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(248, 246, 241, 0.4);
    padding-right: 20px;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === LABELS & TITLES === */
.label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 16px;
}

.label.light { color: var(--olive-light); }

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-title.light { color: var(--warm-white); }

.section-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* === ABOUT === */
.about {
    padding: 140px 0;
    background: var(--warm-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: start;
}

.about-line {
    width: 40px;
    height: 2px;
    background: var(--olive);
    margin-top: 32px;
}

.about-right .large {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 2;
}

.about-right p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 16px;
    font-weight: 300;
    line-height: 2;
}

/* === FEATURES === */
.features {
    padding: 100px 0;
    background: var(--warm-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card.glass {
    padding: 48px 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.feature-card.glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    border-color: rgba(92, 107, 79, 0.2);
}

.feature-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 16px;
    opacity: 0.25;
}

.feature-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

/* === PARALLAX QUOTE === */
.parallax-quote {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20% 0;
    background:
        linear-gradient(135deg, var(--olive-dark) 0%, var(--charcoal) 50%, var(--olive-dark) 100%);
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(92, 107, 79, 0.15) 0%, transparent 60%);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px;
}

.parallax-content blockquote p {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(248, 246, 241, 0.5);
    line-height: 1.7;
    margin-bottom: 16px;
}

.quote-highlight {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem !important;
    font-style: italic;
    color: var(--warm-white) !important;
}

/* === MENU === */
.menu {
    padding: 140px 0;
    background: var(--warm-white);
}

.menu-header {
    text-align: center;
    margin-bottom: 60px;
}

.menu-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.menu-btn {
    padding: 16px 36px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.menu-btn::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--olive);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:hover { color: var(--charcoal); }
.menu-btn.active { color: var(--charcoal); }
.menu-btn.active::after { transform: scaleX(1); }

.menu-panel { display: none; max-width: 700px; margin: 0 auto; }
.menu-panel.active { display: block; }

.menu-row {
    display: flex;
    align-items: baseline;
    padding: 24px 0;
    gap: 16px;
    border-bottom: none;
}

.menu-row:hover .row-left h3 {
    color: var(--olive-dark);
}

.row-left {
    flex: 1;
    min-width: 0;
}

.row-left h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 4px;
    transition: color 0.3s;
}

.row-left p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.row-dots {
    flex: 1;
    border-bottom: 1px dotted var(--stone);
    min-width: 40px;
    margin-bottom: 6px;
    opacity: 0.4;
}

.row-price {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--olive);
    white-space: nowrap;
    flex-shrink: 0;
}

/* === GALLERY === */
.gallery {
    padding: 120px 0;
    background: var(--charcoal);
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 200px;
    gap: 12px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gi-1 { grid-column: 1 / 3; }
.gi-3 { grid-column: 3 / 5; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal-soft);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-placeholder span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.gallery-item:hover .gallery-placeholder {
    background: rgba(92, 107, 79, 0.1);
    border-color: rgba(92, 107, 79, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.gallery-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 40%);
}

.gallery-img span {
    position: relative;
    z-index: 1;
    font-family: 'DM Serif Display', serif;
    font-size: 0.85rem;
    color: var(--warm-white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 300;
}

.gallery-hint code {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* === VALUES === */
.values {
    padding: 140px 0;
    background: var(--warm-bg);
}

.values-header {
    text-align: center;
    margin-bottom: 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card.glass-dark {
    padding: 48px 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.value-card.glass-dark:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
    border-color: var(--olive-light);
}

.value-icon {
    margin-bottom: 24px;
}

.value-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.value-line {
    width: 30px;
    height: 1px;
    background: var(--olive);
    margin: 0 auto 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .value-line {
    width: 50px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

/* === FOOTER === */
.footer {
    background: #111111;
    padding: 80px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo-svg {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'DM Serif Display', serif;
    color: var(--warm-white);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 300;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--warm-white); }

.footer-contact p {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 300;
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-legal a:hover { color: var(--warm-white); }

.footer-legal span { color: rgba(154, 154, 154, 0.2); font-size: 0.6rem; }

.footer-bottom p {
    color: rgba(154, 154, 154, 0.25);
    font-size: 0.68rem;
    letter-spacing: 2px;
    font-weight: 300;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(26, 26, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a,
    .navbar.scrolled .nav-links a {
        color: var(--warm-white) !important;
        font-size: 0.85rem;
        letter-spacing: 4px;
    }

    .hero-emblem-wrap { width: 120px; height: 120px; }
    .hero-emblem-img { width: 100px; height: 100px; }
    .title-line { font-size: 2rem !important; }
    .hero-sub { font-size: 0.85rem; }

    .about { padding: 80px 0; }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid { grid-template-columns: 1fr; }

    .menu { padding: 80px 0; }
    .menu-nav { flex-wrap: wrap; }
    .menu-btn { padding: 12px 20px; font-size: 0.68rem; }

    .menu-row {
        flex-wrap: wrap;
    }

    .row-dots { display: none; }
    .row-price { margin-top: 4px; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }

    .gi-1, .gi-3 { grid-column: auto; }

    .values { padding: 80px 0; }
    .values-grid { grid-template-columns: 1fr; }

    .parallax-quote { padding: 100px 0; }
    .parallax-content blockquote p { font-size: 1.2rem; }
    .quote-highlight { font-size: 1.4rem !important; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-emblem-wrap { width: 100px; height: 100px; }
    .hero-emblem-img { width: 80px; height: 80px; }
    .title-line { font-size: 1.6rem !important; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}
