/* ============================================================
   Hepsi-Markt Startseite — home.css
   Neues Layout: Bild oben (komplettes Kampagnen-Motiv mit eingebranntem Text),
   darunter weiss mit Produkt-Cards + CTA.
   ============================================================ */

/* ---- Shoptimizer-Override: Full-Width + Titel ausblenden ---- */
.page-template-template-home .entry-title,
.page-template-template-home-php .entry-title,
.page-template-template-home .page-title,
.page-template-template-home-php .page-title,
.page-template-template-home .hepsi-home-main > .entry-header,
.page-template-template-home-php .hepsi-home-main > .entry-header {
    display: none !important;
}

.page-template-template-home .content-area,
.page-template-template-home-php .content-area,
.page-template-template-home .site-main,
.page-template-template-home-php .site-main {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Gap zwischen Header und Hero killen — Hero sitzt direkt unter Header-Schatten */
.page-template-template-home #content.site-content,
.page-template-template-home-php #content.site-content,
.page-template-template-home .shoptimizer-archive,
.page-template-template-home-php .shoptimizer-archive,
.page-template-template-home .archive-header,
.page-template-template-home-php .archive-header {
    padding: 0 !important;
    margin: 0 !important;
}

/* Nur die Col-Full INNERHALB des Main-Contents voll aufziehen — Header/Topbar/Menu
   behalten ihre normalen Rand-Paddings (wie auf der Angebote-Seite). */
.page-template-template-home .site-content .col-full,
.page-template-template-home-php .site-content .col-full {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-home .widget-area,
.page-template-template-home-php .widget-area {
    display: none !important;
}

.page-template-template-home #primary,
.page-template-template-home-php #primary {
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

/* ---- CSS-Variablen (Brand-Palette) ---- */
:root {
    --hepsi-red:        #e30613;
    --hepsi-red-dark:   #b80010;
    --hepsi-green:      #9dc043;
    --hepsi-green-dark: #24583e;
    --hepsi-bg:         #f5f5f5;
    --hepsi-white:      #ffffff;
    --hepsi-text:       #1a1a1a;
    --hepsi-text-light: #666666;
    --hepsi-border:     #e0e0e0;
    --hepsi-shadow:     0 2px 8px rgba(0, 0, 0, 0.12);
    --hepsi-shadow-lg:  0 4px 20px rgba(0, 0, 0, 0.18);
    --hepsi-radius:     8px;
    --hepsi-gap:        16px;
}

/* ============================================================
   Allgemein
   ============================================================ */
.hepsi-home-main {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: var(--hepsi-white);
    overflow-x: hidden;
}

.hepsi-home-error {
    padding: 20px;
    color: var(--hepsi-red);
    text-align: center;
}

/* ============================================================
   SEKTION 1: Hero — Bild oben, Produkte+CTA unten (weiss)
   ============================================================ */
.hepsi-hero {
    position: relative;
    width: 100%;
    background: var(--hepsi-white);
    overflow: hidden;
}

/* Tiny-Slider Base-Styles (Lib liefert kein CSS mit) */
.hepsi-hero .tns-outer { padding: 0 !important; }
.hepsi-hero .tns-outer [hidden] { display: none !important; }
.hepsi-hero .tns-slider { transition: all 0s; }
.hepsi-hero .tns-slider > .tns-item { box-sizing: border-box; }
.hepsi-hero .tns-horizontal.tns-subpixel { white-space: nowrap; }
.hepsi-hero .tns-horizontal.tns-subpixel > .tns-item { display: inline-block; vertical-align: top; white-space: normal; }
.hepsi-hero .tns-horizontal.tns-no-subpixel:after { content: ''; display: table; clear: both; }
.hepsi-hero .tns-horizontal.tns-no-subpixel > .tns-item { float: left; }
.hepsi-hero .tns-horizontal.tns-carousel.tns-no-subpixel > .tns-item { margin-right: -100%; }
.hepsi-hero .tns-no-calc { position: relative; left: 0; }
.hepsi-hero .tns-ovh { overflow: hidden; }
.hepsi-hero .tns-visually-hidden,
.hepsi-hero .tns-liveregion,
.hepsi-hero [data-action="stop"],
.hepsi-hero [data-action="start"] {
    position: absolute !important;
    left: -10000em !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}
.hepsi-hero .tns-transparent { opacity: 0; visibility: hidden; }
.hepsi-hero .tns-vpfix { white-space: nowrap; }
.hepsi-hero .tns-vpfix > div,
.hepsi-hero .tns-vpfix > li { display: inline-block; }

.hepsi-hero .tns-outer,
.hepsi-hero .tns-inner,
.hepsi-hero__slider {
    width: 100%;
}
.hepsi-hero .tns-outer,
.hepsi-hero .tns-inner { overflow: hidden; }

/* Ein Slide: vertikaler Stack mit Produkt-Overlap ueber Bild-Unterkante */
.hepsi-hero__slide {
    display: block;
    position: relative;
    width: 100%;
    background: var(--hepsi-white);
    padding-bottom: 0;
}

/* Bildbereich oben (16:9 Aspect-Ratio, verhindert CLS) */
.hepsi-hero__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--hepsi-bg);
    overflow: hidden;
}

.hepsi-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hepsi-hero__img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--hepsi-bg);
}

/* Content-Bereich — Produkt-Cards ragen tief ins Bild (ALDI-Pattern) */
.hepsi-hero__body {
    position: relative;
    z-index: 2;
    padding: 0 5% 40px;
    max-width: 1400px;
    margin-top: clamp(-480px, -28vw, -220px);
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Produkt-Flex: 1-4 Karten, immer horizontal zentriert */
.hepsi-hero__products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hepsi-gap);
    margin-bottom: 28px;
}

.hepsi-hero__products > .hepsi-hero__product {
    flex: 0 1 calc(25% - 12px);
    max-width: calc(25% - 12px);
    min-width: 180px;
}

.hepsi-hero__product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hepsi-white);
    border: 1px solid var(--hepsi-border);
    border-radius: var(--hepsi-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--hepsi-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Rabatt-Badge konsistent oben rechts ueber dem Produkt-Bild — nicht mehr springend */
.hepsi-hero__product .price-tag-right {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.hepsi-hero__product .discount-right {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    background: var(--hepsi-red) !important;
    color: var(--hepsi-white) !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    border-radius: 4px !important;
    z-index: 4 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.hepsi-hero__product .price-box {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hepsi-hero__product .original-price {
    font-size: 12px;
    color: var(--hepsi-text-light);
    margin-bottom: 2px;
}

.hepsi-hero__product .original-price .strikethrough {
    text-decoration: line-through;
}

.hepsi-hero__product .sale-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--hepsi-red);
    line-height: 1.1;
}

.hepsi-hero__product .additional-info {
    margin-top: 6px;
    font-size: 11px;
    color: var(--hepsi-text-light);
    line-height: 1.3;
}

.hepsi-hero__product:hover,
.hepsi-hero__product:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--hepsi-shadow-lg);
    text-decoration: none;
    color: var(--hepsi-text);
}

.hepsi-hero__product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--hepsi-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.hepsi-hero__product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hepsi-hero__product-info {
    padding: 10px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--hepsi-border);
}

.hepsi-hero__product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hepsi-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Immer 2 Zeilen Hoehe reservieren — Preis darunter bleibt auf gleicher Baseline,
       auch wenn Name nur 1 Zeile lang ist (fixes Preis-Springen). */
    min-height: calc(2 * 1.3em);
}

.hepsi-hero__product-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--hepsi-red);
    margin: 0;
}

.hepsi-hero__product-price .woocommerce-Price-amount {
    color: var(--hepsi-red);
}

.hepsi-hero__product-price del {
    color: var(--hepsi-text-light);
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}

/* CTA unter den Produkten */
.hepsi-hero__cta-wrap {
    text-align: center;
}

a.hepsi-hero__cta,
.hepsi-hero__cta {
    display: inline-block;
    background: var(--hepsi-green) !important;
    color: var(--hepsi-white) !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: var(--hepsi-radius);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, transform 0.15s ease;
    min-height: 48px;
    box-sizing: border-box;
}

a.hepsi-hero__cta:hover,
a.hepsi-hero__cta:focus-visible,
.hepsi-hero__cta:hover,
.hepsi-hero__cta:focus-visible {
    background: var(--hepsi-green-dark) !important;
    transform: translateY(-1px);
    color: var(--hepsi-white) !important;
    text-decoration: none;
}

/* Impression-Marker — unsichtbar */
.hepsi-impression-marker {
    display: none;
}

/* Tiny-Slider Pfeile */
.hepsi-hero .tns-controls {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.hepsi-hero .tns-controls button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--hepsi-border);
    background: rgba(255, 255, 255, 0.95);
    color: var(--hepsi-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hepsi-hero .tns-controls button:hover,
.hepsi-hero .tns-controls button:focus-visible {
    background: var(--hepsi-white);
    border-color: var(--hepsi-green);
    color: var(--hepsi-green);
}

/* Slider-Dots unter den Slides */
.hepsi-hero .tns-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 8px;
    margin: 0 auto;
}

.hepsi-hero .tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--hepsi-border);
    padding: 0;
    cursor: pointer;
}

.hepsi-hero .tns-nav button.tns-nav-active {
    background: var(--hepsi-green);
}

/* ============================================================
   SEKTION 2: Wochen-Angebote (weisser Grund, dynamisch)
   ============================================================ */
.hepsi-weeks {
    padding: 48px 5% 40px;
    background: var(--hepsi-white);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hepsi-weeks__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.hepsi-weeks__heading {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin: 0;
    color: var(--hepsi-text);
}

.hepsi-weeks__tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--hepsi-border);
    border-radius: var(--hepsi-radius);
    overflow: hidden;
    background: var(--hepsi-white);
}

.hepsi-weeks__tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--hepsi-text-light);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
}

.hepsi-weeks__tab:first-child {
    border-right: 1px solid var(--hepsi-border);
}

.hepsi-weeks__tab--active {
    background: var(--hepsi-green);
    color: var(--hepsi-white);
}

.hepsi-weeks__tab:hover:not(.hepsi-weeks__tab--active) {
    background: var(--hepsi-bg);
    color: var(--hepsi-text);
}

.hepsi-weeks__tab:focus-visible {
    outline: 2px solid var(--hepsi-green);
    outline-offset: 2px;
}

/* Panel-Wrapper */
.hepsi-weeks__panel {
    display: none;
}

.hepsi-weeks__panel--active {
    display: block;
}

/* Grid der Wochen-Cards (4 Spalten Desktop) */
.hepsi-weeks__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hepsi-gap);
}

/* Dots-Indicator (Desktop unsichtbar) */
.hepsi-weeks__dots {
    display: none;
}

.hepsi-weeks__dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hepsi-border);
    transition: background 0.2s ease;
}

.hepsi-weeks__dots span.hepsi-weeks__dot--active {
    background: var(--hepsi-green);
}

/* Wochen-Card */
.hepsi-week-card {
    display: flex;
    flex-direction: column;
    background: var(--hepsi-white);
    border: 1px solid var(--hepsi-border);
    border-radius: var(--hepsi-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--hepsi-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hepsi-week-card:hover,
.hepsi-week-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--hepsi-shadow-lg);
    text-decoration: none;
    color: var(--hepsi-text);
}

.hepsi-week-card__image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background-size: cover;
    background-position: center;
    background-color: var(--hepsi-bg);
}

.hepsi-week-card__date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--hepsi-red);
    color: var(--hepsi-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hepsi-week-card__body {
    padding: 14px 16px 16px;
}

.hepsi-week-card__subdate {
    display: block;
    font-size: 11px;
    color: var(--hepsi-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hepsi-week-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--hepsi-text);
    line-height: 1.3;
}

/* CTA-Link unter dem Grid */
.hepsi-weeks__cta-bottom {
    display: inline-block;
    margin-top: 24px;
    color: var(--hepsi-green-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    min-height: 44px;
}

.hepsi-weeks__cta-bottom:hover {
    border-bottom-color: var(--hepsi-green);
    text-decoration: none;
}

.hepsi-weeks__empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--hepsi-text-light);
    font-size: 15px;
}

/* ============================================================
   SEKTION 3: Discovery-Block (weiss)
   ============================================================ */
.hepsi-discovery {
    padding: 40px 5% 56px;
    background: var(--hepsi-white);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hepsi-discovery__heading {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin: 0 0 28px;
    color: var(--hepsi-text);
}

.hepsi-discovery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hepsi-gap);
}

.hepsi-discovery-card {
    background: var(--hepsi-white);
    border: 1px solid var(--hepsi-border);
    border-radius: var(--hepsi-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hepsi-discovery-card:hover {
    box-shadow: var(--hepsi-shadow-lg);
    transform: translateY(-2px);
}

.hepsi-discovery-card--wide {
    grid-column: span 2;
}

.hepsi-discovery-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.hepsi-discovery-card--wide .hepsi-discovery-card__image {
    aspect-ratio: 2 / 1;
}

.hepsi-discovery-card__body {
    padding: 16px 18px 20px;
}

.hepsi-discovery-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--hepsi-text);
}

.hepsi-discovery-card__subtitle {
    font-size: 14px;
    color: var(--hepsi-text-light);
    margin: 0 0 12px;
    line-height: 1.4;
}

.hepsi-discovery-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--hepsi-green-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.hepsi-discovery-card__link:hover {
    border-bottom-color: var(--hepsi-green);
    text-decoration: none;
}

/* ============================================================
   SEKTION 4: Newsletter-Anmeldung (Aldi-Style, Brand-Dunkelgruen)
   ============================================================ */
.hepsi-newsletter {
    background: var(--hepsi-green-dark);
    color: var(--hepsi-white);
    padding: 56px 5% 64px;
    width: 100%;
    box-sizing: border-box;
}

.hepsi-newsletter__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hepsi-newsletter__heading {
    color: var(--hepsi-white);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}

.hepsi-newsletter__subheading {
    color: var(--hepsi-white);
    opacity: 0.92;
    font-size: clamp(15px, 1.4vw, 17px);
    margin: 0 0 28px;
}

.hepsi-newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 580px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.hepsi-newsletter__input {
    flex: 1 1 300px;
    min-width: 0;
    padding: 14px 18px;
    font-size: 15px;
    background: var(--hepsi-white);
    border: 2px solid var(--hepsi-white);
    border-radius: var(--hepsi-radius);
    color: var(--hepsi-text);
    min-height: 48px;
    box-sizing: border-box;
}

.hepsi-newsletter__input:focus {
    outline: none;
    border-color: var(--hepsi-green);
    box-shadow: 0 0 0 3px rgba(157, 192, 67, 0.35);
}

.hepsi-newsletter__input::placeholder {
    color: #8a8a8a;
}

.hepsi-newsletter__submit {
    flex: 0 0 auto;
    padding: 14px 28px;
    background: var(--hepsi-green);
    color: var(--hepsi-white);
    border: 2px solid var(--hepsi-green);
    border-radius: var(--hepsi-radius);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    min-height: 48px;
    white-space: nowrap;
}

.hepsi-newsletter__submit:hover,
.hepsi-newsletter__submit:focus-visible {
    background: var(--hepsi-white);
    color: var(--hepsi-green-dark);
    border-color: var(--hepsi-white);
    transform: translateY(-1px);
}

.hepsi-newsletter__submit:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.hepsi-newsletter__message {
    min-height: 24px;
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.hepsi-newsletter__message--ok {
    color: #c8e6a0;
}

.hepsi-newsletter__message--err {
    color: #ffb4a8;
}

.hepsi-newsletter__privacy {
    font-size: 12px;
    opacity: 0.75;
    margin: 20px 0 0;
    line-height: 1.5;
}

.hepsi-newsletter__privacy a,
.hepsi-newsletter__privacy a:link,
.hepsi-newsletter__privacy a:visited,
.hepsi-newsletter__privacy a:hover,
.hepsi-newsletter__privacy a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
    opacity: 1;
}

@media (max-width: 600px) {
    .hepsi-newsletter {
        padding: 40px 5% 48px;
    }
    .hepsi-newsletter__form {
        flex-direction: column;
        gap: 10px;
    }
    /* Im column-flex darf flex-grow nicht auf 1 bleiben — sonst stretcht
       der Input auf die volle verfuegbare Hoehe (zig hundert px). */
    .hepsi-newsletter__input {
        flex: 0 0 auto;
        width: 100%;
        height: 48px;
    }
    .hepsi-newsletter__submit {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* Tablet — 992px */
@media (max-width: 992px) {
    .hepsi-hero__products > .hepsi-hero__product {
        flex: 0 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 160px;
    }

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

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

    .hepsi-discovery-card--wide {
        grid-column: span 2;
    }
}

/* Mobile — 768px: Produkte als horizontales Karussell, 2 sichtbar (ALDI-Pattern).
   - overscroll-behavior: contain verhindert dass Horizontal-Scroll ins Parent durchbricht,
     so dass erst der Produkt-Strip komplett durchgescrollt werden muss, bevor der
     Outer-Tns-Slider die naechste Slide anfasst.
   - touch-action: pan-x erlaubt Vertical-Scroll (Seitenscroll) weiterzureichen,
     hijackt aber horizontalen Pan. */
@media (max-width: 768px) {
    .hepsi-hero__body {
        padding: 0 0 28px;
        margin-top: clamp(-160px, -18vw, -80px);
    }

    .hepsi-hero__products {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
        padding: 4px 4% 4px;
        margin: 0 0 20px;
    }
    .hepsi-hero__products::-webkit-scrollbar {
        display: none;
    }
    .hepsi-hero__products > .hepsi-hero__product {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .hepsi-hero__cta {
        display: block;
        width: 100%;
        padding: 16px 24px;
    }

    .hepsi-hero .tns-controls {
        display: none;
    }

    /* Wochen-Sektion: Tabs volle Breite, Cards als horizontales Karussell */
    .hepsi-weeks {
        padding: 28px 0 28px;
    }

    .hepsi-weeks__header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 16px;
    }

    .hepsi-weeks__tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hepsi-weeks__tab {
        text-align: center;
        font-size: 13px;
        padding: 12px 8px;
        min-height: 48px;
        white-space: normal;
        line-height: 1.3;
    }

    .hepsi-weeks__tab--active {
        background: var(--hepsi-white);
        color: var(--hepsi-text);
        box-shadow: inset 0 -2px 0 var(--hepsi-green);
    }

    .hepsi-weeks__grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 75%;
        grid-auto-rows: min-content;
        align-items: start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 0 16px 8px;
        scrollbar-width: none;
    }

    .hepsi-weeks__grid::-webkit-scrollbar {
        display: none;
    }

    /* Card-Hoehe folgt dem Inhalt, nicht der Grid-Row (sonst stretcht
       die hoechste Card alle anderen auf dieselbe Hoehe). */
    .hepsi-week-card {
        scroll-snap-align: start;
        align-self: start;
        height: auto;
    }

    .hepsi-weeks__dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin: 12px 0 0;
        padding: 0 16px;
    }

    .hepsi-weeks__cta-bottom {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 16px 16px 0;
        padding: 16px 24px;
        background: var(--hepsi-green);
        color: var(--hepsi-white);
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-radius: var(--hepsi-radius);
        border-bottom: none;
        text-decoration: none;
        min-height: 48px;
    }

    .hepsi-weeks__cta-bottom:hover {
        background: var(--hepsi-green-dark);
        border-bottom: none;
        color: var(--hepsi-white);
    }

    .hepsi-discovery {
        padding: 28px 4% 40px;
    }

    .hepsi-discovery__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hepsi-discovery-card--wide {
        grid-column: span 1;
    }

    .hepsi-discovery-card--wide .hepsi-discovery-card__image {
        aspect-ratio: 16 / 9;
    }
}

/* CSS-Containment: Render-Performance */
.hepsi-week-card,
.hepsi-discovery-card,
.hepsi-hero__product {
    contain: layout paint;
}

/* Safe-Area fuer Notched-Geraete */
.hepsi-home-main {
    padding-top: env(safe-area-inset-top, 0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hepsi-hero__slide,
    .hepsi-week-card,
    .hepsi-discovery-card,
    .hepsi-hero__product,
    .hepsi-hero__cta,
    .hepsi-weeks__tab,
    .hepsi-weeks__cta-bottom {
        transition: none !important;
        animation: none !important;
    }
}
