/* Tenant Home — Layout "Standard" */
/* Farben: tenant-theme-standard.css */

html { scroll-behavior: smooth; }

/* Reset landing.css global section padding */
.th-page section,
.th-subpage section { padding: 0; margin: 0; }
.th-page section.th-hero,
.th-subpage section.th-hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ─── Layout ─── */
.tenant-home-layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--th-bg, #FFFDF8);
    color: var(--th-text, #2d3a1f);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tenant-home-content { flex: 1; }

.th-page {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.th-subpage { padding: 1.5rem 1.25rem; }

/* ─── Navbar ─── */
.tenant-home-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eee;
}

[data-theme="dark"] .tenant-home-header { background: #1a1d14; border-color: #333; }

.th-navbar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.th-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.th-navbar-logo { max-height: 36px; width: auto; }

.th-navbar-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--th-text, #2d3a1f);
}

.th-nav-links {
    display: none;
    flex: 1;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-right: 1rem;
}

.th-nav-link {
    padding: 0.4rem 0.875rem;
    color: var(--th-text, #2d3a1f);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s;
}
.th-nav-link:hover { background: #f3f4f0; }
[data-theme="dark"] .th-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--th-text); }

.th-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
}

.th-theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--th-text-muted, #888);
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    opacity: 0.35;
    transition: opacity 0.15s;
}
.th-theme-btn:hover { opacity: 1; }

/* Hide old theme toggle in tenant home context */
.tenant-home-layout .theme-toggle { display: none !important; }

.th-hamburger {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--th-text, #2d3a1f);
    padding: 0.25rem;
}

/* Mobile menu */
.th-nav-links-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
}
[data-theme="dark"] .th-nav-links-open { background: #1a1d14; }

/* ─── Hero ─── */
.th-hero {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.th-hero-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.th-hero-image > img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.th-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 0 5rem;
}
.th-hero-overlay-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.th-hero-tagline {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    max-width: 420px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.th-hero-cta {
    display: inline-block;
    width: fit-content;
    padding: 0.6rem 1.4rem;
    background: #E8820C;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: background 0.15s;
}
.th-hero-cta:hover { background: #d4750a; }

/* Hero text-only fallback */
.th-hero-text-only {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem 1.5rem 4rem;
    background: linear-gradient(180deg, rgba(82,108,43,0.06) 0%, transparent 100%);
}
.th-hero-logo { max-height: 72px; width: auto; flex-shrink: 0; }
.th-hero-text { flex: 1; }
.th-hero-title { font-size: 1.75rem; font-weight: 800; color: var(--th-primary); margin: 0 0 0.25rem; line-height: 1.2; }
.th-hero-description { font-size: 1rem; color: var(--th-text-muted); margin: 0 0 1rem; white-space: pre-line; }

/* ─── Bento Grid (overlapping hero) ─── */
.th-bento-wrap {
    max-width: 1000px;
    margin: -2rem auto 0;
    padding: 0 1.25rem;
    position: relative;
}
.th-bento-grid {
    justify-content: center;
}

.th-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

.th-bento-tile {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}

.th-bento-link {
    position: relative;
    padding-right: 2rem;
    cursor: pointer;
}
.th-bento-link::after {
    content: "→";
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--th-primary);
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.45;
    transition: opacity 0.15s, transform 0.15s;
}
.th-bento-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: var(--th-primary); }
.th-bento-link:hover::after { opacity: 1; transform: translateY(-50%) translateX(3px); }

[data-theme="dark"] .th-bento-tile { background: var(--th-surface, #24281c); border-color: rgba(255,255,255,0.08); }

/* Highlight tile removed — "Aktuell vom Hof" uses same white style as other tiles */

.th-bento-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(82,108,43,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.th-bento-body h3 { font-size: 0.85rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--th-text); }
.th-bento-body p { font-size: 0.8rem; margin: 0; color: var(--th-text-muted); line-height: 1.4; }
.th-bento-body strong { font-weight: 700; }

[data-theme="dark"] .th-bento-body h3 { color: var(--th-text, #f0f4eb); }

.th-pay-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--th-text);
    margin-top: 0.125rem;
}
.th-pay-row img { height: 16px !important; width: auto !important; max-width: 60px !important; display: inline-block !important; }

/* ─── Products ─── */
.th-page section.th-products,
.th-subpage section.th-products {
    padding: 2rem 1.25rem 0.5rem;
}

.th-product-carousel-wrap {
    position: relative;
}

/* Linker und rechter Fade-Mask zur Andeutung von mehr Inhalt am Rand —
   wird via JS-Klassen th-at-start / th-at-end ein- und ausgeblendet. */
.th-product-carousel-wrap::before,
.th-product-carousel-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0.5rem;
    width: 36px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1;
}
.th-product-carousel-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--th-bg, #FFFDF8), transparent);
}
.th-product-carousel-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--th-bg, #FFFDF8), transparent);
}
.th-product-carousel-wrap.th-is-scrollable:not(.th-at-start)::before { opacity: 0.9; }
.th-product-carousel-wrap.th-is-scrollable:not(.th-at-end)::after { opacity: 0.9; }

/* Navigations-Pfeile, schweben über dem Karussell.
   Erscheinen nur wenn das Karussell scrollbar ist und nicht am jeweiligen Ende.
   Vertikal zentriert auf der ganzen Kachel (Card ≈ 150 px hoch → Mitte bei 75 px). */
.th-carousel-arrow {
    position: absolute;
    top: 75px;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--th-text);
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1;
    padding: 0 0 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s, background-color 0.15s, transform 0.15s;
}
.th-carousel-arrow:hover {
    background: #f7f7f4;
}
.th-carousel-arrow:active { transform: translateY(-50%) scale(0.95); }

.th-carousel-arrow-prev { left: -12px; }
.th-carousel-arrow-next { right: -12px; }

.th-product-carousel-wrap.th-is-scrollable:not(.th-at-start) .th-carousel-arrow-prev,
.th-product-carousel-wrap.th-is-scrollable:not(.th-at-end) .th-carousel-arrow-next {
    opacity: 1;
    visibility: visible;
}

/* Mobile: Pfeile zu fummelig; ausblenden, dafür native Touch-Scroll-Erlebnis. */
@media (max-width: 600px) {
    .th-carousel-arrow { display: none; }
}

/* Stepper-Dots unter dem Karussell. Ein Punkt pro "Seite" (sichtbarer Bereich),
   maximal 8 Punkte. Aktiver Punkt ist grösser und in Brand-Farbe. JS füllt das Container-Element. */
.th-carousel-dots {
    margin-top: 0.85rem;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.th-product-carousel-wrap.th-is-scrollable .th-carousel-dots {
    display: flex;
}
.th-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, width 0.2s;
}
.th-carousel-dot:hover { background: rgba(0, 0, 0, 0.32); }
.th-carousel-dot-active {
    background: var(--th-primary, var(--mud-palette-primary));
    /* Aktiver Punkt wird zum kleinen Pillen-Indikator. */
    width: 18px;
    border-radius: 999px;
}

.th-product-carousel {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    /* Native Scrollbar weg auf Desktop — wir haben den Progress-Stepper.
       Mobile bleibt das Standard-Touch-Scrollverhalten erhalten. */
    scrollbar-width: none;
}
.th-product-carousel::-webkit-scrollbar { display: none; }

.th-pcard {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 150px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s, transform 0.15s;
    /* Klickbar — pcard ist seit Story #047 ein Link auf die Produkt-Detail-Seite */
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.th-pcard:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.th-pcard:focus-visible {
    outline: 2px solid var(--th-primary, var(--mud-palette-primary));
    outline-offset: 2px;
}
[data-theme="dark"] .th-pcard { background: var(--th-surface); }

.th-pcard-img {
    position: relative;
    width: 100%;
    aspect-ratio: 5/3;
    overflow: hidden;
    background: #f5f5f0;
}
/* Kacheln: füllend skalieren für stimmige Optik. Vollständige Bilder sind in
   der PDP zu sehen (object-fit: contain), hier reicht Cover für Konsistenz. */
.th-pcard-img img { width: 100%; height: 100%; object-fit: cover; }

.th-pcard-featured {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    z-index: 1;
    padding: 0.15rem 0.5rem;
    background: var(--th-primary, #526c2b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
.th-pcard-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.3;
}

.th-pcard-info {
    padding: 0.5rem 0.75rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}
.th-pcard-info .th-pcard-stock { margin-top: auto; padding-top: 0.25rem; }
.th-pcard-info .th-pcard-origin { margin-top: auto; }
.th-pcard-info .th-pcard-stock ~ .th-pcard-origin { margin-top: 0.25rem; }
.th-pcard-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--th-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.th-pcard-price { font-size: 0.8rem; color: var(--th-text-muted); font-weight: 500; }
.th-pcard-stock {
    font-size: 0.85rem;
    color: var(--th-primary);
    font-weight: 600;
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.th-pcard-stock-out { color: #ea580c; }
.th-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}
.th-stock-badge-ok { background: #16a34a; }
.th-stock-badge-out { background: #ea580c; }

.th-products-link-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}
.th-products-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--th-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}
.th-products-link::after { content: "→"; transition: transform 0.15s; }
.th-products-link:hover {
    color: var(--th-primary);
}
.th-products-link:hover::after { transform: translateX(3px); }

/* ─── Bottom section (Über uns + Labels + Contact) ─── */
.th-page section.th-bottom,
.th-subpage section.th-bottom {
    padding: 1.75rem 1.25rem 1.5rem;
    margin-top: 1.5rem;
    background: var(--th-surface, #f9f9f5);
    border-radius: 16px;
}
[data-theme="dark"] .th-bottom { background: var(--th-surface, #24281c); }

.th-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.th-bottom-about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.th-about-photo {
    width: 100%;
    max-width: 280px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.th-bottom-about h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.375rem; }
.th-bottom-about p { font-size: 0.9rem; color: var(--th-text-muted); margin: 0 0 0.5rem; line-height: 1.5; }

.th-link-more {
    color: var(--th-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.th-link-more:hover { text-decoration: underline; }

.th-bottom-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
    background: var(--th-bg, #FFFDF8);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--th-border, rgba(82,108,43,0.1));
}
[data-theme="dark"] .th-bottom-right { background: rgba(255,255,255,0.03); }

.th-bottom-labels {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.th-label-img { height: 64px; width: auto; }

.th-bottom-contact-block { display: flex; flex-direction: column; gap: 0.375rem; }
.th-bottom-contact-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--th-text-muted);
    margin: 0 0 0.125rem;
}

.th-bottom-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.th-bottom-contact a {
    color: var(--th-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.th-bottom-contact a:hover { color: var(--th-primary); }

@media (min-width: 600px) {
    .th-bottom-right { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

/* ─── Sections (subpages) ─── */
.th-page .th-section,
.th-subpage .th-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.th-section:last-child { border-bottom: none; }

.th-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.th-section-header h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }

.th-section-text {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--th-text-muted);
    white-space: pre-line;
    margin: 0;
}

/* ─── About Layout (subpage) ─── */
.th-about-layout { display: flex; flex-direction: column; gap: 1.25rem; }
.th-about-image img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; }
.th-about-image-large img { max-height: 400px; }

/* ─── /ueber-uns page (2-column on desktop) ─── */
.th-aboutpage-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    color: var(--th-text);
}
.th-aboutpage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
.th-aboutpage-hero {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    border-radius: 14px;
}
.th-aboutpage-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--th-text);
    white-space: pre-line;
    margin: 0;
}
.th-aboutpage-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
section.th-aboutpage-section {
    background: var(--th-surface, #f9f9f5);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
}
[data-theme="dark"] .th-aboutpage-section { background: var(--th-surface, #24281c); }
.th-aboutpage-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.625rem;
    color: var(--th-primary);
    text-align: left;
}
.th-aboutpage-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--th-text-muted);
    white-space: pre-line;
    margin: 0;
}
.th-aboutpage-section .th-labels { margin-top: 0.25rem; }

@media (min-width: 768px) {
    .th-aboutpage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
    .th-aboutpage-hero { max-height: 420px; }
}

/* ─── /produkte page ─── */
.th-productspage-header { margin-bottom: 1.5rem; }
.th-productspage-subtitle {
    margin: 0;
    color: var(--th-text-muted);
    font-size: 0.9rem;
}
.th-productspage-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 58px;
    background: var(--th-bg, #FFFDF8);
    z-index: 5;
    border-bottom: 1px solid var(--th-border, rgba(82,108,43,0.08));
}
[data-theme="dark"] .th-productspage-nav { background: var(--th-bg, #12140e); }
.th-productspage-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgba(82,108,43,0.08);
    color: var(--th-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s;
}
.th-productspage-pill:hover { background: rgba(82,108,43,0.18); }
.th-productspage-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--th-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

section.th-productspage-category {
    margin-bottom: 4rem;
    scroll-margin-top: 110px;
}
section.th-productspage-category:last-child { margin-bottom: 1rem; }
.th-productspage-category-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}
.th-productspage-category-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--th-text);
    margin: 0;
    text-align: left;
    letter-spacing: -0.01em;
}
.th-productspage-category-count {
    font-size: 0.75rem;
    color: var(--th-primary);
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    background: rgba(82,108,43,0.1);
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.th-productspage-category-desc {
    margin: 0 0 1rem;
    color: var(--th-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.th-productspage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.th-productspage-grid .th-pcard { width: auto; }
.th-productspage-empty {
    color: var(--th-text-muted);
    padding: 2rem 0;
}

.th-pcard-origin {
    font-size: 0.7rem;
    color: var(--th-text-muted);
    line-height: 1.3;
    margin-top: 0.125rem;
}
.th-pcard-origin-label {
    font-weight: 600;
}
.th-pcard-hint {
    font-size: 0.7rem;
    color: var(--th-text-muted);
    font-style: italic;
    margin-top: 0.125rem;
}

/* ─── /anfahrt page ─── */
.th-directions-map {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--th-border, rgba(82,108,43,0.1));
    margin-bottom: 1.5rem;
}
.th-directions-map iframe { width: 100%; height: 100%; border: none; display: block; }

.th-directions-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.th-directions-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.875rem;
}
.th-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--th-primary);
    border-radius: 8px;
    color: var(--th-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}
.th-action-btn:hover { background: rgba(82,108,43,0.08); }
.th-action-btn-primary {
    background: var(--th-primary);
    color: #fff;
}
.th-action-btn-primary:hover { background: var(--th-primary); opacity: 0.9; color: #fff; }

.th-directions-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.th-directions-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.th-directions-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(82,108,43,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.th-directions-contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--th-text-muted);
    font-weight: 600;
    margin-bottom: 0.125rem;
}
.th-directions-contact-value {
    display: block;
    font-size: 0.9rem;
    color: var(--th-text);
    font-weight: 500;
}
.th-directions-link { color: var(--th-primary); text-decoration: none; }
.th-directions-link:hover { text-decoration: underline; }

.th-directions-payments {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.th-directions-payment {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--th-bg, #FFFDF8);
    border: 1px solid var(--th-border, rgba(82,108,43,0.1));
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--th-text);
}
[data-theme="dark"] .th-directions-payment { background: rgba(255,255,255,0.05); }

section.th-directions-season {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(82,108,43,0.08), rgba(232,130,12,0.06));
}
.th-directions-season strong { color: var(--th-primary); font-weight: 700; }

@media (min-width: 768px) {
    .th-directions-map { height: 420px; }
}

/* ─── Product grid (subpage) ─── */
.th-categories { display: flex; flex-direction: column; gap: 1.5rem; }
.th-category-title {
    font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--th-primary);
    color: var(--th-primary);
}
.th-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

/* Reuse pcard styles for product grid on subpage */
.th-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .th-product-card { background: var(--th-surface); }
.th-product-image { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f5f5f0; }
.th-product-image img { width: 100%; height: 100%; object-fit: contain; }
.th-product-info { padding: 0.5rem 0.625rem; display: flex; flex-direction: column; gap: 0.125rem; }
.th-product-name { font-size: 0.8rem; font-weight: 600; color: var(--th-text); }
.th-product-price { font-size: 0.75rem; color: var(--th-text-muted); }
.th-product-unit { font-size: 0.7rem; color: var(--th-text-muted); }
.th-product-price-row { display: flex; align-items: baseline; gap: 0.25rem; }

/* ─── Location (subpage) ─── */
.th-location-layout { display: flex; flex-direction: column; gap: 1.25rem; }
.th-location-map { border-radius: 14px; overflow: hidden; border: 1px solid #eee; height: 300px; }
.th-location-map-large { height: 400px; }
.th-location-map iframe { width: 100%; height: 100%; border: none; display: block; }
.th-location-address { padding-left: 0.75rem; border-left: 3px solid var(--th-primary); }
.th-location-address p, .th-location-address h3 { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.th-location-address h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.th-directions-info { margin-top: 1rem; }
.th-directions-info h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.th-location-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.th-map-link {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4rem 0.75rem; border: 1px solid var(--th-primary); border-radius: 8px;
    color: var(--th-primary); text-decoration: none; font-size: 0.8rem; font-weight: 600;
}
.th-map-link:hover { background: rgba(82,108,43,0.06); }

/* ─── Labels (standalone) ─── */
.th-labels { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ─── Footer ─── */
.th-footer { margin-top: auto; }

.th-footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.th-footer-contact { display: flex; gap: 1.5rem; }
.th-footer-link { color: var(--th-text-muted); text-decoration: none; font-size: 0.825rem; }
.th-footer-link:hover { color: var(--th-primary); }
.th-footer-address { font-size: 0.825rem; color: var(--th-text-muted); width: 100%; }

.th-footer-powered {
    text-align: center;
    padding: 0.6rem 1rem;
    background: transparent;
    border-top: 1px solid var(--th-border, rgba(82,108,43,0.1));
}
.th-footer-powered a { color: var(--th-text-muted); text-decoration: none; font-size: 0.75rem; font-weight: 500; opacity: 0.7; transition: opacity 0.15s; }
.th-footer-powered a:hover { opacity: 1; }

/* ─── Responsive ─── */
@media (min-width: 600px) {
    .th-hero-image > img { height: 400px; }
    .th-hero-overlay { padding: 2.5rem 0 6rem; }
    .th-hero-tagline { font-size: 1.75rem; }
    .th-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .th-nav-links { display: flex; }
    .th-hamburger { display: none; }
    .th-pcard { width: 165px; }
    .th-bottom-about { flex-direction: row; }
}

@media (min-width: 768px) {
    .th-bottom-grid { grid-template-columns: 1.2fr 1fr; }
    .th-about-layout { flex-direction: row; }
    .th-about-image { width: 280px; flex-shrink: 0; }
    .th-about-image img { height: 100%; max-height: none; }
    .th-location-layout { flex-direction: row; }
    .th-location-map { flex: 1; }
    .th-location-info { width: 300px; flex-shrink: 0; }
}

@media (min-width: 1024px) {
    .th-hero-image > img { height: 440px; }
    .th-hero-overlay { padding: 3rem 0 7rem; }
    .th-hero-tagline { font-size: 2rem; max-width: 480px; }
    .th-bento-wrap { margin-top: -2.5rem; }
    .th-bento-grid { grid-template-columns: repeat(4, 1fr); }
    .th-pcard { width: 175px; }
    .th-about-image { width: 340px; }
    .th-location-map-large { height: 400px; }
    .th-about-photo { width: 240px; height: 180px; }
}
