/* =============================================================
   MH Swimming Noodle Training – CSS
   Angelehnt an den Tour-Stil von lomi-lomi-stuttgart.de
   ============================================================= */

/* ── Grid / Übersicht ───────────────────────────────────────── */
.mh-training-wrap { font-family: inherit; }

.mh-training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 900px) { .mh-training-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .mh-training-grid { grid-template-columns: 1fr; } }

/* ── Karte ──────────────────────────────────────────────────── */
.mh-card {
    border: 1px solid #e0dde5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.mh-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.mh-card--full { opacity: .85; }

/* Bild */
.mh-card__image {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #e8dff0;
}
.mh-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.mh-card__img-placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #e8dff0 0%, #d0bdd0 100%);
}

/* Badge */
.mh-badge {
    position: absolute; top: .6rem; right: .6rem;
    padding: .2em .65em; border-radius: 3px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.mh-badge--waitlist { background: #fff4cd; color: #7a5900; }
.mh-badge--scarce   { background: #fde8e8; color: #8b0000; }

/* Body */
.mh-card__body {
    padding: 1rem 1.2rem 1.4rem;
    display: flex; flex-direction: column; flex: 1;
}
.mh-card__title {
    font-size: 1.05rem; font-weight: 700;
    color: #222; margin: 0 0 .5rem; line-height: 1.3;
}
.mh-card__meta {
    margin: 0 0 .2rem; font-size: .87rem; color: #444;
}
.mh-card__places {
    font-size: .87rem; color: #444; margin: .2rem 0;
}
.mh-card__places--full { color: #8b4500; font-weight: 600; }
.mh-card__price {
    font-size: 1.1rem; font-weight: 700;
    color: #8e2a8d; margin: .5rem 0 .5rem;
}
.mh-card__description {
    font-size: .85rem; color: #555;
    line-height: 1.5; margin: 0 0 1rem; flex: 1;
}

/* ── Buttons ────────────────────────────────────────────────── */
.mh-btn {
    display: inline-block;
    padding: .55rem 1.3rem;
    border: none; border-radius: 4px;
    font-size: .95rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background .15s; text-align: center;
}
.mh-btn--primary { background: #8e2a8d; color: #fff !important; }
.mh-btn--primary:hover { background: #6e1f6d; }
.mh-btn--secondary {
    background: transparent; color: #8e2a8d !important;
    border: 2px solid #8e2a8d;
}
.mh-btn--secondary:hover { background: #f4edf7; }

/* ── Buchungsseite ──────────────────────────────────────────── */
.mh-back-link {
    display: inline-block; margin-bottom: 1.5rem;
    color: #8e2a8d; text-decoration: none; font-size: .9rem;
}
.mh-back-link:hover { text-decoration: underline; }

.mh-book-header {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 700px) {
    .mh-book-header { grid-template-columns: 1fr; }
}
.mh-book-header__image {
    border-radius: 8px; overflow: hidden;
    position: relative; padding-top: 66%;
    background: #e8dff0;
}
.mh-book-header__image .mh-card__img,
.mh-book-header__image .mh-card__img-placeholder {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.mh-book-header__info h2 { color: #8e2a8d; margin-top: 0; }
.mh-book-header__info p  { margin: .3rem 0; font-size: .95rem; }

/* ── Formular ───────────────────────────────────────────────── */
.mh-registration-form {
    background: #f4edf7;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    max-width: 680px;
}
.mh-registration-form h3 { color: #8e2a8d; margin-top: 0; }

.mh-form__row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 560px) {
    .mh-form__row { grid-template-columns: 1fr; }
    .mh-registration-form { padding: 1.2rem; }
}
.mh-form__group { margin-bottom: .9rem; }
.mh-form__group--small { max-width: 140px; }
.mh-form__label {
    display: block; margin-bottom: .25rem;
    font-weight: 600; font-size: .87rem; color: #333;
}
.mh-form__label--inline { display: inline; font-weight: 400; font-size: .87rem; }
.mh-form__required { color: #8e2a8d; }

.mh-form__input,
.mh-form__select,
.mh-form__textarea {
    width: 100%; padding: .5rem .7rem;
    border: 1px solid #ccc; border-radius: 4px;
    font-size: .95rem; font-family: inherit;
    box-sizing: border-box; background: #fff;
    transition: border-color .15s;
}
.mh-form__input:focus,
.mh-form__select:focus,
.mh-form__textarea:focus {
    outline: none; border-color: #8e2a8d;
    box-shadow: 0 0 0 3px rgba(142,42,141,.1);
}
.mh-form__group--checkbox {
    display: flex; align-items: flex-start; gap: .5rem;
}
.mh-form__checkbox { margin-top: .2rem; flex-shrink: 0; }

/* ── Ergebnis-Box (Erfolg / Warteliste) ─────────────────────── */
.mh-result-box {
    border-radius: 10px; padding: 2rem 2.5rem;
    max-width: 580px;
}
.mh-result-box--success {
    background: #f0faf0; border: 1px solid #b2dfb2;
}
.mh-result-box--waitlist {
    background: #fffbf0; border: 1px solid #ffe0a0;
}
.mh-result-box__icon {
    font-size: 2rem; margin-bottom: .5rem;
    color: #8e2a8d;
}
.mh-result-box h2 { color: #8e2a8d; margin-top: 0; }
.mh-result-box__notice {
    background: #fff4e5; border: 1px solid #f5d7a1;
    border-radius: 6px; padding: .75rem 1rem;
    margin: 1rem 0; font-size: .9rem;
}
.mh-result-box__uid {
    margin: 1rem 0; font-size: .82rem; color: #666;
}
.mh-no-trainings { color: #666; font-style: italic; }
