/* ── Self-hosted variable fonts ── */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/fonts/CormorantGaramond-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

html { scroll-behavior: smooth; }

/* ── Design tokens ── */
:root {
    --rose:     #A0525A;
    --rose-lt:  #C97B84;
    --rose-dk:  #8A3B42;
    --mocha:    #4E3535;
    --mocha-dk: #3D2525;
    --mocha-xd: #1C1010;
    --ivory:    #FBF6EE;
    --ivory-2:  #F2E8E1;
    --warm-drk: #2C1A1A;
}

/* ── Shared auth page styles (Anmelden / Registrieren) ── */
.auth-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #d1c4c4;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fff;
    color: var(--mocha-dk);
}
.auth-input:focus,
.auth-input:focus-visible {
    outline: none !important;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(160,82,90,0.12);
}
.auth-select {
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 0.85rem;
    border: 1px solid #d1c4c4;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234E3535' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
    cursor: pointer;
    color: var(--mocha);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    accent-color: var(--rose);
}
.auth-select:focus,
.auth-select:focus-visible {
    outline: none !important;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(160,82,90,0.12);
}
.auth-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s;
    font-family: inherit;
}
.auth-btn:hover { background: var(--rose-dk); }

/* ── Password show/hide toggle ── */
.pw-wrap { position: relative; }
.pw-wrap > .auth-input { padding-right: 2.75rem; }
.pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: var(--mocha);
    opacity: 0.55;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.pw-toggle:hover { opacity: 1; }

/* ── Minimal resets so Tailwind utilities work without its full preflight
   (preflight is off to avoid conflicts with Bootstrap in the admin panel) ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

a {
    text-decoration: none;
    color: inherit;
}

h1:focus {
    outline: none;
}

/* ── Admin login — Tanzschule theme ── */
.admin-login-wrap {
    background: #2C1A1A !important;
    background-image: radial-gradient(ellipse at 60% 40%, rgba(160,82,90,0.2) 0%, transparent 60%) !important;
}
.admin-login-card {
    border-radius: 0 !important;
    border-color: rgba(160,82,90,0.2) !important;
}
.admin-login-card-top {
    background: linear-gradient(90deg, #A0525A, #C97B84) !important;
}
.admin-login-brand {
    color: #A0525A !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}
.admin-login-title {
    color: #3D2525 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
}
/* Extra class (.btn) raises specificity above Core's admin.css rules */
.admin-login-wrap .btn.btn-primary {
    background-color: #A0525A !important;
    border-color: #A0525A !important;
    box-shadow: none !important;
}
.admin-login-wrap .btn.btn-primary:hover,
.admin-login-wrap .btn.btn-primary:focus,
.admin-login-wrap .btn.btn-primary:active {
    background-color: #8A3B42 !important;
    border-color: #8A3B42 !important;
    box-shadow: none !important;
}
.admin-login-wrap .form-control {
    border: 1px solid rgba(78,53,53,0.25) !important;
}
.admin-login-wrap .form-control:focus {
    border-color: #A0525A !important;
    box-shadow: 0 0 0 3px rgba(160,82,90,0.15) !important;
}

/* ── User dropdown menu item ── */
/* ── Settings / account form label ── */
.settings-label {
    display: block;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A0525A;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* ── User dropdown menu item ── */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(251,246,238,0.65);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.user-menu-item:hover {
    color: #C97B84;
    background: rgba(160,82,90,0.08);
}

/* ── Blazor error UI ── */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}
