/* ========================================
   GRUNDLAGEN
======================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

.wp-site-blocks {
    padding: 0;
}

.wp-site-blocks > *,
.henickl-main {
    margin-block: 0 !important;
}

/* Tastaturfokus */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #2b4836;
    outline-offset: 5px;
}

.henickl-footer a:focus-visible,
.henickl-navigation a:focus-visible,
.henickl-navigation button:focus-visible {
    outline-color: white;
}

/* ========================================
   HEADER UND BANNER
======================================== */

.henickl-banner.wp-block-cover {
    height: clamp(190px, 22vw, 300px);
    min-height: 0;
    padding: 0;
    border-bottom: 4px solid white;
    box-sizing: content-box;
}

.henickl-banner > .wp-block-cover__image-background {
    object-position: 50% 50%;
}

.henickl-banner .wp-block-cover__inner-container {
    width: 100%;
}

.henickl-logo {
    width: 44%;
    max-width: 560px;
    margin: 0;
    padding: 20px 28px;
    background: #fff;
    box-sizing: border-box;
}

.henickl-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.henickl-logo a {
    display: block;
}

/* ========================================
   NAVIGATION
======================================== */

.henickl-nav-band {
    padding: 17px 32px;
    background: #78956c;
}

.henickl-navigation {
    max-width: 1080px;
    margin-inline: auto !important;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
}

.henickl-navigation .wp-block-navigation__container {
    width: 100%;
    gap: 24px;
    justify-content: space-between;
}

.henickl-navigation .wp-block-navigation-item__content {
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.henickl-navigation .wp-block-navigation-item__label::before {
    content: '| ';
}

.henickl-navigation .wp-block-navigation-item__label::after {
    content: ' |';
}

.henickl-navigation .current-menu-item > .wp-block-navigation-item__content {
    color: #2b4836;
    font-weight: 700;
}

.henickl-navigation a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ========================================
   ALLGEMEINE SEITENBEREICHE
======================================== */

.henickl-page {
    width: calc(100% - 64px);
    max-width: 1080px;
    margin: 0 auto !important;
    padding: 64px 0 80px;
    box-sizing: border-box;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.5;
}

.henickl-page h1,
.henickl-page h2 {
    margin: 0 0 22px;
    color: #2b4836;
    font-weight: 700;
    line-height: 1.2;
}

.henickl-page h1 {
    font-size: clamp(28px, 2.6vw, 34px);
}

.henickl-page h2 {
    font-size: clamp(23px, 2.15vw, 28px);
}

.henickl-page p {
    margin: 0 0 24px;
}

.henickl-page figure {
    margin: 0;
}

.henickl-page img {
    display: block;
    width: 100%;
    height: auto;
}

.henickl-page a {
    text-underline-offset: 4px;
}

/* ========================================
   STARTSEITE
======================================== */

.henickl-start {
    max-width: 1140px;
}

.henickl-start .henickl-gallery {
    margin-top: 36px;
    margin-bottom: 36px;
}

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

.start-gallery img {
    aspect-ratio: 1.3;
    object-fit: cover;
}

.start-gallery .farm-close img {
    object-position: 77% 50%;
}

.henickl-delivery-note {
    color: #2b4836;
}

.henickl-season-note {
    margin-bottom: 0 !important;
    color: #2b4836;
    font-size: clamp(20px, 1.85vw, 24px);
}

/* ========================================
   CHRISTBAUMSEITE
======================================== */

/* Einleitung und Seitenabstände */

.henickl-trees:first-child {
    padding-bottom: 0;
}

.henickl-trees:first-child h1 {
    margin-bottom: 10px;
}

/* Zweiter Seitenbereich direkt nach der Einleitung */

.henickl-trees + .henickl-trees {
    padding-top: 0;
}

/* Liste der Christbaumarten */

.henickl-tree-list {
    margin-top: 12px;
}

/* Größere Bilder und Text daneben */

.henickl-tree-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 36px;
    align-items: center;
    margin-bottom: 34px;
}

.henickl-tree-row figure {
    width: 100%;
    margin: 0;
}

.henickl-tree-row img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.henickl-tree-row h2 {
    margin-bottom: 10px;
}

.henickl-tree-row p {
    margin: 0;
}

.henickl-tree-row:last-child {
    margin-bottom: 0;
}

/* ========================================
   VERKAUFSSEITE UND BILDERGALERIE
======================================== */

.sale-gallery {
    margin: 32px 0;
}

.henickl-sample {
    position: relative;
    overflow: hidden;
}



.henickl-sample img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}


}

.henickl-sample:first-child img {
    object-position: 50% 38%;
}

.henickl-sample:last-child img {
    object-position: 68% 50%;
}

.henickl-sample-label {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    color: #fff;
    font-family: Calibri, sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    transform: rotate(-18deg);
    opacity: 0.8;
    pointer-events: none;
}

.henickl-sale-hours {
    color: #2b4836;
    font-weight: 700;
}

.henickl-pickup {
    margin: 32px 0 0 !important;
    padding: 18px 24px;
    background: #dfe2db;
    text-align: center;
}

/* ========================================
   FAMILIE UND BETRIEB
======================================== */

.henickl-family-about {
    width: 43.5%;
    margin-bottom: 28px !important;
}

.henickl-family-about img {
    aspect-ratio: 1.34;
    object-fit: cover;
}

.henickl-claim {
    margin: 32px 0;
}

.henickl-claim h2 {
    margin-bottom: 12px;
}

.henickl-claim p {
    margin: 0;
}

.henickl-farm-panorama img {
    aspect-ratio: 3.72;
    object-fit: cover;
    object-position: 50% 55%;
}

/* ========================================
   KONTAKT
======================================== */

.henickl-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-top: 36px;
}

.henickl-contact-grid a {
    overflow-wrap: anywhere;
}

/* ========================================
   IMPRESSUM UND PRODUKTION
======================================== */

.henickl-legal {
    max-width: 960px;
}

.henickl-legal h2,
.henickl-production h2 {
    margin-top: 36px;
}

.henickl-legal a {
    overflow-wrap: anywhere;
}

.henickl-production-photo {
    max-width: 850px;
    margin-top: 36px !important;
}

.henickl-production-photo img {
    aspect-ratio: 1.6;
    object-fit: cover;
}

.henickl-production-photo figcaption {
    margin-top: 12px;
    color: #526150;
    font-size: 16px;
    line-height: 1.45;
}

/* ========================================
   FOOTER
======================================== */

.henickl-footer {
    padding: 40px 32px;
    background: #78956c;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}

.henickl-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.henickl-footer p {
    margin: 0 0 12px;
}

.henickl-footer p:last-child {
    margin-bottom: 0;
}

.henickl-footer a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.henickl-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.henickl-footer-links {
    text-align: center;
}

.henickl-footer-tree {
    width: 80px;
    margin: 0 auto 18px !important;
}

.henickl-footer-tree img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   TABLETS
======================================== */

@media (min-width: 821px) and (max-width: 1100px) {
    .henickl-navigation {
        font-size: 15px;
    }

    .henickl-navigation .wp-block-navigation__container {
        gap: 16px;
    }
}

/* ========================================
   TABLETS UND KLEINERE BILDSCHIRME
======================================== */

@media (max-width: 820px) {
    .henickl-nav-band {
        padding: 14px 28px;
    }

    .henickl-navigation {
        justify-content: flex-end !important;
        min-height: 28px;
        font-size: 18px;
    }

    .henickl-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    .henickl-navigation .wp-block-navigation__responsive-container-open {
        display: flex !important;
        color: white;
    }

    .henickl-navigation .wp-block-navigation__responsive-container.is-menu-open {
        padding: 28px;
        background: #78956c;
        color: #fff;
    }

    .henickl-navigation .wp-block-navigation__responsive-container-content {
        padding-top: 48px;
    }

    .henickl-navigation .wp-block-navigation__container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 22px;
        width: auto;
    }

    .henickl-navigation .wp-block-navigation__responsive-container-close {
        color: white;
    }

    .henickl-page {
        padding-top: 44px;
        padding-bottom: 60px;
    }

    .henickl-tree-row {
        grid-template-columns: 240px minmax(0, 1fr);
        column-gap: 28px;
    }

    .henickl-footer-inner {
        gap: 30px;
    }
}

/* ========================================
   SMARTPHONES
======================================== */

@media (max-width: 599px) {
    .henickl-banner.wp-block-cover {
        height: 180px;
    }

    .henickl-logo {
        width: 78%;
        max-width: 340px;
        padding: 16px 20px;
    }

    .henickl-nav-band {
        padding: 12px 24px;
    }

    .henickl-page {
        width: auto;
        margin-inline: 24px !important;
        padding: 36px 0 48px;
        font-size: 18px;
        line-height: 1.5;
    }

    .henickl-page h1 {
        font-size: 28px;
    }

    .henickl-page h2 {
        font-size: 23px;
    }

    .henickl-page p {
        margin-bottom: 22px;
    }

    .henickl-start .henickl-gallery {
        margin: 28px 0;
    }

    .henickl-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .start-gallery img {
        aspect-ratio: 1.32;
    }

    .henickl-season-note {
        font-size: 21px;
    }

    /* Christbäume: Foto oberhalb des Textes */

    .henickl-tree-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-bottom: 34px;
    }

    .henickl-tree-row figure {
        width: 100%;
        max-width: 320px;
    }

    .henickl-tree-row img {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .henickl-tree-row p {
        margin: 0;
    }

    .henickl-sample-label {
        font-size: 44px;
    }

    .henickl-pickup {
        padding: 16px;
    }

    .henickl-family-about {
        width: 100%;
        margin-bottom: 24px !important;
    }

    .henickl-farm-panorama img {
        aspect-ratio: 1.65;
        object-position: 65% 50%;
    }

    .henickl-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 28px;
    }

    .henickl-contact-grid h2 {
        margin-bottom: 16px;
    }

    .henickl-production-photo img {
        aspect-ratio: 1.32;
    }

    .henickl-footer {
        padding: 34px 24px;
        font-size: 17px;
    }

    .henickl-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .henickl-footer-tree {
        width: 72px;
    }
}

/* ========================================
   REDUZIERTE BEWEGUNG
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   WORDPRESS BLOCKEDITOR
======================================== */

.editor-styles-wrapper :is(
    .henickl-gallery,
    .henickl-tree-row,
    .henickl-footer-inner,
    .henickl-contact-grid
) > .block-editor-block-list__layout {
    display: contents;
}

/* Verkaufsseite: Originalformat der Fotos wiederherstellen */
.henickl-page.henickl-sale .henickl-gallery .henickl-sample figure,
.henickl-page.henickl-sale .henickl-gallery .henickl-sample img {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.henickl-page.henickl-sale .henickl-gallery .henickl-sample img {
    display: block;
    width: 100% !important;
    object-fit: contain !important;
}

/* Zwei Familienfotos nebeneinander */
.henickl-about-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.henickl-about-photos .henickl-family-about {
    width: 100%;
    margin: 0 !important;
}

.henickl-about-photos img {
    display: block;
    width: 100%;
    height: auto;
}

/* Smartphone: Fotos untereinander */
@media (max-width: 599px) {
    .henickl-about-photos {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
