:root {
    --auth-bg: #fcf1eb;
    --auth-bg-2: #fcfaf8;
    --auth-card: #fffdfb;
    --auth-text: #362419;
    --auth-muted: #614433;
    --auth-page-base: #ececec;
    --auth-hero-bg: #efe7e2;
    --auth-border: rgba(73, 50, 38, 0.15);
    --auth-shadow: 0 18px 46px rgba(73, 50, 38, 0.14);
    --auth-coach: #13612e;
    --auth-client: #d35400;
    --auth-warm: #a04000;
    --auth-highlight: #f5a524;
    --shadow: 0 1px 1px rgba(73, 50, 38, 0.08),
    0 10px 24px rgba(73, 50, 38, 0.15),
    0 28px 72px rgba(73, 50, 38, 0.18),
    0 0 0 1px rgba(255, 255, 255, .6) inset;
}

[data-bs-theme="dark"] {
    --shadow: 0 1px 1px rgba(0, 0, 0, .35),
    0 12px 28px rgba(0, 0, 0, .48),
    0 36px 90px rgba(0, 0, 0, .60),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
    --auth-bg: #231912;
    --auth-bg-2: #362419;
    --auth-card: rgba(42, 29, 22, 0.9);
    --auth-text: #f7ede7;
    --auth-muted: #d8b8a3;
    --auth-page-base: #1b1613;
    --auth-hero-bg: #2a211c;
    --auth-border: rgba(255, 255, 255, 0.12);
    --auth-shadow: 0 24px 60px rgba(3, 8, 14, 0.45);
    --auth-coach: #44a167;
    --auth-client: #f5a524;
    --auth-warm: #f7630c;
    --auth-highlight: #f5a524;
}

body {
    font-family: "Source Sans Pro", "Trebuchet MS", sans-serif;
    background: var(--auth-page-base);
    color: var(--auth-text);
    min-height: 100vh;
    position: relative;
    /* overflow: hidden; */
}

h1, h2, h3, h4, h5, h6,
.auth-brand__title {
    font-family: "Montserrat", "Source Sans Pro", sans-serif;
    letter-spacing: 0.02em;
}

.btn-primary {
    --bs-btn-bg: var(--auth-client);
    --bs-btn-border-color: var(--auth-client);
    --bs-btn-hover-bg: var(--auth-warm);
    --bs-btn-hover-border-color: var(--auth-warm);
    --bs-btn-active-bg: var(--auth-warm);
    --bs-btn-active-border-color: var(--auth-warm);
    --bs-btn-disabled-bg: var(--auth-client);
    --bs-btn-disabled-border-color: var(--auth-client);
}

.btn-outline-secondary {
    --bs-btn-color: var(--auth-muted);
    --bs-btn-border-color: color-mix(in srgb, var(--auth-muted) 38%, transparent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--auth-client);
    --bs-btn-hover-border-color: var(--auth-client);
    --bs-btn-active-bg: var(--auth-client);
    --bs-btn-active-border-color: var(--auth-client);
}

.form-control,
.form-select {
    border-color: color-mix(in srgb, var(--auth-muted) 24%, transparent);
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--auth-client) 60%, transparent);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--auth-client) 24%, transparent);
}

.body-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.page-content {
    background: var(--auth-card);
    border-radius: 1rem !important; /* Fallback für --bs-border-radius-xl */
    padding: 1.5rem !important;
    margin: 1.5rem 0 1.5rem 0 !important;
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
}

.hover-lift {
    transition: margin-top 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    margin-top: -5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.text-gradient {
    background: linear-gradient(45deg, var(--auth-coach), var(--auth-client));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.icon-box {
    transition: all 0.2s ease;
}

.hover-lift:hover .icon-box {
    /* transform: scale(1.1); - entfernt um stacking context zu vermeiden */
}
/*.page-content:not(.fade-out) {
    animation: fade-in 0.7s ease both;
}
.page-content.fade-out {
    animation: fade-out 0.7s ease both;
}*/
.modal {
    z-index: 1070; /* Nochmals erhöht */
}

.modal-backdrop {
    z-index: 1060; /* Backdrop ebenfalls erhöht, aber unter Modal */
}

#wcCalendarInfoWindowModal .modal-content {
    border: 3px solid var(--auth-client) !important;
    /*box-shadow: var(--shadow) !important;*/
    border-radius: 1rem !important;
}

.body-background::before,
.body-background::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.9;
}

.body-background::before {
    position: fixed;
    width: 130vw;
    max-width: 2400px;
    height: clamp(240px, 44vh, 430px);
    background: var(--auth-hero-bg);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    border-bottom-left-radius: 50% 22%;
    border-bottom-right-radius: 50% 22%;
    opacity: 1;
}

.body-background::after {
    position: fixed;
    width: min(64vw, 980px);
    height: 340px;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--auth-client) 12%, transparent), transparent 72%);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.coach-icon-btn {
}

.coach-icon-btn:hover,
.coach-icon-btn:focus {
    background: rgba(16, 24, 40, 0.08);
}

[data-bs-theme="dark"] .coach-icon-btn:hover,
[data-bs-theme="dark"] .coach-icon-btn:focus {
    background: rgba(255, 255, 255, 0.12);
}

.auth-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.auth-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
    /* animation: fade-in 0.7s ease both; - entfernt um stacking context zu vermeiden */
}

.auth-card__icon {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    padding: 6px;
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-bg) 14%);
    border: 1px solid color-mix(in srgb, var(--auth-muted) 20%, transparent);
}

.auth-card--coach .auth-card__icon {
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-bg) 14%);
}

.auth-card--client .auth-card__icon {
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-bg) 14%);
}

.auth-card--client {
    animation-delay: 0.12s;
}

.coach-collapse-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.coach-collapse-toggle[aria-expanded="true"] .coach-collapse-icon {
    transform: rotate(180deg);
}

.auth-modal .modal-content {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
}

.auth-modal__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    padding: 5px;
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-bg) 14%);
    border: 1px solid color-mix(in srgb, var(--auth-muted) 20%, transparent);
}

.auth-modal__icon--coach {
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-bg) 14%);
}

.auth-modal__icon--client {
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-bg) 14%);
}

.auth-context-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* --- Session Selection (kompakt, keine Höhenzunahme) --- */
.session-select {
    border: 1px solid var(--auth-border);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--auth-card) 92%, transparent);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    cursor: pointer;
}

.session-select:hover {
    background: color-mix(in srgb, var(--auth-card) 86%, var(--auth-coach) 14%);
    border-color: color-mix(in srgb, var(--auth-border) 50%, var(--auth-coach) 50%);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
    transform: translateY(-1px);
}

.session-action-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;

    aspect-ratio: 1 / 1;
    border-radius: 50% !important;

    padding: 0 !important;          /* Bootstrap btn padding raus */
    line-height: 1 !important;      /* verhindert vertikale Verzerrung */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*.session-select:active {*/
/*    transform: translateY(0);*/
/*    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.10);*/
/*}*/

.session-select:focus-visible {
    outline: none;
    box-shadow:
            0 10px 24px rgba(16, 24, 40, 0.10),
            0 0 0 3px color-mix(in srgb, var(--auth-coach) 35%, transparent);
}

.session-select.is-selected {
    border-color: color-mix(in srgb, var(--auth-coach) 70%, var(--auth-border) 30%);
    background: color-mix(in srgb, var(--auth-card) 80%, var(--auth-coach) 20%);
    box-shadow:
            0 10px 24px rgba(16, 24, 40, 0.12),
            0 0 0 1px color-mix(in srgb, var(--auth-coach) 22%, transparent) inset;
}

.session-select__title {
    line-height: 1.15; /* verhindert „mehr Höhe“ durch große Zeilenhöhe */
}

.session-select__time {
    line-height: 1.15;
}


.auth-card--coach .btn-primary {
    background: var(--auth-coach);
    border-color: var(--auth-coach);
}

.auth-card--client .btn-primary {
    background: var(--auth-client);
    border-color: var(--auth-client);
}

@keyframes fade-in {
    from {
        opacity: 0;
        margin-top: 18px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        margin-top: 0;
    }
    to {
        opacity: 0;
        margin-top: 18px;
    }
}

.auth-single-main {
    position: relative;
    z-index: 1;
}

.auth-hero {
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--auth-card) 85%, var(--auth-bg) 15%) 0%,
            color-mix(in srgb, var(--auth-card) 88%, var(--auth-client) 12%) 100%);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
}

.auth-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--auth-client) 72%, var(--auth-text) 28%);
}

.auth-hero__lead {
    color: var(--auth-muted);
    font-size: 1.1rem;
    line-height: 1.45;
    max-width: 52ch;
}

.auth-trust-list li {
    display: flex;
    align-items: flex-start;
    color: color-mix(in srgb, var(--auth-text) 84%, var(--auth-muted) 16%);
    font-size: 1rem;
}

.auth-trust-list i {
    color: var(--auth-coach);
    line-height: 1.3;
    margin-top: 0.06rem;
}

.auth-login-card {
    justify-content: center;
}

.auth-login-card .auth-card__icon {
    width: 56px;
    height: 56px;
}

.auth-login-card__foot {
    border-top: 1px solid color-mix(in srgb, var(--auth-border) 80%, transparent);
    padding-top: 0.85rem;
}

@media (max-width: 991.98px) {
    .auth-hero {
        min-height: 0;
    }

    .auth-hero__lead {
        font-size: 1rem;
    }
}
