@font-face {
    font-family: "TF Headline";
    src: url("/assets/fonts/headline.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "TF Text";
    src: url("/assets/fonts/text.ttf") format("truetype");
    font-display: swap;
}

:root {
    --text: #1f1a10;
    --text-soft: rgba(31, 26, 16, .78);
    --paper: rgba(247, 236, 212, .10);
    --gold: #b98a2b;
    --border: rgba(31, 26, 16, .10);
    --shadow: 0 16px 42px rgba(31, 26, 16, .095);
    --headline: "TF Headline", Georgia, serif;
    --body: "TF Text", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--body);
    background: #d9c29b;
    overflow-x: hidden;
}

.background-stage {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: url("/assets/images/background/background.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-vignette {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 247, 226, .025), rgba(255, 247, 226, .015));
}

a { color: inherit; }

.site-header,
.header-inner,
.brand-mini,
.nav-toggle,
.nav {
    display: none !important;
}

.site-main { width: 100%; }

.hero-v3 {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 0 74px;
    text-align: center;
    overflow: visible;
}

.hero-v3-slider {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: clamp(330px, 46vh, 560px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.hero-v3-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 2s ease-in-out, transform 5s linear;
    filter: sepia(.08) saturate(.94) contrast(.98);
    will-change: opacity, transform;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,.100) 0%,
        rgba(0,0,0,.70) 20%,
        rgba(0,0,0,.40) 45%,
        rgba(0,0,0,.10) 68%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,.100) 0%,
        rgba(0,0,0,.70) 20%,
        rgba(0,0,0,.40) 45%,
        rgba(0,0,0,.10) 68%,
        rgba(0,0,0,0) 100%
    );
}

.hero-v3-slide.is-active {
    opacity: 1;
    transform: scale(1.035);
}

.hero-v3-logo-link {
    position: absolute;
    z-index: 6;
    top: clamp(92px, 20vh, 200px);
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: min(820px, 94vw);
}

.hero-v3-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero-v3-controls {
    position: relative;
    z-index: 8;
    width: min(960px, calc(100% - 32px));
    margin: -72px auto 0;
    display: grid;
    justify-items: center;
}

.menu-under-logo {
    position: relative;
    display: grid;
    justify-items: center;
    margin: 0 0 18px;
}

.hero-menu-button {
    display: inline-grid;
    gap: 4px;
    width: 34px;
    height: 26px;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hero-menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    box-shadow: 0 1px 0 rgba(255,248,232,.35);
}

.hero-menu {
    position: absolute;
    top: calc(100% + 6px);
    z-index: 20;
    display: none;
    min-width: 250px;
    padding: 9px;
    border: 1px solid rgba(31, 26, 16, .13);
    border-radius: 20px;
    background: rgba(247, 236, 212, .90);
    box-shadow: 0 14px 34px rgba(31, 26, 16, .12);
}

.hero-menu.is-open { display: grid; }

.hero-menu a {
    padding: 13px 15px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 950;
}

.hero-menu a:hover { background: rgba(31, 26, 16, .07); }

.hero-stamp-wrap {
    width: min(245px, 45vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0 0 10px;
}

.hero-stamp {
    width: 100%;
    height: auto;
    transform: rotate(0deg);
    filter: drop-shadow(0 12px 18px rgba(31, 26, 16, .18));
    animation: stampIn .95s ease both .22s;
}

@keyframes stampIn {
    0% { opacity: 0; transform: scale(1.08) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-v3-card {
    position: relative;
    z-index: 5;
    width: min(780px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(18px, 3.3vw, 30px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero-kicker { display: none !important; }

.hero-kicker,
.section-label {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--headline);
    font-weight: 800;
    letter-spacing: -.025em;
}

h1 { font-size: clamp(42px, 6.8vw, 84px); line-height: .96; }
h2 { font-size: clamp(38px, 5.6vw, 74px); line-height: .96; }
h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1; }

p {
    color: var(--text-soft);
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.55;
}

.hero-subline {
    max-width: 650px;
    margin: 16px auto 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid rgba(31, 26, 16, .2);
    border-radius: 999px;
    background: var(--text);
    color: #fff4d8;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(31, 26, 16, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(31, 26, 16, .18);
}

.button-light {
    background: rgba(247, 236, 212, .20);
    color: var(--text);
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto;
    padding: clamp(28px, 5.5vw, 66px);
    border: 1px solid var(--border);
    border-radius: 34px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.first-section { margin-top: 0; }

.content-section > p,
.split-section > p,
.cta-section p { max-width: 820px; }

.product-section {
    overflow: hidden;
}

.auto-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 300px);
    gap: 18px;
    margin-top: 32px;
    padding: 8px 4px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.auto-card {
    min-height: 430px;
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    scroll-snap-align: start;
    padding: 20px;
    border: 1px solid rgba(31, 26, 16, .10);
    border-radius: 30px;
    background: rgba(247, 236, 212, .10);
    box-shadow: 0 16px 40px rgba(31, 26, 16, .08);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.auto-card:hover {
    transform: translateY(-6px);
    background: rgba(247, 236, 212, .16);
    box-shadow: 0 22px 52px rgba(31, 26, 16, .12);
}

.auto-image-wrap {
    min-height: 260px;
    display: grid;
    place-items: end center;
}

.auto-image-wrap img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(31, 26, 16, .22));
}

.auto-card h3 {
    margin-top: 18px;
    font-size: clamp(28px, 3vw, 42px);
    text-align: center;
}

.auto-card-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
    color: rgba(31, 26, 16, .70);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.auto-empty {
    margin-top: 28px;
    padding: 20px;
    border: 1px dashed rgba(31, 26, 16, .22);
    border-radius: 22px;
    background: rgba(247, 236, 212, .08);
    color: rgba(31, 26, 16, .72);
    font-weight: 800;
}

.flash-feature-section {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) 1.1fr;
    align-items: center;
    gap: clamp(26px, 6vw, 70px);
}

.flash-box-stage {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: end center;
}

.flash-box-stage img {
    max-width: min(420px, 100%);
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 30px 34px rgba(31, 26, 16, .24));
}


/* Flash Effekt – zentrale, sichere Version
   Wichtig: keine 1800px-Elemente, damit mobil kein Horizontal-Zoom entsteht. */
.flash-feature-section {
    overflow: hidden;
}

.flash-box-stage {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.flash-box-stage img[src*="flash-box.png"] {
    position: relative;
    z-index: 1;
}

.flash-box-stage .flash-effect {
    position: absolute;
    z-index: 5;
    width: min(760px, 150vw);
    height: min(760px, 150vw);
    top: 10%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0) scale(.55);
    transform-origin: center center;
    background-image: url("/assets/images/feature/flash.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: opacity, transform;
    filter:
        drop-shadow(0 0 80px rgba(255, 244, 180, .90))
        drop-shadow(0 0 150px rgba(255, 255, 255, .60));
}

.flash-box-stage.is-flashing .flash-effect {
    animation: cameraFlashSmooth .72s cubic-bezier(.16, .84, .28, 1) both;
}



.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.gallery-tabs a {
    padding: 10px 14px;
    border: 1px solid rgba(31, 26, 16, .12);
    border-radius: 999px;
    background: rgba(247, 236, 212, .12);
    text-decoration: none;
    font-weight: 900;
}

.gallery-block {
    margin-top: 32px;
}

.gallery-block h3 {
    margin-bottom: 18px;
}

.mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mini-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(31, 26, 16, .10);
    background: rgba(247, 236, 212, .10);
    box-shadow: 0 16px 34px rgba(31, 26, 16, .08);
}

.mini-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.mini-gallery-item figcaption {
    padding: 10px 12px 12px;
    font-weight: 900;
    font-size: 14px;
}

.split-section,
.cta-section {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 34px;
    align-items: center;
}

.cta-section { margin-bottom: 72px; }

.subpage {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0 60px;
}

.narrow { max-width: 920px; }

.status-list { margin: 24px 0; }
.status-list p { margin: 10px 0; }

.form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    max-width: 680px;
}

.form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 900;
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,248,232,.18);
    color: var(--text);
    font: inherit;
}

.form input:focus,
.form textarea:focus { outline: 2px solid rgba(31,26,16,.22); }

.notice {
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(31,26,16,.20);
    border-radius: 18px;
    background: rgba(255,248,232,.16);
    color: var(--text);
    font-weight: 900;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 38px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.footer-logo {
    width: 220px;
    max-width: 58vw;
    height: auto;
}

.site-footer p {
    max-width: 620px;
    margin: 10px 0 0;
    font-size: 16px;
}

.footer-meta {
    display: grid;
    gap: 6px;
    color: var(--text-soft);
    text-align: right;
    font-weight: 800;
}

code {
    color: var(--text);
    background: rgba(255,248,232,.18);
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-word;
}

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .background-stage {
        background-image: url("/assets/images/background/background-mobile.jpg");
        background-attachment: scroll;
        background-position: center top;
    }

    .hero-v3-slider { height: min(43vh, 390px); }

    .hero-v3-logo-link {
        top: clamp(92px, 19vh, 184px);
        width: min(610px, 96vw);
    }

    .hero-v3-controls {
        width: min(620px, calc(100% - 32px));
        margin-top: -70px;
    }

    .hero-menu-button {
        width: 34px;
        height: 26px;
        gap: 4px;
    }

    .hero-menu-button span {
        width: 19px;
        height: 2px;
    }

    .hero-stamp-wrap {
        width: min(220px, 48vw);
        margin-bottom: 8px;
    }

    .hero-v3-card { border-radius: 24px; }

    h1 { font-size: clamp(38px, 11vw, 62px); }
    h2 { font-size: clamp(34px, 9vw, 54px); }

    .hero-subline { font-size: 17px; }
    .hero-actions { width: 100%; }
    .button { width: 100%; }

    .auto-scroller { grid-auto-columns: minmax(220px, 82vw); }
    .auto-card { min-height: 390px; }
    .auto-image-wrap { min-height: 230px; }
    .auto-image-wrap img { max-height: 270px; }

    .flash-feature-section,
    .split-section,
    .cta-section {
        grid-template-columns: 1fr;
    }

    .flash-box-stage {
        min-height: 430px;
    }

    .flash-box-stage .flash-effect {
        width: min(620px, 145vw);
        height: min(620px, 145vw);
        top: 10%;
    }

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

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-meta { text-align: left; }
}

@media (max-height: 760px) and (min-width: 901px) {
    .hero-v3-slider { height: 430px; }
    .hero-v3-logo-link { width: min(690px, 82vw); }
    .hero-stamp-wrap { width: 205px; }
    .hero-v3-card { padding: 22px; }
    h1 { font-size: clamp(38px, 5.8vw, 66px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
