
:root {
    --header-height: 100px;
    --primary: #a5c858;
    --text: #222;
    --bg: #fff;
    --max-width: 1200px;
    --breakpoint: 800px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 100%;
}

html, body {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

a {
    color: #222;
    text-decoration: underline;
}

a:hover {
    color: #5a6327;
}

.site-header,
.site-main,
.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.logo,
.slogan {
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    padding: 10px 0;
}

.slogan {
    padding: 15px 0;
}

.logo img,
.slogan img {
    display: block;
    height: clamp(70px, 8vw, 70px);
    max-height: calc(var(--header-height) - 20px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.language-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: clamp(0.4rem, 1.8vw, 1.25rem);
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-menu li {
    flex-shrink: 1;
    min-width: 0;
}

.main-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-size: clamp(0.7rem, 1.4vw, 1.1rem);
}

.main-menu .active a {
    color: #222;
    border-bottom: 2px solid var(--primary);
}

.main-menu a:hover {
    color: #5a6327;
}

.site-main {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.hero {
    width: 100%;
    margin-bottom: 1.5rem;
    aspect-ratio: 3 / 1;
    background: #f0f0f0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content {
    font-size: 1rem;
    line-height: 1.6;
}

.content h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.content-image {
    margin: 1.5rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-row {
    display: block;
    margin: 1.5rem 0;
}

.image-row img {
    display: inline-block;
    width: auto;
    height: 75px;
}

.map-container {
    width: 100%;
    max-width: 425px;
    margin: 1.5rem 0 0.5rem;
    aspect-ratio: 425 / 350;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    display: block;
}

.map-link {
    margin-bottom: 1.5rem;
}

.site-footer {
    background: var(--primary);
    padding: 2rem 1rem;
    margin-top: auto;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-contact h3 {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.3rem;
}

@media (max-width: 800px) {
    .logo {
        padding: 5px 0;
    }

    .logo img {
        max-height: 80px;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        position: relative;
    }

    .header-controls {
        order: 1;
        margin-left: auto;
    }

    .hamburger {
        display: flex;
    }

    .main-menu {
        position: absolute;
        top: var(--header-height);
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: var(--max-width);
        background: var(--bg);
        border-top: 0;
        border-bottom: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }

    .main-menu.open {
        max-height: 500px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .main-menu ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        white-space: normal;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .main-menu li {
        width: 100%;
        text-align: center;
    }

    .main-menu a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }

    .site-header,
    .site-main,
    .footer-container {
        padding: 0 0.75rem;
    }

    .content h1 {
        font-size: 1.5rem;
    }
}

@media (min-width: 801px) and (max-width: 1024px) {
    .logo img {
        max-height: calc(var(--header-height) - 50px);
    }

    .main-menu a {
        font-size: clamp(0.5rem, 1.4vw, 1.1rem);
    }

    .main-menu ul {
        gap: 0.65rem;
    }
}

@media (min-width: 801px) {
    .logo {
        order: 1;
    }

    .main-menu {
        order: 2;
    }

    .header-controls {
        order: 3;
    }

    .menu-webshop a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #222;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s ease;
        border-bottom: none;
    }

    .menu-webshop a::after {
        content: '↗';
        margin-left: 0.3rem;
        font-size: 0.85em;
        display: inline-block;
    }

    .menu-webshop a:hover {
        background: #5a6327;
        color: #fff;
    }

    .main-menu .active.menu-webshop a,
    .main-menu .menu-webshop a:hover {
        border-bottom: none;
        color: #fff;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gt-ar64 {
    aspect-ratio: 4 / 6 !important;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.lightbox1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: -webkit-fill-available;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
}

.lightbox1.active {
    display: flex;
}

.lightbox1 img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    user-select: none;
    -webkit-user-select: none;
}

.slider-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0;
}

.slider-scroll::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    flex: 0 0 calc(25% - 0.75rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    transform: translateZ(0);
}

.slider-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    display: block;
    border-radius: 6px;
    transform: scale(0.97);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.slider-thumb:hover {
    transform: scale(1);
    opacity: 0.92;
}

.slider-stage {
    position: relative;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text);
}

.slider-prev {
    left: 0.8rem;
}

.slider-next {
    right: 0.8rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: #fff;
}

.slider-icon {
    width: 25px;
    height: 25px;
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    height: 17px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-color 0.35s ease;
}

.slider-dot.active {
    background: var(--primary);
    width: 17px;
    height: 17px;
}

@media (max-width: 600px) {
    .slider-slide {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.86);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
}
