/* =========================================
   01. FONTS
========================================= */

/* =========================================
   LOCAL FONTS
========================================= */

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Patrick Hand';
    src: url('fonts/PatrickHand-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   02. VARIABLES
========================================= */

:root {
    --color-white: #ffffff;
    --color-black: #222222;
    --color-gray: #777777;
    --color-light-gray: #e5e5e5;
    --color-background: #F7E9C8;

    --font-main: 'Inter', sans-serif;
    --font-hand: 'Patrick Hand', cursive;

    --max-width: 1280px;
    --page-padding: 40px;
    --section-spacing: 140px;
}


/* =========================================
   03. RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);

    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

::selection {
    background: var(--color-black);
    color: var(--color-white);
}


/* =========================================
   04. TYPOGRAPHY
========================================= */

h1,
h2,
h3 {
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(42px, 4.5vw, 76px);
}

h2 {
    font-size: clamp(34px, 3.5vw, 58px);
}

p {
    font-size: 15px;
    line-height: 1.8;
}

.eyebrow {
    display: block;
    margin-bottom: 22px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.handwritten {
    font-family: var(--font-hand);
    font-size: 25px;
    line-height: 1.4;
}


/* =========================================
   05. HEADER / NAVIGATION
========================================= */

.header {
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 25px var(--page-padding);

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

/* Logo als Schriftzug */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    font-family: var(--font-hand);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;

    color: var(--color-black);
    text-decoration: none;
    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.6;
}

/* Navigation */

.nav-links {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

.nav-links a.active {
    font-weight: 600;
}


/* =========================================
   06. PRODUCT SECTION
========================================= */

.product-section {
    padding: 90px var(--page-padding) var(--section-spacing);
}

.product-container {
    max-width: var(--max-width);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 100px;
    align-items: center;
}


/* =========================================
   07. PRODUCT GALLERY
========================================= */

.product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 20px;
    align-items: start;
}

.main-image {
    width: 100%;
    aspect-ratio: 4 / 5;

    background: #ffffff;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Kleine Bilder rechts */

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnail {
    width: 90px;
    aspect-ratio: 4 / 5;

    padding: 0;
    border: 1px solid transparent;
    background: var(--color-background);

    overflow: hidden;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 0.7;
}

.thumbnail.active {
    border-color: var(--color-black);
}


/* =========================================
   08. PRODUCT INFORMATION
========================================= */

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-info h1 {
    margin-bottom: 25px;
}

.product-info .handwritten {
    margin-bottom: 35px;
}

.product-description {
    max-width: 420px;
    color: var(--color-gray);
    margin-bottom: 40px;
}

.product-details {
    width: 100%;
    padding: 25px 0;

    border-top: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);

    margin-bottom: 35px;
}

.product-details p {
    font-size: 13px;
    margin-bottom: 8px;
}

.product-details p:last-child {
    margin-bottom: 0;
}

.product-details strong {
    font-weight: 500;
}


/* =========================================
   09. BUTTONS / LINKS
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    padding: 17px 24px;

    background: var(--color-black);
    color: var(--color-white);

    font-size: 13px;
    font-weight: 500;

    border: 1px solid var(--color-black);

    transition: background 0.25s ease, color 0.25s ease;
}

.button:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.button span {
    font-size: 18px;
    line-height: 1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    font-size: 13px;
    font-weight: 500;

    border-bottom: 1px solid var(--color-black);
    padding-bottom: 5px;

    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.5;
}


/* =========================================
   10. INTRO SECTION
========================================= */

.intro-section {
    padding: var(--section-spacing) var(--page-padding);
    background: var(--color-background);
}

.intro-container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.intro-container h2 {
    margin-bottom: 35px;
}

.intro-container p {
    max-width: 580px;
    margin: 0 auto;
    color: var(--color-gray);
}


/* =========================================
   11. GALLERY TEASER
========================================= */

.gallery-section {
    max-width: calc(var(--max-width) + var(--page-padding) * 2);
    margin: 0 auto;

    padding: var(--section-spacing) var(--page-padding);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;

    margin-bottom: 60px;
}

.section-heading h2 {
    max-width: 700px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-item {
    display: block;
    aspect-ratio: 4 / 5;

    background: var(--color-background);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}


/* =========================================
   12. ORDER SECTION
========================================= */

.order-section {
    padding: 120px var(--page-padding);
    background: var(--color-background);
}

.order-container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.order-container h2 {
    margin-bottom: 30px;
}

.order-container > p {
    max-width: 520px;
    margin: 0 auto 40px;
    color: var(--color-gray);
}

.order-container .button {
    margin-bottom: 25px;
}

.order-container .order-note {
    margin-bottom: 0;
    font-size: 12px;
}


/* =========================================
   13. FOOTER
========================================= */

.footer {
    border-top: 1px solid var(--color-light-gray);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;

    padding: 35px var(--page-padding);

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

.footer-left,
.footer-right {
    font-size: 12px;
    color: var(--color-gray);
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--color-black);
}


/* =========================================
   14. ART GALLERY
========================================= */

.art-gallery-section {
    padding: 100px var(--page-padding) 140px;
}

.art-gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Galerie Header */

.art-gallery-header {
    max-width: 700px;
    margin-bottom: 90px;
}

.art-gallery-header h1 {
    margin-bottom: 30px;
}

.art-gallery-header p {
    max-width: 500px;
    color: var(--color-gray);
}


/* =========================================
   15. ART GALLERY GRID
========================================= */

.art-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 35px;
    row-gap: 90px;
}

.art-item {
    display: block;
    width: 100%;
    min-width: 0;

    padding: 0;
    border: none;
    background: none;

    text-align: left;
    color: inherit;
    font: inherit;

    cursor: pointer;
}

.art-item-image {
    width: 100%;
    aspect-ratio: 4 / 5;

    background: #ffffff;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.art-item-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    transition: transform 0.5s ease;
}

.art-item:hover .art-item-image img {
    transform: scale(1.035);
}

.art-item-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;

    margin-top: 18px;
}

.art-item-title {
    font-size: 14px;
    font-weight: 500;
}

.art-item-price {
    font-size: 13px;
    color: var(--color-gray);
    white-space: nowrap;
}


/* =========================================
   16. LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 80px;
    background: var(--color-white);
}

.lightbox.active {
    display: flex;
}

body.lightbox-open {
    overflow: hidden;
}

/* Schließen */

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 10;

    border: none;
    background: none;

    font-size: 35px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

/* Inhalt */

.lightbox-content {
    width: 100%;
    max-width: 1200px;

    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 90px;
    align-items: center;
}

.lightbox-image {
    width: 100%;
    height: min(75vh, 800px);

    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Informationen */

.lightbox-info h2 {
    font-size: clamp(30px, 3vw, 48px);
    margin-bottom: 20px;
}

.lightbox-handwritten {
    margin-bottom: 45px;
}

.lightbox-details {
    border-top: 1px solid var(--color-light-gray);
    margin-bottom: 35px;
}

.lightbox-details > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.lightbox-details span {
    font-size: 12px;
    color: var(--color-gray);
}

.lightbox-details p {
    font-size: 13px;
    text-align: right;
}

/* Pfeile */

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    padding: 15px;
    border: none;
    background: none;

    font-size: 30px;
    cursor: pointer;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}


/* =========================================
   17. TABLET
========================================= */

@media (max-width: 1100px) {

    :root {
        --page-padding: 30px;
        --section-spacing: 100px;
    }

    .product-container {
        grid-template-columns: 1fr 0.85fr;
        gap: 50px;
    }

    .product-gallery {
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 12px;
    }

    .thumbnail {
        width: 70px;
    }

    .nav-links {
        gap: 25px;
    }

    /* Galerie */

    .art-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 60px 25px;
    }

    /* Lightbox */

    .lightbox {
        padding: 60px;
    }

    .lightbox-content {
        gap: 40px;
    }
}


/* =========================================
   18. MOBILE
========================================= */

@media (max-width: 768px) {

    :root {
        --page-padding: 20px;
        --section-spacing: 80px;
    }

    /* Navigation */

    .navbar {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .logo {
        font-size: 30px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 12px;
    }

    /* Produkt */

    .product-section {
        padding-top: 40px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .product-gallery {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .main-image {
        aspect-ratio: 4 / 5;
    }

    .thumbnail-gallery {
        width: 100%;

        flex-direction: row;
        gap: 10px;

        overflow-x: auto;
        padding-bottom: 8px;
    }

    .thumbnail {
        flex: 0 0 70px;
        width: 70px;
    }

    .product-info h1 {
        margin-bottom: 20px;
    }

    .product-description {
        margin-bottom: 30px;
    }

    /* Galerie-Teaser auf Startseite */

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-item:last-child {
        display: none;
    }

    /* Galerie-Seite */

    .art-gallery-section {
        padding: 60px var(--page-padding) 90px;
    }

    .art-gallery-header {
        margin-bottom: 55px;
    }

    .art-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 15px;
    }

    .art-item-info {
        flex-direction: column;
        gap: 4px;
    }

    /* Lightbox */

    .lightbox {
        padding: 70px 20px 30px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .lightbox-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lightbox-image {
        height: auto;
        max-height: 50vh;
    }

    .lightbox-image img {
        max-height: 50vh;
    }

    .lightbox-info h2 {
        font-size: 32px;
    }

    .lightbox-handwritten {
        margin-bottom: 25px;
    }

    .lightbox-arrow {
        top: 25px;
        transform: none;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        left: 65px;
        right: auto;
    }

    .lightbox-close {
        top: 30px;
        right: 20px;
    }

    /* Bestellung */

    .order-section {
        padding: 80px var(--page-padding);
    }

    /* Footer */

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/* =========================================
   19. SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .product-info h1 {
        font-size: 40px;
    }

    /* Galerie-Teaser */

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

    .gallery-item:last-child {
        display: block;
    }

    /* Galerie-Seite */

    .art-gallery-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-right {
        gap: 20px;
    }
}


/* =========================================
   20. ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================
   LEGAL PAGES
========================================= */
/* =========================================
   LEGAL PAGES
========================================= */

.legal-section {
    padding: 100px var(--page-padding) 140px;
    background: #ffffff;
}

.legal-container {
    max-width: 760px;
    margin: 0 auto;
}

/* Überschrift */

.legal-container h1 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-top: 15px;
    margin-bottom: 80px;
}

/* Textabschnitte */

.legal-block {
    margin-bottom: 55px;
}

.legal-block h2 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.legal-block p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-black);
    margin-bottom: 18px;
}

/* Links */

.legal-block a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.legal-block a:hover {
    opacity: 0.5;
}

/* Mobile */

@media (max-width: 768px) {

    .legal-section {
        padding: 60px var(--page-padding) 90px;
    }

    .legal-container h1 {
        margin-bottom: 55px;
    }

    .legal-block {
        margin-bottom: 45px;
    }

    .legal-block h2 {
        font-size: 19px;
    }

    .legal-block p {
        font-size: 14px;
    }

}