/**
 * MARK HAACKE — SHOP STYLES
 *
 * Anpassungen fuer WooCommerce Shop-Page und Produkt-Details.
 * Bewusst minimal — Germanized-kompatibel, nutzt WC-Standard-Markup.
 *
 * @package Haacke
 */

/* ============================================
   SHOP HERO (oberhalb Produkte)
   ============================================ */
.mh-shop-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--mh-bg);
    padding: clamp(3rem, 6vh, 5rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vh, 3rem);
}

.mh-shop-hero__inner {
    max-width: var(--container);
    margin: 0 auto;
}

.mh-shop-hero__card {
    background: var(--mh-card);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.mh-shop-hero__card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 40%;
    height: 220%;
    background: radial-gradient(circle, var(--mh-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 700px) {
    .mh-shop-hero__card { grid-template-columns: 1fr; }
}

.mh-shop-hero__text {
    position: relative;
}
.mh-shop-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 0.5rem 0 0.75rem;
    text-wrap: balance;
}
.mh-shop-hero__title em { font-style: italic; color: var(--mh-accent); font-weight: 400; }
.mh-shop-hero__description {
    color: var(--mh-text-light);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0;
}

.mh-shop-hero__stats {
    display: flex;
    gap: 2rem;
    position: relative;
}
.mh-shop-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.mh-shop-hero__stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--mh-accent);
}
.mh-shop-hero__stat-label {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
}

/* ============================================
   SHOP BRANCHE-FILTER (Pill-Row)
   ============================================ */
.mh-shop-filter {
    max-width: var(--container);
    margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
    padding: 0; /* 2026-05-20: horiz. Layout-Padding entfernt (vgl. .mh-container) */
}

.mh-shop-filter__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}
.mh-shop-filter__row::-webkit-scrollbar { display: none; }

.mh-shop-filter__label {
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.mh-shop-filter__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mh-text);
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-pill);
    transition: all 0.25s var(--ease-signature);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.mh-shop-filter__pill:hover {
    border-color: var(--mh-accent);
    color: var(--mh-accent);
    transform: translateY(-1px);
}
.mh-shop-filter__pill--active {
    background: var(--mh-accent);
    color: #fff;
    border-color: var(--mh-accent);
    font-weight: 600;
}
.mh-shop-filter__pill--active:hover {
    color: #fff;
    background: var(--mh-accent-hover);
}

/* ============================================
   WOOCOMMERCE PRODUCT CARDS — Haacke-Stil
   ============================================ */
.woocommerce ul.products,
ul.products.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem !important;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 900px) {
    .woocommerce ul.products,
    ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .woocommerce ul.products,
    ul.products.columns-3 { grid-template-columns: 1fr; }
}

.woocommerce ul.products li.product {
    background: var(--mh-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-signature), box-shadow 0.4s var(--ease-signature);
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.woocommerce ul.products li.product a img {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.8s var(--ease-signature);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display);
    font-size: 1.2rem !important;
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 600 !important;
    padding: 1.25rem 1.5rem 0.5rem !important;
    color: var(--mh-text);
}
.woocommerce ul.products li.product .price {
    font-family: var(--font-body);
    padding: 0 1.5rem 0.5rem;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--mh-accent) !important;
    margin: 0;
}
.woocommerce ul.products li.product .button {
    margin: 0 1.5rem 1.5rem !important;
    align-self: flex-start;
}

/* Shop Empty State */
.mh-shop-empty {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
}
.mh-shop-empty__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0.5rem 0 0.75rem;
}
.mh-shop-empty__text { color: var(--mh-text-light); margin: 0; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.woocommerce-breadcrumb,
.kadence-breadcrumbs {
    font-size: 0.82rem;
    color: var(--mh-text-muted);
    margin-bottom: 1.5rem;
}
.woocommerce-breadcrumb a { color: var(--mh-text-light); }
.woocommerce-breadcrumb a:hover { color: var(--mh-accent); }

/* ============================================
   TRAINER — Shop-Karte (Avatar-Zeile)
   ============================================ */
.mh-card-trainers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.78rem;
    color: var(--mh-text-light);
}
.mh-card-trainers__photo {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    object-fit: cover;
    border: 2px solid var(--mh-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.mh-card-trainers__photo + .mh-card-trainers__photo { margin-left: -12px; }
.mh-card-trainers__photo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mh-bg-warm, #e8e0d8);
    color: var(--mh-text);
    font-weight: 700;
    font-size: 0.8rem;
}
.mh-card-trainers__name { margin-left: 0.15rem; }

/* ============================================
   TRAINER — Produktseite (Chips)
   ============================================ */
.mh-product-trainers { margin: 1.5rem 0; }
.mh-product-trainers__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: var(--mh-text);
}
.mh-product-trainers__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.mh-trainer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.95rem 0.5rem 0.5rem;
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-pill);
    transition: border-color 0.25s var(--ease-signature), transform 0.25s var(--ease-signature);
}
.mh-trainer-chip:hover {
    border-color: var(--mh-accent);
    transform: translateY(-2px);
}
.mh-trainer-chip__photo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    object-fit: cover;
}
.mh-trainer-chip__photo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mh-bg-warm, #e8e0d8);
    color: var(--mh-text);
    font-weight: 700;
}
.mh-trainer-chip__meta { display: flex; flex-direction: column; line-height: 1.25; }
.mh-trainer-chip__name { font-weight: 650; color: var(--mh-text); font-size: 0.92rem; }
.mh-trainer-chip__role { font-size: 0.78rem; color: var(--mh-text-muted); }

/* ============================================
   TRAINER — Single (Foto + Bio + Schulungen)
   ============================================ */
.mh-trainer-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: 2.5rem;
}
.mh-trainer-hero__media {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--mh-bg-warm, #e8e0d8);
}
.mh-trainer-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.mh-trainer-hero__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 600;
    color: var(--mh-text-muted);
}
.mh-trainer-hero__name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0.75rem 0 0.5rem;
    color: var(--mh-text);
}
.mh-trainer-hero__role {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mh-accent);
    margin: 0 0 0.4rem;
}
.mh-trainer-hero__focus { color: var(--mh-text-light); margin: 0 0 0.9rem; }
.mh-trainer-hero__contact { display: flex; gap: 1.25rem; font-size: 0.9rem; font-weight: 600; }
.mh-trainer-hero__contact a { color: var(--mh-text-light); border-bottom: 1px solid transparent; transition: color 0.2s var(--ease-signature), border-color 0.2s var(--ease-signature); }
.mh-trainer-hero__contact a:hover { color: var(--mh-accent); border-bottom-color: var(--mh-accent); }

/* Querverweis-Badge Trainer <-> Team (Doppelrolle) */
.mh-person-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--mh-bg-warm, #f0ebe5);
    color: var(--mh-text);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.2s var(--ease-signature), color 0.2s var(--ease-signature);
}
.mh-person-badge:hover { background: var(--mh-accent); color: #fff; }
.mh-person-badge svg { transition: transform 0.2s var(--ease-signature); }
.mh-person-badge:hover svg { transform: translateX(2px); }

.mh-trainer-bio {
    max-width: 68ch;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--mh-text);
    margin-bottom: 3rem;
}
.mh-trainer-products .mh-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 600;
    margin: 0 0 1.5rem;
}

@media (max-width: 640px) {
    .mh-trainer-hero {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .mh-trainer-hero__media { width: 160px; }
}

/* ============================================
   SCHULUNGSKALENDER
   ============================================ */

/* ---- Filter-UI (client-side, via assets/js/schulkal-filter.js) ---- */
.mh-schulkal-filter {
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    box-shadow: var(--shadow-sm);
}
.mh-schulkal-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}
.mh-schulkal-filter__sel {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 180px;
}
.mh-schulkal-filter__sel-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
}
.mh-schulkal-filter select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.45rem 2rem 0.45rem 0.8rem;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    background: var(--mh-bg) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") no-repeat right 0.6rem center / 14px;
    background-repeat: no-repeat;
    font-size: 0.88rem;
    color: var(--mh-text);
    cursor: pointer;
    transition: border-color 0.2s var(--ease-signature);
}
.mh-schulkal-filter select:hover,
.mh-schulkal-filter select:focus {
    border-color: var(--mh-accent);
    outline: none;
}
.mh-schulkal-filter__pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.mh-schulkal-filter__pills-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
    margin-right: 0.4rem;
}
.mh-schulkal-filter__pills button {
    padding: 0.32rem 0.85rem;
    border: 1px solid var(--mh-border);
    background: transparent;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mh-text-light);
    cursor: pointer;
    transition: all 0.2s var(--ease-signature);
}
.mh-schulkal-filter__pills button:hover:not(.is-active) {
    border-color: var(--mh-accent);
    color: var(--mh-accent);
}
.mh-schulkal-filter__pills button.is-active {
    background: var(--mh-accent);
    border-color: var(--mh-accent);
    color: #fff;
    font-weight: 600;
}
.mh-schulkal-filter__reset {
    margin-left: auto;
    padding: 0.4rem 0.85rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--mh-text-muted);
    cursor: pointer;
    transition: color 0.2s var(--ease-signature);
}
.mh-schulkal-filter__reset:hover { color: var(--mh-accent); }

/* ---- Empty-State & Hide ---- */
.mh-schulkal-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--mh-text-muted);
}
.mh-schulkal__row.is-hidden,
.mh-schulkal__list.is-hidden,
.mh-schulkal__month.is-hidden { display: none !important; }

.mh-schulkal__month {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mh-border);
}
.mh-schulkal__month:first-of-type { margin-top: 0; }
.mh-schulkal__list { display: flex; flex-direction: column; gap: 0.6rem; }

.mh-schulkal__row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-md);
    transition: border-color 0.25s var(--ease-signature), transform 0.25s var(--ease-signature);
}
.mh-schulkal__row:hover { border-color: var(--mh-accent); transform: translateY(-2px); }

.mh-schulkal__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--mh-bg-warm, #e8e0d8);
    line-height: 1;
}
.mh-schulkal__day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--mh-text); }
.mh-schulkal__mon { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--mh-accent); margin-top: 0.2rem; }

.mh-schulkal__info { flex: 1; min-width: 0; }
.mh-schulkal__name {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mh-text);
    margin-bottom: 0.3rem;
}
.mh-schulkal__name:hover { color: var(--mh-accent); }
.mh-schulkal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    font-size: 0.82rem;
    color: var(--mh-text-light);
}
.mh-schulkal__tag {
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.74rem;
}
.mh-schulkal__branche { color: var(--mh-text-muted); }

/* Typ-Badge (Schulung / Veranstaltung) — nur sichtbar, wenn beide Arten
   im Kalender vorkommen. Veranstaltung dezent über die Akzentfarbe abgesetzt. */
.mh-schulkal__typ {
    padding: 0.1rem 0.55rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--mh-surface-2, rgba(0,0,0,0.05));
    color: var(--mh-text-muted);
}
.mh-schulkal__typ--veranstaltung {
    background: color-mix(in oklab, var(--mh-accent) 14%, transparent);
    color: var(--mh-accent);
}

/* Sprach-Badge (DE/EN) */
.mh-schulkal__lang {
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: var(--mh-text-muted);
}

/* Veranstaltungs-Meta auf der Produktseite */
.mh-veranstaltung-meta {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.mh-veranstaltung-meta__item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.mh-veranstaltung-meta__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mh-text-light);
}
.mh-veranstaltung-meta__value {
    font-weight: 600;
    color: var(--mh-text);
}

/* Plätze-Status: success (frei) · warning (≤3) · error (ausgebucht) */
.mh-schulkal__plaetze { font-weight: 600; color: var(--mh-success); }
.mh-schulkal__plaetze.is-low  { color: var(--mh-warning); }
.mh-schulkal__plaetze.is-full { color: var(--mh-error); }

.mh-schulkal__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mh-text);
    padding: 0.5rem 1rem;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-pill);
    transition: all 0.25s var(--ease-signature);
}
.mh-schulkal__cta:hover { background: var(--mh-accent); color: #fff; border-color: var(--mh-accent); }
.mh-schulkal__cta svg { transition: transform 0.25s var(--ease-signature); }
.mh-schulkal__cta:hover svg { transform: translateX(3px); }

@media (max-width: 640px) {
    .mh-schulkal__row { flex-wrap: wrap; gap: 0.85rem; }
    .mh-schulkal__cta { width: 100%; justify-content: center; }
}

/* ============================================
   SCHULUNGS-KONFIGURATOR (Produktseite)
   ============================================ */
.mh-schulung-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem;
    background: var(--mh-bg-warm, #e8e0d8);
    border-radius: var(--radius-md);
}
.mh-cfg-row { display: flex; flex-direction: column; gap: 0.35rem; }
.mh-cfg-row--termin,
.mh-cfg-row--individuell,
.mh-schulung-price { grid-column: 1 / -1; }
.mh-cfg-row--individuell[hidden] { display: none; }
.mh-cfg-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
}
.mh-cfg-sub { display: flex; flex-direction: column; gap: 0.35rem; }
.mh-cfg-fixed {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mh-text);
    background: var(--mh-card);
    border: 1px dashed var(--mh-border);
    border-radius: var(--radius-sm);
}
.mh-cfg-fixed::before {
    content: "";
    width: 13px; height: 13px;
    background: var(--mh-text-muted);
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
.mh-schulkal__span { font-weight: 700; color: var(--mh-text); }
@media (max-width: 520px) {
    .mh-schulung-config { grid-template-columns: 1fr; }
    .mh-cfg-2col { grid-template-columns: 1fr; }
}
.mh-cfg-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
}
.mh-cfg-select,
.mh-cfg-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--mh-text);
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s var(--ease-signature);
}
.mh-cfg-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
}
.mh-cfg-select:focus,
.mh-cfg-input:focus { outline: none; border-color: var(--mh-accent); }

.mh-schulung-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 0.35rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--mh-border);
}
.mh-schulung-price__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
}
.mh-schulung-price__value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mh-text);
    line-height: 1;
}
.mh-ab { font-size: 0.7em; color: var(--mh-text-muted); font-weight: 600; }

/* Branche-Badge über dem Shop-Produktbild */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .mh-loop-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 3;
    padding: 0.28rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(26, 26, 26, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-pill);
    pointer-events: none;
}

/* ============================================
   PRODUKTMATRIX (über der Konfigurator-Box)
   ============================================ */
.mh-pricematrix { margin: 1.25rem 0 0.5rem; }
.mh-pricematrix__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
    margin-bottom: 0.5rem;
}
.mh-pricematrix__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.mh-pricematrix__table th,
.mh-pricematrix__table td {
    padding: 0.5rem 0.7rem;
    text-align: right;
    border-bottom: 1px solid var(--mh-border);
}
.mh-pricematrix__table th:first-child,
.mh-pricematrix__table td:first-child { text-align: left; }
.mh-pricematrix__table thead th {
    background: var(--mh-bg-warm, #e8e0d8);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mh-text);
}
.mh-pricematrix__table tr.is-group td {
    background: var(--mh-bg);
    font-weight: 700;
    color: var(--mh-text);
    text-align: left;
    font-size: 0.78rem;
}
.mh-pricematrix__table tbody tr:last-child td { border-bottom: none; }

/* Leistungsmatrix — gleicher Look, aber Text linksbündig + Ja/Nein-Icons */
.mh-pricematrix--leistung { margin-top: 1rem; }
.mh-pricematrix--leistung .mh-pricematrix__table td {
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}
.mh-pricematrix--leistung .mh-pricematrix__table td:not(:first-child) {
    text-align: center;
    font-size: 0.8rem;
    color: var(--mh-text-light);
}
.mh-pricematrix--leistung .mh-pricematrix__table td:first-child {
    font-weight: 600;
    color: var(--mh-text);
}
.mh-lm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.mh-lm svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mh-lm--yes { background: var(--mh-accent-glow, rgba(255,59,0,0.12)); }
.mh-lm--yes svg { stroke: var(--mh-accent); }
.mh-lm--no { background: rgba(0,0,0,0.05); }
.mh-lm--no svg { stroke: var(--mh-text-muted); }

/* Einklappbar (natives <details>, kein JS) */
.mh-collapsible { margin-top: 1rem; }
.mh-collapsible > .mh-collapsible__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s var(--ease-signature);
}
.mh-collapsible > .mh-collapsible__summary::-webkit-details-marker { display: none; }
.mh-collapsible > .mh-collapsible__summary:hover { border-color: var(--mh-accent); }
.mh-collapsible__summary .mh-pricematrix__label { margin: 0; }
.mh-collapsible__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--mh-text-muted);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--ease-signature);
}
.mh-collapsible[open] > .mh-collapsible__summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.mh-collapsible[open] .mh-collapsible__chevron { transform: rotate(180deg); }
.mh-collapsible .mh-pricematrix__table { border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; }

/* ============================================
   TRAINER-OVERLAY ÜBER DEM PRODUKTBILD
   ============================================ */
.woocommerce div.product .woocommerce-product-gallery { position: relative; }
.mh-gallery-trainers {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mh-gallery-trainers__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
    background: rgba(26, 26, 26, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    color: #fff;
    transition: background 0.25s var(--ease-signature);
}
.mh-gallery-trainers__item:hover { background: var(--mh-accent); }
.mh-gallery-trainers__photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.mh-gallery-trainers__photo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    font-size: 0.8rem;
}
.mh-gallery-trainers__name { font-size: 0.82rem; font-weight: 600; color: #fff; }

/* ============================================
   PRODUKT-TABS: Termine + Trainer
   ============================================ */
.mh-termine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.mh-termine-table th,
.mh-termine-table td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--mh-border);
    text-align: left;
}
.mh-termine-table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mh-text-muted);
}
.mh-tab-trainers { display: flex; flex-direction: column; gap: 1.5rem; }
.mh-tab-trainer { display: flex; gap: 1.25rem; align-items: flex-start; }
.mh-tab-trainer__photo {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}
.mh-tab-trainer__photo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mh-bg-warm, #e8e0d8);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--mh-text-muted);
}
.mh-tab-trainer__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.2rem; color: var(--mh-text); }
.mh-tab-trainer__role { color: var(--mh-accent); font-weight: 600; font-size: 0.88rem; margin: 0 0 0.2rem; }
.mh-tab-trainer__focus { color: var(--mh-text-muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.mh-tab-trainer__bio { color: var(--mh-text-light); font-size: 0.9rem; line-height: 1.7; margin: 0 0 0.5rem; }
.mh-tab-trainer__link { font-weight: 600; font-size: 0.86rem; color: var(--mh-text); border-bottom: 1px solid transparent; transition: color 0.2s var(--ease-signature), border-color 0.2s var(--ease-signature); }
.mh-tab-trainer__link:hover { color: var(--mh-accent); border-bottom-color: var(--mh-accent); }
@media (max-width: 560px) { .mh-tab-trainer { flex-direction: column; } }

/* ============================================
   SHOP-LOOP-KARTE — v2-Polish
   Dauer-Tag, Auszug, klarer „Konfigurieren →"-CTA.
   ============================================ */
.woocommerce ul.products li.product .mh-loop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.45rem 0 0.25rem;
}
.mh-loop-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mh-text);
    background: var(--mh-bg-warm, #e8e0d8);
    border-radius: var(--radius-pill);
}
.mh-loop-tag--dauer { color: var(--mh-accent); }

.woocommerce ul.products li.product .mh-loop-excerpt {
    margin: 0.35rem 0 0.6rem;
    color: var(--mh-text-light);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA „Konfigurieren →" — deutlicher Akzent-Button (orange/weiß, leicht
   abgerundet) mit dezentem Hover (dunkleres Akzent + 1px Lift + Pfeil). */
.woocommerce ul.products li.product a.mh-loop-cta,
.woocommerce ul.products li.product .mh-loop-cta.button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.55rem 1rem !important;
    background: var(--mh-accent) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.25s var(--ease-signature),
                transform 0.25s var(--ease-signature),
                box-shadow 0.25s var(--ease-signature);
}
.woocommerce ul.products li.product a.mh-loop-cta:hover,
.woocommerce ul.products li.product .mh-loop-cta.button:hover {
    background: var(--mh-accent-hover, #e63500) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 59, 0, 0.28);
}
.mh-loop-cta svg { transition: transform 0.3s var(--ease-signature); }
.mh-loop-cta:hover svg { transform: translateX(4px); }

/* Padding-left auf 0 für Titel + Preis innerhalb des Kadence-Wrappers
   (CTA bewusst ausgenommen — als Button mit Hintergrundfläche braucht
   er symmetrisches Padding). */
.woocommerce ul.products li.product .product-details.content-bg.entry-content-wrap h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .product-details.content-bg.entry-content-wrap span.price {
    padding-left: 0 !important;
}

/* WC-Sortierung: Chevron-Hintergrund darf nicht kacheln */
select.orderby { background-repeat: no-repeat !important; }

/* ============================================
   STATUS-/HINWEIS-Komponenten (Tokens var(--mh-success|warning|error|info|neutral))
   WooCommerce-Notices auf die Brand-Status-Palette gebracht.
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
    border: 0 !important;
    border-left: 4px solid var(--mh-info) !important;
    background: color-mix(in srgb, var(--mh-info) 8%, var(--mh-card)) !important;
    color: var(--mh-text) !important;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem !important;
    box-shadow: none !important;
}
.woocommerce-message {
    border-left-color: var(--mh-success) !important;
    background: color-mix(in srgb, var(--mh-success) 8%, var(--mh-card)) !important;
}
.woocommerce-error,
.woocommerce-error li {
    border-left-color: var(--mh-error) !important;
    background: color-mix(in srgb, var(--mh-error) 8%, var(--mh-card)) !important;
}
.woocommerce-message::before { color: var(--mh-success) !important; }
.woocommerce-info::before    { color: var(--mh-info) !important; }
.woocommerce-error::before   { color: var(--mh-error) !important; }

/* Kadence-Inner-Wrapper: weißen seitlichen Rand innerhalb der Kachel entfernen
   + Hintergrund an die Branchen-Karten (.mh-training-card → var(--mh-card))
   angleichen. Kadence-`content-bg` legt sonst den Customizer-Content-BG
   (beige) darüber → Unterschied Shop vs. Branchen-Seiten. */
.woocommerce ul.products li.product .product-details.content-bg.entry-content-wrap,
.woocommerce ul.products li.product .product-details.entry-content-wrap,
.woocommerce ul.products li.product .product-details.content-bg {
    margin: 0 !important;
    background: var(--mh-card) !important;
}

/* Bessere Kachel-Abgrenzung gegen den Sand-Hintergrund (Border + stärkere Tiefe). */
.woocommerce ul.products li.product {
    border: 1px solid var(--mh-border);
    box-shadow: var(--shadow-md);
}
.woocommerce ul.products li.product:hover {
    border-color: rgba(0, 0, 0, 0.10);
    box-shadow: var(--shadow-lg);
}


/* ============================================
   SINGLE-PRODUCT — v2-Look
   Quelle/Vorlage: produkt-v2.html (.product-hero__info + .product-tabs).
   Rechte Spalte (.summary) als weiße runde Box; Tabs (Nav + Panel)
   als weiße zusammenhängende Karte mit Akzent-Unterstrich am aktiven
   Tab. body.single-product als Spezifitäts-Anker, damit Loop und
   andere WC-Bereiche unangetastet bleiben.
   ============================================ */

/* ── Rechte Spalte (Summary) als weiße runde Box ── */
body.single-product .summary.entry-summary {
    background: var(--mh-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 3vw, 2.8rem);
    box-shadow: var(--shadow-sm);
}
/* erstes Kind ohne margin-top, damit Padding sauber wirkt */
body.single-product .summary.entry-summary > :first-child { margin-top: 0; }

/* ── Produkt-Tabs: Nav-Bar (oben rund) ── */
body.single-product .woocommerce-tabs {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
}
body.single-product .woocommerce-tabs ul.wc-tabs,
body.single-product .woocommerce-tabs .wc-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 6px 6px 0;
    list-style: none;
    background: var(--mh-card);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-sm);
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
body.single-product .woocommerce-tabs ul.wc-tabs::-webkit-scrollbar { display: none; }

/* WC Default rendert ::before/::after Trennlinien — abschalten */
body.single-product .woocommerce-tabs ul.wc-tabs::before,
body.single-product .woocommerce-tabs ul.wc-tabs::after,
body.single-product .woocommerce-tabs ul.wc-tabs li::before,
body.single-product .woocommerce-tabs ul.wc-tabs li::after {
    display: none !important;
    border: 0 !important;
    background: none !important;
}

/* Tab-Item */
body.single-product .woocommerce-tabs ul.wc-tabs li {
    border: 0;
    background: transparent;
    border-radius: 14px 14px 0 0;
    padding: 0;
    margin: 0;
    position: relative;
}
body.single-product .woocommerce-tabs ul.wc-tabs li a {
    display: block;
    padding: 14px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mh-text-light);
    background: none;
    border: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s var(--ease-signature);
}
body.single-product .woocommerce-tabs ul.wc-tabs li a:hover {
    color: var(--mh-text);
}

/* Aktiver Tab — Sand-Hintergrund + Orange-Indikator */
body.single-product .woocommerce-tabs ul.wc-tabs li.active {
    background: var(--mh-bg);
}
body.single-product .woocommerce-tabs ul.wc-tabs li.active a {
    color: var(--mh-text);
    font-weight: 600;
}
body.single-product .woocommerce-tabs ul.wc-tabs li.active::after {
    content: '';
    display: block !important;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    border: 0;
    border-radius: 3px 3px 0 0;
    background: var(--mh-accent) !important;
}

/* ── Tabs-Panel (unten rund) ── */
body.single-product .woocommerce-tabs .panel,
body.single-product .woocommerce-tabs .wc-tab {
    background: var(--mh-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: clamp(2rem, 3.5vw, 3rem);
    box-shadow: var(--shadow-sm);
    margin: 0;
    border: 0;
}
body.single-product .woocommerce-tabs .panel > :first-child,
body.single-product .woocommerce-tabs .wc-tab > :first-child { margin-top: 0; }
body.single-product .woocommerce-tabs .panel > :last-child,
body.single-product .woocommerce-tabs .wc-tab > :last-child { margin-bottom: 0; }

/* Headings in Panels — Display-Font für Konsistenz mit Entwurf */
body.single-product .woocommerce-tabs h2,
body.single-product .woocommerce-tabs h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--mh-text);
    margin-top: 2rem;
    letter-spacing: -0.015em;
}
body.single-product .woocommerce-tabs h2:first-child,
body.single-product .woocommerce-tabs h3:first-child { margin-top: 0; }

/* ============================================
   SINGLE-PRODUCT v2 — Feinschliff (2026-05-20 (22))
   Vorlage: produkt-v2.html
   ============================================ */

/* Summary-Box: kein margin-top */
body.single-product .summary.entry-summary {
    margin-top: 0 !important;
}

/* Produkt-Hauptbild: WC-Galerie-Wrapper bekommt Border-Radius
   (Badges-Container wird vom JS hier reingesetzt → braucht position:
   relative; das setzt JS bereits inline, hier nur fallback). */
body.single-product .woocommerce-product-gallery,
body.single-product div.product div.images {
    position: relative;
}
body.single-product .woocommerce-product-gallery__image,
body.single-product div.product div.images .woocommerce-product-gallery__image:first-child {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
body.single-product .woocommerce-product-gallery__image img {
    border-radius: var(--radius-lg);
}

/* Bild-Overlay: Badges oben-links */
body.single-product .mh-product-image-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    gap: 8px;
    pointer-events: none;
}
body.single-product .mh-product-badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body.single-product .mh-product-badge--category {
    background: rgba(255, 59, 0, 0.92);
    color: #fff;
}
body.single-product .mh-product-badge--format {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Eyebrow am Anfang der Summary-Box */
body.single-product .mh-product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mh-accent);
    margin: 0 0 1rem;
}
body.single-product .mh-product-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mh-accent);
}
body.single-product .mh-product-eyebrow__sep { opacity: 0.4; color: var(--mh-text-muted); }
body.single-product .mh-product-eyebrow__dauer { color: var(--mh-text-muted); letter-spacing: 0.06em; }

/* Title + Short-Description Größen */
body.single-product .product_title.entry-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--mh-text);
    margin: 0 0 0.8rem;
}
body.single-product .woocommerce-product-details__short-description {
    font-size: 0.92rem;
    color: var(--mh-text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
body.single-product .woocommerce-product-details__short-description p { margin: 0 0 0.6rem; }

/* ── Konfigurator: kein BG, kein Padding ── */
body.single-product .mh-schulung-config {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 1rem 0 1.5rem;
}

/* Felder + Dropdowns: bräunlich, gleiche Höhe */
body.single-product .mh-schulung-config .mh-cfg-select,
body.single-product .mh-schulung-config .mh-cfg-input,
body.single-product .mh-schulung-config .mh-cfg-fixed,
body.single-product .mh-schulung-config input[type="date"] {
    background: var(--mh-bg-warm) !important;
    border: 1.5px solid transparent;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 0.95rem;
    line-height: 1;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--mh-text);
    border-radius: var(--radius-sm);
}
body.single-product .mh-schulung-config .mh-cfg-select {
    padding-right: 2.4rem;
}
body.single-product .mh-schulung-config .mh-cfg-fixed {
    border-style: dashed;
    border-color: var(--mh-border);
}
body.single-product .mh-schulung-config .mh-cfg-select:focus,
body.single-product .mh-schulung-config .mh-cfg-input:focus,
body.single-product .mh-schulung-config input[type="date"]:focus {
    border-color: var(--mh-accent);
    background: var(--mh-card) !important;
    box-shadow: 0 0 0 3px var(--mh-accent-glow);
    outline: none;
}
/* Native Number-Spinner ausblenden (Stepper übernimmt) */
body.single-product .mh-schulung-config input[type="number"]::-webkit-inner-spin-button,
body.single-product .mh-schulung-config input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body.single-product .mh-schulung-config input[type="number"] { -moz-appearance: textfield; }

/* ── Teilnehmer-Stepper (−/+) ── */
.mh-cfg-stepper {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--mh-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--mh-bg-warm);
    height: 48px;
}
.mh-cfg-stepper__btn {
    flex: 0 0 44px;
    height: 100%;
    background: var(--mh-bg-warm);
    border: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    color: var(--mh-text);
    cursor: pointer;
    transition: background 0.2s var(--ease-signature), color 0.2s var(--ease-signature);
    user-select: none;
    padding: 0;
}
.mh-cfg-stepper__btn:hover {
    background: var(--mh-accent-soft, #FFE3D6);
    color: var(--mh-accent);
}
.mh-cfg-stepper__input {
    flex: 1;
    min-width: 0;
    background: var(--mh-card) !important;
    border: 0 !important;
    border-left: 1px solid var(--mh-border) !important;
    border-right: 1px solid var(--mh-border) !important;
    text-align: center;
    font-weight: 600;
    height: 100% !important;
    border-radius: 0 !important;
}
.mh-cfg-stepper__input:focus {
    box-shadow: none !important;
    background: var(--mh-card) !important;
    border-color: transparent !important;
}

/* ── Tabs: Padding über + Gap zur Content-Box ── */
body.single-product .woocommerce-tabs ul.wc-tabs,
body.single-product .woocommerce-tabs .wc-tabs {
    padding: 10px 10px 0;
    margin-bottom: 14px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}
body.single-product .woocommerce-tabs ul.wc-tabs li a {
    padding: 16px 24px;
}

/* Content-Panel: voll umlaufendes Padding + Radius all-sides */
body.single-product .woocommerce-tabs .panel,
body.single-product .woocommerce-tabs .wc-tab {
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 3.5vw, 3rem);
}

/* Tab-Content Typografie näher am Entwurf */
body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-tabs .wc-tab h2 {
    font-size: clamp(1.35rem, 1.3rem + 0.4vw, 1.55rem);
    margin: 2rem 0 1rem;
}
body.single-product .woocommerce-tabs .panel h3,
body.single-product .woocommerce-tabs .wc-tab h3 {
    font-size: 1.25rem;
    margin: 1.6rem 0 0.8rem;
}
body.single-product .woocommerce-tabs .panel h2:first-child,
body.single-product .woocommerce-tabs .wc-tab h2:first-child,
body.single-product .woocommerce-tabs .panel h3:first-child,
body.single-product .woocommerce-tabs .wc-tab h3:first-child { margin-top: 0; }
body.single-product .woocommerce-tabs .panel p,
body.single-product .woocommerce-tabs .wc-tab p {
    font-size: 0.92rem;
    color: var(--mh-text-light);
    line-height: 1.8;
    margin: 0 0 0.8rem;
}
body.single-product .woocommerce-tabs .panel ul,
body.single-product .woocommerce-tabs .wc-tab ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
body.single-product .woocommerce-tabs .panel ul li,
body.single-product .woocommerce-tabs .wc-tab ul li {
    font-size: 0.9rem;
    color: var(--mh-text-light);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}
body.single-product .woocommerce-tabs .panel ul li::before,
body.single-product .woocommerce-tabs .wc-tab ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mh-accent);
}

/* ── Related-Products Section ── */
body.single-product .mh-related-products {
    margin-top: clamp(3rem, 5vw, 4.5rem);
}
body.single-product .mh-related-products > h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 1.5rem;
    color: var(--mh-text);
}

/* ============================================
   SINGLE-PRODUCT v2 — TABS-Feinjustage (User-Feedback 2026-05-20)
   - Nav direkt am Panel (margin-bottom 0, kein bottom-radius)
   - Panel oben anliegend (kein top-radius)
   - Alle Tabs weißer BG (verschmelzen mit Nav-Karte)
   - Aktive Tab nur durch Orange-Strich erkennbar (kein Border, oben rund 15px)
   - Tab-Text: weight 400, dunkler
   ============================================ */
body.single-product .woocommerce-tabs ul.wc-tabs,
body.single-product .woocommerce-tabs ul.tabs {
    padding-top: 10px !important;
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
body.single-product .woocommerce-tabs .panel,
body.single-product .woocommerce-tabs .wc-tab {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    padding: clamp(2rem, 3.5vw, 3rem) !important;
}
/* Alle Tab-Items: weiß auf weiß (verschmilzt mit Nav) */
body.single-product .woocommerce-tabs ul.wc-tabs li,
body.single-product .woocommerce-tabs ul.tabs li {
    background: var(--mh-card) !important;
    border: 0 !important;
}
body.single-product .woocommerce-tabs ul.wc-tabs li.active,
body.single-product .woocommerce-tabs ul.tabs li.active {
    background: var(--mh-card) !important;
}
/* Aktive Tab-Link: kein Border, top-corners 15px, weißer BG, normal weight */
body.single-product .woocommerce-tabs ul.wc-tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li.active a {
    border: 0 !important;
    border-radius: 15px 15px 0 0 !important;
    background: var(--mh-card) !important;
    font-weight: 400 !important;
}
/* Tab-Text grundsätzlich: weight 400, dunkler als bisher */
body.single-product .woocommerce-tabs ul.wc-tabs li a,
body.single-product .woocommerce-tabs ul.tabs li a {
    font-weight: 400 !important;
    color: var(--mh-text) !important;
}
body.single-product .woocommerce-tabs ul.wc-tabs li:not(.active) a:hover,
body.single-product .woocommerce-tabs ul.tabs li:not(.active) a:hover {
    color: var(--mh-accent) !important;
}
/* Aktiver Tab-Indikator (Orange-Strich unten) */
body.single-product .woocommerce-tabs ul.wc-tabs li.active::after,
body.single-product .woocommerce-tabs ul.tabs li.active::after {
    content: '';
    display: block !important;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    border: 0;
    border-radius: 3px 3px 0 0;
    background: var(--mh-accent) !important;
}

/* ============================================
   TERMIN-KALENDER (Monatsansicht) — Block 2026-05-21
   blocks/termin-kalender/render.php + assets/js/termin-kalender.js
   ============================================ */
.mh-tk__layout {
    display: grid;
    /* Filter 50% (intern 2-spaltig) | Kalender 50% */
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 28px);
    align-items: start;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 860px) {
    .mh-tk__layout { grid-template-columns: 1fr; }
}

/* ── Filter-Spalte (links, intern 2-spaltig) ── */
.mh-tk__filter {
    background: var(--mh-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 2vw, 1.6rem);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
    align-content: start;
    position: sticky;
    top: calc(var(--header-h, 80px) + 16px);
}
.mh-tk__reset { grid-column: 1 / -1; }
@media (max-width: 860px) {
    .mh-tk__filter { position: static; }
}
@media (max-width: 520px) {
    .mh-tk__filter { grid-template-columns: 1fr; }
}
.mh-tk__filter-field { display: flex; flex-direction: column; gap: 0.3rem; }
.mh-tk__filter-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
}
.mh-tk__filter select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 0.8rem;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    background: var(--mh-bg) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") no-repeat right 0.6rem center / 14px;
    font-size: 0.88rem;
    color: var(--mh-text);
    cursor: pointer;
    transition: border-color 0.2s var(--ease-signature);
}
.mh-tk__filter select:hover,
.mh-tk__filter select:focus { border-color: var(--mh-accent); outline: none; }
.mh-tk__filter-group { display: flex; flex-direction: column; gap: 0.45rem; }
.mh-tk__pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mh-tk__pills button {
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--mh-border);
    background: transparent;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--mh-text-light);
    cursor: pointer;
    transition: all 0.2s var(--ease-signature);
}
.mh-tk__pills button:hover:not(.is-active) { border-color: var(--mh-accent); color: var(--mh-accent); }
.mh-tk__pills button.is-active {
    background: var(--mh-accent);
    border-color: var(--mh-accent);
    color: #fff;
    font-weight: 600;
}
.mh-tk__reset {
    margin-top: 0.2rem;
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--mh-text-muted);
    cursor: pointer;
    transition: color 0.2s var(--ease-signature), border-color 0.2s var(--ease-signature);
}
.mh-tk__reset:hover { color: var(--mh-accent); border-color: var(--mh-accent); }

/* ── Kalender-Spalte (rechts) ── */
.mh-tk__calendar {
    background: var(--mh-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-sm);
}
.mh-tk__cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.mh-tk__cal-month {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mh-text);
    letter-spacing: -0.01em;
}
.mh-tk__cal-nav {
    width: 38px;
    height: 38px;
    /* globale Button-Regel setzt padding (.4em 1em) → frisst den
       Innenraum, das Icon wird unsichtbar weggedrückt. Hart killen. */
    padding: 0 !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    /* sand-Hintergrund → sichtbar vom weißen Karten-Grund abgesetzt */
    background: var(--mh-bg);
    color: var(--mh-text);
    cursor: pointer;
    transition: all 0.2s var(--ease-signature);
    flex-shrink: 0;
}
/* Gefülltes Dreieck-Icon — explizite fill-Farbe (kein currentColor,
   weil <button> die color-Vererbung unzuverlässig handhabt). */
.mh-tk__cal-nav .mh-tk__cal-nav-icon {
    width: 13px;
    height: 13px;
    display: block;
    fill: var(--mh-text) !important;
    stroke: none !important;
    pointer-events: none;
}
.mh-tk__cal-nav:hover:not(:disabled) {
    background: var(--mh-accent);
    border-color: var(--mh-accent);
    color: #fff;
}
.mh-tk__cal-nav:hover:not(:disabled) .mh-tk__cal-nav-icon {
    fill: #fff !important;
}
.mh-tk__cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.mh-tk__cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.mh-tk__cal-wd {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
    padding-bottom: 0.4rem;
}
.mh-tk__cal-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--mh-text-light);
    border: 0;
    background: transparent;
}
.mh-tk__cal-cell--empty { background: transparent; }
.mh-tk__cal-num { line-height: 1; }
/* Tag mit Termin → klickbar, markiert */
button.mh-tk__cal-cell--has {
    cursor: pointer;
    background: var(--mh-accent-soft, #FFE3D6);
    color: var(--mh-text);
    font-weight: 600;
    transition: transform 0.2s var(--ease-signature), background 0.2s var(--ease-signature);
}
button.mh-tk__cal-cell--has:hover {
    background: var(--mh-accent);
    color: #fff;
    transform: scale(1.06);
}
.mh-tk__cal-dot {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mh-accent);
}
button.mh-tk__cal-cell--has:hover .mh-tk__cal-dot { background: #fff; }

/* ── Termin-Liste (volle Breite, Scroll-Ziel) ── */
.mh-tk__list-month {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mh-border);
}
.mh-tk__list-month:first-of-type { margin-top: 0; }
.mh-tk__list-group { display: flex; flex-direction: column; gap: 0.6rem; }
.mh-tk__row { scroll-margin-top: calc(var(--header-h, 80px) + 24px); }
.mh-tk__row.is-hidden,
.mh-tk__list-group.is-hidden,
.mh-tk__list-month.is-hidden { display: none !important; }
.mh-tk__list-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--mh-text-muted);
}

/* Highlight-Flash bei Klick aus dem Kalender */
@keyframes mh-tk-flash {
    0%   { background: var(--mh-accent-soft, #FFE3D6); box-shadow: 0 0 0 2px var(--mh-accent); }
    70%  { background: var(--mh-accent-soft, #FFE3D6); box-shadow: 0 0 0 2px var(--mh-accent); }
    100% { background: var(--mh-card); box-shadow: var(--shadow-sm); }
}
.mh-tk__row--flash {
    animation: mh-tk-flash 1.8s var(--ease-signature);
}

/* ============================================
   BERATUNGSLEISTUNGEN — Konfigurator + Shop-Chip
   ============================================ */
.mh-loop-tag--beratung { color: var(--mh-accent); }

.mh-beratung-config {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem;
    background: var(--mh-bg-warm, #e8e0d8);
    border-radius: var(--radius-md);
}
.mh-beratung-config .mh-schulung-price { margin-top: 0; }
.mh-beratung-config.is-request .mh-schulung-price__value {
    font-size: 1.15rem;
    color: var(--mh-accent);
}
.mh-beratung-hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--mh-text-muted);
}
.mh-beratung-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.mh-beratung-request-btn svg { transition: transform 0.2s var(--ease-signature); }
.mh-beratung-request-btn:hover svg { transform: translateX(3px); }
.mh-price-request {
    font-weight: 600;
    color: var(--mh-text-muted);
}

/* ============================================
   ANGEBOTSANFRAGE — schwebender Button + Seite
   ============================================ */
.mh-angebot-fab {
    position: fixed;
    right: 5.75rem;
    bottom: 1.75rem;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--mh-accent);
    border-radius: var(--radius-pill, 999px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
    text-decoration: none;
    transition: transform 0.2s var(--ease-signature), background 0.2s var(--ease-signature);
}
.mh-angebot-fab:hover {
    background: var(--mh-accent-hover, #E03500);
    color: #fff;
    transform: translateY(-2px);
}
.mh-angebot-fab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    color: var(--mh-accent);
    background: #fff;
    border-radius: 999px;
}
@media (max-width: 600px) {
    .mh-angebot-fab { padding: 0.7rem 0.8rem; }
    .mh-angebot-fab__label { display: none; }
}
.mh-angebot-cart__remove { text-align: right; width: 2.5rem; }
.mh-angebot-cart__remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--mh-text-muted);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.mh-angebot-cart__remove a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--mh-accent);
}

.mh-angebot {
    display: grid;
    gap: 2rem;
    max-width: 760px;
    margin: 0 auto;
}
.mh-angebot h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}
.mh-angebot-cart__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.mh-angebot-cart__table th,
.mh-angebot-cart__table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--mh-border);
}
.mh-angebot-cart__table th {
    background: var(--mh-bg-warm, #e8e0d8);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mh-angebot-cart__table th:nth-child(2),
.mh-angebot-cart__table td:nth-child(2) { text-align: center; }
.mh-angebot-cart__table th:last-child,
.mh-angebot-cart__table td:last-child { text-align: right; white-space: nowrap; }
.mh-angebot-cart__table tbody tr:last-child td { border-bottom: none; }
.mh-angebot-cart__meta {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--mh-text-muted);
}
.mh-angebot-cart__hint {
    margin-top: 0.75rem;
    font-size: 0.84rem;
    color: var(--mh-text-muted);
}

.mh-angebot-form {
    padding: 1.5rem;
    background: var(--mh-bg-warm, #e8e0d8);
    border-radius: var(--radius-md);
}
.mh-angebot-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}
.mh-angebot-form__field { display: flex; flex-direction: column; gap: 0.3rem; }
.mh-angebot-form__field--full { margin-top: 0.85rem; }
.mh-angebot-form__field > span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mh-text-muted);
}
.mh-angebot-form input[type="text"],
.mh-angebot-form input[type="email"],
.mh-angebot-form input[type="tel"],
.mh-angebot-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--mh-text);
    background: var(--mh-card);
    border: 1px solid var(--mh-border);
    border-radius: var(--radius-sm);
}
.mh-angebot-form input:focus,
.mh-angebot-form textarea:focus {
    outline: none;
    border-color: var(--mh-accent);
}
.mh-angebot-form__check {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
    font-size: 0.86rem;
    line-height: 1.5;
}
.mh-angebot-form__check input { margin-top: 0.15rem; flex-shrink: 0; }
.mh-angebot-form__submit { width: 100%; }

.mh-angebot-success,
.mh-angebot-empty {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.mh-angebot-success h2,
.mh-angebot-empty h2 { font-family: var(--font-display); }
.mh-angebot-success p,
.mh-angebot-empty p {
    margin: 0.75rem 0 1.5rem;
    color: var(--mh-text-muted);
}

@media (max-width: 560px) {
    .mh-angebot-form__grid { grid-template-columns: 1fr; }
}
