/*
 * ZekaBooking UI Design System
 *
 * Dieses Stylesheet ersetzt die vorherigen, über die Zeit ergänzten Regeln
 * vollständig. Alle ZekaBooking-Oberflächen verwenden ausschließlich das
 * Präfix "zb-", damit Shop-, MyAccount- und andere App-Styles unberührt bleiben.
 */

:root {
    --zb-primary: #1b63d9;
    --zb-primary-dark: color-mix(in srgb, var(--zb-primary) 82%, #071a38);
    --zb-primary-deep: color-mix(in srgb, var(--zb-primary) 62%, #071a38);
    --zb-primary-light: color-mix(in srgb, var(--zb-primary) 76%, #ffffff);
    --zb-primary-soft: color-mix(in srgb, var(--zb-primary) 10%, #ffffff);
    --zb-primary-softer: color-mix(in srgb, var(--zb-primary) 5%, #ffffff);
    --zb-primary-contrast: #ffffff;

    --zb-text: #172033;
    --zb-text-soft: #344054;
    --zb-muted: #667085;
    --zb-muted-light: #98a2b3;
    --zb-border: #dfe6f0;
    --zb-border-strong: #cbd7e8;

    --zb-canvas: #f3f7fc;
    --zb-surface-soft: #f8fbff;

    --zb-success: #087a4d;
    --zb-success-soft: #e8f8f0;
    --zb-danger: #b42318;
    --zb-danger-dark: #8f1d15;
    --zb-danger-soft: #fff0ee;

    --zb-radius-lg: 20px;
    --zb-radius-xl: 28px;

    --zb-shadow-xs: 0 2px 8px rgba(23, 32, 51, 0.05);
    --zb-shadow-sm: 0 10px 28px rgba(20, 45, 82, 0.08);
    --zb-shadow-md: 0 18px 48px rgba(20, 45, 82, 0.11);
    --zb-focus-ring: 0 0 0 4px rgba(27, 99, 217, 0.16);

    --zb-content-width: 1180px;
    --zb-transition: 160ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body.zb-body {
    min-height: 100vh;
    margin: 0;
    color: var(--zb-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(27, 99, 217, 0.15), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(79, 148, 237, 0.10), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, var(--zb-canvas) 58%, #edf3fb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.zb-admin-body {
    background: #eef3f9;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   Allgemeine Layout-Hüllen
   ========================================================= */

.zb-public-shell,
.zb-marketing-shell {
    width: min(var(--zb-content-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 38px;
}

.zb-marketing-shell {
    width: min(1220px, calc(100% - 32px));
}

.zb-onboarding-shell {
    max-width: 1060px;
}

.zb-public-main {
    display: grid;
    gap: 18px;
}

.zb-page-section {
    margin-top: 18px;
}

.zb-section-spaced {
    margin-top: 22px;
}

.zb-form-spaced {
    margin-top: 18px;
}

.zb-action-row-compact {
    margin-top: 0 !important;
}

.zb-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   Branding und Header
   ========================================================= */

.zb-public-header,
.zb-tenant-header,
.zb-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.zb-public-header,
.zb-tenant-header {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(203, 215, 232, 0.84);
    border-radius: var(--zb-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--zb-shadow-sm);
    backdrop-filter: blur(16px);
}


.zb-tenant-header {
    border-color: color-mix(in srgb, var(--zb-primary) 25%, var(--zb-border));
}

.zb-brand,
.zb-brand-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zb-brand-link {
    color: inherit;
    text-decoration: none;
}

.zb-brand-mark,
.zb-brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--zb-primary-contrast);
    background: linear-gradient(145deg, var(--zb-primary), var(--zb-primary-light));
    box-shadow: 0 11px 24px color-mix(in srgb, var(--zb-primary) 28%, transparent);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    overflow: hidden;
}

.zb-brand-logo img,
.zb-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zb-brand-title {
    margin: 0;
    color: var(--zb-text);
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.zb-brand-subtitle {
    margin: 3px 0 0;
    color: var(--zb-muted);
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.zb-header-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.zb-header-navigation a,
.zb-header-navigation button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    color: var(--zb-text-soft);
    background: transparent;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--zb-transition), background var(--zb-transition), transform var(--zb-transition);
}

.zb-header-navigation a:hover,
.zb-header-navigation button:hover,
.zb-header-navigation a:focus-visible,
.zb-header-navigation button:focus-visible {
    color: var(--zb-primary-dark);
    background: var(--zb-primary-soft);
    outline: none;
}

.zb-header-navigation .zb-header-primary-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--zb-primary), var(--zb-primary-dark));
    box-shadow: 0 8px 18px rgba(27, 99, 217, 0.20);
}

.zb-header-navigation .zb-header-primary-link:hover,
.zb-header-navigation .zb-header-primary-link:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, var(--zb-primary-dark), var(--zb-primary-deep));
}

.zb-header-logout-form {
    margin: 0;
}

/* =========================================================
   Typografie
   ========================================================= */

.zb-page-title,
.zb-hero-title,
.zb-section-title {
    color: var(--zb-text);
    text-wrap: balance;
}

.zb-page-title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.55rem);
    font-weight: 880;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.zb-hero-title {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.15rem, 5.6vw, 4.45rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.zb-section-title {
    margin: 0 0 10px;
    font-size: clamp(1.08rem, 2.5vw, 1.28rem);
    font-weight: 840;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.zb-hero-text {
    max-width: 64ch;
    margin: 18px 0 0;
    color: var(--zb-muted);
    font-size: clamp(1rem, 2vw, 1.13rem);
    line-height: 1.68;
}

.zb-muted {
    color: var(--zb-muted);
}

.zb-link {
    color: var(--zb-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.zb-link:hover,
.zb-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zb-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--zb-primary) 18%, transparent);
    border-radius: 999px;
    color: var(--zb-primary-dark);
    background: color-mix(in srgb, var(--zb-primary) 10%, white);
    font-size: 0.82rem;
    font-weight: 830;
    letter-spacing: 0.015em;
}

/* =========================================================
   Karten, Grids und Hero
   ========================================================= */

.zb-hero-card,
.zb-card,
.zb-stat-card {
    border: 1px solid rgba(203, 215, 232, 0.82);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--zb-shadow-sm);
}

.zb-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(18px, 3vw, 34px);
    padding: clamp(22px, 4.5vw, 46px);
    border-radius: var(--zb-radius-xl);
    overflow: hidden;
    position: relative;
}

.zb-hero-card::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -100px;
    top: -110px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--zb-primary) 13%, transparent);
    pointer-events: none;
}

.zb-hero-card > * {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.zb-card {
    min-width: 0;
    padding: 21px;
    border-radius: var(--zb-radius-lg);
}

.zb-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.zb-grid-2,
.zb-grid-3,
.zb-grid-4,
.zb-stats-grid {
    display: grid;
    gap: 16px;
}

.zb-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zb-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zb-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zb-admin-grid {
    margin-top: 16px;
}

.zb-stat-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 122px;
    padding: 19px;
    border-radius: 18px;
    overflow: hidden;
}

.zb-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--zb-primary), var(--zb-primary-light));
}

.zb-stat-card > span,
.zb-stat-card > small {
    color: var(--zb-muted);
    font-size: 0.84rem;
    font-weight: 720;
}

.zb-stat-card > strong,
.zb-stat-value {
    margin: 0;
    color: var(--zb-text);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

/* =========================================================
   Buttons und Aktionen
   ========================================================= */

.zb-action-row,
.zb-inline-form,
.zb-action-column {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zb-action-row {
    flex-wrap: wrap;
    margin-top: 22px;
}

.zb-inline-form {
    flex-wrap: wrap;
}

.zb-action-column {
    min-width: 160px;
    flex-direction: column;
    align-items: stretch;
}

.zb-btn,
.zb-btn-secondary,
.zb-btn-danger,
.zb-chip-button,
.zb-slot-button,
.zb-slug-suggestion-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 820;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--zb-transition), box-shadow var(--zb-transition), background var(--zb-transition), border-color var(--zb-transition), color var(--zb-transition);
}

.zb-btn {
    color: var(--zb-primary-contrast);
    background: linear-gradient(135deg, var(--zb-primary), var(--zb-primary-dark));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--zb-primary) 25%, transparent);
}

.zb-btn-secondary {
    color: var(--zb-text-soft);
    border-color: var(--zb-border-strong);
    background: #ffffff;
    box-shadow: var(--zb-shadow-xs);
}

.zb-btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, var(--zb-danger), var(--zb-danger-dark));
}

.zb-btn:hover,
.zb-btn-secondary:hover,
.zb-btn-danger:hover,
.zb-chip-button:hover,
.zb-slot-button:hover,
.zb-slug-suggestion-button:hover {
    transform: translateY(-1px);
}

.zb-btn:hover {
    box-shadow: 0 13px 28px color-mix(in srgb, var(--zb-primary) 30%, transparent);
}

.zb-btn-secondary:hover {
    color: var(--zb-primary-dark);
    border-color: color-mix(in srgb, var(--zb-primary) 38%, var(--zb-border));
    background: var(--zb-primary-softer);
}

.zb-btn:focus-visible,
.zb-btn-secondary:focus-visible,
.zb-btn-danger:focus-visible,
.zb-chip-button:focus-visible,
.zb-slot-button:focus-visible,
.zb-slug-suggestion-button:focus-visible {
    outline: none;
    box-shadow: var(--zb-focus-ring);
}

.zb-btn:disabled,
.zb-btn-secondary:disabled,
.zb-btn-danger:disabled,
.zb-chip-button:disabled,
.zb-slot-button:disabled {
    opacity: 0.54;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   Formulare
   ========================================================= */

.zb-form {
    display: grid;
    gap: 15px;
}

.zb-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.zb-label,
.zb-label-row {
    color: var(--zb-text-soft);
    font-size: 0.89rem;
    font-weight: 800;
}

.zb-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.zb-input,
.zb-select,
.zb-textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--zb-border-strong);
    border-radius: 12px;
    color: var(--zb-text);
    background: #ffffff;
    outline: none;
    transition: border-color var(--zb-transition), box-shadow var(--zb-transition), background var(--zb-transition);
}

.zb-select {
    cursor: pointer;
}

.zb-textarea {
    min-height: 104px;
    resize: vertical;
}

.zb-input::placeholder,
.zb-textarea::placeholder {
    color: var(--zb-muted-light);
}

.zb-input:hover,
.zb-select:hover,
.zb-textarea:hover {
    border-color: color-mix(in srgb, var(--zb-primary) 32%, var(--zb-border-strong));
}

.zb-input:focus,
.zb-select:focus,
.zb-textarea:focus {
    border-color: var(--zb-primary);
    box-shadow: var(--zb-focus-ring);
}

.zb-input:read-only {
    color: var(--zb-muted);
    background: #f6f8fb;
}

.zb-small-input {
    min-height: 39px;
    max-width: 170px;
    padding: 8px 10px;
}

.zb-checkbox-row,
.zb-check-row,
.zb-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.zb-checkbox-row input,
.zb-check-row input,
.zb-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--zb-primary);
    flex: 0 0 auto;
}

.zb-check {
    padding: 12px;
    border: 1px solid var(--zb-border);
    border-radius: 13px;
    background: var(--zb-surface-soft);
    font-weight: 720;
}

.zb-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.zb-input-prefix-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zb-input-prefix-row > span {
    flex: 0 0 auto;
    color: var(--zb-muted);
    font-size: 0.88rem;
    font-weight: 760;
}

.zb-input-prefix-row .zb-input {
    flex: 1 1 auto;
}

.zb-error {
    color: var(--zb-danger);
    font-size: 0.84rem;
    font-weight: 700;
}

/* =========================================================
   Meldungen und Status
   ========================================================= */

.zb-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 730;
}

.zb-alert-success {
    color: #05603b;
    border-color: #b6e6cf;
    background: var(--zb-success-soft);
}

.zb-alert-error {
    color: var(--zb-danger-dark);
    border-color: #f4c7c2;
    background: var(--zb-danger-soft);
}

.zb-badge {
    width: fit-content;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    padding: 4px 9px;
    border: 1px solid var(--zb-border);
    border-radius: 999px;
    color: var(--zb-text-soft);
    background: #f2f5f9;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

/* =========================================================
   Listen und Tabellen
   ========================================================= */

.zb-list,
.zb-service-list {
    display: grid;
    gap: 10px;
}

.zb-list-row,
.zb-service-option {
    min-width: 0;
    border: 1px solid var(--zb-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--zb-shadow-xs);
}

.zb-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 12px 13px;
    color: inherit;
    text-decoration: none;
}

.zb-list-row[href]:hover {
    border-color: color-mix(in srgb, var(--zb-primary) 30%, var(--zb-border));
    background: var(--zb-primary-softer);
}

.zb-service-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    text-decoration: none;
}

.zb-service-option.is-active {
    border-color: color-mix(in srgb, var(--zb-primary) 50%, var(--zb-border));
    background: color-mix(in srgb, var(--zb-primary) 8%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--zb-primary) 10%, transparent);
}

.zb-price {
    color: var(--zb-primary-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.zb-price strong {
    color: var(--zb-text);
    font-size: clamp(2.45rem, 5vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.zb-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--zb-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--zb-shadow-xs);
    scrollbar-width: thin;
}

.zb-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.zb-table th,
.zb-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--zb-border);
    text-align: left;
    vertical-align: top;
}

.zb-table th {
    color: #475467;
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.zb-table tbody tr:hover td {
    background: #fbfdff;
}

.zb-table tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   Buchungsseite und Termine
   ========================================================= */

.zb-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

/*
 * Aufklappbare Liste der freien Termine.
 * <details>/<summary> funktioniert ohne zusätzliches JavaScript.
 */
.zb-slot-disclosure {
    padding: 0;
    overflow: hidden;
}

.zb-slot-disclosure-summary {
    min-height: 72px;
    padding: 17px 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    list-style: none;
    cursor: pointer;
    user-select: none;

    transition:
        background var(--zb-transition),
        border-color var(--zb-transition);
}

.zb-slot-disclosure-summary::-webkit-details-marker {
    display: none;
}

.zb-slot-disclosure-summary:hover {
    background:
        color-mix(
            in srgb,
            var(--zb-primary) 5%,
            #ffffff
        );
}

.zb-slot-disclosure[open] .zb-slot-disclosure-summary {
    border-bottom: 1px solid var(--zb-border);
    background:
        color-mix(
            in srgb,
            var(--zb-primary) 4%,
            #ffffff
        );
}

.zb-slot-disclosure-heading {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.zb-slot-disclosure-heading .zb-section-title {
    margin: 0;
}

.zb-slot-disclosure-hint {
    color: var(--zb-muted);
    font-size: 0.82rem;
}

.zb-slot-disclosure-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border: 1px solid
        color-mix(
            in srgb,
            var(--zb-primary) 22%,
            var(--zb-border)
        );

    border-radius: 11px;

    color: var(--zb-primary-dark);
    background: var(--zb-primary-soft);
}

.zb-slot-disclosure-icon::before {
    content: "";

    width: 8px;
    height: 8px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: translateY(-2px) rotate(45deg);

    transition: transform var(--zb-transition);
}

.zb-slot-disclosure[open] .zb-slot-disclosure-icon::before {
    transform: translateY(2px) rotate(225deg);
}

.zb-slot-disclosure-content {
    padding: 18px 19px 20px;
}

.zb-chip-button,
.zb-slot-button {
    color: var(--zb-text-soft);
    border-color: var(--zb-border-strong);
    background: #ffffff;
    box-shadow: var(--zb-shadow-xs);
}

.zb-chip-button.is-selected,
.zb-slot-button.is-selected {
    color: var(--zb-primary-contrast);
    border-color: var(--zb-primary);
    background: var(--zb-primary);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--zb-primary) 25%, transparent);
}

.zb-appointment-summary {
    display: grid;
    gap: 0;
    margin-top: 18px;
    padding: 4px 15px;
    border: 1px solid color-mix(in srgb, var(--zb-primary) 16%, var(--zb-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--zb-primary) 5%, white);
}

.zb-summary-row {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--zb-primary) 11%, var(--zb-border));
    color: var(--zb-muted);
}

.zb-summary-row:last-child {
    border-bottom: 0;
}

.zb-summary-row strong {
    min-width: 0;
    color: var(--zb-text);
    text-align: right;
    overflow-wrap: anywhere;
}

.zb-date-form {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--zb-border);
}

.zb-login-required-box {
    padding: 17px;
    border: 1px solid color-mix(in srgb, var(--zb-primary) 20%, var(--zb-border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--zb-primary) 6%, white);
}

/* =========================================================
   Portal und Superadmin
   ========================================================= */

.zb-portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    background: var(--zb-canvas);
}

.zb-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 0%, rgba(99, 168, 255, 0.28), transparent 18rem),
        linear-gradient(180deg, #0b2f6f 0%, #071a38 100%);
    overflow-y: auto;
}

.zb-admin-sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(99, 168, 255, 0.20), transparent 18rem),
        linear-gradient(180deg, #102445 0%, #08162b 100%);
}

.zb-sidebar .zb-brand-link {
    padding: 5px 4px 16px;
}

.zb-sidebar .zb-brand-title {
    color: #ffffff;
}

.zb-sidebar .zb-brand-subtitle {
    color: rgba(255, 255, 255, 0.68);
}

.zb-sidebar .zb-brand-mark {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.zb-admin-sidebar .zb-brand-mark {
    background: linear-gradient(145deg, #3d6da8, #17385f);
}

.zb-tenant-context {
    margin: 3px 0 4px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
}

.zb-tenant-context span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zb-tenant-context strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.zb-nav {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.zb-nav a {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.91rem;
    font-weight: 760;
    text-decoration: none;
    transition: color var(--zb-transition), background var(--zb-transition), border-color var(--zb-transition), transform var(--zb-transition);
}

.zb-nav a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
}

.zb-nav a:hover,
.zb-nav a.is-active,
.zb-nav a:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.10);
    outline: none;
    transform: translateX(2px);
}

.zb-nav a.is-active::before {
    background: #8fc1ff;
    box-shadow: 0 0 0 4px rgba(143, 193, 255, 0.14);
}

.zb-sidebar-meta {
    margin-top: auto;
    padding: 18px 5px 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}

.zb-portal-main {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px clamp(16px, 3vw, 34px) 22px;
}

.zb-portal-topbar {
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--zb-border);
}

/* =========================================================
   Portalfooter, öffentliche Footer und rechtliche Links
   ========================================================= */

.zb-portal-footer {
    margin-top: auto;
    padding-top: 30px;
}

.zb-portal-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--zb-border);
    border-radius: 15px;
    color: var(--zb-muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.79rem;
}

.zb-portal-footer nav,
.zb-site-footer nav,
.zb-tenant-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.zb-portal-footer a,
.zb-site-footer a,
.zb-tenant-footer a {
    color: inherit;
    font-weight: 760;
    text-decoration: none;
}

.zb-portal-footer a:hover,
.zb-site-footer a:hover,
.zb-tenant-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zb-site-footer {
    margin-top: 20px;
}

.zb-site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: var(--zb-radius-lg);
    color: #ffffff;
    background:
        radial-gradient(circle at 0% 0%, rgba(99, 168, 255, 0.28), transparent 20rem),
        linear-gradient(135deg, #0b2f6f, #071a38);
    box-shadow: var(--zb-shadow-md);
}

.zb-site-footer strong {
    display: block;
    font-size: 1rem;
}

.zb-site-footer p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.84rem;
}

.zb-site-footer nav {
    justify-content: flex-end;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
}

/* Öffentlicher Footer des jeweiligen Betriebs. */
.zb-tenant-footer {
    margin-top: 22px;
}

.zb-tenant-footer-inner {
    border: 1px solid color-mix(in srgb, var(--zb-primary) 42%, #ffffff 10%);
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--zb-primary) 46%, transparent), transparent 24rem),
        linear-gradient(135deg, #0b315d 0%, #071b36 62%, #06142a 100%);
    box-shadow: 0 18px 44px rgba(7, 27, 54, 0.20);
    overflow: hidden;
}

.zb-tenant-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
}

.zb-tenant-footer-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.zb-tenant-footer-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 15px;
    color: #ffffff;
    background: color-mix(in srgb, var(--zb-primary) 68%, #ffffff 8%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    font-weight: 900;
}

.zb-tenant-footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 1.02rem;
}

.zb-tenant-footer-brand p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.zb-tenant-footer nav {
    justify-content: flex-end;
    gap: 8px;
}

.zb-tenant-footer nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.90);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.79rem;
    font-weight: 760;
    text-decoration: none;
}

.zb-tenant-footer nav a:hover,
.zb-tenant-footer nav a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    text-decoration: none;
    outline: none;
}

.zb-tenant-footer nav a span {
    color: rgba(255, 255, 255, 0.65);
}

.zb-tenant-footer nav a strong {
    color: #ffffff;
}

.zb-tenant-footer-bottom {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.76);
    background: rgba(0, 0, 0, 0.14);
    font-size: 0.76rem;
    text-align: center;
}

.zb-tenant-footer-bottom > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
}

.zb-powered-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--zb-primary);
    font-size: 0.58rem;
    font-weight: 900;
}

.zb-footer-note {
    margin: 11px 0 0;
    color: var(--zb-muted);
    font-size: 0.76rem;
    text-align: center;
}

/* =========================================================
   Marketing und Pakete
   ========================================================= */

.zb-pricing-card,
.zb-plan-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.zb-pricing-card .zb-btn {
    margin-top: auto;
}

.zb-pricing-price {
    color: var(--zb-text);
    font-size: clamp(2.65rem, 6vw, 3.5rem);
    font-weight: 930;
    line-height: 1;
    letter-spacing: -0.075em;
}

.zb-feature-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.zb-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--zb-muted);
    line-height: 1.5;
}

.zb-feature-list li::before {
    content: "✓";
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    color: var(--zb-success);
    background: var(--zb-success-soft);
    font-size: 0.76rem;
    font-weight: 900;
}

/* =========================================================
   Onboarding
   ========================================================= */

.zb-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 26px;
}

.zb-onboarding-steps a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--zb-border);
    border-radius: 12px;
    color: var(--zb-text-soft);
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    font-weight: 790;
    text-align: center;
    text-decoration: none;
}

.zb-onboarding-steps a:hover,
.zb-onboarding-steps a.is-active {
    color: var(--zb-primary-dark);
    border-color: var(--zb-primary);
    background: var(--zb-primary-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--zb-primary) 10%, transparent);
}

.zb-checklist p {
    margin: 9px 0;
}

.zb-checklist p::before {
    content: "○";
    margin-right: 8px;
    color: var(--zb-muted-light);
}

.zb-checklist p.is-done::before {
    content: "✓";
    color: var(--zb-success);
    font-weight: 900;
}

/* =========================================================
   Code, Slug-Prüfung und Hilfetexte
   ========================================================= */

.zb-code {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #183b68;
    border-radius: 13px;
    color: #eaf2ff;
    background: #0b1930;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

.zb-compact-summary {
    max-width: 500px;
    margin-top: 18px;
}

.zb-slug-status {
    min-height: 20px;
    margin-top: 6px;
    font-size: 0.84rem;
    font-weight: 700;
}

.zb-slug-status-loading {
    color: var(--zb-muted);
}

.zb-slug-status-success {
    color: var(--zb-success);
}

.zb-slug-status-error {
    color: var(--zb-danger);
}

.zb-slug-suggestions {
    margin-top: 9px;
}

.zb-slug-suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.zb-slug-suggestion-button {
    min-height: 36px;
    padding: 7px 11px;
    color: var(--zb-primary-dark);
    border-color: color-mix(in srgb, var(--zb-primary) 34%, var(--zb-border));
    border-radius: 999px;
    background: var(--zb-primary-softer);
    font-size: 0.8rem;
}

/* =========================================================
   Informations-Popover für Vor-/Nachbereitungszeit
   ========================================================= */

.zb-info-toggle {
    position: relative;
    flex: 0 0 auto;
}

.zb-info-toggle > summary {
    list-style: none;
}

.zb-info-toggle > summary::-webkit-details-marker {
    display: none;
}

.zb-info-button {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--zb-primary) 32%, var(--zb-border));
    border-radius: 50%;
    color: var(--zb-primary-dark);
    background: var(--zb-primary-soft);
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.zb-info-button:hover,
.zb-info-button:focus-visible,
.zb-info-toggle[open] .zb-info-button {
    color: #ffffff;
    border-color: var(--zb-primary);
    background: var(--zb-primary);
    outline: none;
}

.zb-info-button:focus-visible {
    box-shadow: var(--zb-focus-ring);
}

.zb-info-popover {
    position: absolute;
    z-index: 140;
    top: calc(100% + 10px);
    right: 0;
    width: min(350px, calc(100vw - 34px));
    padding: 16px;
    border: 1px solid var(--zb-border);
    border-radius: 15px;
    color: var(--zb-text);
    background: #ffffff;
    box-shadow: var(--zb-shadow-md);
    font-size: 0.86rem;
    line-height: 1.55;
}

.zb-info-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--zb-border);
    border-left: 1px solid var(--zb-border);
    background: #ffffff;
    transform: rotate(45deg);
}

.zb-info-popover > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.94rem;
}

.zb-info-popover p {
    margin: 0 0 11px;
    color: var(--zb-muted);
}

.zb-info-example {
    display: grid;
    gap: 3px;
    margin: 11px 0;
    padding: 10px 11px;
    border: 1px solid color-mix(in srgb, var(--zb-primary) 18%, var(--zb-border));
    border-radius: 11px;
    background: var(--zb-primary-soft);
}

.zb-info-example span {
    color: var(--zb-primary-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zb-info-example small {
    color: #475467;
    font-size: 0.8rem;
}

.zb-info-popover .zb-info-note {
    margin-bottom: 0;
    padding-top: 9px;
    border-top: 1px solid var(--zb-border);
    font-size: 0.8rem;
}

/* =========================================================
   Mitarbeiterleistungen
   ========================================================= */

.zb-staff-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.zb-staff-services,
.zb-staff-service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.zb-staff-services .zb-badge,
.zb-staff-service-badges .zb-badge {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* =========================================================
   Kopierfeld, Kontostatus und nicht verfügbare Buchungsseite
   ========================================================= */

.zb-copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.zb-copy-field .zb-btn-secondary {
    white-space: nowrap;
}

.zb-account-status-card,
.zb-unavailable-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    max-width: 900px;
}

.zb-status-icon,
.zb-unavailable-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--zb-danger), var(--zb-danger-dark));
    box-shadow: 0 12px 24px rgba(180, 35, 24, 0.20);
    font-size: 1.2rem;
    font-weight: 900;
}

.zb-unavailable-icon {
    background: linear-gradient(145deg, var(--zb-primary), var(--zb-primary-dark));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--zb-primary) 24%, transparent);
}

/* =========================================================
   Responsive Verhalten
   ========================================================= */

@media (max-width: 1100px) {
    .zb-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zb-hero-card {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 0.85fr);
    }
}

@media (max-width: 920px) {
    .zb-public-shell,
    .zb-marketing-shell {
        width: min(760px, calc(100% - 20px));
        padding-top: 10px;
    }

    .zb-hero-card {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 22px;
    }

    .zb-hero-title {
        max-width: 17ch;
    }

    .zb-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zb-portal-shell {
        grid-template-columns: 1fr;
    }

    .zb-sidebar {
        position: sticky;
        top: 0;
        z-index: 120;
        height: auto;
        max-height: none;
        padding: 12px 12px 10px;
        border-radius: 0 0 18px 18px;
        overflow: visible;
    }

    .zb-sidebar .zb-brand-link {
        padding: 2px 2px 8px;
    }

    .zb-sidebar .zb-brand-mark {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 12px;
    }

    .zb-tenant-context,
    .zb-sidebar-meta {
        display: none;
    }

    .zb-nav {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 5px;
        margin-top: 4px;
        padding: 0 1px 3px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .zb-nav a {
        min-height: 39px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .zb-nav a::before {
        display: none;
    }

    .zb-nav a:hover,
    .zb-nav a.is-active,
    .zb-nav a:focus-visible {
        transform: none;
    }

    .zb-portal-main {
        min-height: calc(100vh - 112px);
        padding: 18px 10px 18px;
    }

    .zb-portal-topbar {
        margin-bottom: 14px;
        padding: 0 4px 14px;
    }
}

@media (max-width: 720px) {
    .zb-public-header,
    .zb-tenant-header,
    .zb-portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }


    .zb-header-navigation {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .zb-grid-2,
    .zb-grid-3,
    .zb-grid-4 {
        grid-template-columns: 1fr;
    }

    .zb-card {
        padding: 17px;
        border-radius: 17px;
    }

    .zb-card-head {
        display: grid;
    }

    .zb-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .zb-slot-disclosure-summary {
        min-height: 64px;
        padding: 14px 15px;
    }

    .zb-slot-disclosure-content {
        padding: 15px;
    }

    .zb-service-option {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .zb-service-option > input,
    .zb-service-option > .zb-checkbox-row {
        grid-column: 1 / -1;
    }

    .zb-onboarding-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zb-site-footer-inner {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .zb-site-footer nav {
        justify-content: flex-start;
    }

    .zb-tenant-footer-main {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .zb-tenant-footer nav {
        justify-content: flex-start;
    }

    .zb-tenant-footer-bottom {
        justify-content: flex-start;
        flex-wrap: wrap;
        text-align: left;
    }

    .zb-copy-field {
        grid-template-columns: 1fr;
    }

    .zb-account-status-card,
    .zb-unavailable-card {
        grid-template-columns: 1fr;
    }

    .zb-portal-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .zb-inline-form .zb-input,
    .zb-inline-form button,
    .zb-action-column,
    .zb-action-row > .zb-btn,
    .zb-action-row > .zb-btn-secondary,
    .zb-action-row > .zb-btn-danger {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 460px) {
    .zb-public-shell,
    .zb-marketing-shell {
        width: calc(100% - 12px);
    }

    .zb-public-header,
    .zb-tenant-header {
        padding: 11px;
        border-radius: 16px;
    }

    .zb-brand-mark,
    .zb-brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .zb-hero-card {
        padding: 18px 15px;
        border-radius: 19px;
    }

    .zb-hero-title {
        font-size: 2.08rem;
    }

    .zb-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zb-chip-button,
    .zb-slot-button {
        min-height: 41px;
        padding: 8px 7px;
        font-size: 0.89rem;
    }

    .zb-service-option {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .zb-summary-row {
        display: grid;
        gap: 3px;
    }

    .zb-summary-row strong {
        text-align: left;
    }

    .zb-onboarding-steps {
        gap: 7px;
    }

    .zb-onboarding-steps a {
        padding: 8px;
        font-size: 0.78rem;
    }

    .zb-info-popover {
        position: fixed;
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .zb-info-popover::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}