/* =====================================================================
   Sabai Thaimassage – Terminbuchung
   Eigenstaendiges Stylesheet, farblich an die Hauptseite angelehnt
   (Markenfarben: Gruen #76B856, Pink #C263A4 – wie thaimassage-lennep.de).
   ===================================================================== */

/* ---- Schriften (selbst gehostet, identisch zur Hauptseite) -------- */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/nunito-sans-v3-latin-regular.woff2') format('woff2'),
         url('../fonts/nunito-sans-v3-latin-regular.woff') format('woff'),
         url('../fonts/nunito-sans-v3-latin-regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/nunito-sans-v3-latin-700.woff2') format('woff2'),
         url('../fonts/nunito-sans-v3-latin-700.woff') format('woff'),
         url('../fonts/nunito-sans-v3-latin-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/libre-baskerville-v5-latin-regular.woff2') format('woff2'),
         url('../fonts/libre-baskerville-v5-latin-regular.woff') format('woff'),
         url('../fonts/libre-baskerville-v5-latin-regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/libre-baskerville-v5-latin-700.woff2') format('woff2'),
         url('../fonts/libre-baskerville-v5-latin-700.woff') format('woff'),
         url('../fonts/libre-baskerville-v5-latin-700.ttf') format('truetype');
}

:root {
    /* Markenfarben der Hauptseite */
    --c-green:     #76B856;
    --c-green-d:   #649C49;
    --c-green-dd:  #55843E;
    --c-pink:      #C263A4;
    --c-pink-d:    #9F5186;

    --c-bg:        #ffffff;
    --c-card:      #ffffff;
    --c-border:    #e7e3ea;
    --c-text:      #69676C;
    --c-heading:   #4a4750;
    --c-muted:     #9a98a0;

    --c-ok:        #4f8e3a;
    --c-ok-bg:     #eef6e8;
    --c-err:       #b3261e;
    --c-err-bg:    #fae9e8;
    --c-info-bg:   #f7eef4;
    --c-soft:      #faf9fb;

    --font-head:   'Nunito Sans', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body:   'Libre Baskerville', Georgia, "Times New Roman", serif;

    --radius:      12px;
    --shadow:      0 6px 24px rgba(74, 71, 80, .10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* Sticky Footer: Body fuellt mind. die volle Bildschirmhoehe */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.3;
}
h1, h2 { color: var(--c-pink); }
h3     { color: var(--c-green); }

a {
    color: var(--c-pink);
    text-decoration: none;
}
a:hover { color: var(--c-green); }

.tb-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Kopfzeile (Logo wie Hauptseite) ----------------------------- */
.tb-header {
    flex-shrink: 0;
    position: relative;
    background: #fff url("../img/headerback.jpg") no-repeat center center;
    background-size: cover;
    border-bottom: 3px solid var(--c-pink);
    text-align: center;
    padding: 28px 20px;
}
.tb-header__brand {
    display: inline-block;
    line-height: 0;
}
.tb-header__brand img {
    height: 120px;
    width: auto;
}
.tb-header__back {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(255, 255, 255, .85);
    color: var(--c-pink);
    font-family: var(--font-head);
    font-size: .85rem;
    padding: 6px 12px;
    border-radius: 20px;
}
.tb-header__back:hover {
    background: #fff;
    color: var(--c-green);
}

/* ---- Layout ------------------------------------------------------- */
.tb-main {
    /* Nimmt den freien Platz ein und schiebt den Footer nach unten */
    flex: 1 0 auto;
    padding-top: 40px;
    padding-bottom: 56px;
}
.tb-intro { text-align: center; margin-bottom: 30px; }
.tb-intro h1 { margin: 0 0 10px; font-size: 2rem; }
.tb-intro p  { margin: 0 auto; max-width: 580px; color: var(--c-text); }

.tb-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}
.tb-card h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.tb-muted { color: var(--c-muted); font-size: .96rem; }
.tb-optional { color: var(--c-muted); font-weight: 400; font-size: .85rem; }

/* ---- Schrittanzeige ---------------------------------------------- */
.tb-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 24px;
    font-family: var(--font-head);
}
.tb-steps li {
    flex: 1 1 110px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--c-muted);
    padding: 8px 10px;
    border-bottom: 3px solid var(--c-border);
}
.tb-steps li span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--c-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tb-steps li.is-active {
    color: var(--c-heading);
    border-bottom-color: var(--c-green);
    font-weight: 700;
}
.tb-steps li.is-active span { background: var(--c-green); }
.tb-steps li.is-done span   { background: var(--c-green-dd); }
.tb-steps li.is-done        { border-bottom-color: var(--c-green-dd); }

/* ---- Auswahl-Anzeige oberhalb der Schritte ----------------------- */
.tb-selection {
    background: var(--c-soft);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-green);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin: 0 0 22px;
    box-shadow: var(--shadow);
}
.tb-selection__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 4px 0;
}
.tb-selection__row + .tb-selection__row {
    border-top: 1px dashed var(--c-border);
    margin-top: 4px;
    padding-top: 8px;
}
.tb-selection__label {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-muted);
    min-width: 92px;
}
.tb-selection strong {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--c-heading);
    font-size: 1rem;
}

/* ---- Buttons ------------------------------------------------------ */
.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.tb-btn:active { transform: translateY(1px); }
.tb-btn:disabled { opacity: .55; cursor: not-allowed; }
.tb-btn--primary {
    background: var(--c-green);
    color: #fff;
}
.tb-btn--primary:hover:not(:disabled) { background: var(--c-green-d); color: #fff; }
.tb-btn--ghost {
    background: #fff;
    border-color: var(--c-border);
    color: var(--c-heading);
}
.tb-btn--ghost:hover { border-color: var(--c-green); color: var(--c-green); }
.tb-btn--icon {
    padding: 6px 14px;
    font-size: 1.4rem;
    line-height: 1;
    background: #fff;
    border-color: var(--c-border);
    color: var(--c-pink);
}
.tb-btn--icon:hover { border-color: var(--c-pink); color: var(--c-pink-d); }
.tb-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--c-pink);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-family: var(--font-head);
}
.tb-link:hover { color: var(--c-green); }
.tb-link:disabled,
.tb-link.is-counting {
    color: var(--c-muted);
    text-decoration: none;
    cursor: default;
    font-variant-numeric: tabular-nums;
}
.tb-link:disabled:hover,
.tb-link.is-counting:hover { color: var(--c-muted); }
.tb-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.tb-actions .tb-btn { flex: 0 1 auto; }

/* ---- Hinweise / Alerts ------------------------------------------- */
.tb-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: .94rem;
}
.tb-alert--error   { background: var(--c-err-bg);  color: var(--c-err); }
.tb-alert--success { background: var(--c-ok-bg);   color: var(--c-ok); }
.tb-alert--info    { background: var(--c-info-bg); color: var(--c-pink-d); }
.tb-loading { color: var(--c-muted); padding: 14px 0; }

/* ---- Formularfelder ---------------------------------------------- */
.tb-field { margin: 16px 0; }
.tb-field label {
    display: block;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--c-heading);
}
.tb-field input {
    width: 100%;
    font-family: var(--font-head);
    font-size: 1rem;
    padding: 11px 13px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-soft);
    color: var(--c-heading);
}
.tb-field input:focus {
    outline: none;
    border-color: var(--c-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(118, 184, 86, .20);
}
.tb-field--pin input {
    max-width: 220px;
    font-size: 1.6rem;
    letter-spacing: .5em;
    text-align: center;
    padding-left: .5em;
}

/* ---- Modus-Umschalter (Einzel / Paar) ---------------------------- */
.tb-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 18px;
}
.tb-mode__btn {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    cursor: pointer;
    background: var(--c-soft);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-head);
    color: var(--c-heading);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tb-mode__btn:hover { border-color: var(--c-green); }
.tb-mode__btn.is-active {
    background: #fff;
    border-color: var(--c-green);
    box-shadow: 0 0 0 2px rgba(118, 184, 86, .30);
}
.tb-mode__title {
    font-weight: 700;
    font-size: 1rem;
}
.tb-mode__sub {
    font-size: .85rem;
    color: var(--c-muted);
    font-weight: 400;
}

/* ---- Paarauswahl: zwei Behandlungs-Sektionen --------------------- */
.tb-couple-types { margin-top: 4px; }
.tb-couple-section { margin-bottom: 22px; }
.tb-couple-section:last-of-type { margin-bottom: 12px; }
.tb-couple-section__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--c-pink);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c-border);
}

/* Eingeklappte Auswahl: nur ausgewaehlte Behandlung + "Ändern" */
.tb-types-collapsed {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}
.tb-types-collapsed .tb-type-group { margin-bottom: 0; flex: 1 1 auto; }
.tb-types-collapsed .tb-type-group__head h3 { font-size: 1rem; margin-bottom: 4px; }
.tb-types-collapsed .tb-type-row { gap: 0; }
.tb-types-collapsed .tb-type {
    flex: 0 0 auto;
    min-width: 160px;
    cursor: default;
}
.tb-types-collapsed .tb-type.is-locked:hover { border-color: var(--c-green); }
.tb-types-collapsed__change {
    font-size: .9rem;
    white-space: nowrap;
}

/* Hinweis "zuerst Person 1 waehlen" in Person-2-Sektion */
.tb-types-hint {
    color: var(--c-muted);
    font-size: .95rem;
    padding: 16px 18px;
    background: var(--c-soft);
    border: 1px dashed var(--c-border);
    border-radius: 10px;
    text-align: center;
}

/* ---- Behandlungsauswahl ------------------------------------------ */
.tb-type-group { margin-bottom: 22px; }
.tb-type-group:last-child { margin-bottom: 0; }
.tb-type-group__head h3 { margin: 0 0 2px; font-size: 1.15rem; }
.tb-type-group__head p  { margin: 0 0 10px; }
.tb-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tb-type {
    flex: 1 1 150px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    background: var(--c-soft);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tb-type:hover { border-color: var(--c-green); }
.tb-type.is-selected {
    border-color: var(--c-green);
    box-shadow: 0 0 0 2px rgba(118, 184, 86, .30);
    background: #fff;
}
.tb-type__dur {
    display: inline-block;
    font-family: var(--font-head);
    background: var(--c-green);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.tb-type__price {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-pink);
}

/* ---- Kalender ----------------------------------------------------- */
.tb-cal { margin-top: 6px; }
.tb-cal__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.tb-cal__nav span {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-heading);
    min-width: 180px;
    text-align: center;
}
.tb-cal__weekdays,
.tb-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.tb-cal__weekdays span {
    text-align: center;
    font-family: var(--font-head);
    font-size: .78rem;
    color: var(--c-muted);
    padding: 4px 0;
}
.tb-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: .95rem;
    border: 1px solid transparent;
}
.tb-day.is-empty { visibility: hidden; }
.tb-day.is-unavailable,
.tb-day.is-past {
    color: #c8c5cc;
    background: var(--c-soft);
}
.tb-day.is-available {
    background: #fff;
    border-color: var(--c-green);
    color: var(--c-green-dd);
    font-weight: 700;
    cursor: pointer;
}
.tb-day.is-available:hover { background: var(--c-green); color: #fff; }
.tb-day.is-selected {
    background: var(--c-green);
    color: #fff;
    font-weight: 700;
}

/* ---- Slots -------------------------------------------------------- */
.tb-slots { margin-top: 22px; }
.tb-slots h3 { margin: 0 0 10px; font-size: 1.1rem; }
.tb-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.tb-slot {
    font-family: var(--font-head);
    font-size: 1rem;
    border: 1px solid var(--c-border);
    background: var(--c-soft);
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    color: var(--c-heading);
}
.tb-slot:hover { border-color: var(--c-green); background: #fff; }
.tb-slot.is-selected {
    background: var(--c-green);
    border-color: var(--c-green);
    color: #fff;
}

/* ---- Zusammenfassung --------------------------------------------- */
.tb-summary {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
}
.tb-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
}
.tb-summary__row:nth-child(odd) { background: var(--c-soft); }
.tb-summary__row span   { color: var(--c-muted); }
.tb-summary__row strong {
    color: var(--c-heading);
    text-align: right;
    font-family: var(--font-head);
}

/* ---- Bestaetigung ------------------------------------------------- */
.tb-confirm { text-align: center; }
.tb-confirm h2 { color: var(--c-green); }
.tb-confirm__icon {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--c-ok-bg);
    color: var(--c-green);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-confirm .tb-summary { text-align: left; }

/* ---- Storno ------------------------------------------------------- */
.tb-storno h1 { margin-top: 0; }
.tb-storno .tb-btn { margin-top: 6px; }

/* ---- Fusszeile (gruen wie Hauptseite) ---------------------------- */
.tb-footer {
    flex-shrink: 0;
    background: var(--c-green);
    color: #fff;
    text-align: center;
    padding: 28px 0;
    font-size: .9rem;
}
.tb-footer p { margin: 3px 0; }
.tb-footer a { color: #fff; text-decoration: underline; }
.tb-footer a:hover { color: var(--c-pink); }

/* ---- Responsiv ---------------------------------------------------- */
@media (max-width: 560px) {
    .tb-header { padding: 22px 20px; }
    .tb-header__brand img { height: 88px; }
    .tb-card { padding: 20px; }
    .tb-intro h1 { font-size: 1.6rem; }
    .tb-steps li { flex-basis: 64px; font-size: 0; gap: 0; justify-content: center; }
    .tb-steps li span { font-size: .8rem; }
    .tb-actions { flex-direction: column-reverse; }
    .tb-actions .tb-btn { width: 100%; }
}

/* Hinweis: Impressum/Datenschutz (#footer.mfooter aus pageparts/legal.php)
   werden auf der Buchungsseite jetzt von mystyle.css (Bootstrap + .mfooter)
   gestylt – identisch zur Startseite. Daher hier keine eigenen Regeln mehr. */
