:root {
    --cream: #f6efe5;
    --cream-light: #fbf8f3;
    --olive-dark: #34400f;
    --olive: #677050;
    --sage: #929b7b;
    --text: #303226;
    --muted: #777968;
    --line: #d8d2c7;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream-light);
    color: var(--text);
    line-height: 1.6;
}

body.lightbox-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.content {
    width: min(1440px, 94%);
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}


/* KOPFBEREICH */

.site-header {
    background: var(--cream-light);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: min(1440px, 94%);
    min-height: 74px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;

    color: var(--olive-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    text-decoration: none;
    font-size: 17px;
}

.main-nav a:hover {
    color: var(--olive);
}


/* HERO */

.hero {
    padding: 28px 20px;
    background: var(--white);
}

.hero img {
    width: 100%;
    max-width: 1180px;
    height: auto;
    margin: 0 auto;
}


/* STARTSEITE */

.intro {
    padding: 65px 0 75px;
    text-align: center;
    background: var(--cream-light);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--sage);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.intro h1,
.section-heading h2,
.about h2,
.product-page-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: var(--olive-dark);
}

.intro h1 {
    max-width: 760px;
    margin: 0 auto;
    font-size: 44px;
    line-height: 1.15;
}

.intro-text {
    max-width: 680px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 26px;
    background: var(--olive-dark);
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--olive-dark);
}

.button:hover {
    background: transparent;
    color: var(--olive-dark);
}

.featured {
    padding: 75px 0 85px;
    background: var(--white);
}

.section-heading {
    margin-bottom: 38px;
    text-align: center;
}

.section-heading span {
    display: block;
    margin-bottom: 8px;
    color: var(--sage);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: 38px;
}


/* PRODUKTÜBERSICHT */

.product-page-header {
    padding: 65px 0 55px;
    text-align: center;
    background: var(--cream);
}

.product-page-header h1 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.product-page-header > .content > p:last-child {
    color: var(--muted);
    font-size: 17px;
}

.products-section {
    padding: 65px 0 90px;
    background: var(--white);
}


/* PRODUKTKARTEN */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;

    background: var(--cream-light);
    overflow: hidden;
    border: 1px solid #eee8de;
}

.product-image-link {
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee8de;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.025);
}

.product-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: #eee8de;
    color: var(--sage);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 24px 22px 27px;
}

.product-category {
    margin-bottom: 8px;
    color: var(--sage);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-info h2,
.product-info h3 {
    margin-bottom: 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.25;
    font-weight: normal;

    color: var(--olive-dark);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-info p {
    color: var(--muted);
    font-size: 14px;
}

.product-info p:not(.product-category) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}

.product-link,
.product-info > a {
    display: inline-block;
    align-self: flex-start;

    margin-top: auto;
    padding-top: 18px;

    color: var(--olive-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--olive-dark);
}


/* PRODUKTDETAIL */

.product-detail {
    padding: 0 0 90px;
    background: var(--white);
}

.product-detail > .content {
    width: min(1320px, 94%);
}

.product-back {
    display: inline-block;
    margin: 20px 0;
    color: var(--olive);
    font-size: 14px;
    text-decoration: none;
}

.product-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(400px, 1.1fr);

    gap: 65px;

    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.product-detail-image {
    width: 100%;
    background: var(--cream);
    display: flex;
    justify-content: center;
}

.product-detail-content {
    padding-top: 5px;
}

.product-detail-content h1 {
    margin: 0 0 28px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 4vw, 62px);

    line-height: 1.12;

    font-weight: normal;

    color: var(--olive-dark);
}

.product-description {
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.etsy-button {
    display: inline-block;
    margin-top: 35px;
    padding: 14px 30px;
    background: var(--olive-dark);
    border: 1px solid var(--olive-dark);
    color: var(--white);
    text-decoration: none;
}

.etsy-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}


/* HAUPTBILD */

.zoom-image-button {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--cream);
    cursor: zoom-in;
}

.zoom-image-button img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
}

.zoom-hint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 13px;
    background: rgba(52, 64, 15, 0.88);
    color: var(--white);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.zoom-image-button:hover .zoom-hint {
    opacity: 1;
}


/* VORSCHAUBILDER */

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.product-thumbnail {
    padding: 0;
    border: 2px solid transparent;
    background: var(--cream);
    cursor: pointer;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-thumbnail:hover {
    border-color: var(--sage);
}

.product-thumbnail.is-active {
    border-color: var(--olive-dark);
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(18, 18, 16, 0.97);
}

.lightbox.is-open {
    display: block;
}

.lightbox-toolbar {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 2020;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px;

    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
}

.lightbox-toolbar button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-toolbar button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lightbox-zoom-value {
    min-width: 64px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

.lightbox-close {
    font-size: 36px !important;
}

.lightbox-scroll {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 90px 40px 40px;
    text-align: center;
}

.lightbox-image {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform-origin: top center;
    cursor: zoom-in;
}


/* SONSTIGES */

.no-products {
    padding: 70px 20px;
    text-align: center;
    background: var(--cream-light);
}

.no-products h2 {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: var(--olive-dark);
}

.about {
    padding: 75px 0;
    text-align: center;
    background: var(--cream);
}

.about h2 {
    margin-bottom: 20px;
    font-size: 38px;
}

.about p:last-child {
    color: var(--muted);
    font-size: 16px;
}

.site-footer {
    padding: 30px 0;
    background: var(--olive-dark);
    color: #f5f0e8;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}


/* TABLET */

@media (max-width: 1000px) {

    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 22px;
    }

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

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-detail-image,
    .product-detail-content,
    .product-gallery {
        max-width: 760px;
        margin: 0 auto;
    }

    .zoom-image-button img {
        max-height: 600px;
    }

}


/* SMARTPHONE */

@media (max-width: 640px) {

    .content {
        width: 92%;
    }

    .brand {
        font-size: 23px;
    }

    .main-nav a {
        font-size: 15px;
    }

    .hero {
        padding: 15px 10px;
    }

    .intro {
        padding: 50px 0 55px;
    }

    .intro h1 {
        font-size: 34px;
    }

    .featured {
        padding: 55px 0;
    }

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

    .product-detail > .content {
        width: 94%;
    }

    .product-detail-grid {
        gap: 30px;
    }

    .product-detail-content h1 {
        font-size: 36px;
    }

    .product-description {
        font-size: 16px;
        line-height: 1.8;
    }

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

    .zoom-image-button img {
        width: 100%;
        max-height: none;
    }

    .zoom-hint {
        opacity: 1;
    }

    .lightbox-toolbar {
        top: 6px;
        right: 6px;
    }

    .lightbox-scroll {
        padding: 75px 10px 20px;
    }

    .etsy-button {
        width: 100%;
        text-align: center;
    }

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

}