/*
 * ZekaBooking Theme für gemeinsame UI-Core-/MyAccount-Seiten.
 *
 * Diese Datei ersetzt die bisherige Theme-Datei vollständig. Sie ist bewusst
 * kleiner als das Fach-UI-Stylesheet und verändert nur gemeinsame Core-Klassen.
 */

:root {
    --zb-primary: #1b63d9;
    --zb-primary-dark: #124fae;
    --zb-primary-deep: #092b66;
    --zb-primary-light: #4f94ed;
    --zb-primary-soft: #e7f0ff;

    --zb-text: #172033;
    --zb-muted: #667085;
    --zb-border: #dfe6f0;
    --zb-border-strong: #cbd7e8;
    --zb-bg: #f3f7fc;
    --zb-surface: #ffffff;

    --zb-success: #087a4d;
    --zb-danger: #b42318;

    --zb-radius-md: 14px;
    --zb-radius-lg: 20px;
    --zb-radius-xl: 28px;
    --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);
}

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

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--zb-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(27, 99, 217, 0.14), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(79, 148, 237, 0.09), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, var(--zb-bg) 60%, #edf3fb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Moderner ZekaBooking-Plattformheader
   ========================================================= */

.zb-account-header {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 12px 0 5px;
    background:
        linear-gradient(
            180deg,
            rgba(243, 247, 252, 0.98),
            rgba(243, 247, 252, 0.76),
            transparent
        );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.zb-account-header-inner {
    width: min(1160px, calc(100% - 28px));
    min-height: 80px;
    margin: 0 auto;
    padding: 13px 15px;

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

    border: 1px solid rgba(190, 205, 225, 0.90);
    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 251, 255, 0.94)
        );

    box-shadow:
        0 16px 42px rgba(20, 45, 82, 0.11);
}

.zb-account-brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;

    color: var(--zb-text);
    text-decoration: none;
}

.zb-account-brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--zb-primary-light),
            var(--zb-primary),
            var(--zb-primary-dark)
        );

    box-shadow:
        0 11px 24px rgba(27, 99, 217, 0.25);

    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.zb-account-brand-text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.zb-account-brand-text strong {
    color: var(--zb-text);
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.zb-account-brand-text small {
    color: var(--zb-muted);
    font-size: 0.82rem;
    line-height: 1.3;
}

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

.zb-account-navigation > a,
.zb-account-logout-form button {
    min-height: 44px;
    padding: 10px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 12px;

    color: #344054;
    background: transparent;

    font: inherit;
    font-size: 0.90rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.zb-account-navigation > a:hover,
.zb-account-navigation > a:focus-visible,
.zb-account-logout-form button:hover,
.zb-account-logout-form button:focus-visible {
    color: var(--zb-primary-dark);
    border-color: rgba(27, 99, 217, 0.14);
    background: var(--zb-primary-soft);
    outline: none;
    transform: translateY(-1px);
}

.zb-account-navigation .zb-account-login-link {
    color: #ffffff;
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--zb-primary),
            var(--zb-primary-dark)
        );

    box-shadow:
        0 9px 20px rgba(27, 99, 217, 0.23);
}

.zb-account-navigation .zb-account-login-link:hover,
.zb-account-navigation .zb-account-login-link:focus-visible {
    color: #ffffff;
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--zb-primary-dark),
            var(--zb-primary-deep)
        );

    box-shadow:
        0 12px 25px rgba(27, 99, 217, 0.29);
}

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

/* =========================================================
   Login, Registrierung und Profil
   ========================================================= */

.myaccount-page {
    min-height: calc(100vh - 190px);
    background: transparent !important;
}

/*
 * Der Loginbereich bekommt keine künstliche Bildschirmhöhe mehr.
 * Dadurch sitzt der Footer direkt und mit normalem Abstand unter dem Formular.
 */
.myaccount-auth-page {
    min-height: 0 !important;
    padding: clamp(28px, 4vw, 44px) 14px 14px;
    background: transparent !important;
}

.myaccount-auth-page .myaccount-card {
    margin-top: 0;
    margin-bottom: 0;
}

.myaccount-card,
.myaccount-content,
.myaccount-sidebar,
.myaccount-user-box,
.profile-section,
.profile-static-box {
    border: 1px solid var(--zb-border) !important;
    border-radius: var(--zb-radius-lg) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--zb-shadow-sm) !important;
}

.myaccount-card h1,
.myaccount-content h1,
.profile-section h1,
.profile-section h2 {
    color: var(--zb-text) !important;
    letter-spacing: -0.035em;
}

.myaccount-subtitle,
.profile-hint {
    color: var(--zb-muted) !important;
}

.myaccount-form label,
.profile-label {
    color: #344054 !important;
    font-weight: 760 !important;
}

.myaccount-form input[type="email"],
.myaccount-form input[type="password"],
.myaccount-form input[type="text"],
.myaccount-form input[type="tel"],
.profile-section input,
.profile-section select,
.profile-section textarea {
    min-height: 46px;
    border: 1px solid var(--zb-border-strong) !important;
    border-radius: 12px !important;
    color: var(--zb-text) !important;
    background: #ffffff !important;
    outline: none;
}

.myaccount-form input:focus,
.profile-section input:focus,
.profile-section select:focus,
.profile-section textarea:focus {
    border-color: var(--zb-primary) !important;
    box-shadow: var(--zb-focus-ring) !important;
}

.myaccount-form button[type="submit"],
.myaccount-primary-btn,
.btn-primary {
    min-height: 44px;
    border: 0 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--zb-primary), var(--zb-primary-dark)) !important;
    box-shadow: 0 10px 22px rgba(27, 99, 217, 0.22) !important;
}

.myaccount-link-row a,
.myaccount-link-row-left a,
.myaccount-menu a.active,
.myaccount-menu a:hover {
    color: var(--zb-primary-dark) !important;
}

.myaccount-menu a.active,
.myaccount-menu a:hover {
    border-radius: 10px;
    background: var(--zb-primary-soft) !important;
}

.field-error,
.myaccount-message-error,
.form-message-error {
    color: var(--zb-danger) !important;
}

.input-error,
.has-error {
    border-color: var(--zb-danger) !important;
    background: #fff7f6 !important;
}

.myaccount-message-success,
.form-message-success {
    color: #05603b !important;
    background: #e8f8f0 !important;
}

/* Shop-spezifische Seller-Box ist in der Booking-App fachlich falsch. */
.myaccount-seller-box {
    display: none !important;
}

/* =========================================================
   ZekaBooking Plattform-Footer
   ========================================================= */

.zb-account-footer {
    width: min(1160px, calc(100% - 28px));
    margin: 26px auto 16px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;

    color: #ffffff;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(61, 137, 238, 0.30),
            transparent 24rem
        ),
        linear-gradient(
            135deg,
            #0b326f,
            #071d42
        );

    box-shadow:
        0 20px 46px rgba(7, 29, 66, 0.20);

    overflow: hidden;
}

.zb-account-footer-inner {
    padding: 30px 30px 26px;

    display: grid;
    grid-template-columns:
        minmax(230px, 1.4fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr);

    align-items: start;
    gap: 30px 48px;
}

.zb-account-footer-column {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.zb-account-footer-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.zb-account-footer-column h4 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.zb-account-footer-heading h4 {
    margin: 0;
}

.zb-account-footer-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);

    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.zb-account-footer-description {
    max-width: 290px;
    margin: 5px 0 8px;

    color: rgba(255, 255, 255, 0.67);

    font-size: 0.84rem;
    line-height: 1.55;
}

.zb-account-footer-column a {
    display: inline-flex;
    align-items: center;

    min-height: 31px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.84rem;
    font-weight: 680;
    line-height: 1.35;
    text-decoration: none;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.zb-account-footer-column a:hover,
.zb-account-footer-column a:focus-visible {
    color: #ffffff;
    outline: none;
    transform: translateX(2px);
}

.zb-account-footer-bottom {
    padding: 16px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.58);
    background: rgba(0, 0, 0, 0.10);

    font-size: 0.76rem;
    line-height: 1.45;
}

.zb-account-footer-bottom a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 750;
    text-decoration: none;
}

.zb-account-footer-bottom a:hover,
.zb-account-footer-bottom a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   Footer Tablet
   ========================================================= */

@media (max-width: 820px) {
    .zb-account-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .zb-account-footer-column:first-child {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   Footer Mobile
   ========================================================= */

@media (max-width: 560px) {
    .zb-account-footer {
        width: calc(100% - 14px);
        margin-top: 18px;
        margin-bottom: 7px;
        border-radius: 19px;
    }

    .zb-account-footer-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 25px;
    }

    .zb-account-footer-column:first-child {
        grid-column: auto;
    }

    .zb-account-footer-bottom {
        padding: 15px 20px;

        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {
    .zb-account-header {
        position: relative;
        padding: 7px 0 3px;
    }

    .zb-account-header-inner {
        width: calc(100% - 14px);
        min-height: auto;
        padding: 11px;

        align-items: stretch;
        flex-direction: column;
        gap: 11px;

        border-radius: 18px;
    }

    .zb-account-brand {
        gap: 11px;
    }

    .zb-account-brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .zb-account-brand-text strong {
        font-size: 1.15rem;
    }

    .zb-account-brand-text small {
        display: block;
        font-size: 0.76rem;
    }

    .zb-account-navigation {
        width: 100%;
        justify-content: flex-start;

        overflow-x: auto;
        padding-bottom: 2px;

        scrollbar-width: thin;
    }

    .zb-account-navigation > a,
    .zb-account-logout-form button {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.84rem;
    }

    .myaccount-auth-page {
        min-height: 0 !important;
        padding: 22px 7px 10px;
    }

    .myaccount-card,
    .myaccount-content,
    .profile-section {
        border-radius: 17px !important;
    }

    .zb-account-footer {
        margin-top: 14px;
        padding-bottom: 8px;
    }

    .zb-account-footer-inner {
        width: calc(100% - 14px);
        grid-template-columns: 1fr;
        padding: 19px 17px;
        gap: 16px;
        border-radius: 19px;
    }

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

    .zb-account-footer-copyright {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .zb-account-brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .zb-account-brand-text strong {
        font-size: 1.08rem;
    }

    .zb-account-brand-text small {
        font-size: 0.72rem;
    }

    .zb-account-navigation > a,
    .zb-account-logout-form button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .zb-account-footer-brand {
        align-items: flex-start;
    }

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