/* Public booking UI – aligned with massage-tolkewitz.de index.html (social look) */

:root {
    --ink: #1c1c1c;
    --muted: #737373;
    --line: #dbdbdb;
    --paper: #fafafa;
    --card: #ffffff;
    --brand: #026873;
    --brand-dark: #014f57;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.94);
    --subtle-line: #f0f0f0;
    --degree-bg: #e7f4f5;
    --header: 64px;
    --cstart: #026873;
    --cend: #34b8c8;
    --font: "Segoe UI", system-ui, sans-serif;
    --bs-body-font-family: var(--font);
    --bs-font-sans-serif: var(--font);
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-primary: #026873;
    --bs-primary-rgb: 2, 104, 115;
    --bs-link-color: #014f57;
    --bs-link-hover-color: #026873;
    --bs-info-text-emphasis: #737373;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    scroll-behavior: smooth;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f5f5f5;
        --muted: #a8a8a8;
        --line: #363636;
        --paper: #000000;
        --card: #121212;
        --brand: #34b8c8;
        --brand-dark: #6dd8e8;
        --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
        --header-bg: rgba(18, 18, 18, 0.94);
        --subtle-line: #262626;
        --degree-bg: #1a3336;
        --bs-body-bg: var(--paper);
        --bs-body-color: var(--ink);
        --bs-primary: #34b8c8;
        --bs-primary-rgb: 52, 184, 200;
        --bs-link-color: #6dd8e8;
        --bs-link-hover-color: #34b8c8;
        --bs-info-text-emphasis: #a8a8a8;
    }
}

* { box-sizing: border-box; }

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

button, a {
    font: inherit;
    font-family: inherit;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* —— Header (like index.html) —— */
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header);
    padding: 8px 14px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand:hover { color: inherit; }

.brand img {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.top-nav {
    display: none;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.top-nav a,
.top-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 0.375rem;
    cursor: pointer;
    white-space: nowrap;
}

.top-nav a:hover,
.top-nav button:hover {
    color: var(--brand-dark);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: white !important;
    border-radius: 999px;
    padding: 10px 16px;
    font-family: var(--font);
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.book:hover {
    background: var(--brand-dark);
    color: white !important;
}

.menu-btn {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.menu-btn svg {
    width: 22px;
    height: 22px;
}

.menu-btn svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 1099px) {
    .top .book { display: none; }
}

@media (min-width: 1100px) {
    .top-nav { display: flex; }
    .top .book { display: none; }
}

/* —— Dialogs / sheets —— */
#nav-sheet::backdrop,
#profile-sheet::backdrop,
#contact-sheet::backdrop,
#prices-sheet::backdrop {
    background: rgba(0, 0, 0, 0.48);
}

#nav-sheet,
#profile-sheet,
#contact-sheet,
#prices-sheet {
    background: var(--card);
    color: var(--ink);
    font-family: var(--font);
}

#nav-sheet {
    border: 0;
    padding: 0;
    margin: 0;
    margin-left: auto;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
}

#profile-sheet,
#contact-sheet,
#prices-sheet {
    border: 0;
    padding: 0;
    width: min(520px, 100%);
    max-height: min(92vh, 900px);
    border-radius: 18px;
}

.prices-body {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.5;
}

.prices-body p { margin: 0 0 14px; }

.price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-note { color: var(--muted); }

.price-old {
    text-decoration: line-through;
    color: var(--muted);
}

.sheet-body {
    padding: 18px 16px 22px;
    overflow: auto;
    max-height: min(88vh, 820px);
}

#nav-sheet .sheet-body {
    max-height: 100%;
    height: 100%;
}

.nav-sheet h2 {
    margin: 0 0 12px;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font);
}

.main-nav .nav-item,
.main-nav .nav-sub {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: inherit;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    padding: 12px 0;
    cursor: pointer;
    border-radius: 0;
}

.main-nav .nav-item:hover,
.main-nav .nav-sub:hover {
    color: var(--brand-dark);
}

.main-nav .nav-sub {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--brand-dark);
    padding: 8px 0 8px 12px;
}

.menu-group {
    border-top: 1px solid var(--subtle-line);
}

.menu-group > summary {
    list-style: none;
    font-family: var(--font);
}

.menu-group > summary::-webkit-details-marker { display: none; }

.menu-group > summary::after {
    content: "+";
    float: right;
    color: var(--brand);
}

.menu-group[open] > summary::after { content: "–"; }

.menu-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
}

.profile-sheet { text-align: center; }

.profile-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-sheet h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-family: var(--font);
}

.profile-role {
    margin: 0 0 16px;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.profile-about {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.5;
}

.profile-about p { margin: 0 0 10px; }

.profile-section {
    margin: 18px 0 10px;
    text-align: left;
    font-size: 1rem;
}

.profile-certs {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.45;
}

.profile-certs li {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--subtle-line);
}

.profile-certs li:last-child { border-bottom: 0; }

.profile-certs span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.84rem;
}

.profile-certs .profile-degree {
    display: inline-block;
    margin-top: 4px;
    color: var(--brand-dark);
    font-weight: 700;
    background: var(--degree-bg);
    padding: 3px 8px;
    border-radius: 6px;
}

.profile-note {
    margin: 12px 0 0;
    text-align: left;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.profile-pdf {
    display: inline-block;
    margin-top: 14px;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.profile-pdf:hover { text-decoration: underline; }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 8px;
    text-align: left;
    font-size: 0.9rem;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
    text-decoration: none;
}

.contact-links a:hover { text-decoration: underline; }

.contact-links i {
    flex: 0 0 auto;
    width: 1.25em;
    text-align: center;
    color: var(--brand);
    font-size: 0.8em;
}

.contact-legal { text-align: left; }

.contact-legal-body {
    font-size: 0.80rem;
    line-height: 1.5;
}

.contact-legal-body p { margin: 0 0 10px; }

.contact-legal-body a { color: var(--brand-dark); }

.close-sheet {
    margin-top: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px;
    cursor: pointer;
    color: var(--muted);
    font-family: var(--font);
}

@media (max-width: 959px) {
    #profile-sheet,
    #contact-sheet,
    #prices-sheet {
        margin: auto 0 0;
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }

    #nav-sheet {
        margin: 0;
        margin-left: auto;
        width: min(320px, 88vw);
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* —— Main / footer —— */
.page-main {
    flex: 1 0 auto;
    padding-bottom: 40px;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    padding: 28px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--paper);
}

.site-footer a,
.site-footer .footer-link {
    color: var(--muted);
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.site-footer a:hover,
.site-footer .footer-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* —— Cards & Bootstrap overrides —— */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.card.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.brand-card {
    background-color: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 1rem;
}

.form-label,
.form-select,
.form-control {
    color: var(--ink);
}

.form-select,
.form-control {
    background-color: var(--card);
    border-color: var(--line);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(2, 104, 115, 0.2);
}

.btn-accent,
.btn-brand,
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover,
.btn-brand:hover,
.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-primary,
.btn-outline-brand {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    color: var(--ink);
    border-color: var(--brand);
    background: var(--card);
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-brand:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--ink);
    border-color: var(--line);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: var(--subtle-line);
    border-color: var(--line);
    color: var(--ink);
}

.section-title { color: var(--ink); }
.subtitle { color: var(--brand-dark); }
.text-info { color: var(--bs-info-text-emphasis) !important; }
.text-muted { color: var(--muted) !important; }

.collapse-inner {
    background: color-mix(in srgb, var(--brand) 8%, var(--card));
    border: 1px dashed var(--brand);
    border-radius: 0.75rem;
}

.badge-accent {
    background: var(--brand);
    color: #fff;
}

/* —— Page loader —— */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
    backdrop-filter: blur(6px) saturate(110%);
}

@media (prefers-color-scheme: dark) {
    .page-loader {
        background: rgba(0, 0, 0, 0.55);
    }
}

.loader {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px auto;
    position: relative;
    border-radius: 50%;
    border: 6px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--cstart);
    animation: spinCycle 10s linear infinite;
}

@media (prefers-color-scheme: dark) {
    .loader {
        border-color: rgba(255, 255, 255, 0.12);
        border-top-color: var(--cstart);
    }
}

@keyframes spinCycle {
    0% {
        transform: rotate(0turn);
        border-top-color: var(--cstart);
    }
    40% {
        transform: rotate(1turn);
        border-top-color: var(--cstart);
    }
    45% { border-top-color: var(--cend); }
    90% { border-top-color: var(--cend); }
    100% {
        transform: rotate(0turn);
        border-top-color: var(--cstart);
    }
}

.loader-text {
    margin-top: 0.75rem;
    font: 500 1rem/1.4 var(--font);
    color: var(--ink);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .page-loader {
        background: rgba(255, 255, 255, 0.9);
    }

    @media (prefers-color-scheme: dark) {
        .page-loader {
            background: rgba(0, 0, 0, 0.9);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .loader { animation: none; }
}
