/* ==========================================================================
   Migrated from main.css (HTML5 Boilerplate custom styles)
   ========================================================================== */

/*
 * Bootstrap 5: Labels default to normal weight.
 * Required fields (marked with .required on the row) get bold labels.
 */
.col-form-label {
    font-weight: normal;
}
.required .col-form-label,
.required > label {
    font-weight: bold;
}

/*
 * Bootstrap 5 validation: Keep label colors neutral
 */
.is-invalid ~ label,
.is-valid ~ label {
    color: #333;
}

/*
 * Background image for form pages
 */
body.formular {
    background: #f5f5f7;
}

h3 {
    color: #ababab;
}

/*
 * Required Fields: red *
 * Optional fields get an invisible spacer of the same width for alignment.
 */
.col-form-label:after {
    content: " *";
    visibility: hidden;
}
.required label:after,
.required .col-form-label:after {
    content: " *";
    color: #dc3545;
    visibility: visible;
}

/*
 * Custom highlight color for <mark>
 */
mark {
    background-color: #FFFC38;
}

/*
 * Page Title and Service Telefon (extends existing .page-header)
 */

/*
 * Fieldset spacing
 */
fieldset {
    margin-top: 16px;
}

/*
 * Button bar at bottom of form pages
 */
.button-bar {
    margin-top: 24px;
    border-top: 1px solid #DFDFDF;
    padding-top: 16px;
    padding-bottom: 20px;
    text-align: right;
}
.btn-delete {
    background-color: #fef2f2;
    border-color: transparent;
    color: #dc3545;
}
.btn-delete:hover,
.btn-delete:focus {
    background-color: #fee2e2;
    border-color: transparent;
    color: #dc3545;
}

/**
 * Inline error alert (Variante 6)
 * Used for field-level validation hints that persist until resolved.
 */
.inline-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #dc3545;
    background: #fef2f2;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
}

/**
 * Info box - Page scope (Seitenhinweis, erscheint oben auf der Seite)
 * Callout style with "Hinweis" label and CI-colored left border.
 * Content may contain HTML (links, formatting) from database.
 * Hierarchy: Page (4px, gray bg, label) → Field (3px, gray bg, micro-label)
 */
.info-box-page {
    border-left: 4px solid var(--ci-color);
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}
.info-box-page-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ci-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

/**
 * Info box - Field scope (Feldhinweis, erscheint unter einem Eingabefeld)
 * Callout with micro-label, thinner border, smaller text than page scope.
 */
.info-box-field {
    border-left: 3px solid var(--ci-color);
    background: #f8f9fa;
    padding: 0.6rem 1rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #495057;
}
.info-box-field-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ci-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

/**
 * OIDC/BundID Claim-Debug-Panel (nur bei aktivem Claim-Debug, Nicht-Prod).
 * Nutzt info-box-page; hier nur Marker/Pfeil des <summary> ausblenden und Kopf klickbar machen.
 */
#oidcDebug > summary { list-style: none; cursor: pointer; }
#oidcDebug > summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   Custom styles
   ========================================================================== */

/**
 * 9.1.3.1d Inhalte gegliedert
 * Use <em> or <strong> instead of just <b>
 */
em {
    font-weight: bold;
    font-style: normal;
}

/*
 * Legend - Background Band Style
 * Groups form sections visually with gradient background
 */
legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 24px 0 20px 0;
}
legend::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ced4da;
}

legend h2 {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin: 0;
    color: #212529;
}

legend p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 4px 0 0 0;
}

/*
 * Toast notification - pure CSS slide-in from top.
 * Uses @keyframes so the animation plays on render without any JS trigger.
 * This is CSP-safe: no inline styles are set via JavaScript.
 */
@keyframes toast-slide-in {
    0% {
        transform: translateX(-50%) translateY(-150%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
@keyframes toast-slide-out {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1080;
    max-width: 80vw;
    background: #fef2f2;
    color: #dc3545;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: .875rem 1.25rem;
    font-size: .9rem;
    line-height: 1.5;
    cursor: pointer;
    /* Animation plays immediately on render - no JS needed */
    animation: toast-slide-in 0.4s ease-out both;
}
.custom-toast.toast-dismiss {
    animation: toast-slide-out 0.3s ease-in forwards;
}
.custom-toast strong {
    font-weight: 600;
}
/* prefers-reduced-motion: Toast animation is essential for UX feedback,
   kept active even with reduced motion preference. */
.form-control:focus,
.form-select:focus {
    border-color: var(--ci-color);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--ci-color) 25%, transparent);
}

/**
 * Container - white background with padding, rounded corners and shadow
 */
.container:not(.legal-bar) {
    background: white;
    padding-top: 1px; /* Prevent margin collapse */
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .container:not(.legal-bar) {
        padding-right: calc(var(--bs-gutter-x) * 2.0);
        padding-left: calc(var(--bs-gutter-x) * 2.0);
    }
}

/**
 * Page header - Bootstrap 3 style (removed in Bootstrap 5)
 */
.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
}

/**
 * Progress bar - Bootstrap 5 with label
 */
.progress {
    margin-bottom: 1.5rem;
    height: 18px;
}
.progress-bar {
    background-color: var(--ci-color);
}

/**
 * Primary button - CI color
 * Override Bootstrap 5 CSS custom properties to ensure all states use CI color.
 */
.btn-primary {
    --bs-btn-bg: var(--ci-color);
    --bs-btn-border-color: var(--ci-color);
    --bs-btn-hover-bg: color-mix(in srgb, var(--ci-color) 80%, black);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--ci-color) 80%, black);
    --bs-btn-active-bg: color-mix(in srgb, var(--ci-color) 70%, black);
    --bs-btn-active-border-color: color-mix(in srgb, var(--ci-color) 70%, black);
    --bs-btn-disabled-bg: var(--ci-color);
    --bs-btn-disabled-border-color: var(--ci-color);
    --bs-btn-focus-shadow-rgb: none;
    background-color: var(--ci-color);
    border-color: var(--ci-color);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: color-mix(in srgb, var(--ci-color) 80%, black);
    border-color: color-mix(in srgb, var(--ci-color) 80%, black);
}
.btn-primary:active {
    background-color: color-mix(in srgb, var(--ci-color) 70%, black) !important;
    border-color: color-mix(in srgb, var(--ci-color) 70%, black) !important;
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--ci-color) 25%, transparent) !important;
}

/**
 * Cookie Consent Overlay (bottom positioned, like modular-design.de)
 */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #0006;
    display: flex;
    align-items: flex-end;
}

.cookie-overlay-active {
    overflow: hidden;
}

.cookie-modal {
    width: 100%;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        margin-bottom: 1rem;
    }
}

/** 9.1.4.5a Verzicht auf Schriftgrafiken */
a {
    color: var(--ci-color);
}
a:hover {
    color: color-mix(in srgb, var(--ci-color) 70%, black);
}

.btn-link {
    color: var(--ci-color);
}
.btn-link:hover {
    color: color-mix(in srgb, var(--ci-color) 70%, black);
}

/* Meldungsart selection - Radio button style */
.option-group {
    margin-bottom: 1.5rem;
}
.option-radio {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}
.option-radio:hover {
    border-color: #ced4da;
    background: #fafbfc;
}
.option-radio.active {
    border-color: var(--ci-color);
    background: #fff;
}
.radio-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ced4da;
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.option-radio.active .radio-dot {
    border-color: var(--ci-color);
    background: var(--ci-color);
}
.radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: none;
}
.option-radio.active .radio-dot::after {
    display: block;
}
.option-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.option-content p {
    font-size: 0.9rem;
    color: #495057;
    margin: 0;
}
.option-radio.active .option-content h5 {
    color: #212529;
}

/**
 * Footer Impressum/Datenschutz links inline
 */
#impressum {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}
#impressum li:not(:last-child)::after {
    content: " |";
    margin-left: 0.5rem;
}



/**
 * Bootstrap 5 form-check compatibility
 * For inputs/labels without explicit form-check-input/form-check-label classes
 */
.form-check > input[type="radio"],
.form-check > input[type="checkbox"] {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    -webkit-appearance: none;
    print-color-adjust: exact;
    float: left;
    margin-left: -1.5em;
}

.form-check > input[type="radio"] {
    border-radius: 50%;
}

.form-check > input[type="radio"]:checked,
.form-check-input:checked[type="radio"] {
    background-color: var(--ci-color);
    border-color: var(--ci-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check > input[type="checkbox"]:checked,
.form-check-input:checked[type="checkbox"] {
    background-color: var(--ci-color);
    border-color: var(--ci-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check > label {
    display: inline-block;
}

/**
 * Legal links bar - container width, right-aligned, no background
 */
.legal-bar {
    display: flex;
    justify-content: flex-end;
    background: transparent;
    margin-top: 16px;
    margin-bottom: 8px;
}

.legal-bar a {
    color: #333;
    font-size: 0.85rem;
    text-decoration: none;
}

.legal-bar a:hover,
.legal-bar a:focus {
    color: #000;
    text-decoration: underline;
}

/* ==========================================================================
   Styles moved from inline <style> blocks (CSP nonce cleanup)
   ========================================================================== */

/* Badge font size (was inline in 6 list JSPs) */
.badge {
    font-size: 80%;
}
.badge.text-bg-primary {
    background-color: var(--ci-color) !important;
}
.badge.text-bg-warning {
    background-color: var(--ci-accent) !important;
    color: #fff !important;
}

/* Start page - chamber list */
.chamber-item {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    font-size: 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.chamber-item:hover {
    color: #fff;
}

/* Welcome page */
.welcome-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: #001789;
    margin: 0 0 8px;
}
.welcome-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
    padding: 24px 0;
}
.welcome-left {
    position: sticky;
    top: 40px;
}
.welcome-accent {
    width: 40px;
    height: 3px;
    background: #0f3942;
    border-radius: 2px;
    margin-bottom: 24px;
}
.welcome-heading {
    font-size: 2.4rem;
    font-weight: 300;
    color: #0f3942;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.welcome-subtitle {
    font-size: 1.3rem;
    color: #000;
    margin-top: 16px;
    font-weight: 400;
    line-height: 1.55;
}
.welcome-right {
    padding-top: 0;
}
.welcome-list {
    display: flex;
    flex-direction: column;
}
.welcome-list .chamber-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 0.75rem 1rem;
}
.welcome-list .chamber-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    flex-shrink: 0;
}
.welcome-list .chamber-item:last-child {
    border-bottom: none;
}
.welcome-list .chamber-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    border-color: transparent;
    color: #212529;
}
@media (max-width: 991px) {
    .welcome-split {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 0;
    }
    .welcome-left {
        position: static;
    }
    .welcome-heading {
        font-size: 1.8rem;
    }
}

/* Sublist - items with dot, type label and chevron */
.sublist-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem .75rem .875rem 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .12s ease;
}
.sublist-item:last-child { border-bottom: none; }
.sublist-item:hover { background: #f8f9fa; }
.sublist-info { flex: 1; }
.sublist-type {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ci-color);
    margin-bottom: 4px;
}
.sublist-type::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ci-color);
}
.sublist-type-accent { color: var(--ci-accent); }
.sublist-type-accent::before { background: var(--ci-accent); }
.sublist-text {
    font-size: 1rem;
    font-weight: bold;
    color: #212529;
}
.sublist-secondary {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 2px;
}
.sublist-chevron {
    color: #ced4da;
}
.sublist-item:hover .sublist-chevron {
    color: var(--ci-color);
}
.sublist-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    margin-top: .75rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all .15s ease;
}
.sublist-add:hover {
    border-color: var(--ci-color);
    color: var(--ci-color);
}

/* Field-level add link (inline, aligned to input column) */
.field-add {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ci-color);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
}
.field-add:hover {
    color: color-mix(in srgb, var(--ci-color) 70%, black);
}

/* Field-level delete link */
.field-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ci-color);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.15s ease;
}
.field-delete:hover {
    color: #dc3545;
}

/* Separator between delete and add actions */
.field-actions-separator {
    border-top: 1px solid #e9ecef;
    margin-top: 0.25rem;
    padding-top: 0;
}

/* Empty state placeholder for list pages (Wohnsitz, Tätigkeit, Qualifikation) */
.list-empty {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}
.list-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.list-empty span {
    font-size: 0.9rem;
}

/* Block separator (dashed line between repeated field groups) */
.block-separator {
    border-top: 1px dashed #ced4da;
    margin: 1.25rem 0;
}

/* Block-level add (mid-size: Berufserlaubnis, Promotion, Habilitation)
 * Dashed separator line + centered link below */
.block-add-separator {
    border-top: 1px dashed #ced4da;
    margin-top: 1rem;
    padding-top: 0.75rem;
}
.block-add {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ci-color);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
}
.block-add i {
    position: relative;
    z-index: 1;
}
@keyframes add-pulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(4); }
}
.block-add::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -5px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ci-color) 25%, transparent);
    animation: add-pulse 2s ease-out infinite;
}
.block-add:hover {
    color: color-mix(in srgb, var(--ci-color) 70%, black);
}

/* Kammerfarben (CI Colors) as CSS Custom Properties */
:root {
    /* Primary + Accent Colors per Kammer */
    --ci-080: #0f3942; --ci-080-accent: #27a69a; /* Baden-Württemberg */
    --ci-090: #067caf; --ci-090-accent: #d8edfb; /* Bayern */
    --ci-110: #00848d; --ci-110-accent: #e8544d; /* Berlin */
    --ci-130: #015D7D; --ci-130-accent: #37b0a5; /* Brandenburg */
    --ci-040: #236592; --ci-040-accent: #dd092f; /* Bremen */
    --ci-020: #1001dc; --ci-020-accent: #0eb3e9; /* Hamburg */
    --ci-060: #191970; --ci-060-accent: #222222; /* Hessen */
    --ci-120: #005192; --ci-120-accent: #dfeeee; /* Mecklenburg-Vorpommern */
    --ci-030: #029ed4; --ci-030-accent: #DEED3D; /* Niedersachsen */
    --ci-051: #79b52e; --ci-051-accent: #01315E; /* Nordrhein */
    --ci-070: #445D7D; --ci-070-accent: #f79646; /* Rheinland-Pfalz */
    --ci-100: #27967A; --ci-100-accent: #A5191D; /* Saarland */
    --ci-140: #3A7D33; --ci-140-accent: #FF4D00; /* Sachsen-Anhalt */
    --ci-160: #327ba5; --ci-160-accent: #415852; /* Sachsen */
    --ci-010: #002f65; --ci-010-accent: #D5014B; /* Schleswig-Holstein */
    --ci-150: #0069b5; --ci-150-accent: #A5191D; /* Thüringen */
    --ci-055: #009534; --ci-055-accent: #4c504f; /* Westfalen-Lippe */
    --ci-color: #0d6efd;  /* Fallback */
    --ci-accent: #0d6efd; /* Fallback */
}

/* Welcome page - chamber hover colors */
.color-080:hover { background: var(--ci-080); }
.color-090:hover { background: var(--ci-090); }
.color-110:hover { background: var(--ci-110); }
.color-130:hover { background: var(--ci-130); }
.color-040:hover { background: var(--ci-040); }
.color-020:hover { background: var(--ci-020); }
.color-060:hover { background: var(--ci-060); }
.color-120:hover { background: var(--ci-120); }
.color-030:hover { background: var(--ci-030); }
.color-051:hover { background: var(--ci-051); }
.color-070:hover { background: var(--ci-070); }
.color-100:hover { background: var(--ci-100); }

.color-140:hover { background: var(--ci-140); }
.color-160:hover { background: var(--ci-160); }
.color-010:hover { background: var(--ci-010); }
.color-150:hover { background: var(--ci-150); }
.color-055:hover { background: var(--ci-055); }

/** Page header */
.page-header h1 {
    color: var(--ci-color);
}
.page-header .subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

/* ==========================================================================
   Utility classes replacing inline style="" attributes
   ========================================================================== */

/* Logo image in page headers */
.logo-img {
    height: 70px;
    width: auto;
}

/* Sprechzeiten table labels and separators */
.sprechzeiten-label {
    line-height: 74px;
    font-weight: bold;
}
.sprechzeiten-separator {
    line-height: 74px;
    text-align: center;
}

/* Indented content block */
.indent-block {
    padding-top: 16px;
    padding-left: 26px;
}

/* Pflichtfeld warning box */
.hinweis-pflichtfeld {
    color: #dc3545;
    border-left: 4px solid #dc3545;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Wartung divider */
.wartung-divider {
    border-top: 1px solid #d5d5d5;
    margin-bottom: 14px;
}

/* Negative top margin */
.mt-n3 {
    margin-top: -16px;
}

/* Progress bar width utilities (Bootstrap 5 provides w-25, w-50, w-75, w-100) */
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }

/* Icon colors (moved from modular-commons inline styles) */
.text-tooltip-icon { color: #3E7290; }
.text-warning-icon { color: #dc3545; }

/* Negative start margin for radio button error feedback */
.ms-n4 { margin-inline-start: -2em; }

/*
 * Exit Confirmation Modal
 * Inspired by wifoe-digi-check survey close dialog
 */
.exit-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.exit-modal-body {
    padding: 2rem 1.75rem;
    text-align: center;
}
.exit-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc3545;
    margin-bottom: 1rem;
}
.exit-modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #212529;
}
.exit-modal-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 1.5rem;
}
.exit-modal-actions {
    display: flex;
    gap: 0.75rem;
}
.exit-modal-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.exit-modal-btn-cancel {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
}
.exit-modal-btn-cancel:hover {
    border-color: #adb5bd;
    color: #212529;
}
.exit-modal-btn-confirm {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
}
.exit-modal-btn-confirm:hover {
    background: #c82333;
    border-color: #c82333;
}


/**
 * BundID-Seite: Anmeldebutton und Simulationsbutton auf gleicher Breite.
 * Bewusst eine gemeinsame Mindestbreite an BEIDEN Buttons statt einer geratenen Pixelzahl
 * nur am Simulationsbutton - so bleiben sie auch dann gleich breit, wenn sich eine
 * Beschriftung aendert oder eine andere Schrift greift.
 * Hinweis: der Anmeldebutton wird dadurch etwas breiter als seine natuerliche Breite.
 */
.btn-bundid {
    min-width: 17rem;
}
