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

:root {
    --primary: #6F2805;
    --primary-dark: #5A1F03;
    --accent: #F8BC41;
    --bg: #FAF8F3;
    --text: #3D3127;
    --text-light: #7A6E5D;
    --border: #E8DFD0;
    --cream: #F5EFE6;
    --earth: #9C8168;

    /* Brand colours (derived) */
    --primary-hover: #9A272C;
    --footer-bg: #521d03;
    --cta-shadow: rgba(168, 60, 3, 0.2);

    /* Luxury animation curves */
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Animation duration tiers */
    --dur-fast: 0.35s;
    --dur-normal: 0.45s;
    --dur-slow: 0.55s;
    --dur-slower: 0.7s;
}

body {
    font-family: 'Noto Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 999;
    padding: 0;
    transition: transform var(--dur-slow) var(--ease-luxury), box-shadow var(--dur-slow) var(--ease-luxury);
    transform: translateY(-100%);
}

nav.visible {
    transform: translateY(0);
}

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

.nav-logo {
    font-family: 'Averia Serif Libre', serif;
    font-size: 1.125rem;            font-weight: 300;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links {
    display: none;
    gap: 24px;
    align-items: center;
    margin: 0;
    list-style: none;
    position: relative;
    /* stretch to full nav height so bottom:0 = nav bottom edge */
    align-self: stretch;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-soft);
    padding: 4px 0 3px;
}

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

.nav-links a.active {
    color: var(--primary);
}

/* Sliding nav underline indicator (matches shop SiteHeader) */
.nav-indicator {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px 2px 0 0;
    transition: left var(--dur-fast) var(--ease-bounce), width var(--dur-fast) var(--ease-bounce), opacity 0.25s var(--ease-soft);
    opacity: 0;
}

.nav-cta {
    display: none;
    margin-left: auto;
}

.nav-cta .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 0;
}

/* ── Mobile nav toggle button ── */
.nav-mobile-toggle {
    display: none;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

/* ── Mobile-only elements: hidden unless mobile breakpoint activates them ── */
.nav-mobile-menu,
.nav-overlay {
    display: none;
}

.nav-menu-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-light);
    pointer-events: none;
    transition: color var(--dur-fast) var(--ease-soft);
}

nav.menu-open .nav-menu-text {
    color: var(--primary);
}

/* ── Mobile dropdown menu ── */
.nav-mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    background: white;
    border-top: 1px solid transparent;
    transition:
        grid-template-rows 0.38s var(--ease-luxury),
        border-color 0.3s var(--ease-soft);
}

.nav-mobile-menu > ul {
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.32s var(--ease-soft),
        transform 0.38s var(--ease-luxury);
}

nav.menu-open .nav-mobile-menu {
    grid-template-rows: 1fr;
    border-top-color: var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

nav.menu-open .nav-mobile-menu > ul {
    opacity: 1;
    transform: translateY(0);
}

.nav-mobile-items a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft);
}

.nav-mobile-items li:last-child a {
    border-bottom: none;
}

.nav-mobile-items a:hover,
.nav-mobile-items a.active {
    color: var(--primary);
    background: rgba(111, 40, 5, 0.04);
}

.nav-mobile-items a.active {
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}

/* ── Nav overlay (backdrop) ── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s var(--ease-soft);
}

.nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(250, 248, 243, 0.75) 0%, rgba(237, 228, 211, 0.75) 100%),
                url('bilder/hero-backdrop.webp');
    background-size: cover;
    background-position: center;
    padding: 48px 0 48px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo {
    height: 124px;
    width: auto;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Averia Serif Libre', serif;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 20px
}

h2 {
    font-family: 'Averia Serif Libre', serif;
    font-weight: 300;
}

.hero-subline {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-subline span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-subline span::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 24px;
    transition: transform var(--dur-slow) var(--ease-bounce), background var(--dur-normal) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px var(--cta-shadow);
}

/* Sticky CTA */
.sticky-cta {
    display: none;
}

.hero-visual {
    display: none;
}

/* Trust Bar */
.trust-bar {
    background: white;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    flex-direction: column;
}

.trust-stats {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    order: -1;
}

.trust-stats strong {
    color: var(--primary);
    font-weight: 700;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    order: 0;
}

.trust-carousel-wrapper {
    --gap: 32px;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.trust-logos {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-width: 100%;
    gap: var(--gap);
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

@media (prefers-reduced-motion: no-preference) {
    .trust-logos {
        animation: scrollLogos 50s linear infinite;
    }
}

.logo-placeholder {
    width: 240px;
    height: 70px;
    background: #EEE;
    border: 1px solid #DDD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #888;
    flex-shrink: 0;
    border-radius: 6px;
    filter: grayscale(100%);
    transition: filter var(--dur-slower) var(--ease-luxury), transform var(--dur-slow) var(--ease-bounce);
    cursor: pointer;
    padding: 8px;
}

.logo-placeholder:has(img) {
    background: transparent;
    border: none;
    padding: 0;
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--dur-slower) var(--ease-luxury);
}

.logo-placeholder:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.logo-placeholder:hover img {
    filter: grayscale(0%);
}

.section-title {
    font-family: 'Averia Serif Libre', serif;
    font-size: 1.875rem;
    color: var(--primary);
    margin-bottom: 48px;
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.value-item {
    background: white;
    padding: 24px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.value-item h3 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Zielgruppen */
.zielgruppen {
    background-color: #F0E7DB;
    padding: 50px 0;
}

.zielgruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.zielgruppe-card {
    color: var(--text-light);
    background: white;
    padding: 24px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.zielgruppe-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.zielgruppe-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Produktübersicht */
.produkte {
    padding: 50px 0;
    position: relative;
}

.produkte-shell {
    position: relative;
}

.produkte-shell .produkt-grid {
    transition: opacity var(--dur-normal) var(--ease-luxury), transform var(--dur-normal) var(--ease-luxury);
    z-index: 1;
}

.produkte-shell.show-details .produkt-grid {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    perspective: 1200px;
    position: relative;
}

.produkt-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-slow) var(--ease-luxury), border-color var(--dur-fast) var(--ease-soft);
    display: flex;
    flex-direction: column;
    cursor: zoom-in;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
}

.produkt-image {
    width: 100%;
    height: 180px;
    background: #f0ebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
}

.produkt-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.produkt-info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    position: relative;
}

.produkt-info > p {
    font-size: 14px;
}

.produkt-card:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.produkt-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.card-arrow {
    position: absolute;
    bottom: 16px;
    right: 18px;
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    transition: color var(--dur-fast) var(--ease-soft);
    pointer-events: none;
    z-index: 10;
}

.card-arrow::after {
    content: "mehr";
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.35s var(--ease-soft);
    color: var(--primary);
    white-space: nowrap;
}

.produkt-card:hover .card-arrow {
    color: transparent;
}

.produkt-card:hover .card-arrow::after {
    opacity: 1;
}

/* Desktop detail view */
.produkt-detail-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity var(--dur-slow) var(--ease-luxury), transform var(--dur-slower) var(--ease-bounce);
    z-index: 20;
}

.produkte-shell.show-details .produkt-detail-layer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.produkt-detail-inner {
    position: relative;
    width: 100%;
    padding: 8px;
    background: white;
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 0 0 1px var(--border);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.produkt-detail-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 12px;
    padding-bottom: 10px;
    flex: 0;
}

.produkt-detail-tab {
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--text-light);
    font-size: 14px;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform var(--dur-normal) var(--ease-bounce), background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
    position: relative;
    z-index: 2;
    font-family: 'Averia Serif Libre', serif;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.produkt-detail-tab:hover {
    background: white;
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.produkt-detail-tab.active {
    background: white;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-color: var(--accent);
    border-width: 2px;
}

.produkt-detail-content {
    position: relative;
    display: flex;
    align-items: stretch;
    height: auto;
}

.produkt-detail-track {
    flex: 1;
    overflow: visible;
    position: relative;
    height: auto;
}

.produkt-detail-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    /* No CSS transition here — JS animateElement controls it via inline styles */
    transition: none;
    will-change: opacity, transform;
}

.produkt-detail-panel.active {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.produkt-detail-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0;
}

.produkt-detail-copy p {
    color: var(--text);
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
}

.produkt-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
}

.produkt-detail-list li {
    padding-left: 4px;
}

.produkt-detail-list li::before {
    content: '• ';
    color: var(--accent);
    font-weight: bold;
    margin-right: 4px;
}

.produkt-detail-visual {
    min-height: 320px;
    background-color:#E5E5E5;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    overflow: hidden;
}

.produkt-detail-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
}

.produkt-detail-back {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--text);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--dur-normal) var(--ease-bounce), background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
    display: none;
    margin-top: 16px;
}

.produkt-detail-back:hover {
    background: white;
    color: var(--primary);
    border-color: var(--accent);
}

/* Mobile / tablet fullscreen modal (≤ 968 px) */
@media (max-width: 968px) {

    /* Kill the ancestor transform that prevents position:fixed from reaching viewport.
       .produkte has .reveal which applies transform:translateY — any non-none transform
       on an ancestor makes position:fixed behave as position:absolute relative to it. */
    body.produkt-details-active .produkte {
        transform: none;
    }

    body.produkt-details-active {
        overflow: hidden;
    }

    /* Instant open/close — no transition glitch on mobile */
    .produkte-shell .produkt-grid {
        transition: none;
    }

    /* Full-screen overlay — flex column so children stack, instant show/hide */
    .produkt-detail-layer {
        position: fixed;
        inset: 0;
        background: white;
        z-index: 9999;
        padding: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        opacity: 0;
        transform: none;
        transition: none;
        pointer-events: none;
    }
    .produkte-shell.show-details .produkt-detail-layer {
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    /* Inner fills the overlay; flex column, no overflow clip */
    .produkt-detail-inner {
        box-shadow: none;
        max-width: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1;
        min-height: 0;
    }

    /* Tabs: 2-column grid, fixed height */
    .produkt-detail-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        flex-shrink: 0;
        padding-bottom: 0;
    }

    /* Content fills all remaining height */
    .produkt-detail-content {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* Track: flex column so active panel can grow to fill */
    .produkt-detail-track {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        position: relative;
    }

    /* Panel base: reset desktop grid */
    .produkt-detail-panel {
        padding: 0;
    }

    /* Active panel: scrollable column — image + copy flow together */
    .produkt-detail-panel.active {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        position: relative;
        inset: auto;
        gap: 12px;
    }

    /* Image: natural aspect ratio, full width */
    .produkt-detail-visual {
        order: 1;
        flex-shrink: 0;
        min-height: 0;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .produkt-detail-banner-img {
        min-height: 0;
        height: 100%;
    }

    /* Copy: natural height, no scroll (panel scrolls) */
    .produkt-detail-copy {
        order: 2;
        flex-shrink: 0;
        padding: 0;
        gap: 12px;
    }

    /* Back button: fixed height, no shrink */
    .produkt-detail-back {
        display: block;
        flex-shrink: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .produkt-detail-tab {
        padding: 12px 10px;
        font-size: 14px;
        overflow: visible;
        white-space: normal;
    }

    .produkt-detail-tab:hover {
        transform: none;
    }
}

/* Testimonials */
.testimonials {
    background: var(--footer-bg);
    color: white;
    padding: 50px 0;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-title::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.5));
}

.testimonial-carousel {
    position: relative;
    overflow: visible;
    margin-top: 40px;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 24px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--dur-slow) var(--ease-bounce);
}

.pagination-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    scroll-snap-align: start;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    font-weight: 500;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    margin-top: auto;
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.875rem;
    opacity: 0.85;
}

.testimonial-logo {
    width: 90px;
    height: 50px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Über uns */
.ueber-uns {
    padding: 50px 0;
    background: white;
}

.ueber-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    margin-top: 32px;
}

.ueber-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: url('bilder/familie.jpg') center top / cover no-repeat;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: 600;
    overflow: hidden;
}

.ueber-facts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.fact-content h4 {
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.fact-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Kontaktformular */
.kontakt {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--cream) 0%, #EDE4D3 100%);
}

.form-container {
    max-width: 720px;
    margin: 0px auto 0;
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-intro {
    text-align: center;
    margin-bottom: 28px;
}

.form-intro h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.form-intro p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: auto;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-group.optional-field input,
.form-group.optional-field select,
.form-group.optional-field textarea {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--dur-normal) var(--ease-soft), box-shadow var(--dur-normal) var(--ease-luxury);
    width: 100%;
}

.form-group textarea,
.form-group.optional-field textarea {
    min-height: 48px;
    height: 48px;
    max-height: 48px;
    resize: vertical;
    overflow: hidden;
    transition: height var(--dur-slow) var(--ease-luxury), max-height var(--dur-slow) var(--ease-luxury);
    padding: 14px;
    line-height: 1.2;
}

.form-group textarea:focus,
.form-group.optional-field textarea:focus {
    height: auto;
    max-height: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-group.optional-field {
    opacity: 1;
    max-height: none;
    overflow: visible;
    padding: 0;
    transition: opacity var(--dur-slow) var(--ease-luxury), max-height var(--dur-slow) var(--ease-luxury);
}

.optional-badge {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    margin: 0;
    gap: 0;
    font-weight: 400;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: underline;
}

.form-note {
    background: var(--cream);
    padding: 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-left: 3px solid var(--accent);
}

.submit-button {
    width: 100%;
    background: var(--primary-dark);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--dur-slow) var(--ease-bounce), background var(--dur-normal) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-luxury);
}

.submit-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(154, 39, 44, 0.2);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: white;
}

.footer-logos {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding-top: 0;
    }

    .hero {
        padding: 50px 0 30px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subline {
        font-size: 0.9rem;
    }

    nav {
        height: auto;
    }

    .nav-content {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: block;
        margin-left: 0;
    }

    .nav-cta .cta-button {
        padding: 8px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-mobile-menu {
        display: grid;
    }

    .nav-overlay {
        display: block;
    }

    .trust-content {
        flex-direction: column;
        gap: 16px;
    }

    .trust-carousel-wrapper {
        width: 100%;
    }

    .value-prop {   
        padding: 28px 0;
    }

    .section-title {
        margin-bottom: 16px
    }

    .value-grid {
        margin-top: 16px;
    }
}

@media (min-width: 641px) {
    body {
        padding-top: 64px;
    }

    nav {
        height: 64px;
    }

    .container {
        padding: 0 32px;
    }

    .nav-content {
        padding: 0 32px;
    }

    .hero {
        padding: 70px 0 50px;
        margin-top: -64px;
        padding-top: 120px;
    }

    .nav-links {
        display: flex;
    }

    /* logo matches shop SiteHeader sm size */
    .nav-logo img {
        height: 48px;
        width: 48px;
        object-fit: contain;
    }

    .nav-cta {
        display: block;
    }

    .trust-content {
        flex-direction: row;
    }

    .trust-carousel-wrapper {
        flex: 1;
        min-width: 400px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subline {
        font-size: 1.125rem;
    }

    .hero-visual {
        display: flex;
    }

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

    .value-prop, .zielgruppen, .produkte, .testimonials, .ueber-uns, .kontakt {
        padding: 48px 0;
    }

    .value-grid {
        gap: 28px;
    }

    .produkt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

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

    .testimonial-track {
        gap: 16px;
        padding-bottom: 0;
    }

    .testimonial-card {
        min-width: calc(100vw - 80px);
        max-width: calc(100vw - 80px);
    }

    .form-container {
        padding: 40px 36px;
    }

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

@media (min-width: 968px) {
    nav {
        padding: 16px 32px;
    }

    .hero {
        padding: 60px 0 60px;
        padding-top: 120px;
        margin-top: -64px;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-subline {
        font-size: 1.25rem;
    }

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

    .value-prop, .zielgruppen, .produkte, .testimonials, .ueber-uns, .kontakt {
        padding: 48px 0;
    }

    .produkt-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

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

    .testimonial-track {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        scroll-snap-type: none;
    }

    .testimonial-track::-webkit-scrollbar {
        display: block;
        height: 8px;
    }

    .testimonial-track::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .testimonial-track::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

    .testimonial-track::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .testimonial-pagination {
        display: none;
    }

    .testimonial-card {
        min-width: 500px;
        max-width: 500px;
        scroll-snap-align: none;
    }

    .ueber-content {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

/* Wireframe annotations */
.annotation {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
    margin-top: 8px;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(36px);
        transition: opacity 0.9s var(--ease-luxury), transform 1s var(--ease-luxury);
    }

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

    /* Staggered children — cards, grid items */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s var(--ease-luxury), transform 0.8s var(--ease-bounce);
    }

    .reveal-stagger.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
    .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 80ms; }
    .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 160ms; }
    .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 240ms; }
    .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 320ms; }
    .reveal-stagger.revealed > *:nth-child(6) { transition-delay: 400ms; }

    /* Hero entrance — subtle scale and fade */
    .hero-content {
        animation: heroReveal 1.2s var(--ease-luxury) both;
    }

    @keyframes heroReveal {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

/* ============================================
   COOKIE CONSENT BANNER - GDPR/DSGVO
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(95, 32, 0, 0.98) 0%, rgba(111, 40, 5, 0.98) 100%);
    border-top: 3px solid var(--accent);
    padding: 24px 20px;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    line-height: 1.5;
    animation: slideUp 0.6s var(--ease-bounce);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    60% {
        transform: translateY(-4%);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}

.cookie-banner-main {
    color: white;
}

.cookie-banner h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.cookie-banner > div > p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-size: 13px;
}

.cookie-options {
    margin: 16px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-option label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    color: white;
}

.cookie-option label strong {
    font-weight: 600;
    font-size: 13px;
}

.cookie-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-legal {
    margin-top: 12px;
    font-size: 12px;
}

.cookie-legal a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.cookie-legal a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
    justify-content: flex-start;
}

.cookie-button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: transform var(--dur-normal) var(--ease-bounce), background var(--dur-fast) var(--ease-soft), box-shadow var(--dur-normal) var(--ease-luxury);
    white-space: nowrap;
}

.cookie-button-primary {
    background: var(--accent);
    color: var(--text);
}

.cookie-button-primary:hover {
    background: #FFCA5F;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(248, 188, 65, 0.35);
}

.cookie-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive: Stack on small screens */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cookie-options {
        grid-template-columns: 1fr;
    }

    .cookie-banner-actions {
        flex-direction: row;
        gap: 8px;
    }

    .cookie-button {
        flex: 1;
    }
}

/* ============================================
   COOKIE PREFERENCE MODAL
   ============================================ */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.4s var(--ease-luxury);
}

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

.cookie-modal.hidden {
    display: none;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideInCenter 0.55s var(--ease-spring);
}

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

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: white;
}

.cookie-modal-header h2 {
    font-size: 20px;
    color: var(--text);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}

.cookie-modal-close:hover {
    background: var(--cream);
    color: var(--text);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.cookie-section:last-of-type {
    border-bottom: none;
}

.cookie-section h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}

.cookie-section p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.cookie-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 12px 0;
}

.cookie-modal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.cookie-modal-checkbox span {
    font-weight: 500;
    color: var(--text);
}

.cookie-examples {
    background: var(--cream);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
    border-left: 4px solid var(--accent);
}

.cookie-examples strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.cookie-rights ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.cookie-rights li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
}

.cookie-rights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.cookie-rights a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 12px;
}

.cookie-rights a:hover {
    text-decoration: underline;
}

.cookie-rights {
    background: linear-gradient(135deg, rgba(111, 40, 5, 0.08) 0%, rgba(248, 188, 65, 0.08) 100%);
    padding: 16px;
    border-radius: 8px;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: white;
}

.cookie-modal-actions .cookie-button {
    min-width: 140px;
}

/* Responsive: Modal on mobile */
@media (max-width: 600px) {
    .cookie-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 12px 12px 0 0;
    }

    .cookie-modal-header {
        padding: 16px;
    }

    .cookie-modal-body {
        padding: 16px;
    }

    .cookie-modal-actions {
        flex-direction: column;
        padding: 16px;
    }

    .cookie-modal-actions .cookie-button {
        width: 100%;
    }

    .cookie-options {
        grid-template-columns: 1fr;
    }
}

/* Footer auth button – matches SiteFooter outlined button */
.footer-auth-link {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 6px;
    color: rgba(255,255,255,0.9);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-auth-link:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.08);
}