@font-face {
    font-family: 'IM Fell English';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/im-fell-english-v14-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'IM Fell English';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/im-fell-english-v14-latin-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/cinzel-v26-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/css/fonts/cinzel-v26-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/css/fonts/cinzel-v26-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Cinzel Decorative';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/css/fonts/cinzel-decorative-v19-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Cinzel Decorative';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/css/fonts/cinzel-decorative-v19-latin-700.woff2') format('woff2');
}

html, body {
    font-family: 'IM Fell English', Georgia, serif;
}

h1 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Für Labels, Buttons, Navigations-Beschriftungen */
.font-label {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@import "tailwindcss";

@theme {
    --color-parchment-base: #875023;
}

/* Dein bewährtes Hintergrund-Setup */
body {
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
            url('/images/neoclassical-medieval-illustration-fair.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    background-color: var(--color-parchment-base);
    margin: 0;
    padding: 0;
}

.layout-root {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

/* ── Linke Navigationsleiste ── */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;          /* Abstand zwischen den Buttons */
    z-index: 100;
    padding: 1rem 0;
}

/* ── Einzelner Bild-Button ── */
.nav-img-btn {
    display: block;
    width: 80px;
    height: 80px;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.nav-img-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Hover-Effekt: Skalierung + goldener Glow ── */
.nav-img-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.85))
    drop-shadow(0 0 4px rgba(255, 160, 20, 0.6));
}

/* ── Hauptinhalt: Platz für die fixierte Seitenleiste lassen ── */
.main-content {
    margin-left: 120px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 100vh;
}

/* ... existing code ... */

/* ══════════════════════════════════════════════════════
   RADZEN THEME OVERRIDE — Pergament & Mittelalter-Stil
   ══════════════════════════════════════════════════════ */

/* ── CSS-Variablen (gilt für alle Radzen-Komponenten) ── */
:root {
    --rz-primary:                    #875023;
    --rz-primary-dark:               #6b3d18;
    --rz-primary-light:              #a06535;
    --rz-primary-contrast:           #f5f0e8;

    --rz-secondary:                  #d6d3d1;   /* stone-300 */
    --rz-secondary-dark:             #a8a29e;
    --rz-secondary-contrast:         #292524;

    --rz-base-background-color:      transparent;
    --rz-text-color:                 #292524;   /* stone-800 */
    --rz-text-secondary-color:       #78716c;   /* stone-500 */

    --rz-border-radius:              0.375rem;
    --rz-border-color:               #d6d3d1;   /* stone-300 */

    --rz-input-background-color:     rgb(231 229 228 / 0.5);
    --rz-input-border-color:         #d6d3d1;
    --rz-input-color:                #292524;

    --rz-danger:                     #b91c1c;   /* red-700 */
    --rz-success:                    #875023; 
    --rz-warning:                    #b45309;   /* amber-700 */
    --rz-info:                       #0369a1;   /* sky-700 */
}

/* ── Alle Texteingaben (TextBox, Mask, Password, Numeric, DatePicker) ── */
.rz-textbox,
.rz-inputmask {
    background-color: rgb(231 229 228 / 0.5) !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 1rem !important;
    color: #292524 !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.rz-textbox:focus,
.rz-inputmask:focus {
    border-color: #f59e0b !important;           /* amber-500 */
    box-shadow: 0 0 0 2px rgb(245 158 11 / 0.3) !important;
}

.rz-textbox::placeholder,
.rz-inputmask::placeholder {
    color: #a8a29e !important;                  /* stone-400 */
    font-style: italic !important;
}

/* ── Input-Gruppen-Container (RadzenMask, RadzenNumeric etc.) ── */
.rz-input-group {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* ── TextArea ── */
.rz-textarea {
    background-color: rgb(231 229 228 / 0.5) !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    font-family: 'IM Fell English', Georgia, serif;
    color: #292524 !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
}

.rz-textarea:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgb(245 158 11 / 0.3) !important;
}

/* ── DropDown / Select ── */
.rz-dropdown {
    background-color: rgb(231 229 228 / 0.5) !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.375rem !important;
    font-family: 'IM Fell English', Georgia, serif;
    color: #292524 !important;
    box-shadow: none !important;
}

.rz-textbox.font-sans,
.rz-inputmask.font-sans,
.rz-dropdown.font-sans,
.rz-textarea.font-sans {
    font-family: ui-sans-serif, system-ui, sans-serif !important;
}

.rz-textbox.font-mono,
.rz-inputmask.font-mono,
.rz-textarea.font-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    letter-spacing: 0.05em;
}

.rz-dropdown:hover,
.rz-dropdown.rz-state-focused {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgb(245 158 11 / 0.3) !important;
}

.rz-dropdown-panel {
    background-color: #f5f0e8 !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}

.rz-dropdown-item:hover,
.rz-dropdown-item.rz-state-highlight {
    background-color: #875023 !important;
    color: #f5f0e8 !important;
}

/* ── Button ── */
.rz-button {
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    border-radius: 0.375rem !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.rz-button.rz-button-md.rz-variant-filled.rz-primary {
    background-color: #875023 !important;
    border-color: #875023 !important;
    color: #f5f0e8 !important;
}

.rz-button.rz-button-md.rz-variant-filled.rz-primary:hover {
    background-color: #6b3d18 !important;
    border-color: #6b3d18 !important;
    box-shadow: 0 0 8px rgba(135, 80, 35, 0.5) !important;
}

.rz-button.rz-variant-outlined {
    background-color: transparent !important;
    border: 2px solid #875023 !important;
    color: #875023 !important;
}

.rz-button.rz-variant-outlined:hover {
    background-color: #875023 !important;
    color: #f5f0e8 !important;
}

/* ── CheckBox ── */
.rz-chkbox-box {
    border: 2px solid #d6d3d1 !important;
    border-radius: 0.25rem !important;
    background-color: rgb(231 229 228 / 0.5) !important;
}

.rz-chkbox-box.rz-state-active {
    background-color: #875023 !important;
    border-color: #875023 !important;
}

/* ── Radio Button ── */
.rz-radiobutton-box {
    border: 2px solid #d6d3d1 !important;
    background-color: rgb(231 229 228 / 0.5) !important;
}

.rz-radiobutton-box.rz-state-active {
    border-color: #875023 !important;
}

.rz-radiobutton-box.rz-state-active .rz-radiobutton-icon {
    background-color: #875023 !important;
}

/* ── Slider ── */
.rz-slider-range {
    background-color: #875023 !important;
}

.rz-slider-handle {
    border-color: #875023 !important;
    background-color: #f5f0e8 !important;
}

/* ── DataGrid / Tabelle ── */
.rz-datatable {
    font-family: 'IM Fell English', Georgia, serif !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.375rem !important;
    overflow: hidden !important;
}

.rz-datatable-thead th {
    background-color: #875023 !important;
    color: #f5f0e8 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    border-color: #6b3d18 !important;
}

.rz-datatable-tbody tr:nth-child(even) {
    background-color: rgb(231 229 228 / 0.3) !important;
}

.rz-datatable-tbody tr:hover {
    background-color: rgb(135 80 35 / 0.15) !important;
}

/* ── Notifications / Alerts ── */
.rz-notification {
    font-family: 'IM Fell English', Georgia, serif !important;
    border-radius: 0.375rem !important;
}

.rz-notification-success .rz-notification-item {
    color: #f5f0e8 !important;
    background-color: #875023 !important;
    border: 1px solid #6b3d18 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.rz-notification-success .rz-notification-item *,
.rz-notification-success .rz-notification-close {
    color: #f5f0e8 !important;
}

/* ── Dialog / Modal ── */
.rz-dialog {
    background-color: #f5f0e8 !important;
    border-radius: 0.5rem !important;
    border: 1px solid #d6d3d1 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
    font-family: 'IM Fell English', Georgia, serif !important;
}

.rz-dialog-titlebar {
    background-color: #875023 !important;
    color: #f5f0e8 !important;
    font-family: 'Cinzel', serif !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* ── Tabs ── */
.rz-tabview-nav li.rz-tabview-selected a {
    border-bottom-color: #875023 !important;
    color: #875023 !important;
    font-family: 'Cinzel', serif !important;
}

.rz-tabview-nav li a {
    font-family: 'Cinzel', serif !important;
    color: #78716c !important;
}

/* ── Panel / Card ── */
.rz-panel {
    background-color: rgb(245 240 232 / 0.85) !important;
    border: 1px solid #d6d3d1 !important;
    border-radius: 0.5rem !important;
}

.rz-panel-titlebar {
    background-color: #875023 !important;
    color: #f5f0e8 !important;
    font-family: 'Cinzel', serif !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.multi-line-message {
    white-space: pre-line;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
    margin-bottom: 0.8em;
    letter-spacing: 1px;
}
/* 1. Der äußere Rahmen und der Grund-Hintergrund */
.rz-tooltip.rz-popup {
    background-color: #3b1f0a !important;
    border: 1px solid #875023 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    padding: 0 !important; /* Verhindert hässliche Ränder um den Content */
}

/* 2. Der Inhalts-Container (Der Übeltäter für die Farbe) */
.rz-tooltip-content {
    background-color: transparent !important; /* Lässt den Hintergrund von oben durchscheinen */
    padding: 0.5rem 0.75rem !important;
}

/* 3. Der Text im tiefsten Div */
.rz-tooltip-content > div {
    color: #f4ddb7 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

/* 4. Der Pfeil (da er laut deiner Klasse 'rz-right-tooltip-content' rechts ist) */
.rz-tooltip.rz-popup .rz-tooltip-arrow {
    border-right-color: #875023 !important; /* Passt den Pfeil an den Rahmen an */
}

.terms-page {
    font-family: Arial, Helvetica, sans-serif !important;
}

.terms-page .terms-heading {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    font-weight: 400 !important;
    color: #1c1917 !important;
    text-align: left !important;
    letter-spacing: normal !important;
    margin-bottom: 0 !important;
}

.terms-page .terms-subheading {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
    font-weight: 300 !important;
    color: #1c1917 !important;
    text-align: left !important;
    letter-spacing: normal !important;
    margin-bottom: 0.5rem !important;
}
