@charset "UTF-8";
/* Hausverwaltung Design System — Inter loaded via <link> in master pages */

:root {
    --hv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hv-bg: #f1f5f9;
    --hv-surface: #ffffff;
    --hv-border: #e2e8f0;
    --hv-border-light: #f1f5f9;
    --hv-text: #0f172a;
    --hv-text-muted: #64748b;
    --hv-text-light: #94a3b8;
    --hv-accent: #2563eb;
    --hv-accent-hover: #1d4ed8;
    --hv-accent-soft: #eff6ff;
    --hv-sidebar-bg: #0f172a;
    --hv-sidebar-border: rgba(255, 255, 255, 0.06);
    --hv-sidebar-text: #cbd5e1;
    --hv-sidebar-text-muted: #64748b;
    --hv-sidebar-hover: rgba(255, 255, 255, 0.06);
    --hv-sidebar-active: rgba(37, 99, 235, 0.18);
    --hv-sidebar-width: 272px;
    --hv-topbar-height: 56px;
    --hv-radius: 10px;
    --hv-radius-sm: 8px;
    --hv-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --hv-shadow-md: 0 4px 24px rgba(15, 23, 42, 0.12);
    --hv-shadow-sidebar: 4px 0 24px rgba(15, 23, 42, 0.08);
    --hv-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--hv-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--hv-text);
    background: var(--hv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset legacy ASP.NET template / bootstrap remnants */
body.hv-body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.hv-sidebar-open {
    overflow: hidden;
}

.hv-app a {
    color: inherit;
}

input, select, textarea, button {
    max-width: none;
    font-family: inherit;
}

/* App shell */
.hv-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.hv-sidebar {
    width: var(--hv-sidebar-width);
    background: var(--hv-sidebar-bg);
    border-right: 1px solid var(--hv-sidebar-border);
    box-shadow: var(--hv-shadow-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transition: transform var(--hv-transition);
}

.hv-sidebar-header {
    padding: 20px 16px 18px;
    border-bottom: 1px solid var(--hv-sidebar-border);
    flex-shrink: 0;
}

.hv-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hv-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.hv-brand-logo {
    display: block;
    height: 30px;
    width: auto;
    max-width: 132px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hv-brand-text {
    min-width: 0;
}

.hv-logo {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.025em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-logo-sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--hv-sidebar-text-muted);
    margin-top: 1px;
    letter-spacing: 0.01em;
}

.hv-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.hv-nav::-webkit-scrollbar {
    width: 5px;
}

.hv-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.hv-nav-section {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hv-sidebar-text-muted);
    padding: 16px 10px 6px;
    user-select: none;
}

.hv-nav-section:first-child {
    padding-top: 8px;
}

.hv-nav a,
.hv-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: var(--hv-radius-sm);
    color: var(--hv-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.35;
    border: 1px solid transparent;
    transition: background var(--hv-transition), color var(--hv-transition), border-color var(--hv-transition);
}

.hv-nav a:hover,
.hv-nav-link:hover {
    background: var(--hv-sidebar-hover);
    color: #f1f5f9;
    text-decoration: none;
}

.hv-nav a:focus-visible,
.hv-nav-link:focus-visible {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hv-nav a.active,
.hv-nav-link.active {
    background: var(--hv-sidebar-active);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.25);
    font-weight: 600;
}

.hv-nav a.active .hv-nav-icon,
.hv-nav-link.active .hv-nav-icon {
    opacity: 1;
}

.hv-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 13px;
    line-height: 1;
    opacity: 0.75;
    flex-shrink: 0;
}

.hv-sidebar-footer {
    padding: 12px 12px 16px;
    border-top: 1px solid var(--hv-sidebar-border);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hv-sidebar-footer a,
.hv-sidebar-footer input[type="submit"] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--hv-radius-sm);
    color: var(--hv-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--hv-transition), color var(--hv-transition);
}

.hv-sidebar-footer a:hover,
.hv-sidebar-footer input[type="submit"]:hover {
    background: var(--hv-sidebar-hover);
    color: #f1f5f9;
}

.hv-user-info {
    padding: 6px 12px 10px;
    font-size: 11px;
    color: var(--hv-sidebar-text-muted);
    margin-bottom: 2px;
}

.hv-user-info strong {
    display: block;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main area */
.hv-main {
    flex: 1;
    margin-left: var(--hv-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hv-topbar {
    height: var(--hv-topbar-height);
    background: var(--hv-surface);
    border-bottom: 1px solid var(--hv-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
}

.hv-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.hv-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 36px;
    height: 32px;
    padding: 0 6px;
    border-radius: var(--hv-radius-sm);
    border: 1px solid var(--hv-border);
    background: var(--hv-surface);
    color: var(--hv-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background var(--hv-transition), color var(--hv-transition), border-color var(--hv-transition), box-shadow var(--hv-transition);
}

.hv-lang-btn.hv-lang-flag {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
}

.hv-lang-flag-img {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.hv-lang-flag-code {
    display: none;
}

@media (max-width: 640px) {
    .hv-lang-btn.hv-lang-flag {
        min-width: 36px;
        width: 36px;
        height: 36px;
    }

    .hv-lang-flag-img {
        width: 22px;
        height: 14px;
    }
}

.hv-lang-btn:hover {
    color: var(--hv-text);
    border-color: #cbd5e1;
    background: var(--hv-border-light);
}

.hv-lang-btn.hv-lang-active {
    color: var(--hv-primary);
    border-color: var(--hv-primary);
    background: rgba(37, 99, 235, 0.08);
}

.hv-login-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 24px 0;
    max-width: 480px;
    margin: 0 auto;
}

.hv-body-login .hv-login-page {
    padding-top: 8px;
}

.hv-topbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--hv-surface);
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius-sm);
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--hv-text-muted);
    margin-right: 12px;
    transition: background var(--hv-transition), border-color var(--hv-transition), color var(--hv-transition);
}

.hv-topbar-toggle:hover {
    background: var(--hv-border-light);
    color: var(--hv-text);
    border-color: #cbd5e1;
}

.hv-topbar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hv-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hv-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.hv-content {
    flex: 1;
    padding: 24px;
    max-width: 1280px;
}

/* Cards */
.hv-card {
    background: var(--hv-surface);
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow);
    padding: 24px;
}

.hv-card + .hv-card {
    margin-top: 16px;
}

.hv-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--hv-text);
}

.hv-card-subtitle {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin: 0 0 20px;
}

/* Dashboard grid */
.hv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hv-stat-card {
    background: var(--hv-surface);
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    padding: 20px;
    box-shadow: var(--hv-shadow);
}

.hv-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--hv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hv-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--hv-text);
    margin-top: 4px;
    letter-spacing: -0.02em;
}

.hv-stat-value.placeholder {
    color: var(--hv-text-light);
}

.hv-stat-value.hv-stat-warning {
    color: #dc2626;
}

.hv-stat-sub {
    font-size: 12px;
    color: var(--hv-text-muted);
    margin-top: 4px;
}

a.hv-stat-link {
    text-decoration: none;
    color: inherit;
    transition: border-color var(--hv-transition), box-shadow var(--hv-transition);
}

a.hv-stat-link:hover {
    border-color: var(--hv-accent);
    box-shadow: var(--hv-shadow-md);
}

.hv-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hv-card-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hv-text-right {
    text-align: right;
}

/* Placeholder module page */
.hv-placeholder {
    text-align: center;
    padding: 48px 24px;
}

.hv-placeholder-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.hv-placeholder h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}

.hv-placeholder p {
    color: var(--hv-text-muted);
    max-width: 420px;
    margin: 0 auto;
    font-size: 14px;
}

/* Forms */
.hv-form-group {
    margin-bottom: 16px;
}

.hv-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--hv-text);
    margin-bottom: 6px;
}

.hv-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius-sm);
    font-size: 14px;
    color: var(--hv-text);
    background: var(--hv-surface);
    transition: border-color var(--hv-transition), box-shadow var(--hv-transition);
}

.hv-input:focus {
    outline: none;
    border-color: var(--hv-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--hv-radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--hv-transition), box-shadow var(--hv-transition);
}

.hv-btn-primary {
    background: var(--hv-accent);
    color: #fff;
}

.hv-btn-primary:hover {
    background: var(--hv-accent-hover);
}

.hv-btn-ghost {
    background: transparent;
    color: var(--hv-text-muted);
    border: 1px solid var(--hv-border);
}

.hv-btn-ghost:hover {
    background: var(--hv-border-light);
    color: var(--hv-text);
}

.hv-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hv-text-muted);
}

.hv-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Login page */
.hv-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hv-bg);
    padding: 24px;
}

.hv-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--hv-surface);
    border: 1px solid var(--hv-border);
    border-radius: 12px;
    box-shadow: var(--hv-shadow-md);
    padding: 40px 36px;
}

.hv-login-card--wide {
    width: 100%;
    min-width: 0;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.hv-registrierung-wrap {
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding-top: 32px;
    padding-bottom: 48px;
}

@media (max-width: 640px) {
    .hv-registrierung-wrap {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .hv-registrierung-wrap .hv-login-card--wide {
        width: 100%;
        min-width: 0;
        padding: 28px 20px;
    }
}

.hv-login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.hv-login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin: 0 auto 12px;
}

.hv-login-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
}

.hv-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--hv-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hv-login-divider::before,
.hv-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--hv-border);
}

.hv-btn-google {
    background: #fff;
    color: #1f2937;
    border: 1px solid var(--hv-border);
    font-weight: 600;
}

.hv-btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hv-app--platform .hv-sidebar-header {
    border-bottom-color: rgba(197, 0, 106, 0.35);
}

.hv-app--platform .hv-nav-section:first-of-type {
    color: #f9a8d4;
}

.hv-login-brand p {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin: 0;
}

.hv-login-form .hv-form-group:last-of-type {
    margin-bottom: 24px;
}

/* Alerts */
.hv-alert {
    padding: 12px 16px;
    border-radius: var(--hv-radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.hv-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.hv-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hv-alert-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.hv-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Trial banner (Mandant dashboard) */
.hv-trial-banner {
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: var(--hv-radius-sm);
    font-size: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.hv-trial-banner--warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.hv-trial-banner a {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

/* Section header */
.hv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.hv-section-header .hv-card-title {
    margin: 0;
}

.hv-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hv-accent-soft);
    color: var(--hv-accent);
    font-size: 12px;
    font-weight: 600;
}

.hv-badge-muted {
    background: var(--hv-surface-elevated, #eef1f5);
    color: var(--hv-text-muted, #5c6570);
}

.hv-badge-primary {
    background: rgba(197, 0, 106, 0.12);
    color: #c5006a;
}

.hv-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.hv-input-group .hv-input {
    flex: 1;
}

/* Form grid */
.hv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.hv-form-grid-compact {
    margin-bottom: 12px;
}

.hv-form-group-full {
    grid-column: 1 / -1;
}

.hv-form-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hv-text);
    margin: 16px 0 8px;
}

.hv-input-plz,
.hv-form-group-plz .hv-input {
    max-width: 120px;
}

.hv-form-group-hausnr .hv-input {
    max-width: 100px;
}

/* Objekt list */
.hv-objekt-card {
    margin-top: 12px;
}

.hv-objekt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.hv-objekt-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.hv-objekt-meta {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin: 0;
}

.hv-objekt-note {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin: 0 0 12px;
    padding: 8px 12px;
    background: var(--hv-border-light);
    border-radius: var(--hv-radius-sm);
}

.hv-details {
    margin-top: 12px;
    border-top: 1px solid var(--hv-border-light);
    padding-top: 12px;
}

.hv-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--hv-accent);
    user-select: none;
}

.hv-details[open] summary {
    margin-bottom: 12px;
}

.hv-einheit-form {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--hv-border);
}

.hv-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* Table */
.hv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 8px;
}

.hv-table th,
.hv-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--hv-border-light);
}

.hv-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hv-text-muted);
}

.hv-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty states */
.hv-empty-state {
    text-align: center;
    color: var(--hv-text-muted);
}

.hv-empty-state code {
    font-size: 12px;
    background: var(--hv-border-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.hv-empty-inline {
    font-size: 13px;
    color: var(--hv-text-muted);
    padding: 8px 0;
}

.hv-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hv-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hv-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hv-input-sm {
    width: auto;
    min-width: 100px;
}

.hv-btn-secondary {
    background: var(--hv-surface);
    color: var(--hv-text);
    border: 1px solid var(--hv-border);
}

.hv-btn-secondary:hover {
    background: var(--hv-border-light);
}

.hv-badge-success {
    background: #dcfce7;
    color: #166534;
}

.hv-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.hv-badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.hv-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Plausibilitätsprüfung */
.hv-plaus-widget {
    margin-bottom: 16px;
}

.hv-plaus-dashboard {
    border-left: 4px solid var(--hv-accent, #c5006a);
}

.hv-plaus-details > summary {
    list-style: none;
    cursor: pointer;
}

.hv-plaus-details > summary::-webkit-details-marker {
    display: none;
}

.hv-plaus-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hv-plaus-summary-title {
    font-weight: 600;
    font-size: 15px;
}

.hv-plaus-chevron {
    margin-left: auto;
    color: var(--hv-text-muted);
    font-size: 12px;
}

.hv-plaus-details-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--hv-border, #e5e7eb);
}

.hv-plaus-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hv-plaus-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.hv-plaus-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hv-plaus-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hv-plaus-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hv-plaus-page-badge {
    margin-left: 8px;
    vertical-align: middle;
    font-size: 11px;
}

.hv-text-muted {
    color: var(--hv-text-muted);
    font-size: 12px;
}

.hv-text-positive {
    color: #166534;
    font-weight: 600;
}

.hv-text-negative {
    color: #b91c1c;
    font-weight: 600;
}

.hv-details-inline {
    margin-top: 0;
}

.hv-table-compact th,
.hv-table-compact td {
    padding: 6px 10px;
}

.hv-media-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.hv-media-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hv-border-light);
    flex-wrap: wrap;
}

.hv-media-item:last-child {
    border-bottom: none;
}

.hv-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.hv-badge-success {
    background: #dcfce7;
    color: #166534;
}

.hv-mb-sm { margin-bottom: 12px; }
.hv-mt-sm { margin-top: 12px; }
.hv-ml-sm { margin-left: 8px; }

.hv-input-readonly {
    display: block;
    padding: 8px 12px;
    background: var(--hv-border-light);
    border-radius: var(--hv-radius-sm);
    color: var(--hv-text-muted);
}

.hv-link-sm {
    font-size: 12px;
}

.hv-nk-chart {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.hv-nk-bar-group {
    flex: 1;
    min-width: 140px;
}

.hv-nk-bar {
    height: 12px;
    border-radius: 6px;
    min-width: 4px;
    max-width: 100%;
    transition: width var(--hv-transition);
}

.hv-nk-bar-voraus {
    background: var(--hv-accent);
}

.hv-nk-bar-ist {
    background: #f59e0b;
}

.hv-nk-bar-label {
    display: block;
    font-size: 12px;
    color: var(--hv-text-muted);
    margin-top: 6px;
}

.hv-nk-bar-value {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

@media (max-width: 768px) {
    .hv-form-grid {
        grid-template-columns: 1fr;
    }

    .hv-objekt-header {
        flex-direction: column;
    }
}

/* Validation */
.hv-field-error,
.text-danger,
.field-validation-error {
    color: #dc2626 !important;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.hv-hint {
    display: block;
    font-size: 12px;
    color: var(--hv-text-muted);
    margin-top: 4px;
}

/* Hinweis, der eine Nutzerentscheidung erfordert - deutlich abgesetzt vom
   neutralen Hinweistext, damit er nicht uebersehen wird. */
.hv-hint-warn {
    color: #92400e;
    font-weight: 600;
}

/* Steuern & Versicherung: Steuerbescheid-Formular – volle Kartenbreite, PDF/Hinweise lesbar */
.hv-card-steuerbescheid-form .hv-form-grid {
    gap: 0 24px;
}

.hv-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}

.hv-buchen-form .hv-input-verteilung {
    min-width: 220px;
}

.hv-app-footer {
    margin-top: auto;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--hv-border);
    background: var(--hv-surface);
}

.hv-app-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--hv-text-muted);
    text-align: center;
}

.hv-app-footer a {
    color: var(--hv-primary);
    text-decoration: none;
}

.hv-app-footer a:hover {
    text-decoration: underline;
}

.hv-checkbox-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Mobile sidebar */
.hv-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    transition: opacity var(--hv-transition);
}

.hv-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .hv-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--hv-shadow-md);
    }

    .hv-sidebar.open {
        transform: translateX(0);
    }

    .hv-main {
        margin-left: 0;
    }

    .hv-topbar-toggle {
        display: inline-flex;
    }

    .hv-content {
        padding: 16px;
    }

    .hv-topbar {
        padding: 0 16px;
    }
}

/* Kostenart-Recht Modal */
.hv-recht-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--hv-border, #e2e8f0);
    border-radius: 50%;
    background: var(--hv-bg-muted, #f8fafc);
    color: var(--hv-text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
}

.hv-recht-info-btn:hover {
    background: var(--hv-primary-soft, #eff6ff);
    color: var(--hv-primary, #2563eb);
    border-color: var(--hv-primary, #2563eb);
}

.hv-recht-info-btn-inline {
    margin-left: 6px;
    vertical-align: middle;
}

.hv-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hv-modal.open {
    display: flex;
}

body.hv-modal-open {
    overflow: hidden;
}

.hv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.hv-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--hv-surface, #fff);
    border-radius: 12px;
    box-shadow: var(--hv-shadow-md, 0 10px 40px rgba(0,0,0,.15));
    max-height: 90vh;
    overflow: auto;
}

.hv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hv-border, #e2e8f0);
}

.hv-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.hv-modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--hv-text-muted);
    padding: 0 4px;
}

.hv-modal-body {
    padding: 16px 20px 20px;
}

.hv-recht-dl {
    margin: 0 0 12px;
}

.hv-recht-dl dt {
    font-size: 12px;
    font-weight: 600;
    color: var(--hv-text-muted);
    margin-top: 10px;
}

.hv-recht-dl dt:first-child {
    margin-top: 0;
}

.hv-recht-dl dd {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Split layout + PDF viewer */
.hv-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
    gap: 20px;
    align-items: start;
}

.hv-split-main {
    min-width: 0;
}

.hv-pdf-viewer-panel {
    position: sticky;
    top: calc(var(--hv-topbar-height) + 16px);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: calc(100vh - var(--hv-topbar-height) - 32px);
    background: var(--hv-surface);
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow);
    overflow: hidden;
}

.hv-pdf-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hv-border);
    background: var(--hv-bg);
}

.hv-pdf-viewer-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hv-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hv-pdf-viewer-body {
    position: relative;
    flex: 1;
    min-height: 360px;
    background: #f8fafc;
}

.hv-pdf-viewer-empty,
.hv-pdf-viewer-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 360px;
    padding: 24px;
    text-align: center;
    color: var(--hv-text-muted);
    font-size: 14px;
}

.hv-pdf-viewer-frame {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: none;
    background: #fff;
}

.hv-table tr.hv-pdf-row {
    cursor: pointer;
}

.hv-table tr.hv-pdf-row:hover td {
    background: var(--hv-accent-soft);
}

.hv-table tr.hv-pdf-row.hv-row-selected td {
    background: var(--hv-accent-soft);
}

.hv-pdf-view-link,
.hv-doc-view-link {
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .hv-split-layout {
        grid-template-columns: 1fr;
    }

    .hv-pdf-viewer-panel {
        position: static;
        max-height: 70vh;
        order: 2;
    }

    .hv-split-main {
        order: 1;
    }
}

/* Hilfe & FAQ page */
.hv-hilfe-header { margin-bottom: 16px; }
.hv-hilfe-search-wrap { margin-top: 16px; }
.hv-hilfe-search { max-width: 480px; width: 100%; }
.hv-hilfe-kategorien {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.hv-hilfe-kat {
    padding: 6px 14px;
    border: 1px solid var(--hv-border);
    border-radius: 999px;
    background: var(--hv-surface);
    font-size: 13px;
    cursor: pointer;
    transition: var(--hv-transition);
}
.hv-hilfe-kat:hover, .hv-hilfe-kat.active {
    background: var(--hv-accent-soft);
    border-color: var(--hv-accent);
    color: var(--hv-accent);
}
.hv-hilfe-artikel-list { display: flex; flex-direction: column; gap: 12px; }
.hv-hilfe-item {
    background: var(--hv-surface);
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    padding: 16px 20px;
    transition: var(--hv-transition);
}
.hv-hilfe-item.hv-hilfe-highlight {
    border-color: #c5006a;
    box-shadow: 0 0 0 2px rgba(197, 0, 106, 0.15);
}
.hv-hilfe-item-title { margin: 0 0 6px; font-size: 16px; }
.hv-hilfe-item-kurz { margin: 0 0 10px; color: var(--hv-text-muted); font-size: 13px; }
.hv-hilfe-item-body { font-size: 14px; line-height: 1.6; }
.hv-hilfe-item-body p { margin: 0 0 8px; }
.hv-hilfe-item-links { margin: 12px 0 0; font-size: 12px; color: var(--hv-text-muted); }
.hv-hilfe-empty { padding: 24px; text-align: center; color: var(--hv-text-muted); }
.hv-hilfe-disclaimer { margin-top: 24px; }

/* Chatbot widget */
.hv-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--hv-font);
}
.hv-chatbot-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #c5006a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(197, 0, 106, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--hv-transition), box-shadow var(--hv-transition);
}
.hv-chatbot-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(197, 0, 106, 0.5);
}
.hv-chatbot-bubble-icon {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}
.hv-chatbot-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: min(520px, calc(100vh - 100px));
    background: var(--hv-surface);
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow-md);
    border: 1px solid var(--hv-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hv-chatbot-panel[hidden] {
    display: none !important;
}
.hv-chatbot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #c5006a;
    color: #fff;
}
.hv-chatbot-header strong { display: block; font-size: 15px; }
.hv-chatbot-sub { font-size: 12px; opacity: 0.85; }
.hv-chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.hv-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 120px;
}
.hv-chatbot-welcome { font-size: 13px; color: var(--hv-text-muted); margin: 0 0 10px; }
.hv-chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.hv-chatbot-chip {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--hv-border);
    background: var(--hv-bg);
    font-size: 12px;
    cursor: pointer;
    transition: var(--hv-transition);
}
.hv-chatbot-chip:hover {
    border-color: #c5006a;
    color: #c5006a;
}
.hv-chatbot-messages { display: flex; flex-direction: column; gap: 10px; }
.hv-chatbot-msg {
    padding: 10px 12px;
    border-radius: var(--hv-radius-sm);
    font-size: 13px;
    line-height: 1.5;
}
.hv-chatbot-msg-user {
    background: var(--hv-accent-soft);
    align-self: flex-end;
    max-width: 90%;
}
.hv-chatbot-msg-bot {
    background: var(--hv-bg);
    border: 1px solid var(--hv-border-light);
}
.hv-chatbot-result { margin-top: 8px; }
.hv-chatbot-result-title {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    font-size: 13px;
    color: #c5006a;
    cursor: pointer;
    text-decoration: underline;
}
.hv-chatbot-result-kurz { margin: 4px 0; font-size: 12px; color: var(--hv-text-muted); }
.hv-chatbot-result-body {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px;
    background: var(--hv-surface);
    border-radius: var(--hv-radius-sm);
}
.hv-chatbot-small { font-size: 11px; color: var(--hv-text-muted); }
.hv-chatbot-footer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--hv-border);
    background: var(--hv-bg);
}
.hv-chatbot-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius-sm);
    font-size: 14px;
}
.hv-chatbot-send {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--hv-radius-sm);
    background: #c5006a;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.hv-chatbot-disclaimer {
    padding: 6px 12px 10px;
    font-size: 10px;
    color: var(--hv-text-muted);
    text-align: center;
    margin: 0;
}
.hv-feature-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1px solid #c5006a;
    color: #c5006a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    vertical-align: middle;
}
.hv-feature-help-btn:hover { background: #c5006a; color: #fff; }

/* Einrichtungs-Assistent */
.hv-einrichtung-progress {
    height: 8px;
    background: var(--hv-border);
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0 8px;
}
.hv-einrichtung-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c5006a, #e91e8c);
    border-radius: 999px;
    transition: width 0.3s ease;
}
.hv-einrichtung-progress-label { font-size: 13px; color: var(--hv-text-muted); margin: 0; }
.hv-einrichtung-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.hv-einrichtung-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hv-surface);
    border: 2px solid var(--hv-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--hv-text-muted);
}
.hv-einrichtung-done .hv-einrichtung-step-num {
    background: #c5006a;
    border-color: #c5006a;
    color: #fff;
}
.hv-einrichtung-step-body { flex: 1; }
.hv-einrichtung-step-title { margin: 0 0 6px; font-size: 16px; }
.hv-badge-ok { background: #059669; color: #fff; }

/* Plausibilität Seite */
.hv-plaus-header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.hv-plaus-title { margin: 0 0 8px; font-size: 16px; }
.hv-plaus-code { font-size: 11px; color: var(--hv-text-muted); }
.hv-plaus-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 480px) {
    .hv-chatbot { bottom: 12px; right: 12px; }
    .hv-chatbot-panel {
        width: calc(100vw - 24px);
        right: 0;
        bottom: 64px;
    }
}
