@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* =========================================================
   Design tokens — Minimal & Flat
   ========================================================= */
:root {
    /* Palette — Onyx / Jet Black / Platinum / Bright Gold / Saffron */
    --color-onyx: #0b0c0c;
    --color-jet:  #2a2e34;
    --color-platinum: #e9eaec;
    --color-gold-bright: #fbe134;
    --color-gold-saffron: #e4b61a;

    --bg-app: #f5f6f7;
    --bg-surface: #ffffff;
    --bg-subtle: var(--color-platinum);
    --border-color: #d8dadd;
    --border-color-strong: #b8babe;

    --text-primary: var(--color-onyx);
    --text-secondary: var(--color-jet);
    --text-muted: #5e636b;

    --primary-color: var(--color-onyx);
    --primary-color-hover: var(--color-jet);
    --primary-color-contrast: #ffffff;

    --accent-color: var(--color-gold-saffron);
    --accent-color-hover: #c89b14;
    --accent-color-contrast: var(--color-onyx);

    --gold-bright: var(--color-gold-bright);

    --danger-color: #dc2626;
    --warning-color: var(--color-gold-saffron);

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-xs: 0 1px 2px rgba(11, 12, 12, 0.05);
    --shadow-sm: 0 1px 3px rgba(11, 12, 12, 0.07), 0 1px 2px rgba(11, 12, 12, 0.04);
    --transition: 180ms ease;

    /* Legacy aliases (kept for backward compatibility with old utilities) */
    --glass-bg: var(--bg-surface);
    --glass-border: var(--border-color);
    --glass-shadow: var(--shadow-sm);
    --transition-speed: 0.18s;
    --border-radius-lg: 12px;
    --border-radius-sm: 8px;

    /* Theme-aware secondary tokens */
    --body-overlay: rgba(245, 246, 247, 0.78);
    --dropdown-shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
    --hero-gradient-start: #ffffff;
}

/* =========================================================
   Dark theme — same palette, inverted surfaces
   ========================================================= */
[data-theme="dark"] {
    --bg-app: var(--color-onyx);
    --bg-surface: #16181c;
    --bg-subtle: #24272d;
    --border-color: #2f3338;
    --border-color-strong: #44484f;

    --text-primary: var(--color-platinum);
    --text-secondary: #b6b8bc;
    --text-muted: #8a8e94;

    --primary-color: var(--color-gold-bright);
    --primary-color-hover: var(--color-gold-saffron);
    --primary-color-contrast: var(--color-onyx);

    --accent-color: var(--color-gold-saffron);
    --accent-color-hover: #b58f0e;
    --accent-color-contrast: var(--color-onyx);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.45);

    --body-overlay: rgba(11, 12, 12, 0.85);
    --dropdown-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    --hero-gradient-start: #1a1d22;

    color-scheme: dark;
}

/* Sidebar active item — flip in dark mode so it stays visible */
[data-theme="dark"] .app-sidebar .sidebar-link.active-item {
    background: var(--color-gold-bright) !important;
    color: var(--color-onyx) !important;
}
[data-theme="dark"] .app-sidebar .sidebar-link.active-item .bi {
    color: var(--color-onyx);
}

/* Navbar — flip white background on dark */
[data-theme="dark"] .site-navbar {
    background-color: var(--bg-surface) !important;
    border-bottom-color: var(--border-color);
}
[data-theme="dark"] .site-navbar .btn-auth.btn-primary-fill,
[data-theme="dark"] .site-navbar .btn-auth.btn-primary-fill:hover {
    color: var(--color-onyx);
}
[data-theme="dark"] .site-navbar .user-menu .user-avatar {
    color: var(--color-onyx);
}
[data-theme="dark"] .site-navbar .user-menu .dropdown-menu {
    box-shadow: var(--dropdown-shadow);
    background-color: var(--bg-surface);
}

/* Inputs — flip subtle white surfaces in dark mode */
[data-theme="dark"] .modern-input,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color-strong);
}
[data-theme="dark"] .form-control::placeholder { color: var(--text-muted); }

/* Carousel caption in dark */
[data-theme="dark"] .carousel-clean .carousel-caption-bar {
    background: rgba(0, 0, 0, 0.92);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-app);
    background-image: none;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
h2 { font-size: clamp(1.5rem, 2vw, 1.875rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-color-hover);
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    opacity: 1;
}

/* =========================================================
   Bootstrap icon sizing fix
   ========================================================= */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* =========================================================
   Color utilities
   ========================================================= */
.text-white { color: #ffffff !important; }
.text-black { color: var(--text-primary) !important; }
.text-blau-lila { color: var(--primary-color); }
.text-purple { color: var(--primary-color); }
.text-red { color: var(--danger-color); }
.b-color { background-color: var(--text-primary) !important; }
.l-color { color: var(--text-primary); }

/* =========================================================
   Flat surface (replaces glass-card)
   ========================================================= */
.glass-card,
.flat-card {
    background: var(--bg-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover,
.flat-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color-strong);
}

.glass-card-dark {
    background: #111827;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: none;
    color: #fff;
}

/* Disable the old "lift on hover" — keep things calm */
.hover-grow {
    transition: border-color var(--transition), box-shadow var(--transition);
}
.hover-grow:hover {
    transform: none;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--border-color-strong) !important;
}

/* =========================================================
   Product / item card
   ========================================================= */
.modern-product-card {
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modern-product-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color-strong);
}

.modern-product-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.modern-product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.modern-product-card:hover .modern-product-img {
    transform: scale(1.03);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-modern-primary {
    background-color: var(--primary-color);
    color: var(--primary-color-contrast);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
}
.btn-modern-primary:hover,
.btn-modern-primary:focus {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--primary-color-contrast);
    transform: none;
    box-shadow: none;
}

.btn-modern-success {
    background-color: var(--accent-color);
    color: var(--accent-color-contrast);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-weight: 600;
}
.btn-modern-success:hover,
.btn-modern-success:focus {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
    color: var(--accent-color-contrast);
    transform: none;
    box-shadow: none;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color-strong);
    background: var(--bg-surface);
}
.btn-outline-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-color-strong);
    color: var(--text-primary);
}

/* =========================================================
   Forms
   ========================================================= */
.modern-input,
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color-strong);
    padding: 10px 14px;
    background-color: var(--bg-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-size: 0.95rem;
}

.modern-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 12, 12, 0.18);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* =========================================================
   Badges
   ========================================================= */
.modern-badge,
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

/* =========================================================
   Tables — clean, lined (not floating cards)
   ========================================================= */
.modern-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}
.modern-table thead th {
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    background: transparent;
}
.modern-table tbody tr {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transition: background-color var(--transition);
}
.modern-table tbody tr:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-subtle);
}
.modern-table tbody td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    color: var(--text-primary);
    vertical-align: middle;
}
.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   Checkout summary card — flat ticket
   ========================================================= */
.checkout-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    position: relative;
}
.checkout-summary-card::before,
.checkout-summary-card::after {
    display: none;
}

/* =========================================================
   Stepper
   ========================================================= */
.bs-stepper {
    background: transparent;
}
.bs-stepper-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.bs-stepper .step-trigger {
    text-decoration: none;
    padding: 8px 12px;
    color: var(--text-muted);
}
.bs-stepper .step-trigger:hover {
    background: transparent;
    color: var(--text-primary);
}
.bs-stepper-circle {
    background-color: var(--bg-subtle) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color-strong);
    width: 32px;
    height: 32px;
    line-height: 30px;
    font-weight: 600;
    transition: all var(--transition);
}
.bs-stepper .active .bs-stepper-circle,
.active .bs-stepper-circle {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color);
}
.bs-stepper-label {
    font-weight: 500;
    color: var(--text-secondary);
}
.active .bs-stepper-label {
    color: var(--text-primary);
}
.bs-stepper .line,
.bs-stepper-line {
    background-color: var(--border-color);
    flex: 1;
}

/* =========================================================
   Time selection pills
   ========================================================= */
.time-pill-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    padding: 6px 0;
}

.time-pill-label {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.time-pill-label input[type="checkbox"],
.time-pill-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.time-pill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 8px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    box-shadow: none;
}

.time-pill-label:hover .time-pill-card {
    background: var(--bg-subtle);
    border-color: var(--primary-color);
    transform: none;
}

.time-pill-label input:checked + .time-pill-card {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: none;
}

.time-pill-label input:disabled + .time-pill-card {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.7;
}

/* =========================================================
   Course / package picker (radio cards)
   ========================================================= */
.radio-input {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-input input { display: none; }

.radio-input input:checked + label,
.radio-input input:checked + .course-card,
input[type="radio"]:checked + .course-card {
    border-color: var(--primary-color) !important;
    background-color: rgba(11, 12, 12, 0.04) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 2px rgba(11, 12, 12, 0.18);
}

.course-card {
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-surface);
}
.course-card:hover {
    border-color: var(--primary-color) !important;
    transform: none;
    background: var(--bg-subtle);
}

.circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #cbd5e1;
    margin-right: 0.5rem;
    position: relative;
    vertical-align: middle;
}

.radio-input input:checked + label span.circle::before {
    content: "";
    display: inline;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.text { display: flex; align-items: center; }
.price { display: flex; flex-direction: column; text-align: right; font-weight: 600; }
.small { font-size: 11px; color: var(--text-muted); font-weight: 400; }

/* =========================================================
   Page section / hero helpers
   ========================================================= */
.page-section {
    padding: 32px 0;
}
.page-header {
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}
.page-header h1 {
    margin: 0;
    font-weight: 700;
}
.page-header .subtitle {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 0.95rem;
}

.section-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-title::after {
    content: "";
    display: inline-block;
    flex: 0 0 36px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-left: 4px;
}

/* =========================================================
   Layout neutralizers — strip legacy parallax backgrounds
   ========================================================= */
.parallax,
.parallax1 {
    background-image: none !important;
    background-attachment: scroll !important;
    min-height: 0 !important;
    background-color: transparent !important;
}

.b-img {
    background-color: transparent;
    background-image: none;
    border-radius: 0;
}

.back-text {
    background-image: none !important;
}

/* =========================================================
   Misc legacy helpers (cleaned up)
   ========================================================= */
.width-height { width: 100%; height: 800px; }
.f-size { font-size: 30px; }
.timer { transition: 10s ease-in-out; }
.button-line { list-style: none; }
.height-80 { height: 80%; }
.width-80 { width: 80%; }
.img-height { height: 600px; object-fit: cover; }
.b-radius { border-radius: var(--radius-md); }
.flex-reverse { flex-direction: row-reverse; }
.flex-end { justify-content: flex-end; }
.kontakt-img { height: 40%; width: 100%; object-fit: cover; }
.flex { display: flex; flex-direction: column; }
.img-hw { height: 80%; width: 80%; }
.zoom:hover {
    transform: scale(1.04);
    transition: transform var(--transition);
}
.img-kontakt { height: 600px; object-fit: contain; }
.logo-img { border-radius: 50%; }
.text_bild { display: flex; flex-direction: column; justify-content: center; }
.kon_bild { border-radius: var(--radius-md); }

/* =========================================================
   Sidebar baseline (overridden by slide-nav.php inline styles)
   ========================================================= */
@media (min-width: 768px) {
    .sidebar .offcanvas-lg {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
    .navbar-search { display: block; }
}

.sidebar .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-heading { font-size: 0.75rem; }

/* =========================================================
   Navbar
   ========================================================= */
.navbar-brand {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar .form-control {
    padding: 0.6rem 0.9rem;
}

.icon-link-hover { --bs-link-hover-color-rgb: 25, 135, 84; }

/* =========================================================
   Responsive helpers
   ========================================================= */
@media only screen and (max-width: 500px) {
    .modal-width { width: 320px; }
}
@media only screen and (max-width: 991px) {
    #m_unset {
        margin-left: unset !important;
        margin-right: unset !important;
    }
}
