/* V5/css/main.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.card-header {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

/* Custom Tooltip */
.abbr-glossary {
    text-decoration: underline dotted;
    text-underline-offset: 0.15em;
    cursor: help;
}

.audience-segment {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color, #dee2e6);
}

.audience-segment--pro {
    border-color: rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.04);
}

.audience-segments--compact .audience-segment .card-body {
    padding: 0.85rem 1rem;
}

.tooltip {
    position: relative;
    display: inline;
}
.tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Content Toggle Buttons */
.expand-btn, .collapse-btn {
    color: #0d6efd !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    font-size: inherit !important;
}

.expand-btn:hover, .collapse-btn:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

/* Read Aloud Buttons */
.read-aloud-btn {
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.read-aloud-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.read-aloud-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.read-aloud-btn i {
    font-size: 14px;
}

/* Speaking state - stop button */
.read-aloud-btn.speaking {
    animation: pulse-speaking 1.5s ease-in-out infinite;
}

.read-aloud-btn.speaking:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse-speaking {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Tree View Styles */
.tree-view-container {
    margin-top: 1rem;
}

.tree-structure {
    padding: 1rem 0;
}

.tree-node {
    margin: 0.25rem 0;
}

.tree-level-1 {
    margin-left: 0;
}

.tree-level-2 {
    margin-left: 1.5rem;
    border-left: 2px solid #e9ecef;
    padding-left: 1rem;
}

.tree-level-3 {
    margin-left: 1.5rem;
    border-left: 2px solid #dee2e6;
    padding-left: 1rem;
}

.tree-level-4 {
    margin-left: 1.5rem;
    border-left: 1px solid #f8f9fa;
    padding-left: 1rem;
}

.tree-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.tree-item:hover {
    background-color: #f8f9fa;
}

.tree-level-1 > .tree-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.tree-level-2 > .tree-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
}

.tree-level-3 > .tree-item {
    background-color: #fefefe;
}

.tree-alert {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0.5rem 0;
}

.tree-alert:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.tree-toggle {
    color: #6c757d !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    min-width: 20px;
}

.tree-toggle:hover {
    color: #0d6efd !important;
}

.tree-icon {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.tree-headline {
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tree-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tree-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f3f4;
}

.tree-description-toggle,
.tree-instruction-toggle {
    color: #0d6efd !important;
    text-decoration: none !important;
    font-size: 0.875rem;
}

.tree-description-toggle:hover,
.tree-instruction-toggle:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

.tree-description,
.tree-instruction {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border-left: 3px solid #0d6efd;
}

.tree-instruction {
    border-left-color: #17a2b8;
    background-color: #e7f3ff;
}

.tree-children {
    margin-top: 0.5rem;
}

/* Responsive Tree View */
@media (max-width: 768px) {
    .tree-level-2,
    .tree-level-3,
    .tree-level-4 {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .tree-alert {
        padding: 0.75rem;
    }
    
    .tree-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .tree-headline {
        font-size: 0.9rem;
    }
}

.collapsible-content {
    max-width: 100%;
}

.content-short, .content-full {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Toggle Switch from table.css */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* KI-Lagebild (MOWAS / Polizei) */
.lagebild-card {
    border: 1px solid var(--border-color, #dee2e6);
}

.lagebild-stat-card .h4 {
    color: var(--text-primary, #212529);
    font-weight: 600;
}

.lagebild-content {
    color: var(--text-primary, #212529);
    line-height: 1.55;
    max-width: 52rem;
}

.lagebild-content .lagebild-h {
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.lagebild-content .lagebild-h:first-child {
    margin-top: 0;
}

.lagebild-content .lagebild-p {
    margin-bottom: 0.65rem;
}

.lagebild-content .lagebild-list {
    margin: 0.25rem 0 0.75rem 1.25rem;
    padding-left: 0.5rem;
}

.lagebild-content .lagebild-list li {
    margin-bottom: 0.35rem;
}

.lagebild-content .lagebild-hr {
    margin: 1rem 0;
    border-color: var(--border-color, #dee2e6);
    opacity: 0.7;
}

.lagebild-content em {
    color: var(--text-secondary, #6c757d);
    font-size: 0.95em;
}

.lagebild-groups {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-color, #dee2e6);
}

.lagebild-group-item {
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

.lagebild-group-item:last-child {
    margin-bottom: 0;
}

.lagebild-group-main a:first-child {
    font-weight: 500;
    text-decoration: none;
}

.lagebild-group-main a:first-child:hover {
    text-decoration: underline;
}

.lagebild-group-official {
    margin-left: 0.35rem;
    font-size: 0.82em;
    white-space: nowrap;
}

.lagebild-group-more {
    display: inline-block;
    margin-left: 0.25rem;
}

.lagebild-group-section {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-secondary, #6c757d);
}

.lagebild-group-section:first-child {
    margin-top: 0;
}

.lagebild-entry-detail {
    margin-top: 0.15rem;
    padding-left: 0.15rem;
}

.lagebild-groups-more a {
    text-decoration: none;
}

/* SEO: Breadcrumbs & Footer */
.seo-breadcrumbs .breadcrumb {
    background: transparent;
    padding-left: 0;
}

.site-footer {
    background: var(--bg-secondary, #f8f9fa);
    color: var(--text-primary, #212529);
}

.site-footer .nav-link {
    color: var(--text-secondary, #6c757d);
}

.site-footer .nav-link:hover {
    color: var(--accent-primary, #667eea);
}

.site-disclaimer {
    background: var(--bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #dee2e6);
    padding: 0.5rem 0;
}

.site-disclaimer__text {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.45;
}

.site-disclaimer__text-secondary {
    font-size: 0.75rem;
    opacity: 0.95;
}

.data-source-notice code {
    font-size: 0.78rem;
    word-break: break-all;
}

.site-disclaimer a {
    font-weight: 600;
}

/* Recherche B2B – dezente Hinweise für Versicherungen */
.recherche-b2b-teaser--inline {
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
}

.recherche-b2b-teaser__inline {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.45;
}

.recherche-b2b-teaser__inline .bi {
    color: var(--accent-primary, #667eea);
    margin-right: 0.25rem;
}

.recherche-b2b-teaser__inline a {
    font-weight: 600;
    white-space: nowrap;
}

.recherche-b2b-teaser--cta {
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 0.65rem;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0.02) 100%);
}

.recherche-b2b-teaser--cta .recherche-b2b-teaser__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.recherche-b2b-teaser__label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-primary, #212529);
}

.recherche-b2b-teaser__text {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary, #6c757d);
    margin-top: 0.15rem;
    max-width: 42rem;
}

.recherche-b2b-teaser--card {
    border-color: rgba(13, 110, 253, 0.2);
    border-left: 3px solid #0d6efd;
}

.recherche-b2b-teaser__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.recherche-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.recherche-trust-row .bi {
    margin-right: 0.2rem;
}

.recherche-compare-table th,
.recherche-compare-table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

.theme-matrix .site-disclaimer {
    background: #0a0a0a;
    border-bottom-color: #006600;
}

.theme-matrix .site-disclaimer__text {
    color: #00cc00;
}

.theme-matrix .site-disclaimer a {
    color: #00ff00;
}

.lagebild-subtitle {
    margin-top: 0.15rem;
}

.lagebild-meta {
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-color, #e9ecef);
}

.lagebild-ki-details {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    background: var(--bg-secondary, #f8f9fa);
}

.lagebild-ki-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary, #212529);
}

.lagebild-footer-note a {
    font-weight: 600;
}

/* Öffentliche Tagesnavigation (Warnüberblick-Archiv) */
.lagebild-date-nav {
    margin-bottom: 1.25rem;
}

.lagebild-date-nav-shell {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--bg-secondary, #f8f9fa) 0%, var(--card-bg, #fff) 55%);
    box-shadow: 0 0.35rem 1.25rem rgba(15, 23, 42, 0.06);
    overflow: hidden;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.lagebild-date-nav-toolbar {
    display: grid;
    grid-template-columns: minmax(2.5rem, auto) 1fr minmax(2.5rem, auto);
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem max(0.85rem, env(safe-area-inset-left, 0.85rem)) 0.55rem max(0.85rem, env(safe-area-inset-right, 0.85rem));
}

.lagebild-date-nav-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, #fff);
    color: var(--text-secondary, #6c757d);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.lagebild-date-nav-arrow.is-next {
    justify-content: flex-end;
    text-align: right;
}

.lagebild-date-nav-arrow-label {
    display: none;
}

.lagebild-date-nav-arrow:hover,
.lagebild-date-nav-arrow:focus-visible {
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
    background: rgba(13, 110, 253, 0.06);
    outline: none;
}

.lagebild-date-nav-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    justify-content: center;
}

.lagebild-date-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding: 0 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.lagebild-date-nav-monthbar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lagebild-date-nav-monthbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, #fff);
    color: var(--text-primary, #212529);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.lagebild-date-nav-monthbtn:hover,
.lagebild-date-nav-monthbtn:focus-visible {
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
    outline: none;
}

.lagebild-date-nav-monthbtn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.lagebild-date-nav-monthtitle {
    min-width: 7.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #212529);
}

.lagebild-date-nav-today-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, #fff);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary, #0d6efd);
    text-decoration: none;
    white-space: nowrap;
}

.lagebild-date-nav-today-btn:hover,
.lagebild-date-nav-today-btn:focus-visible {
    border-color: var(--primary, #0d6efd);
    background: rgba(13, 110, 253, 0.06);
    outline: none;
}

.lagebild-date-calendar-toggle {
    border-top: 1px solid var(--border-color, #dee2e6);
}

.lagebild-date-calendar-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem max(0.85rem, env(safe-area-inset-left, 0.85rem));
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lagebild-date-calendar-summary::-webkit-details-marker {
    display: none;
}

.lagebild-date-calendar-summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.lagebild-date-calendar-toggle[open] .lagebild-date-calendar-summary::after {
    transform: rotate(180deg);
}

.lagebild-date-calendar-meta {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary, #6c757d);
}

.lagebild-date-calendar-panel {
    padding: 0  max(0.85rem, env(safe-area-inset-left, 0.85rem)) 0.85rem max(0.85rem, env(safe-area-inset-right, 0.85rem));
    width: 100%;
    box-sizing: border-box;
}

.lagebild-date-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    padding: 0 0.1rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary, #6c757d);
    text-align: center;
}

.lagebild-date-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
}

.lagebild-date-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary, #212529);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.lagebild-date-cell.is-outside {
    opacity: 0.45;
}

.lagebild-date-cell.is-disabled {
    opacity: 0.28;
    pointer-events: none;
}

.lagebild-date-cell.has-archive:not(.is-active)::after,
.lagebild-date-cell.has-warnings:not(.is-active)::after {
    content: '';
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.lagebild-date-cell.has-warnings:not(.has-archive):not(.is-active)::after {
    background: rgba(108, 117, 125, 0.75);
}

.lagebild-date-cell.is-today:not(.is-active) {
    box-shadow: inset 0 0 0 2px rgba(255, 193, 7, 0.95);
}

.lagebild-date-cell.is-active.has-index-data.lage-index-ruhig {
    background: #198754;
    border-color: #146c43;
    color: #fff;
    box-shadow: 0 0.2rem 0.75rem rgba(25, 135, 84, 0.35);
}

.lagebild-date-cell.is-active.has-index-data.lage-index-merkbar {
    background: #e6a800;
    border-color: #cc9600;
    color: #212529;
    box-shadow: 0 0.2rem 0.75rem rgba(255, 193, 7, 0.4);
}

.lagebild-date-cell.is-active.has-index-data.lage-index-erhoht {
    background: #e8590c;
    border-color: #ca4c0a;
    color: #fff;
    box-shadow: 0 0.2rem 0.75rem rgba(253, 126, 20, 0.35);
}

.lagebild-date-cell.is-active.has-index-data.lage-index-auffaellig {
    background: #dc3545;
    border-color: #b02a37;
    color: #fff;
    box-shadow: 0 0.2rem 0.75rem rgba(220, 53, 69, 0.35);
}

.lagebild-date-cell.is-active:not(.has-index-data) {
    background: var(--primary, #0d6efd);
    border-color: var(--primary, #0d6efd);
    color: #fff;
    box-shadow: 0 0.2rem 0.75rem rgba(13, 110, 253, 0.28);
}

a.lagebild-date-cell.has-index-data:hover,
a.lagebild-date-cell.has-index-data:focus-visible {
    filter: brightness(0.94);
    outline: none;
    transform: translateY(-1px);
}

a.lagebild-date-cell:not(.has-index-data):hover,
a.lagebild-date-cell:not(.has-index-data):focus-visible {
    border-color: var(--primary, #0d6efd);
    background: rgba(13, 110, 253, 0.08);
    outline: none;
    transform: translateY(-1px);
}

a.lagebild-date-cell.is-active:hover,
a.lagebild-date-cell.is-active:focus-visible {
    filter: brightness(0.96);
    color: inherit;
}

.lagebild-date-data-jump {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary, #0d6efd);
    text-decoration: none;
    white-space: nowrap;
}

.lagebild-date-data-jump:hover,
.lagebild-date-data-jump:focus-visible {
    text-decoration: underline;
}

.lagebild-date-nav-badge.is-empty {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-secondary, #6c757d);
}

.lagebild-date-nav-focus {
    flex: 1 1 14rem;
    text-align: center;
    min-width: min(100%, 14rem);
    max-width: 100%;
    padding: 0 0.15rem;
}

.lagebild-date-nav-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.lagebild-date-nav-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lagebild-date-nav-badge.is-live {
    background: rgba(255, 193, 7, 0.2);
    color: #9a6700;
}

.lagebild-date-nav-badge.is-archive {
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary, #0d6efd);
}

.lagebild-date-nav-badge.is-saved {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.lagebild-date-nav-badge.is-data {
    background: rgba(108, 117, 125, 0.15);
    color: var(--text-secondary, #6c757d);
}

.lagebild-date-nav-title {
    margin: 0;
    font-size: clamp(0.95rem, 2.8vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary, #212529);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.lagebild-date-nav-form {
    margin: 0;
    flex: 0 1 auto;
}

.lagebild-date-nav-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 10.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, #fff);
    color: var(--text-secondary, #6c757d);
}

.lagebild-date-nav-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary, #212529);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    color-scheme: light dark;
}

.lagebild-date-nav-input:focus {
    outline: none;
}

.lagebild-date-strip-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.65rem;
    font-size: 0.72rem;
    color: var(--text-secondary, #6c757d);
}

.lagebild-legend-swatch {
    display: inline-block;
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.lagebild-legend-swatch.lage-index-ruhig { background-color: #198754; }
.lagebild-legend-swatch.lage-index-merkbar { background-color: #ffc107; }
.lagebild-legend-swatch.lage-index-erhoht { background-color: #fd7e14; }
.lagebild-legend-swatch.lage-index-auffaellig { background-color: #dc3545; }

.lagebild-legend-swatch.is-archive {
    background-color: rgba(13, 110, 253, 0.75);
}

.lagebild-legend-swatch.is-warning {
    background-color: rgba(108, 117, 125, 0.65);
}

.lagebild-legend-swatch.is-today {
    background-color: #ffc107;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.lagebild-date-strip-legend > span {
    display: inline-flex;
    align-items: center;
}

.warnueberblick-page .warnueberblick-actions .btn {
    min-height: 2.5rem;
}

/* Warnlage-Timeline (Endlos-Scroll + Linienverlauf) */
.lagebild-timeline {
    position: relative;
    padding: 0.75rem max(0.85rem, env(safe-area-inset-left, 0.85rem)) 0.85rem;
    border-top: 1px solid var(--border-color, #dee2e6);
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.lagebild-timeline-head {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title axis"
        "title controls";
    gap: 0.35rem 1rem;
    align-items: end;
    margin-bottom: 0.55rem;
}

.lagebild-timeline-head > div:first-child {
    grid-area: title;
}

.lagebild-timeline-axis {
    grid-area: axis;
}

.lagebild-timeline-controls {
    grid-area: controls;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.lagebild-timeline-jumps {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lagebild-timeline-zoom {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.15rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #dee2e6);
    background: #fff;
}

.lagebild-timeline-zoom-btn {
    padding: 0.18rem 0.55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
}

.lagebild-timeline-zoom-btn.is-active {
    background: var(--primary, #0d6efd);
    color: #fff;
}

.lagebild-timeline-zoom-btn:hover:not(.is-active) {
    color: var(--primary, #0d6efd);
}

.lagebild-timeline-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #dee2e6);
    background: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
}

.lagebild-timeline-jump:hover {
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.lagebild-timeline-today-label {
    font-size: 9px;
    font-weight: 700;
    fill: #9a6700;
    pointer-events: none;
}

.lagebild-timeline-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.lagebild-timeline-sub {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: var(--text-secondary, #6c757d);
}

.lagebild-timeline-axis {
    display: flex;
    gap: 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary, #6c757d);
}

.lagebild-timeline-scroll-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.lagebild-timeline-scroll-btn {
    flex: 0 0 2rem;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
}

.lagebild-timeline-scroll-btn:hover:not(:disabled) {
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
    background: rgba(13, 110, 253, 0.06);
}

.lagebild-timeline-scroll-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.lagebild-timeline-scroll-wrap .lagebild-timeline-scroll {
    flex: 1 1 auto;
    min-width: 0;
}

.lagebild-timeline-scroll-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lagebild-timeline-scroll {
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.55rem 0.4rem 0.65rem;
    max-width: 100%;
    mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
    cursor: grab;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.lagebild-timeline-scroll::-webkit-scrollbar {
    display: none;
}

.lagebild-timeline-rail {
    padding: 0 0.15rem;
}

.lagebild-timeline-rail.is-inactive {
    opacity: 0.45;
    pointer-events: none;
}

.lagebild-timeline-rail-track {
    position: relative;
    height: 0.55rem;
    background: #e9ecef;
    border-radius: 999px;
    cursor: pointer;
}

.lagebild-timeline-rail-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 2rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--primary, #0d6efd);
    cursor: grab;
    touch-action: none;
    transition: background-color 0.15s ease;
}

.lagebild-timeline-rail-thumb:hover {
    background: #0b5ed7;
}

.lagebild-timeline-rail-thumb.is-dragging {
    cursor: grabbing;
    background: #0a58ca;
    transition: none;
}

.lagebild-timeline-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.lagebild-timeline-scroll.is-dragging .lagebild-timeline-hits,
.lagebild-timeline-scroll.is-dragging .lagebild-timeline-event {
    pointer-events: none;
}

.lagebild-timeline-track {
    position: relative;
    min-height: 8.5rem;
    display: inline-block;
    vertical-align: top;
}

.lagebild-date-nav-actions-compact {
    justify-content: flex-end;
}

.lagebild-timeline.is-loading::after {
    content: 'Lädt…';
    position: absolute;
    right: 0.75rem;
    bottom: 0.45rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    z-index: 6;
}

.lagebild-timeline-today-line {
    stroke: rgba(255, 193, 7, 0.95);
    stroke-width: 2;
    stroke-dasharray: 4 3;
    pointer-events: none;
}

.lagebild-timeline-scroll:focus-visible {
    outline: 2px solid var(--primary, #0d6efd);
    outline-offset: 2px;
}

.lagebild-timeline.is-pending .lagebild-timeline-track {
    visibility: hidden;
}

.lagebild-timeline.is-pending .lagebild-timeline-scroll {
    min-height: 9.5rem;
    background-image: linear-gradient(90deg, #f1f3f5 0%, #e9ecef 50%, #f1f3f5 100%);
    background-size: 200% 100%;
    animation: lageTimelineShimmer 1.2s ease-in-out infinite;
}

@keyframes lageTimelineShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.lagebild-timeline.is-ready .lagebild-timeline-track {
    visibility: visible;
}

.lagebild-timeline.is-ready .lagebild-timeline-scroll {
    animation: none;
    background-image: none;
}

.lagebild-timeline-crosshair {
    pointer-events: none;
    stroke: rgba(13, 110, 253, 0.75);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.lagebild-timeline-peak {
    pointer-events: none;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.lagebild-timeline-svg {
    display: block;
    overflow: visible;
}

.lagebild-timeline-area {
    pointer-events: none;
}

.lagebild-timeline-segment {
    pointer-events: none;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.lagebild-timeline-months {
    position: relative;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.lagebild-timeline-month {
    position: absolute;
    top: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #6c757d);
    white-space: nowrap;
    pointer-events: none;
}

.lagebild-timeline-days {
    position: relative;
    margin-top: 0.15rem;
}

.lagebild-timeline-day {
    position: absolute;
    top: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    pointer-events: none;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.lagebild-timeline-day.lage-index-ruhig:not(.is-empty) { background: #b8dfca; border-color: #198754; }
.lagebild-timeline-day.lage-index-merkbar:not(.is-empty) { background: #ffe066; border-color: #e6a800; }
.lagebild-timeline-day.lage-index-erhoht:not(.is-empty) { background: #ffc285; border-color: #fd7e14; }
.lagebild-timeline-day.lage-index-auffaellig:not(.is-empty) { background: #f1aeb5; border-color: #dc3545; }

.lagebild-timeline-day.is-empty {
    top: 58%;
    height: 42%;
    background: #eef1f4;
    border-color: transparent;
    opacity: 0.45;
}

.lagebild-timeline-day.is-focused:not(.is-selected) {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.55);
    transform: scaleY(1.14);
    z-index: 2;
}

.lagebild-timeline-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 2px rgba(255, 193, 7, 0.95);
}

.lagebild-timeline-day.is-selected {
    box-shadow: 0 0 0 2px var(--primary, #0d6efd), 0 0.2rem 0.65rem rgba(13, 110, 253, 0.32);
    transform: scaleY(1.12);
    z-index: 2;
}

.lagebild-timeline-day.is-hover,
.lagebild-timeline-day.is-selected {
    transform: scaleY(1.18);
    z-index: 3;
}

.lagebild-timeline-day.is-filtered-out {
    opacity: 0.18;
    filter: grayscale(0.85);
}

.lagebild-timeline-hits {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.lagebild-timeline-hit {
    position: absolute;
    top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    min-width: 11px;
}

.lagebild-timeline-hit:focus-visible {
    outline: 2px solid var(--primary, #0d6efd);
    outline-offset: -2px;
    z-index: 5;
}

.lagebild-timeline-tooltip-score {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.lagebild-timeline-tooltip-bar {
    display: inline-block;
    height: 0.35rem;
    border-radius: 999px;
    min-width: 0.35rem;
    max-width: 4.5rem;
    flex-shrink: 0;
}

.lagebild-timeline-tooltip-hint {
    display: block;
    margin-top: 0;
    font-size: 0.62rem;
    opacity: 0.75;
    white-space: nowrap;
}

.lagebild-timeline-hover-readout.lagebild-timeline-tooltip {
    position: static;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    width: 100%;
    min-height: 2.1rem;
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lagebild-timeline-hover-readout.lagebild-timeline-tooltip:not([hidden]) {
    display: flex;
}

.lagebild-timeline-tooltip-date {
    font-weight: 700;
    white-space: nowrap;
}

.lagebild-timeline-hover-readout .lagebild-timeline-tooltip-score {
    margin-top: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.lagebild-timeline-tooltip {
    position: absolute;
    z-index: 20;
    min-width: 9rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.45rem;
    background: rgba(33, 37, 41, 0.92);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 0.25rem 0.85rem rgba(0, 0, 0, 0.18);
}

.lagebild-timeline-tooltip strong {
    font-weight: 700;
}

.lagebild-timeline-tooltip-meta {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    opacity: 0.9;
}

.lagebild-timeline-tooltip-link {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ec5fe;
    text-decoration: underline;
}

.lagebild-timeline-event-line {
    stroke: rgba(111, 66, 193, 0.55);
    stroke-width: 1.5;
    stroke-dasharray: 3 2;
    pointer-events: none;
}

.lagebild-timeline-events {
    position: absolute;
    left: 0;
    height: 1.65rem;
    z-index: 6;
}

.lagebild-timeline-event {
    position: absolute;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.05rem 0.25rem;
    border: 1px solid rgba(111, 66, 193, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(111, 66, 193, 0.18);
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 700;
    color: #5a32a3;
    max-width: 9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lagebild-timeline-event:hover,
.lagebild-timeline-event:focus-visible {
    border-color: #6f42c1;
    background: #f3ebff;
    outline: none;
    z-index: 6;
}

.lagebild-timeline-event-icon {
    font-size: 0.72rem;
    line-height: 1;
}

.lagebild-timeline-event-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.lagebild-timeline-day-num {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(33, 37, 41, 0.72);
    pointer-events: none;
}

.is-zoom-year .lagebild-timeline-event {
    padding: 0;
    width: 1rem;
    height: 1rem;
    justify-content: center;
    border-radius: 50%;
}

.is-zoom-year .lagebild-timeline-events {
    height: 1.25rem;
}

@media (max-width: 575.98px) {
    .lagebild-timeline-head {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "controls"
            "axis";
    }

    .lagebild-timeline-controls {
        align-items: stretch;
    }

    .lagebild-timeline-jumps {
        justify-content: flex-start;
    }
}

/* Warnlage-Index (Ampel) – Tagesüberblick-Kalender */
.lage-index-badge.lage-index-ruhig { background: rgba(25, 135, 84, 0.18); color: #146c43; }
.lage-index-badge.lage-index-merkbar { background: rgba(255, 193, 7, 0.35); color: #664d03; }
.lage-index-badge.lage-index-erhoht { background: rgba(253, 126, 20, 0.28); color: #984c0c; }
.lage-index-badge.lage-index-auffaellig { background: rgba(220, 53, 69, 0.22); color: #842029; }

.lagebild-date-cell.has-index-data.lage-index-ruhig:not(.is-active) {
    background-color: #b8dfca;
    border-color: #198754;
    color: #0f5132;
}

.lagebild-date-cell.has-index-data.lage-index-merkbar:not(.is-active) {
    background-color: #ffe066;
    border-color: #e6a800;
    color: #664d03;
}

.lagebild-date-cell.has-index-data.lage-index-erhoht:not(.is-active) {
    background-color: #ffc285;
    border-color: #fd7e14;
    color: #984c0c;
}

.lagebild-date-cell.has-index-data.lage-index-auffaellig:not(.is-active) {
    background-color: #f1aeb5;
    border-color: #dc3545;
    color: #842029;
}

.lage-index-filter-chip.lage-index-chip-auffaellig::before,
.lage-index-filter-chip.lage-index-chip-erhoht::before,
.lage-index-filter-chip.lage-index-chip-merkbar::before,
.lage-index-filter-chip.lage-index-chip-ruhig::before {
    content: '';
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: -0.05rem;
}

.lage-index-filter-chip.lage-index-chip-ruhig::before { background-color: #198754; }
.lage-index-filter-chip.lage-index-chip-merkbar::before { background-color: #ffc107; }
.lage-index-filter-chip.lage-index-chip-erhoht::before { background-color: #fd7e14; }
.lage-index-filter-chip.lage-index-chip-auffaellig::before { background-color: #dc3545; }

.lage-index-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem max(0.85rem, env(safe-area-inset-left, 0.85rem)) 0.65rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    background: rgba(255, 255, 255, 0.4);
}

.lage-index-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary, #6c757d);
    margin-right: 0.25rem;
}

.lage-index-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, #fff);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    text-decoration: none;
}

.lage-index-filter-chip.is-active {
    border-color: var(--primary, #0d6efd);
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary, #0d6efd);
}

.lage-index-filter-meta {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-secondary, #6c757d);
}

.lagebild-date-cell.is-filtered-out {
    opacity: 0.22;
    pointer-events: none;
    filter: grayscale(0.85);
}

.warnueberblick-notable-tag {
    min-width: 5.5rem;
    text-align: center;
}

.warnueberblick-notable-item {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.warnueberblick-notable-list .text-truncate {
    max-width: 100%;
}

.warnueberblick-day-map {
    height: 280px;
    border-radius: 0.65rem;
    border: 1px solid var(--border-color, #dee2e6);
    overflow: hidden;
    background: #f8f9fa;
}

@media (min-width: 768px) {
    .lagebild-date-nav-arrow-label {
        display: inline;
    }

    .lagebild-date-nav-arrow {
        font-size: 0.78rem;
        padding: 0.4rem 0.65rem;
    }

    .lagebild-date-cell {
        min-height: 2.75rem;
    }
}

@media (min-width: 768px) {
    .lagebild-date-nav-toolbar {
        padding-top: 1rem;
    }

    .lagebild-date-nav-focus {
        flex-basis: 18rem;
    }

    .lagebild-date-calendar-grid {
        gap: 0.4rem;
    }

    .lagebild-date-cell {
        min-height: 2.9rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 575.98px) {
    .lagebild-date-nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lagebild-date-nav-monthbar {
        justify-content: center;
        width: 100%;
    }

    .lagebild-date-nav-form,
    .lagebild-date-nav-picker {
        width: 100%;
    }

    .lagebild-date-nav-today-btn {
        justify-content: center;
        width: 100%;
    }

    .warnueberblick-page .warnueberblick-actions {
        width: 100%;
    }

    .warnueberblick-page .warnueberblick-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .lagebild-date-calendar-toggle:not([open]) {
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) and (orientation: landscape) {
    .lagebild-date-nav-title {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lagebild-date-nav-arrow,
    .lagebild-date-cell {
        transition: none;
    }

    .lagebild-date-nav-arrow:hover,
    .lagebild-date-nav-arrow:focus-visible,
    .lagebild-date-cell:hover,
    .lagebild-date-cell:focus-visible {
        transform: none;
    }

    .lagebild-date-calendar-summary::after {
        transition: none;
    }
}

.theme-matrix .lagebild-date-nav-shell {
    background: linear-gradient(145deg, #0d140d 0%, #111 55%);
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.35);
}

.theme-matrix .lagebild-date-nav-today-btn {
    color: #ffc107;
}

.theme-matrix .lagebild-date-cell.is-active {
    background: #006600;
    border-color: #00cc00;
    box-shadow: 0 0.25rem 0.85rem rgba(0, 102, 0, 0.35);
}

.theme-minimized .lagebild-date-nav-shell {
    border-radius: 0.65rem;
    box-shadow: none;
}

.theme-matrix .lagebild-ki-details {
    background: #111;
    border-color: #006600;
}

.page-intro h1 {
    color: var(--text-primary, #212529);
}

@media print {
    .professional-navbar,
    .nav-toolbar,
    .site-disclaimer,
    .auto-refresh-bar,
    .site-footer,
    #loadingOverlay,
    .no-print,
    .lagebild-date-nav-arrow,
    .lagebild-date-nav-monthbtn,
    .lagebild-date-nav-form,
    .lagebild-date-calendar-toggle,
    .warnueberblick-actions {
        display: none !important;
    }

    .lagebild-date-nav-shell {
        box-shadow: none;
        border: 1px solid #ccc;
        background: #fff;
    }

    .lagebild-date-nav-title {
        font-size: 1.1rem;
    }

    #main-content {
        margin: 0;
        padding: 0;
    }

    a[href]::after {
        content: none !important;
    }

    .card,
    .table {
        break-inside: avoid;
    }
}

@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    .container-fluid {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .site-disclaimer__text {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .page-intro h1,
    .page-intro .h3 {
        font-size: 1.25rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    .professional-navbar .brand-tagline {
        display: none !important;
    }
}

/* Teilen-Links (Permalinks) */
.share-link-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.share-link-wrap-compact .share-link-btn {
    padding: 0.2rem 0.45rem;
}

.share-link-feedback:not(.visually-hidden) {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--bs-success, #198754);
    margin-left: 0.15rem;
}

.lagebild-date-nav-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.lagebild-date-nav-title-row .lagebild-date-nav-title {
    margin-bottom: 0;
}

.bs-warning-item__actions {
    margin-top: 0.15rem;
}

.page-quicknav .btn,
.warnueberblick-actions .btn {
    white-space: nowrap;
}

.alert-advanced-filters-summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.alert-advanced-filters-summary::-webkit-details-marker {
    display: none;
}

.alert-advanced-filters[open] .alert-advanced-filters-summary {
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.alert-column-filter-grid .form-label {
    color: var(--text-secondary, #6c757d);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.alert-quick-search .card-body {
    background: rgba(248, 249, 250, 0.7);
}

.lagebild-timeline-legend {
    margin: 0 0 0.35rem;
    padding: 0 0.15rem;
}

.lagebild-timeline-legend-event {
    color: #5a32a3;
    font-weight: 600;
}

.analysis-provenance a {
    text-decoration: underline;
}

.lagebild-timeline-error:not(.d-none) {
    display: block;
}
