/*
 * Minimale Styles für Identity-/Account-Razor-Seiten (Bootstrap-Klassennamen),
 * ohne Bootstrap-Reboot — damit MudBlazor-Layout (AppBar, Drawer) unverändert bleibt.
 */

/* Schlankes Layout nur für /Account/* (ohne Hauptnavigation) */
.account-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f6f8;
    font-family: Roboto, system-ui, sans-serif;
}

.account-layout-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.account-layout-brand {
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
}

.account-layout-brand:hover {
    color: #fff;
    text-decoration: none;
}

.account-layout-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
}

.account-layout-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
}

.account-layout-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.account-layout-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 18px 48px;
    box-sizing: border-box;
}

.text-danger {
    color: #b00020;
}

.text-secondary {
    color: #6c757d;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.w-100 {
    width: 100% !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

/* —— Grid (wie Bootstrap-Grid, nur für Account-Markup) —— */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.row > [class*="col-"] {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .row > .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .row > .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .row > .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .row > .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .row > .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .row > .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .row > .col-lg-offset-2 {
        margin-left: 16.66666667%;
    }
}

@media (min-width: 1200px) {
    .row > .col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* —— Formular —— */
.form-label {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* —— Buttons —— */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    box-sizing: border-box;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

.btn-link {
    font-weight: 400;
    color: #0d6efd;
    background-color: transparent;
    border: 0;
    text-decoration: underline;
}

/* —— Alerts —— */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-danger {
    color: #58151c;
    background-color: #f8d7da;
    border-color: #f1aeb5;
}

/* Manage-Bereich */
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

.form-horizontal .btn {
    margin: 0.25rem;
}
