:root {
    --ink: #13221b;
    --muted: #607066;
    --paper: #f4f1e9;
    --card: #fff;
    --accent: #186b49;
    --line: #dce3dd
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: linear-gradient(145deg, #f7f4ed, #e8efe9);
    color: var(--ink);
    font: 16px/1.5 system-ui, sans-serif;
    min-height: 100vh
}

.shell {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 60px 0 100px
}

header {
    margin-bottom: 34px
}

h1 {
    font-size: clamp(2.4rem, 7vw, 5.3rem);
    line-height: .98;
    letter-spacing: -.06em;
    margin: .18em 0
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .76rem;
    font-weight: 800;
    color: var(--accent)
}

p {
    color: var(--muted)
}

.card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid #fff;
    border-radius: 28px;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 0 24px 80px #173c2620
}

.drop {
    display: grid;
    place-items: center;
    text-align: center;
    border: 2px dashed #a4b7aa;
    border-radius: 20px;
    padding: 38px;
    cursor: pointer
}

.drop input {
    margin-top: 16px
}

.drop span {
    color: var(--muted)
}

h2 {
    margin-top: 32px
}

.options {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(235px, 1fr));
    gap: 12px
}

.option {
    display: flex;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 15px;
    background: #fff
}

.option small {
    display: block;
    color: var(--muted)
}

button {
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 800;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    margin-top: 24px
}

.status {
    min-height: 24px
}

.result-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: 50px
}

.result-head code {
    background: #13221b;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px
}

.grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.product {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 45px #1a35221a
}

.product img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #eee;
    cursor: zoom-in
}

.product div {
    padding: 18px
}

.product h3 {
    margin: 0
}

.product a {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 800
}

dialog {
    padding: 0;
    border: 0;
    border-radius: 20px;
    max-width: min(92vw, 1000px);
    background: #111
}

dialog::backdrop {
    background: #000b
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 24px
}

.close + img {
    display: block;
    max-width: 90vw;
    max-height: 90vh
}

.original-card {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(260px, 440px);
    gap: 28px;
    align-items: center;
    margin-top: 48px;
    padding: 28px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 45px #1a35221a
}

.original-card h2 {
    margin: .3rem 0
}

.original-card img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 16px;
    background: repeating-conic-gradient(#eef1ee 0 25%, #fff 0 50%) 50%/24px 24px
}

.generate-code {
    width: 100%;
    margin-top: 12px
}

.product-result {
    font-size: .9rem;
    overflow-wrap: anywhere
}

.product-result code {
    display: inline-block;
    background: #13221b;
    color: #fff;
    padding: 4px 7px;
    border-radius: 6px
}

@media (max-width: 700px) {
    .original-card {
        grid-template-columns:1fr
    }

    .result-head {
        align-items: start
    }
}

/* Produktgalerie */
.grid {
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: start
}

.product-gallery {
    overflow: hidden
}

.product-main-image {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #eef1ee;
    overflow: hidden
}

.product-main-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    transition: transform .25s ease
}

.product-main-image:hover img {
    transform: scale(1.015)
}

.zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #13221bdd;
    color: #fff;
    font-size: .76rem;
    font-weight: 800
}

.product-content {
    padding: 20px !important
}

.product-content h3 {
    font-size: 1.3rem
}

.active-view-label {
    margin: .25rem 0 1rem
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    padding: 0 !important;
    overflow-x: auto;
    scrollbar-width: thin
}

.product-thumbnail {
    flex: 0 0 82px;
    width: 82px;
    height: 68px;
    margin: 0;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #eef1ee
}

.product-thumbnail.is-active {
    border-color: var(--accent)
}

.product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 7px;
    cursor: zoom-in
}

.product-thumbnail:focus-visible, .product-main-image:focus-visible, .gallery-arrow:focus-visible, .close:focus-visible {
    outline: 3px solid #79d6ad;
    outline-offset: 3px
}

/* Lightbox-Galerie */
#lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden
}

#lightbox::backdrop {
    background: rgba(3, 9, 6, .92)
}

.lightbox-shell {
    position: relative;
    display: grid;
    grid-template-columns:72px minmax(0, 1fr) 72px;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 32px 20px
}

.lightbox-shell figure {
    display: grid;
    grid-template-rows:minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    height: 100%;
    margin: 0;
    text-align: center
}

.lightbox-shell figure img {
    display: block;
    align-self: center;
    justify-self: center;
    max-width: 100%;
    max-height: calc(100vh - 105px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px #0008
}

.lightbox-shell figcaption {
    color: #fff;
    font-weight: 700
}

.gallery-arrow, .close {
    display: grid;
    place-items: center;
    margin: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    background: #ffffffeb;
    color: #13221b;
    font-size: 2rem;
    line-height: 1
}

.gallery-prev {
    justify-self: start
}

.gallery-next {
    justify-self: end
}

.close {
    position: absolute;
    z-index: 3;
    right: 22px;
    top: 18px;
    font-size: 1.45rem
}

.gallery-counter {
    position: absolute;
    left: 24px;
    top: 24px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffffff20;
    color: #fff;
    font-weight: 800
}

.gallery-arrow[hidden] {
    display: none
}

@media (max-width: 700px) {
    .lightbox-shell {
        grid-template-columns:52px minmax(0, 1fr) 52px;
        padding: 64px 8px 20px
    }

    .gallery-arrow {
        width: 42px;
        height: 42px
    }

    .product-thumbnail {
        flex-basis: 72px;
        width: 72px;
        height: 60px
    }
}
.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
    max-width: none;
    margin-bottom: 40px;
}

.header-content {
    /*max-width: 760px;*/
}

.header-content h1 {
    margin-top: 0.18em;
}

.header-content p {
    /*max-width: 680px;*/
}

.brand {
    display: flex;
    justify-content: flex-end;
    width: fit-content;
    max-width: 260px;
    border-radius: 14px;
}

.brand-logo {
    display: block;
    width: clamp(140px, 18vw, 240px);
    height: auto;
    max-height: 110px;
    object-fit: contain;
    object-position: right top;
}

.brand:focus-visible {
    outline: 3px solid #79d6ad;
    outline-offset: 5px;
}

@media (max-width: 700px) {
    .site-header {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .brand {
        align-self: flex-end;
        max-width: 150px;
    }

    .brand-logo {
        width: min(150px, 40vw);
        max-height: 80px;
    }
}
.captcha-section {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8faf8;
}

.captcha-section h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.captcha-section p {
    margin: 0 0 16px;
}

#hcaptcha-container {
    min-height: 78px;
}

.captcha-status {
    min-height: 24px;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-size: 0.92rem;
}