:root {
    --solvera-ink: #16343a;
    --solvera-muted: #667b7d;
    --solvera-canvas: #f4f6f3;
    --solvera-surface: #ffffff;
    --solvera-surface-soft: #edf4f2;
    --solvera-border: #d9e4e1;
    --solvera-teal-950: #073f46;
    --solvera-teal-900: #075761;
    --solvera-teal-800: #086d77;
    --solvera-teal-700: #0b7f89;
    --solvera-teal-600: #1296a0;
    --solvera-teal-500: #1da8b1;
    --solvera-warm: #d8893e;
    --solvera-shadow: 0 18px 48px rgba(21, 63, 67, 0.09);
    --solvera-shadow-soft: 0 8px 24px rgba(21, 63, 67, 0.07);
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Aptos", "Trebuchet MS", sans-serif;
    background: var(--solvera-canvas);
    color: var(--solvera-ink);
}

a, .btn-link {
    color: var(--solvera-teal-800);
}

.btn-primary {
    color: #fff;
    background-color: var(--solvera-teal-700);
    border-color: var(--solvera-teal-700);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--solvera-teal-900);
    border-color: var(--solvera-teal-900);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.8), 0 0 0 0.25rem rgba(30, 95, 174, 0.25);
}

.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;
}

.solvera-shell {
    display: flex;
    min-height: 100vh;
}

.solvera-sidebar {
    width: 268px;
    background:
        radial-gradient(circle at 12% 4%, rgba(50, 196, 198, 0.2), transparent 28%),
        linear-gradient(180deg, var(--solvera-teal-800) 0%, var(--solvera-teal-950) 100%);
    color: #fff;
    box-shadow: 8px 0 34px rgba(7, 63, 70, 0.16);
    position: sticky;
    top: 0;
    height: 100vh;
}

.solvera-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.solvera-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: space-between;
    min-height: 76px;
    padding: 0.85rem clamp(1rem, 2.2vw, 2rem);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--solvera-border);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.solvera-header-legacy {
    gap: 1rem;
}

.solvera-brand-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 160px;
}

.solvera-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--solvera-teal-600) 0%, var(--solvera-teal-900) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
}

.solvera-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--solvera-ink);
}

.solvera-brand-subtitle {
    font-size: 0.82rem;
    color: var(--solvera-muted);
}

.solvera-header-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
    max-width: 620px;
    position: relative;
}

.solvera-header-search input {
    min-height: 44px;
    padding-left: 2.6rem;
    border-radius: 14px;
    border-color: var(--solvera-border);
    background: #f4f8f7;
}

/* Der "Suchen"-Knopf bleibt als Default-Button im DOM (damit Enter im Feld
   weiterhin absendet), wird aber nicht mehr angezeigt - die Lupe im Feld
   genuegt als Hinweis. */
.solvera-header-search button[type="submit"] {
    display: none;
}

.solvera-search-glyph {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid var(--solvera-teal-700);
    border-radius: 50%;
    transform: translateY(-58%);
    z-index: 2;
}

.solvera-search-glyph::after {
    content: "";
    position: absolute;
    width: 0.45rem;
    height: 2px;
    right: -0.35rem;
    bottom: -0.18rem;
    background: var(--solvera-teal-700);
    transform: rotate(45deg);
}

.solvera-header-legacy-center {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
}

.solvera-header-legacy-center .solvera-header-search {
    max-width: none;
}

/* Mobiler Such-Icon-Link: nur auf schmalen Viewports sichtbar (siehe Mobil-Block). */
.solvera-header-search-mobile {
    display: none;
}

.solvera-header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solvera-header-meta-legacy {
    gap: 0.6rem;
}

.solvera-meta-card {
    background: #f4f7fb;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    padding: 0.65rem 0.9rem;
    min-width: 220px;
}

.solvera-meta-title {
    font-weight: 700;
    color: #20364f;
}

.solvera-meta-subtitle {
    color: #6b7d92;
    font-size: 0.85rem;
}

.solvera-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.solvera-main {
    flex: 1;
    background:
        radial-gradient(circle at 88% 6%, rgba(29, 168, 177, 0.08), transparent 24rem),
        linear-gradient(180deg, #f8faf8 0%, var(--solvera-canvas) 100%);
}

.solvera-content {
    width: min(100%, 2200px);
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 2.4rem);
}

.solvera-side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 92px;
    padding: 1.4rem 1.15rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.solvera-side-brand {
    display: flex;
    align-items: baseline;
    gap: 0.38rem;
    color: #fff;
    text-decoration: none;
}

.solvera-side-brand:hover { color: #fff; }

.solvera-side-wordmark {
    font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.solvera-side-product {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #a9e6e4;
}

/* Verbindungshinweis: standardmaessig aus. Eingeblendet wird er nur, wenn
   connection-status.js den Ausfall am <body> vermerkt - der Normalfall braucht
   keine Meldung. */
.solvera-side-session {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.82);
}

body.solvera-is-offline .solvera-side-session {
    display: inline-flex;
}

.solvera-side-status {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #f5a3a3;
    box-shadow: 0 0 0 3px rgba(245, 163, 163, 0.16);
}

/* Wiederverbindung. Die Klassen setzt Blazor, die Darstellung liegt hier: waehrend
   der Versuche der Zaehler, danach der Ausweg. Ohne Zustandsklasse - also vor dem
   ersten Ereignis - bleibt der Streifen aus. */
#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    align-items: center;
    gap: 0.6rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.5rem 0.6rem 0.5rem 0.9rem;
    border: 1px solid var(--solvera-border);
    border-radius: 999px;
    background: var(--solvera-surface);
    box-shadow: var(--solvera-shadow-soft);
    font-size: 0.82rem;
    color: var(--solvera-ink);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal .solvera-reconnect-lost,
#components-reconnect-modal #solvera-reconnect-reload {
    display: none;
}

#components-reconnect-modal #solvera-reconnect-reload {
    min-height: 32px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
}

#components-reconnect-modal:is(.components-reconnect-failed, .components-reconnect-rejected) .solvera-reconnect-retry {
    display: none;
}

#components-reconnect-modal:is(.components-reconnect-failed, .components-reconnect-rejected) .solvera-reconnect-lost {
    display: inline;
}

#components-reconnect-modal:is(.components-reconnect-failed, .components-reconnect-rejected) #solvera-reconnect-reload {
    display: inline-flex;
}

.solvera-reconnect-dot {
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #f5a3a3;
    box-shadow: 0 0 0 3px rgba(245, 163, 163, 0.16);
}

.solvera-side-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.76);
}

.solvera-side-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
    margin-top: 0.2rem;
}

.solvera-side-nav {
    padding: 1rem 0.8rem 1.5rem;
}

.solvera-tree-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.solvera-tree-group {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.solvera-tree-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.82rem 0.95rem 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.solvera-tree-summary::-webkit-details-marker {
    display: none;
}

.solvera-tree-items {
    padding: 0.35rem 0.45rem 0.55rem;
}

.solvera-tree-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.solvera-tree-icon {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 0 0 auto;
}

/* Symbolgroessen: die Kaesten stammen aus der Zeit der Buchstaben und geben ihre
   Groesse ueber die Schriftgroesse vor. Fuer die SVG-Symbole wird sie eigens gesetzt. */
.solvera-tree-icon .k-svg-icon {
    width: 1rem;
    height: 1rem;
}

.solvera-top-counter-icon .k-svg-icon {
    width: .95rem;
    height: .95rem;
}

.solvera-legacy-menu {
    position: relative;
}

.solvera-legacy-menu-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid var(--solvera-border);
    border-radius: 14px;
    background: var(--solvera-surface);
    color: var(--solvera-muted);
    font-weight: 700;
    cursor: pointer;
}

.solvera-legacy-menu-trigger:hover,
.solvera-legacy-menu[open] > .solvera-legacy-menu-trigger {
    border-color: #9dc3bc;
    background: var(--solvera-surface-soft);
    color: var(--solvera-ink);
}

.solvera-legacy-menu-trigger::-webkit-details-marker {
    display: none;
}

/* Neun-Punkte-Raster (3x3) statt Beschriftung "Menue"; der Zugaenglichkeitsname
   steckt im aria-label des Summary. Als Verlaufsraster gezeichnet, damit die
   Punkte die Textfarbe erben und kein Icon-Asset noetig ist. */
.solvera-legacy-menu-glyph {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-image: radial-gradient(currentColor 1.8px, transparent 1.9px);
    background-size: 6.6667px 6.6667px;
}

/* Aufklappen statt aufblitzen: das Panel faellt aus seiner Schaltflaeche heraus.
   Gilt fuer alle Klappmenues der Kopfleiste - Menue, Zaehler, Profil -, damit
   nebeneinanderliegende Menues sich nicht unterschiedlich verhalten.

   Nur beim Oeffnen: beim Schliessen nimmt der Browser den Inhalt des <details>
   sofort aus der Darstellung, da bleibt nichts mehr zu bewegen. */
@keyframes solvera-dropdown-panel-in {
    from {
        opacity: 0;
        transform: translateY(-0.4rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solvera-legacy-menu[open] > .solvera-legacy-menu-panel,
.solvera-header-dropdown[open] > .solvera-header-dropdown-panel,
.solvera-user-dropdown[open] > .solvera-user-panel {
    animation: solvera-dropdown-panel-in 0.18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .solvera-legacy-menu[open] > .solvera-legacy-menu-panel,
    .solvera-header-dropdown[open] > .solvera-header-dropdown-panel,
    .solvera-user-dropdown[open] > .solvera-user-panel {
        animation: none;
    }
}

.solvera-legacy-menu-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: min(980px, calc(100vw - 3rem));
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--solvera-teal-800) 0%, var(--solvera-teal-950) 100%);
    border: 1px solid rgba(18, 33, 49, 0.18);
    box-shadow: 0 24px 48px rgba(18, 33, 49, 0.22);
}

.solvera-legacy-workspace-panel {
    padding: 1rem;
    border: 1px solid #d6e5ea;
    border-radius: 14px;
    background: linear-gradient(145deg, #f7fbfc, #eaf3f6);
}

.solvera-legacy-menu-sections {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 1rem;
}

.solvera-legacy-menu-column h3 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 0.9rem;
}

.solvera-legacy-menu-column a {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    padding: 0.35rem 0;
}

.solvera-legacy-menu-column a:hover {
    color: #fff;
}

.solvera-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0.45rem 0 0.55rem;
}

.solvera-header-dropdown,
.solvera-user-dropdown {
    position: relative;
}

.solvera-header-dropdown > summary,
.solvera-user-dropdown > summary {
    list-style: none;
}

.solvera-header-dropdown > summary::-webkit-details-marker,
.solvera-user-dropdown > summary::-webkit-details-marker {
    display: none;
}

.solvera-header-dropdown-panel,
.solvera-user-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 30;
    width: 310px;
    padding: 0.9rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #d8e0ea;
    box-shadow: 0 24px 48px rgba(18, 33, 49, 0.18);
}

.solvera-header-dropdown-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64798f;
    margin-bottom: 0.55rem;
    font-weight: 700;
}

.solvera-header-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.7rem 0.1rem;
    border-top: 1px solid #edf2f7;
    color: var(--solvera-ink);
    text-decoration: none;
}

.solvera-header-dropdown-item strong {
    font-size: 0.92rem;
}

.solvera-header-dropdown-item span {
    color: #6b7d92;
    font-size: 0.84rem;
}

.solvera-header-dropdown-item:hover {
    color: #1d4f86;
}

.solvera-header-dropdown-empty {
    color: #6b7d92;
    font-size: 0.9rem;
    padding: 0.35rem 0 0.6rem;
}

.solvera-header-dropdown-footer {
    display: inline-flex;
    margin-top: 0.75rem;
    color: #1d4f86;
    text-decoration: none;
    font-weight: 600;
}

.solvera-user-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.solvera-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--solvera-teal-700) 0%, var(--solvera-teal-950) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.solvera-user-panel {
    width: 330px;
    max-height: calc(100vh - 5.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.solvera-user-panel-head {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #edf2f7;
}

.solvera-user-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.8rem 0;
}

.solvera-user-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid #edf2f7;
}

.solvera-user-panel-actions form {
    grid-column: 1 / -1;
    margin: 0;
}

.solvera-user-panel-actions form .solvera-button,
.solvera-user-panel-actions > .solvera-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    text-align: center;
    overflow-wrap: anywhere;
}

.solvera-top-counter {
    position: relative;
    min-width: 40px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 14px;
    border: 1px solid #d8e0ea;
    background: #f3f8f6;
    color: var(--solvera-ink);
    text-decoration: none;
}

.solvera-top-counter:hover {
    color: #20364f;
    border-color: #b7cce3;
    background: #f2f7fc;
}

.solvera-top-counter-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--solvera-teal-700);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.solvera-top-counter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.solvera-top-counter-value {
    min-width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .22rem;
    border-radius: 999px;
    background: #dceeed;
    color: var(--solvera-teal-900);
    font-size: .64rem;
    font-weight: 800;
}

/* Sammelpanel der Glocke: drei Gruppen untereinander, jede mit eigenem Zaehler
   und eigenem Ziel. Breiter und hoehenbegrenzt, weil dreimal so viel darin steht
   wie in den fruheren Einzelpanels. */
.solvera-inbox-panel {
    width: 360px;
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.solvera-inbox-panel section + section {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid #edf2f7;
}

.solvera-inbox-panel .solvera-header-dropdown-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.solvera-inbox-count {
    min-width: 1.1rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #dceeed;
    color: var(--solvera-teal-900);
    font-size: .64rem;
    font-weight: 800;
    text-align: center;
}

.solvera-nav-group + .solvera-nav-group {
    margin-top: 1.1rem;
}

.solvera-nav-caption {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 0.65rem 0.35rem;
}

.solvera-nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    margin: 0.15rem 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.solvera-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.solvera-nav-link.active {
    background: linear-gradient(135deg, rgba(43, 125, 221, 0.95) 0%, rgba(21, 79, 147, 0.95) 100%);
    color: #fff;
    font-weight: 600;
}

.solvera-page-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.75rem;
    padding: 0.3rem 0;
}

.solvera-page-hero.compact {
    margin-bottom: 1rem;
}

.solvera-page-hero h1 {
    margin: 0.15rem 0 0.45rem;
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    color: var(--solvera-ink);
}

.solvera-page-hero p {
    margin: 0;
    color: var(--solvera-muted);
    max-width: 850px;
}

.solvera-hero-note {
    width: 320px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #eaf4f1 100%);
    border: 1px solid var(--solvera-border);
    border-left: 4px solid var(--solvera-warm);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--solvera-muted);
    box-shadow: var(--solvera-shadow-soft);
}

.solvera-eyebrow {
    display: inline-block;
    color: var(--solvera-teal-700);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.solvera-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.solvera-launch-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem;
    min-height: 154px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--solvera-border);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--solvera-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.solvera-launch-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--solvera-shadow);
    border-color: rgba(18, 150, 160, 0.4);
}

.solvera-launch-card.primary {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.18), transparent 42%),
        linear-gradient(135deg, var(--solvera-teal-700) 0%, var(--solvera-teal-900) 100%);
    color: #fff;
    border-color: transparent;
}

.solvera-launch-card.muted {
    background: #eef3f1;
}

.solvera-launch-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
}

.solvera-launch-card p {
    margin: 0;
    color: inherit;
    opacity: 0.88;
}

.solvera-launch-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(18, 150, 160, 0.11);
    color: var(--solvera-teal-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.solvera-launch-card.primary .solvera-launch-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.solvera-toolbar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    padding: 1rem 1.15rem;
    border: 1px solid var(--solvera-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--solvera-shadow-soft);
}

.solvera-toolbar.wrap {
    flex-wrap: wrap;
}

.solvera-toolbar-field {
    min-width: 160px;
    flex: 1 1 180px;
}

.solvera-toolbar-field.grow {
    flex: 1 1 auto;
}

.solvera-toolbar-field.narrow {
    flex: 0 0 120px;
}

.solvera-toolbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.solvera-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.solvera-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #d8e0ea;
    background: #f8fbff;
    color: #35506b;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
}

.solvera-chip-active {
    background: var(--solvera-teal-700);
    border-color: var(--solvera-teal-700);
    color: #fff;
}

.solvera-chip-muted {
    background: #eef3f8;
    color: #5d748c;
}

.solvera-chip-warn {
    background: #fff4df;
    border-color: #f0d08a;
    color: #8a5b00;
}

.solvera-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    /* Die gemeinsame Schaltflaeche lag bei 43,59 Pixel und damit knapp unter dem verbindlichen
       44-Pixel-Touchziel. Belegt am Chancen-Detail auf Tablet und Smartphone. Hier statt in
       einer weiteren *-touch-action-Klasse, damit jede Seite die Zusage automatisch haelt. */
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--solvera-teal-700);
    background: var(--solvera-teal-700);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.solvera-button:hover {
    color: #fff;
    background: var(--solvera-teal-900);
    border-color: var(--solvera-teal-900);
    text-decoration: none;
}

.solvera-button-secondary {
    background: #fff;
    color: #27425c;
    border-color: #c9d6e2;
}

.solvera-button-secondary:hover {
    background: #f5f8fb;
    color: #1f354a;
    border-color: #b9c9d8;
}

.solvera-inline-search {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.solvera-inline-search input {
    min-width: 260px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cdd8e3;
    border-radius: 12px;
    background: #fff;
}

.solvera-table-subline {
    margin-top: 0.2rem;
    color: #6d8095;
    font-size: 0.88rem;
}

.solvera-actions {
    white-space: nowrap;
}

.solvera-empty {
    margin: 0;
    padding: 1.15rem;
    color: #6d8095;
}

.solvera-section-card {
    background: #fff;
    border: 1px solid var(--solvera-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--solvera-shadow-soft);
}

.solvera-stat-card {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 24px rgba(31, 47, 70, 0.05);
}

.solvera-stat-card.accent {
    background: linear-gradient(135deg, #f8fbff 0%, #edf4fb 100%);
}

.solvera-stat-card.success {
    background: linear-gradient(135deg, #f4fbf6 0%, #e6f6eb 100%);
}

.solvera-stat-card.danger {
    background: linear-gradient(135deg, #fff7f6 0%, #fde9e6 100%);
}

.solvera-stat-card-button {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 24px rgba(31, 47, 70, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.solvera-stat-card-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 47, 70, 0.08);
    border-color: #aac5e2;
}

.solvera-stat-card-button.active {
    border-color: var(--solvera-teal-600);
    box-shadow: 0 16px 32px rgba(18, 150, 160, 0.14);
    background: linear-gradient(180deg, #f7fffd 0%, #e5f4f1 100%);
}

.solvera-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6d8095;
    margin-bottom: 0.45rem;
}

.solvera-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--solvera-ink);
}

.solvera-stat-value.small-value {
    font-size: 1.1rem;
    line-height: 1.4;
}

.solvera-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    padding: 1rem 1.15rem 0;
}

.solvera-board-card {
    border: 1px solid #d8e0ea;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: left;
    color: #20364f;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.solvera-board-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 47, 70, 0.08);
    border-color: #aac5e2;
}

.solvera-board-card.active {
    border-color: var(--solvera-teal-600);
    box-shadow: 0 16px 32px rgba(18, 150, 160, 0.14);
    background: linear-gradient(180deg, #f7fffd 0%, #e5f4f1 100%);
}

.solvera-board-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #62778e;
}

.solvera-board-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d344d;
}

.solvera-board-meta {
    color: #5f748b;
    font-size: 0.92rem;
}

.solvera-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.solvera-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.solvera-message-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Rasterzellen duerfen standardmaessig nicht unter ihre Inhaltsbreite schrumpfen (min-width:auto).
   Eine lange E-Mail-Adresse oder ein langer Empfaengername sprengt dadurch die Seite waagerecht.
   Belegt am Chancen-Detail auf 768 Pixel: 38 Pixel Ueberhang aus genau dieser Zelle. */
.solvera-message-meta-grid > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.solvera-message-meta-grid strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #54677c;
}

.solvera-message-image {
    margin-bottom: 1.25rem;
}

.solvera-message-image img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid #d8e0ea;
}

.solvera-message-body {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    line-height: 1.6;
}

.solvera-message-preview {
    margin-top: 1.25rem;
    border: 1px solid #d8e0ea;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.solvera-message-preview iframe {
    width: 100%;
    min-height: 720px;
    border: 0;
}

.solvera-section-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.solvera-section-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.solvera-table {
    margin: 0;
}

.solvera-table thead th {
    background: var(--solvera-teal-800);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.76rem;
    border-bottom: 0;
}

.solvera-table td,
.solvera-table th {
    vertical-align: middle;
    padding: 0.9rem 1rem;
}

.solvera-table tbody tr:hover {
    background: #edf8f6;
}

.solvera-table tbody tr {
    border-color: #e6ecea;
}

.solvera-section-header {
    background: linear-gradient(180deg, #ffffff 0%, #f0f6f4 100%);
    border-color: var(--solvera-border);
}

.solvera-section-header h2 {
    color: var(--solvera-ink);
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
    letter-spacing: -0.01em;
}

.card {
    border: 1px solid var(--solvera-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
}

.card.shadow-sm {
    box-shadow: var(--solvera-shadow-soft) !important;
}

.card-body {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.card h2,
.card h3 {
    color: var(--solvera-teal-900);
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
}

.form-label {
    margin-bottom: 0.38rem;
    color: #456166;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.035em;
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 12px;
    border-color: #cddbd8;
    color: var(--solvera-ink);
    background-color: #fff;
}

.form-control:disabled,
.form-select:disabled {
    background: #f0f4f2;
    color: #53696d;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--solvera-teal-500);
    box-shadow: 0 0 0 0.22rem rgba(29, 168, 177, 0.14);
}

#login-language,
.solvera-login-form-wrap form[action="/auth/set-language"] button {
    min-height: 44px;
}

.btn {
    border-radius: 11px;
    font-weight: 650;
}

.article-touch-action {
    min-height: 44px !important;
}

.product-group-touch-action {
    min-height: 44px !important;
}

.calendar-touch-action {
    min-height: 44px !important;
}

.btn-outline-primary {
    color: var(--solvera-teal-800);
    border-color: var(--solvera-teal-600);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--solvera-teal-700);
    border-color: var(--solvera-teal-700);
}

.badge {
    border-radius: 999px;
    padding: 0.45em 0.7em;
    font-weight: 700;
}

/* Das eingebundene Bootstrap enthaelt die .text-bg-*-Utilities nicht, dadurch
   waren alle Badges weiss auf transparent (unsichtbar). Hier app-weit definiert
   in der Solvera-Palette und lesbar. */
.badge.text-bg-primary { color: #fff; background-color: var(--solvera-teal-800); }
.badge.text-bg-secondary { color: #fff; background-color: #5b6f71; }
.badge.text-bg-success { color: #fff; background-color: #1a7f57; }
.badge.text-bg-info { color: #fff; background-color: #1c7fa0; }
.badge.text-bg-warning { color: #6b4e00; background-color: #ffe08a; }
.badge.text-bg-danger { color: #fff; background-color: #bd4c43; }
.badge.text-bg-light { color: #2c4a4e; background-color: #eef4f2; border: 1px solid #d7e5e2; }
.badge.text-bg-dark { color: #fff; background-color: #21484d; }

.solvera-document-actions {
    position: sticky;
    top: 88px;
    z-index: 18;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.8rem;
    border: 1px solid var(--solvera-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--solvera-shadow-soft);
    backdrop-filter: blur(14px);
}

.solvera-document-actions .ms-2 {
    margin-left: 0 !important;
}

.solvera-status-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #e5f5ef;
    color: #25654f;
    border: 1px solid #c9e6dc;
    font-size: 0.78rem;
    font-weight: 800;
}

.solvera-status-pill::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #45a876;
}

.solvera-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.solvera-settings-card {
    scroll-margin-top: 110px;
    display: flex;
    gap: 1rem;
    min-height: 170px;
    padding: 1.25rem;
    border: 1px solid var(--solvera-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--solvera-shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.solvera-settings-card:target {
    border-color: var(--solvera-warm);
    box-shadow: 0 18px 48px rgba(216, 137, 62, 0.16);
}

.solvera-settings-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18,150,160,0.45);
    box-shadow: var(--solvera-shadow);
}

.solvera-settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #e6f4f2;
    color: var(--solvera-teal-800);
    font-weight: 850;
}

.solvera-settings-card h2 {
    margin: 0 0 0.4rem;
    color: var(--solvera-ink);
    font: 650 1.12rem "Bahnschrift", "Aptos Display", sans-serif;
}

.solvera-settings-card p {
    margin: 0 0 0.85rem;
    color: var(--solvera-muted);
    line-height: 1.5;
}

.solvera-settings-state {
    color: #8a663d;
    font-size: 0.76rem;
    font-weight: 750;
}

.solvera-login-layout {
    min-height: 100vh;
    background: #f3f6f3;
}

.solvera-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
}

.solvera-login-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4.8rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(120, 226, 218, 0.22), transparent 18rem),
        linear-gradient(145deg, #0a7881 0%, #075b65 48%, #073f46 100%);
}

.solvera-login-brand-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    right: -24%;
    bottom: -22%;
    border: 1px solid rgba(255,255,255,0.17);
    border-radius: 46% 54% 62% 38%;
    transform: rotate(18deg);
    box-shadow:
        0 0 0 72px rgba(255,255,255,0.025),
        0 0 0 144px rgba(255,255,255,0.018);
}

.solvera-login-brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.12;
    background-image: linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom right, transparent 5%, #000 58%, transparent 100%);
}

.solvera-login-brand,
.solvera-login-mobile-brand {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.solvera-login-wordmark {
    font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 750;
    letter-spacing: -0.075em;
}

.solvera-login-product {
    color: #a9e6e4;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.22em;
}

.solvera-login-story {
    max-width: 620px;
    margin: auto 0;
    padding: 4rem 0;
}

.solvera-login-kicker {
    display: block;
    margin-bottom: 1.2rem;
    color: #a9e6e4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.solvera-login-story h1 {
    margin: 0 0 1.4rem;
    color: #fff;
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 620;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.solvera-login-story p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.65;
}

.solvera-login-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.solvera-login-benefits div {
    min-height: 106px;
    padding: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.035);
}

.solvera-login-benefits span {
    display: block;
    margin-bottom: 1.3rem;
    color: #87d8d5;
    font: 700 0.7rem "Bahnschrift", sans-serif;
}

.solvera-login-benefits strong {
    display: block;
    max-width: 10rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.86rem;
    line-height: 1.35;
}

.solvera-login-brand-footer {
    color: rgba(255,255,255,0.52);
    font-size: 0.76rem;
}

.solvera-login-form-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(1.5rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 90% 12%, rgba(29,168,177,0.09), transparent 22rem),
        #f7f9f6;
}

.solvera-login-form-wrap {
    width: min(100%, 490px);
}

.solvera-login-mobile-brand {
    display: none;
    margin-bottom: 3rem;
    color: var(--solvera-teal-900);
}

.solvera-login-form-wrap h2 {
    margin: 0.35rem 0 0.65rem;
    color: var(--solvera-ink);
    font-family: "Bahnschrift", "Aptos Display", sans-serif;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 620;
    letter-spacing: -0.045em;
}

.solvera-login-intro {
    margin: 0 0 2.2rem;
    color: var(--solvera-muted);
}

.solvera-login-alert {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-radius: 14px;
}

.solvera-login-alert span {
    font-size: 0.88rem;
}

.solvera-login-form {
    display: grid;
    gap: 1.25rem;
}

.solvera-login-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #365459;
    font-size: 0.82rem;
    font-weight: 750;
}

.solvera-login-field .form-control {
    min-height: 56px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(21,63,67,0.04);
}

.solvera-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--solvera-muted);
    font-size: 0.8rem;
}

.solvera-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.solvera-login-help {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    text-align: right;
}

.two-factor-code-input {
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .18em;
}

.two-factor-settings {
    max-width: 1080px;
}

.two-factor-settings .solvera-section-header {
    align-items: flex-start;
    gap: 1rem;
}

.two-factor-enrollment,
.two-factor-begin-grid,
.two-factor-disable-grid {
    display: grid;
    gap: 1rem;
    max-width: 760px;
}

.two-factor-key-panel,
.two-factor-recovery-panel {
    border: 1px solid rgba(10, 102, 110, .2);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 139, 147, .08), rgba(255, 255, 255, .92));
    padding: 1rem;
}

.two-factor-key-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.two-factor-key-panel code {
    overflow-wrap: anywhere;
    color: var(--solvera-ink);
    font-size: 1rem;
    letter-spacing: .08em;
}

.two-factor-recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .65rem;
}

.two-factor-recovery-grid code {
    border-radius: 9px;
    background: #fff;
    padding: .65rem .8rem;
    color: var(--solvera-ink);
    font-size: .95rem;
    text-align: center;
}

.two-factor-stat {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin: .75rem 0 1.25rem;
}

.two-factor-stat strong {
    color: var(--solvera-primary);
    font-size: 2rem;
}

@media (min-width: 720px) {
    .two-factor-begin-grid {
        grid-template-columns: minmax(260px, 1fr) auto;
        align-items: end;
    }

    .two-factor-disable-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .two-factor-disable-grid .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 719px) {
    .two-factor-settings .btn,
    .two-factor-settings .form-control,
    .two-factor-login-page .btn,
    .two-factor-login-page .form-control {
        min-height: 44px;
    }

    .two-factor-key-panel .btn,
    .two-factor-begin-grid .btn,
    .two-factor-disable-grid .btn,
    .two-factor-enrollment .btn {
        width: 100%;
    }
}

.solvera-login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--solvera-teal-700), var(--solvera-teal-900));
    box-shadow: 0 16px 32px rgba(7,87,97,0.22);
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.solvera-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(7,87,97,0.3);
}

.solvera-login-submit span:last-child {
    font-size: 1.35rem;
}

.solvera-login-trust {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--solvera-border);
    color: var(--solvera-muted);
}

.solvera-login-trust strong,
.solvera-login-trust span {
    display: block;
}

.solvera-login-trust strong {
    margin-bottom: 0.18rem;
    color: #365459;
    font-size: 0.8rem;
}

.solvera-login-trust span {
    font-size: 0.76rem;
    line-height: 1.45;
}

.solvera-login-lock {
    position: relative;
    width: 1.7rem;
    height: 1.45rem;
    flex: 0 0 auto;
    margin-top: 0.2rem;
    border: 2px solid var(--solvera-teal-700);
    border-radius: 6px;
}

.solvera-login-lock::before {
    content: "";
    position: absolute;
    width: 0.85rem;
    height: 0.7rem;
    left: 50%;
    top: -0.72rem;
    border: 2px solid var(--solvera-teal-700);
    border-bottom: 0;
    border-radius: 0.55rem 0.55rem 0 0;
    transform: translateX(-50%);
}

@media (max-width: 980px) {
    .solvera-login-shell {
        grid-template-columns: minmax(320px, 0.8fr) minmax(440px, 1.2fr);
    }

    .solvera-login-benefits {
        grid-template-columns: 1fr;
    }

    .solvera-login-benefits div {
        min-height: auto;
    }

    .solvera-login-benefits span {
        margin-bottom: 0.45rem;
    }
}

@media (max-width: 760px) {
    .solvera-login-shell {
        display: block;
    }

    .solvera-login-brand-panel {
        display: none;
    }

    .solvera-login-form-panel {
        min-height: 100vh;
        place-items: start center;
        padding: 2rem 1.25rem;
    }

    .solvera-login-mobile-brand {
        display: flex;
    }

    .solvera-login-mobile-brand .solvera-login-wordmark {
        font-size: 2rem;
    }

    .solvera-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .solvera-login-help {
        text-align: left;
    }
}

.account-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.account-profile-list {
    margin: 0;
    padding: 1.25rem;
}

.account-profile-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--solvera-border);
}

.account-profile-list > div:last-child {
    border-bottom: 0;
}

.account-profile-list dt {
    color: var(--solvera-muted);
    font-size: 0.82rem;
}

.account-profile-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.account-confirmation {
    display: inline-flex;
    margin-left: 0.4rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #795900;
    font-size: 0.7rem;
    font-weight: 700;
}

.account-confirmation.confirmed {
    background: #dff3e8;
    color: #17613b;
}

.account-password-form {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.account-password-form .form-control {
    min-height: 48px;
}

.account-password-form .btn {
    min-height: 44px;
    justify-self: start;
}

@media (max-width: 900px) {
    .account-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .account-profile-list > div {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .account-password-form .btn {
        width: 100%;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBvdmVyZmxvdz0iaGlkZGVuIj48cGF0aCBkPSJNMjguMDEgMEw1NiA0OUgwWiIgZmlsbD0iI0ZGRTUwMCIvPjxwYXRoIGQ9Ik0yOC41IDE2QzI3LjEgMTYgMjYgMTcuMSAyNiAxOC41QzI2IDE4LjcgMjYgMTguOSAyNi4xIDE5LjFMMjcuNiAzMC41SDI5LjRMMzAuOSAxOS4xQzMxIDE4LjkgMzEgMTguNyAzMSAxOC41QzMxIDE3LjEgMjkuOSAxNiAyOC41IDE2Wk0yOC41IDM0QzI3LjIgMzQgMjYuMSAzNS4xIDI2LjEgMzYuNUMyNi4xIDM3LjkgMjcuMiAzOSAyOC41IDM5QzI5LjkgMzkgMzEgMzcuOSAzMSAzNi41QzMxIDM1LjEgMjkuOSAzNCAyOC41IDM0WiIgZmlsbD0iIzdiMjExZiIvPjwvc3ZnPg==) 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;
}

@media (min-width: 1100.01px) and (max-width: 1399.98px) {
    .solvera-header-legacy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .solvera-header-legacy-center {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-column: 1 / -1;
        width: 100%;
    }

    .solvera-header-search {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 1100px) {
    .solvera-shell {
        flex-direction: column;
    }

    .solvera-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .solvera-side-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .solvera-header {
        flex-direction: column;
        align-items: stretch;
        backdrop-filter: none;
    }

    .solvera-header-search,
    .solvera-header-meta {
        max-width: none;
        width: 100%;
    }

    .solvera-header-legacy-center {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .solvera-legacy-menu {
        display: none;
    }

    .solvera-legacy-menu-panel {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 0.75rem;
    }

    .solvera-legacy-menu-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solvera-header-meta {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .document-list-table__action .btn {
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .solvera-content {
        padding: 1rem;
    }

    .solvera-side-nav {
        grid-template-columns: 1fr;
        max-height: 55vh;
        overflow: auto;
    }

    .solvera-header-search {
        flex-wrap: wrap;
    }

    .solvera-header-search input {
        flex: 1 1 calc(100% - 3rem);
    }

    .solvera-document-actions {
        position: static;
    }

    .solvera-document-actions > * {
        flex: 1 1 100%;
        width: 100% !important;
    }

    .solvera-settings-grid {
        grid-template-columns: 1fr;
    }

    .solvera-page-hero {
        flex-direction: column;
    }

    .solvera-hero-note {
        width: auto;
    }

    .solvera-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .solvera-toolbar-actions {
        width: 100%;
    }

    .solvera-toolbar-actions .btn {
        width: 100%;
    }

    .solvera-legacy-menu-panel {
        padding: 0.75rem;
    }

    .solvera-legacy-workspace-panel {
        padding: 0.75rem;
    }

    .solvera-legacy-menu-sections {
        grid-template-columns: 1fr;
    }

    .solvera-top-counter {
        width: 100%;
    }

    .solvera-header-dropdown-panel {
        position: static;
        width: 100%;
        margin-top: 0.65rem;
    }

    .solvera-user-dropdown {
        margin-left: auto;
    }

    .solvera-user-panel {
        position: fixed;
        top: 5.25rem;
        right: 0.75rem;
        bottom: auto;
        width: min(330px, calc(100vw - 1.5rem));
        max-height: calc(100dvh - 6rem);
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .solvera-user-panel-actions {
        grid-template-columns: 1fr;
    }

    .solvera-user-panel-actions form {
        grid-column: auto;
    }
}
/* Work-item comments preserve the compact legacy conversation flow without chat bubbles. */
.solvera-comment-timeline {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.solvera-comment-item {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .85rem;
    position: relative;
}

.solvera-comment-marker {
    align-items: center;
    background: var(--solvera-accent, #c76a2b);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: .75rem;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    letter-spacing: .04em;
    width: 2.5rem;
}

.solvera-comment-content {
    background: color-mix(in srgb, var(--solvera-surface, #fff) 92%, var(--solvera-accent, #c76a2b));
    border: 1px solid var(--solvera-border, #ddd4c8);
    border-radius: .75rem;
    padding: .85rem 1rem;
}

.solvera-comment-content p {
    margin: .55rem 0 0;
    white-space: pre-wrap;
}

.solvera-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    justify-content: space-between;
}

.solvera-comment-meta span {
    color: var(--solvera-muted, #70675f);
    font-size: .82rem;
}

.solvera-comment-form {
    border-top: 1px solid var(--solvera-border, #ddd4c8);
    padding-top: 1rem;
}

.solvera-comment-attachments {
    display: grid;
    gap: .55rem;
    margin-top: .8rem;
}

.solvera-comment-attachment {
    align-items: center;
    background: color-mix(in srgb, var(--solvera-surface, #fff) 86%, var(--solvera-accent, #c76a2b));
    border: 1px solid var(--solvera-border, #ddd4c8);
    border-radius: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: space-between;
    min-width: 0;
    padding: .45rem .55rem;
}

.solvera-comment-attachment a {
    align-items: center;
    display: flex;
    flex: 1 1 14rem;
    gap: .45rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.solvera-comment-attachment small,
.solvera-comment-upload small {
    color: var(--solvera-muted, #70675f);
}

.solvera-comment-upload {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .7rem;
}

/* Keep the inventory tab actions touch-safe even if scoped CSS is not yet cached. */
.inventory-tabs > .inventory-tab {
    min-height: 44px;
}

.parcel-editor :is(.form-control, .form-select, button, .solvera-button, .btn) {
    min-height: 44px;
}

.sdi-panel :is(button, .solvera-button, .btn) {
    min-height: 45px;
}

@media (max-width: 575px) {
    .solvera-comment-item {
        grid-template-columns: 2rem minmax(0, 1fr);
        gap: .55rem;
    }

    .solvera-comment-marker {
        height: 2rem;
        width: 2rem;
    }

    .solvera-comment-content {
        padding: .75rem;
    }

    .solvera-comment-attachment,
    .solvera-comment-upload {
        align-items: stretch;
        flex-direction: column;
    }

    .solvera-comment-attachment a,
    .solvera-comment-attachment .solvera-button,
    .solvera-comment-upload .solvera-button {
        flex-basis: auto;
        min-height: 44px;
        width: 100%;
    }
}

/* Board styles stay global because the executable E2E/production host may serve
   static assets before the component-scoped bundle has been refreshed. */
[data-testid="crm-board-workspace"] .board-hero {
    align-items: flex-end;
}

[data-testid="crm-board-workspace"] .board-total {
    background: #e6f3f1;
    border-radius: 1rem;
    color: #14464b;
    display: grid;
    min-width: 10rem;
    padding: .75rem 1rem;
}

[data-testid="crm-board-workspace"] .board-total span {
    font-size: .7rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

[data-testid="crm-board-workspace"] .board-total strong { font-size: 1.7rem; }
[data-testid="crm-board-workspace"] .board-total small { font-weight: 700; }

[data-testid="crm-board-workspace"] .board-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: .8rem;
}

[data-testid="crm-board-workspace"] .board-switch {
    background: #edf3f2;
    border-radius: .75rem;
    display: flex;
    padding: .25rem;
}

[data-testid="crm-board-workspace"] .board-switch-button {
    background: transparent;
    border: 0;
    border-radius: .55rem;
    color: #3b6064;
    font-weight: 800;
    padding: .55rem .9rem;
}

[data-testid="crm-board-workspace"] .board-switch-button.active {
    background: #087f89;
    box-shadow: 0 5px 15px rgba(8, 127, 137, .2);
    color: #fff;
}

[data-testid="crm-board-workspace"] .crm-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: .25rem .1rem 1.2rem;
    scroll-snap-type: x proximity;
}

[data-testid="crm-board-workspace"] .crm-board-column {
    background: #eaf0ef;
    border: 1px solid #d5e0de;
    border-radius: 1rem;
    flex: 0 0 19rem;
    overflow: hidden;
    scroll-snap-align: start;
}

[data-testid="crm-board-workspace"] .crm-board-column > header {
    align-items: center;
    background: #f7faf9;
    border-top: 4px solid #087f89;
    display: flex;
    justify-content: space-between;
    padding: .85rem 1rem;
}

[data-testid="crm-board-workspace"] .crm-board-column > header div {
    align-items: center;
    display: flex;
    gap: .55rem;
}

[data-testid="crm-board-workspace"] .crm-board-column > header span { font-weight: 850; }
[data-testid="crm-board-workspace"] .crm-board-column > header small { color: #527075; font-weight: 700; }

[data-testid="crm-board-workspace"] .crm-board-column > header strong {
    background: #dce9e7;
    border-radius: 1rem;
    display: grid;
    height: 1.7rem;
    min-width: 1.7rem;
    place-items: center;
}

[data-testid="crm-board-workspace"] .crm-board-cards {
    align-content: start;
    display: grid;
    gap: .65rem;
    min-height: 28rem;
    padding: .7rem;
}

[data-testid="crm-board-workspace"] .crm-board-card {
    background: #fff;
    border: 1px solid #d8e2e0;
    border-left: 4px solid #0b8790;
    border-radius: .75rem;
    box-shadow: 0 8px 20px rgba(25, 69, 73, .07);
    cursor: grab;
    padding: .75rem;
    position: relative;
}

[data-testid="crm-board-workspace"] .crm-board-card.high { border-left-color: #d55245; }
[data-testid="crm-board-workspace"] .crm-board-card.medium { border-left-color: #e8a13c; }

[data-testid="crm-board-workspace"] .crm-card-open {
    background: none;
    border: 0;
    color: #173f44;
    display: grid;
    min-height: 44px;
    padding: 0;
    text-align: left;
    width: 100%;
}

[data-testid="crm-board-workspace"] .crm-card-open strong { font-size: .92rem; }
[data-testid="crm-board-workspace"] .crm-card-open span { color: #657d80; font-size: .76rem; margin-top: .2rem; }

[data-testid="crm-board-workspace"] .crm-card-meta,
[data-testid="crm-board-workspace"] .crm-card-values {
    color: #60787b;
    display: flex;
    font-size: .72rem;
    gap: .5rem;
    justify-content: space-between;
    margin-top: .65rem;
}

[data-testid="crm-board-workspace"] .crm-card-values { color: #164c52; }

[data-testid="crm-board-workspace"] .crm-card-priority {
    background: #eef3f2;
    border-radius: .4rem;
    display: inline-block;
    font-size: .68rem;
    font-weight: 800;
    margin-top: .6rem;
    padding: .18rem .42rem;
}

[data-testid="crm-board-workspace"] .crm-board-card footer {
    display: flex;
    gap: .3rem;
    justify-content: flex-end;
    margin-top: .55rem;
}

[data-testid="crm-board-workspace"] .crm-board-card footer button {
    background: #f6f9f8;
    border: 1px solid #c8d7d5;
    border-radius: .4rem;
    color: #31595d;
    display: grid;
    height: 44px;
    place-items: center;
    width: 44px;
}

[data-testid="crm-board-workspace"] .crm-board-empty {
    border: 1px dashed #b8cbc8;
    border-radius: .65rem;
    color: #72898b;
    display: grid;
    font-size: .75rem;
    min-height: 5rem;
    place-items: center;
}

@media (max-width: 760px) {
    [data-testid="crm-board-workspace"] .board-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    [data-testid="crm-board-workspace"] .board-switch,
    [data-testid="crm-board-workspace"] .solvera-inline-search { width: 100%; }
    [data-testid="crm-board-workspace"] .board-switch-button { flex: 1; }
    [data-testid="crm-board-workspace"] .crm-board-column { flex-basis: 84vw; }
}
/* Progressive disclosure: advanced controls stay in the DOM for accessibility and
   are hidden only while the authenticated user's persisted mode is Simple. */
.solvera-mode-simple .solvera-advanced-only {
    display: none !important;
}

.solvera-experience-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.solvera-experience-switch .solvera-button {
    min-height: 44px;
}

/* =====================================================================
   Mobile Kopfleiste: aufgeraeumt. Suche = Lupen-Icon, Zaehler = Icon mit
   Mini-Badge (0 ausgeblendet), alles in einer kompakten Zeile.
   Steht am Dateiende, damit es fruehere Media-Queries ueberschreibt.
   ===================================================================== */
@media (max-width: 640px) {
    .solvera-header,
    .solvera-header-legacy {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: .5rem;
        min-height: 60px;
        padding: .55rem .8rem;
    }

    .solvera-header-legacy-center {
        flex: 0 0 auto;
        width: auto;
        flex-direction: row;
    }

    /* Volle Suchleiste weg, Lupen-Icon rein */
    .solvera-header-search {
        display: none;
    }

    .solvera-header-search-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--solvera-border);
        border-radius: 12px;
        background: #f4f8f7;
    }

    /* BEFUND-6, gemessen am 2026-08-10. Die Seite meldete auf 390 Pixel eine Breite von 395,
       ohne dass ein einziges Element ueber den Rand ragte - genau die Signatur eines
       Pseudoelements, denn die zaehlen in die Scrollbreite, tauchen aber in keiner
       Elementmessung auf.

       Der Griff der Lupe ist ein absolut positioniertes ::after mit right:-0.35rem, also
       5,6 Pixel. Auf dem Mobilviewport stand die Lupe hier auf 'static' und verlor damit
       ihren Positionierungskontext; das ::after verankerte sich an der Seite selbst und ragte
       um genau diese 5,6 Pixel darueber hinaus - gemessene 395 statt 390.

       'relative' statt 'static' gibt den Kontext zurueck, ohne die Lupe selbst zu verschieben:
       ein relativ positioniertes Element bleibt an seinem Platz im Fluss. Das Aussehen ist
       damit dasselbe wie auf jedem anderen Viewport, und der Griff sitzt wieder an der Lupe
       statt am Seitenrand. */
    .solvera-header-search-mobile .solvera-search-glyph {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }

    .solvera-header-meta,
    .solvera-header-meta-legacy {
        flex: 1;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: .3rem;
    }

    /* Zaehler: nur noch Icon mit Zahl-Badge, kein Kasten */
    .solvera-top-counter {
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        position: relative;
    }

    .solvera-top-counter-icon {
        width: 2.3rem;
        height: 2.3rem;
        font-size: .9rem;
    }

    .solvera-top-counter-icon .k-svg-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .solvera-top-counter-value {
        position: absolute;
        top: -3px;
        right: -5px;
        min-width: 1.05rem;
        height: 1.05rem;
        padding: 0 .22rem;
        border-radius: 999px;
        background: #d64545;
        color: #fff;
        font-size: .66rem;
        font-weight: 800;
        line-height: 1.05rem;
        text-align: center;
    }

    /* Leere (0) Badges nicht anzeigen */
    .solvera-top-counter-value.is-empty {
        display: none;
    }

    /* Zaehler-Dropdown-Panels als Overlay statt inline */
    .solvera-header-dropdown-panel {
        position: absolute;
        right: .5rem;
        left: auto;
        width: min(320px, calc(100vw - 1rem));
        margin-top: .4rem;
    }
}

/* --- Belegdruck-Fenster (Telerik-Window mit PDF) ---------------------------
   Telerik zeichnet das Fenster ausserhalb des Komponentenbereichs, deshalb
   greifen dort keine scoped Regeln. Die Hoehenkette muss durchgaengig sein,
   sonst faellt der Rahmen auf seine Standardgroesse zurueck und bekommt eigene
   Bildlaufleisten, statt das Fenster zu fuellen. */
.unified-report-window .k-window-content {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .75rem;
    overflow: hidden;
}

.unified-report-window__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
}

.unified-report-window__frame {
    flex: 1 1 auto;
    width: 100%;
    /* Ohne min-height:0 verweigert ein Flex-Kind das Schrumpfen und waechst
       ueber den Container hinaus - das war die Ursache der inneren Scrollbalken. */
    min-height: 0;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background: #fff;
    display: block;
}

.unified-report-window__actions {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

/* Ersatzinhalt des object-Elements: greift nur, wenn der Browser das PDF nicht
   selbst anzeigen kann. Sonst zeichnet er hier seine eigene Anzeige. */
.unified-report-window__fallback {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #33514d;
}

/* Verknuepfung aus dem Aktionen-Panel: zeigt auf der Anlegeseite, woran das Neue haengt. */
.solvera-linked-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .4rem;
    margin: 0 0 .9rem;
    font-size: .82rem;
    color: #33514d;
}

.solvera-linked-context > span {
    color: #6b8c86;
}

.solvera-linked-context > strong {
    padding: .1rem .45rem;
    border: 1px solid #dbe8e6;
    border-radius: 999px;
    background: #f2f8f7;
}

/* Fenster des Aktionen-Panels: das Formular darin scrollt, das Fenster selbst nicht. */
.solvera-page-action-window .k-window-content {
    display: flex;
    flex-direction: column;
    padding: .9rem 1rem 1rem;
    overflow: auto;
}

.solvera-page-action-window .solvera-form-actions {
    margin-top: 1rem;
}

/* Shared form sections: native fieldsets provide accessible group names.
   Kept global so page, dialog and embedded editors use the same spacing. */
.solvera-form-sections {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}
fieldset.solvera-field-group {
    min-width: 0;
    margin: 0;
    padding: 1.1rem 1.25rem 1.25rem;
    border: 1px solid var(--solvera-border, #dce5e8);
    border-radius: 12px;
    background: var(--solvera-surface, #fff);
}
.solvera-field-group > legend {
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0 0 .2rem;
    padding: 0 .45rem;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--solvera-ink, #183c42);
}
.solvera-field-group > .row { margin-top: 0; }
.solvera-field-group > .row > * { min-width: 0; }
.solvera-field-group label { overflow-wrap: anywhere; }
.solvera-field-group .solvera-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.solvera-field-group .solvera-form-grid > .span-2 { grid-column: 1 / -1; }
@media (max-width: 767px) {
    fieldset.solvera-field-group { padding: .8rem .9rem 1rem; }
    .solvera-form-sections { gap: 1rem; }
    .solvera-field-group .solvera-form-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Recipient editing previously owned its outer padding inside the field grid. */
.recipient-editor .solvera-form-sections { padding: 1.25rem 1.35rem; }
.recipient-editor .solvera-field-group .recipient-editor__form {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Responsive workspaces: a horizontal flex basis must not become a tall
   empty field when the toolbar switches to a column on phones/tablets. */
.solvera-data-scroll { position: relative; max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; }
.solvera-data-scroll:focus-visible { outline: 2px solid var(--solvera-teal-600); outline-offset: 2px; }
@media (max-width: 768px) {
    .solvera-toolbar-field,
    .solvera-toolbar-field.grow,
    .solvera-toolbar-field.narrow {
        flex: 0 1 auto;
        min-width: 0;
        width: 100%;
    }
    .solvera-toolbar-actions { flex-wrap: wrap; min-width: 0; }
    .solvera-toolbar-actions > .btn { flex: 1 1 10rem; width: auto; white-space: normal; }
    .solvera-toolbar-field .form-control,
    .solvera-toolbar-field .form-select { width: 100%; max-width: 100%; }
}
@media (max-width: 640px) {
    .solvera-launch-grid:has(> .solvera-stat-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .solvera-launch-grid > .solvera-stat-card { min-width: 0; padding: .85rem; overflow-wrap: anywhere; }
    .solvera-launch-grid > .solvera-stat-card .solvera-stat-value { font-size: clamp(1.05rem, 5vw, 1.5rem); }
    .solvera-content .form-control,
    .solvera-content .form-select { font-size: 1rem; min-height: 44px; }
}

@media (max-width: 1100px) {
    .solvera-sidebar { position: relative; }
}
@media (max-width: 640px) {
    .row:has(> .col-md-3 > .solvera-stat-card) > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .row > .col-md-3 > .solvera-stat-card { padding: .85rem; overflow-wrap: anywhere; }
}

@media (max-width: 768px) {
    .solvera-section-header .solvera-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-top: .65rem;
        white-space: normal;
    }
    .solvera-section-header .solvera-actions > button,
    .solvera-section-header .solvera-actions > a { white-space: normal; max-width: 100%; }
}

@media (max-width: 640px) {
    .solvera-detail-head { flex-direction: column; }
    .solvera-detail-head > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .solvera-detail-meta { justify-content: flex-start; }
}

/* ⓘ-Hinweis (InfoHint): Erlaeuterung auf Abruf statt Fliesstext. */
.solvera-info{position:relative;display:inline-flex;vertical-align:middle;margin-left:.2rem;font-weight:400;font-size:1rem;line-height:1}
.solvera-info__button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#567075;font-size:1rem;cursor:help}
.solvera-info__button:hover,.solvera-info__button[aria-expanded=true]{background:#eaf1f0;color:#113a3f}
.solvera-info__button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.solvera-info__bubble{position:absolute;z-index:40;top:calc(100% + 6px);left:-8px;width:min(340px,80vw);padding:.65rem .8rem;border:1px solid #cddbd8;border-radius:10px;background:#fff;box-shadow:0 12px 26px rgba(17,58,63,.14);color:#20334c;font-size:.82rem;font-weight:400;line-height:1.5;text-align:left;white-space:normal}
