/* ========================================== */
/* NINA WIDGET - THEME & STYLES (v18.9.65)    */
/* STATUS: Z-Index Fix, Responsives Flex-Wrap & Iframe Edges */
/* ========================================== */

:root {
    --v6-h: #1a1a1a;
    --v6-bg: #ffffff;
    --v6-txt: #000000;
    --v6-brd: #dee2e6;
    --v6-div: #f4f4f4;
    --v6-tile-bg: #ffffff;
    --v6-meta-bg: rgba(0,0,0,0.03);
}

/* DARKMODE */
.nina-v6-dark {
    --v6-bg: #121212 !important;
    --v6-txt: #e0e0e0 !important;
    --v6-brd: #333333 !important;
    --v6-div: #1a1a1a !important;
    --v6-tile-bg: #1e1e1e !important;
    --v6-h: #111111 !important;
    --v6-meta-bg: rgba(255,255,255,0.05) !important;
}

#nina-master-v6 {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: var(--v6-bg);
    color: var(--v6-txt);
    border: 1px solid var(--v6-brd);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: background 0.3s;
    position: relative;
    z-index: 1;
}

/* HEADER & LOGO */
.v6-header-top {
    background: var(--v6-h);
    color: white;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #f4000a;
    transition: 0.3s;
    /* KALENDER-OVERLAP FIX: Header liegt ab sofort über der Blinkzeile! */
    position: relative;
    z-index: 999999;
}

.v6-h-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.v6-h-logo {
    height: 100px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

/* SMARTPHONE-LAYOUT */
@media (max-width: 650px) {
    #nina-master-v6 .v6-header-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding-bottom: 10px !important;
    }

    #nina-master-v6 .v6-header-actions {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    #nina-master-v6 #v6-dimmer-box {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        width: 150px !important;
    }
}

.v6-h-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

/* WETTER PILLE & UHRZEIT */
.v6-header-weather {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 900;
    cursor: help;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    color: #fff;
    margin-left: 10px;
}

    .v6-header-weather:hover {
        background: rgba(255,255,255,0.25);
    }

.v6-weather-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 110%;
    left: 0;
    transform: none;
    background: #222;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    /* KALENDER-OVERLAP FIX: Garantierter Top-Level! */
    z-index: 9999999 !important;
    width: max-content;
    min-width: 320px;
    max-width: 90vw;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: 0.2s;
    pointer-events: auto;
    border: 1px solid #444;
    line-height: 1.5;
    font-weight: normal;
    letter-spacing: 0.5px;
    cursor: default;
}

.v6-header-weather:hover .v6-weather-tooltip {
    visibility: visible;
    opacity: 1;
}

.v6-weather-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 25px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent #222 transparent;
}

.nina-v6-dark .v6-header-weather {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.v6-btn-24h {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 8px;
    background: #0055aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    transition: 0.2s;
}

    .v6-btn-24h:hover {
        background: #0077ff;
    }

.v6-weather-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--v6-brd);
    padding: 8px 0;
    color: var(--v6-txt);
}

    .v6-weather-row:last-child {
        border-bottom: none;
    }

.v6-h-right {
    display: flex;
    gap: 10px;
}

.v6-icon-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

    .v6-icon-btn:hover {
        background: rgba(255,255,255,0.4);
        transform: scale(1.05);
    }

/* BLINK BALKEN & BADGES */
#v6-flash-bar {
    padding: 12px 25px;
    font-weight: 900;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    z-index: 999998; /* Niedriger als der Header, damit Kalender nicht verdeckt wird! */
}

.v6-flash-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
}

.v6-flash-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0;
}

.v6-flash-svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#v6-flash-stop {
    position: absolute;
    right: 0;
    background: rgba(0,0,0,0.2);
    border: 1px solid currentColor;
    color: inherit;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 900;
}

.v6-blink-active {
    animation: v6-ry-flash 1.2s step-end infinite;
}

@keyframes v6-ry-flash {
    0%, 100% {
        background-color: #f4000a;
        color: white;
    }

    50% {
        background-color: #ccff00;
        color: #000;
    }
}

.v6-header-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.v6-h-badge {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 900;
    color: #000;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.6);
}

.v6-badge-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.v6-h-badge-count {
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    line-height: 1;
}

.v6-bg-1 {
    background-color: #f1c40f;
}

.v6-bg-2 {
    background-color: #e67e22;
}

.v6-bg-3 {
    background-color: #e74c3c;
}

.v6-bg-4, .v6-bg-5 {
    background-color: #f4000a;
}

.v6-bg-5 {
    background-color: #8e44ad;
}

.v6-bg-ffs {
    background-color: #ccff00;
}

/* ==========================================
   PERFEKTES UMBRECHEN FÜR GROSSLAGEN AUF DEM HANDY
   ========================================== */
@media (max-width: 800px) {
    .v6-flash-inner {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .v6-flash-text {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }

    .v6-header-badges {
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .v6-h-badge {
        padding: 4px 12px;
        font-size: 12px;
    }

    .v6-badge-icon svg {
        width: 18px;
        height: 18px;
    }

    .v6-h-badge-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    #v6-flash-stop {
        position: relative;
        right: auto;
        margin-top: 5px;
    }
}

/* SEPARATOREN & HINTS */
.v6-label-div {
    background: var(--v6-div);
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 900;
    color: #888;
    text-align: center;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.v6-block-sep {
    height: 1px;
    background: var(--v6-brd);
    width: 100%;
    margin: 0;
    opacity: 0.6;
}

.v6-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: var(--v6-bg);
    gap: 10px;
    border-bottom: 1px solid var(--v6-brd);
}

.v6-lvl-group {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.05);
    padding: 4px;
    border-radius: 8px;
    align-items: center;
}

.nina-v6-dark .v6-lvl-group {
    background: rgba(255,255,255,0.05);
}

.v6-mobile-scroll-hint {
    display: none;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    color: #888;
    padding: 8px 0 0 0;
    background: var(--v6-bg);
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--v6-bg);
}

@media (max-width: 768px) {
    .v6-mobile-scroll-hint {
        display: flex;
    }
}

/* FILTER STRIP */
.v6-filter-strip {
    display: flex;
    padding: 15px;
    gap: 12px;
    background: var(--v6-bg);
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
}

    .v6-filter-strip:active {
        cursor: grabbing;
    }

    .v6-filter-strip::-webkit-scrollbar {
        display: none;
    }

.v6-f-btn {
    flex: 1 0 85px;
    min-width: 85px;
    height: 105px;
    background: var(--v6-tile-bg);
    border: 2px solid var(--v6-brd);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--v6-txt);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    gap: 6px;
}

    .v6-f-btn.active {
        background: #003366;
        border-color: #003366;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0,51,102,0.4);
    }

    .v6-f-btn svg {
        width: 28px;
        height: 28px;
        margin-bottom: 0;
    }

.v6-f-text {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.v6-f-count {
    background: rgba(0,0,0,0.1);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.nina-v6-dark .v6-f-count {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.v6-f-btn.active .v6-f-count {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* TIME & LEVEL FILTERS */
.v6-tf-group {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.05);
    padding: 4px;
    border-radius: 8px;
    align-items: center;
}

.v6-tf-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    color: var(--v6-txt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
    opacity: 0.7;
    height: auto;
}

    .v6-tf-btn:hover {
        opacity: 1;
        background: rgba(0,0,0,0.05);
    }

    .v6-tf-btn.active {
        background: #0055aa;
        color: white !important;
        opacity: 1;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

.v6-tf-badge {
    background: rgba(0,0,0,0.1);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    color: var(--v6-txt) !important;
    margin: 0;
    line-height: 1;
    pointer-events: none;
}

.v6-tf-btn.active .v6-tf-badge {
    background: rgba(255,255,255,0.3) !important;
    color: white !important;
}

/* RESET BUTTON */
.v6-btn-reset {
    background: rgba(0, 85, 170, 0.08) !important;
    color: #0055aa !important;
    border: 1px solid rgba(0, 85, 170, 0.3) !important;
    margin-left: 5px;
    opacity: 0.9;
}

    .v6-btn-reset:hover {
        background: rgba(0, 85, 170, 0.15) !important;
        color: #004488 !important;
        border-color: #0055aa !important;
        opacity: 1;
    }

.nina-v6-dark .v6-btn-reset {
    background: rgba(68, 170, 255, 0.1) !important;
    color: #44aaff !important;
    border-color: rgba(68, 170, 255, 0.3) !important;
}

    .nina-v6-dark .v6-btn-reset:hover {
        background: rgba(68, 170, 255, 0.2) !important;
        color: #66bbff !important;
        border-color: #44aaff !important;
    }

/* TEXT FARBEN FÜR FILTER */
.txt-c1 {
    color: #d4ac0d;
    font-weight: 900;
    pointer-events: none;
}

.nina-v6-dark .txt-c1 {
    color: #f1c40f;
}

.txt-c2 {
    color: #d35400;
    font-weight: 900;
    pointer-events: none;
}

.nina-v6-dark .txt-c2 {
    color: #e67e22;
}

.txt-c3 {
    color: #c0392b;
    font-weight: 900;
    pointer-events: none;
}

.nina-v6-dark .txt-c3 {
    color: #e74c3c;
}

.txt-c4 {
    color: #f4000a;
    font-weight: 900;
    pointer-events: none;
}

.txt-c5 {
    color: #8e44ad;
    font-weight: 900;
    pointer-events: none;
}

.txt-ffs {
    color: #6b8e23;
    font-weight: 900;
    pointer-events: none;
}

.nina-v6-dark .txt-ffs {
    color: #ccff00;
}

.v6-tf-btn.active span[class^="txt-"] {
    color: white !important;
}

/* SORT TOGGLE */
.v6-sort-toggle, #v6-sort-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--v6-brd);
    color: var(--v6-txt);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: center;
    align-items: center;
    gap: 8px !important;
    transition: 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
    height: auto;
    box-sizing: border-box;
}

    .v6-sort-toggle svg, #v6-sort-btn svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .v6-sort-toggle:hover, #v6-sort-btn:hover {
        background: rgba(0,0,0,0.1);
        border-color: #0055aa;
        color: #0055aa;
    }

/* DARKMODE FIXES FÜR FILTER */
.nina-v6-dark .v6-tf-group {
    background: rgba(255,255,255,0.05);
}

.nina-v6-dark .v6-tf-btn:hover {
    background: rgba(255,255,255,0.05);
}

.nina-v6-dark .v6-tf-badge {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

.nina-v6-dark .v6-tf-btn.active .v6-tf-badge, .nina-v6-dark .v6-f-btn.active .v6-f-count {
    background: rgba(0,0,0,0.3) !important;
    color: #fff !important;
}

.nina-v6-dark .v6-sort-toggle, .nina-v6-dark #v6-sort-btn {
    background: rgba(255,255,255,0.05);
}

    .nina-v6-dark .v6-sort-toggle:hover, .nina-v6-dark #v6-sort-btn:hover {
        background: rgba(255,255,255,0.1);
        color: #44aaff;
        border-color: #44aaff;
    }

/* MODAL / POPUPS */
.v6-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    z-index: 99999999;
}

.v6-modal-box {
    background: var(--v6-bg);
    border: 2px solid #f4000a;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: v6-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes v6-pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.v6-modal-header {
    background: #f4000a;
    color: white;
    padding: 18px 25px;
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v6-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.v6-modal-footer {
    padding: 15px 25px;
    background: var(--v6-div);
    border-top: 1px solid var(--v6-brd);
    text-align: right;
}

.v6-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--v6-brd);
    border-radius: 8px;
    background: var(--v6-tile-bg);
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--v6-txt);
}

/* STARTUP-POPUP: START BUTTON & ANIMATION */
#v6-startup-modal {
    align-items: flex-start !important;
    padding-top: 8vh !important;
}

@keyframes emergencyGlow {
    0% {
        box-shadow: 0 0 20px #e74c3c, inset 0 0 10px #e74c3c;
        border-color: #e74c3c;
        color: #ffcccc;
    }

    33% {
        box-shadow: 0 0 25px #ccff00, inset 0 0 15px #ccff00;
        border-color: #ccff00;
        color: #ccff00;
    }

    66% {
        box-shadow: 0 0 25px #0055ff, inset 0 0 15px #0055ff;
        border-color: #0055ff;
        color: #cce0ff;
    }

    100% {
        box-shadow: 0 0 20px #e74c3c, inset 0 0 10px #e74c3c;
        border-color: #e74c3c;
        color: #ffcccc;
    }
}

.v6-start-glow-btn {
    background: #111 !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    padding: 15px 60px !important;
    border: 3px solid #e74c3c !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    letter-spacing: 3px !important;
    animation: emergencyGlow 2.5s infinite alternate !important;
    transition: transform 0.2s !important;
    margin-top: 10px !important;
}

    .v6-start-glow-btn:hover {
        transform: scale(1.05) !important;
    }

/* Smartphone-Optimierung für Startup-Popup */
@media (max-width: 600px) {
    #v6-startup-modal > div {
        max-height: 85vh !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 20px 15px !important;
    }

    #v6-startup-modal .v6-startup-content {
        overflow-y: auto !important;
        margin-bottom: 15px !important;
        padding-right: 5px !important;
    }

    #v6-startup-modal h1 {
        font-size: 24px !important;
    }

    #v6-startup-modal img {
        max-height: 80px !important;
    }

    .v6-start-glow-btn {
        font-size: 22px !important;
        padding: 12px 40px !important;
        width: 100% !important;
    }
}

/* ANIMATION HIGHLIGHT */
.v6-highlight-pulse {
    animation: v6-hl-p 1.5s 3 !important;
}

@keyframes v6-hl-p {
    0%, 100% {
        border-left-color: #0055aa;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: scale(1);
    }

    50% {
        border-left-color: #f4000a !important;
        box-shadow: 0 0 40px rgba(244, 0, 10, 0.8) !important;
        transform: scale(1.02);
    }
}

/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 950px) {
    .v6-control-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .v6-lvl-group, .v6-tf-group {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .v6-sort-toggle {
        justify-content: center;
        width: 100%;
        flex-direction: row;
        padding: 10px;
    }

    .v6-h-logo {
        height: 50px;
    }

    .v6-modal-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* PEGEL RADAR KACHELN */
.v6-p-grid {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: var(--v6-div);
    flex-wrap: wrap;
    transition: 0.3s;
}

.v6-p-tile {
    flex: 1;
    min-width: 180px;
    background: var(--v6-tile-bg);
    border: 2px solid var(--v6-brd);
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    transition: 0.3s ease;
    text-decoration: none !important;
    cursor: help;
    display: block;
    position: relative;
}

    .v6-p-tile:hover {
        transform: translateY(-5px);
        border-color: #0055aa;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.v6-p-sparkline {
    height: 25px;
    margin-top: 10px;
    opacity: 0.5;
    transition: 0.3s;
}

.v6-p-tile:hover .v6-p-sparkline {
    opacity: 1;
}

.v6-p-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 100;
    transition: opacity 0.2s;
    width: max-content;
    max-width: 240px;
    white-space: normal;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 1.4;
    pointer-events: none;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-transform: none;
    text-align: center;
}

    .v6-p-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #222 transparent transparent transparent;
    }

.nina-v6-dark .v6-p-tooltip {
    background: #444;
    color: #fff;
}

    .nina-v6-dark .v6-p-tooltip::after {
        border-color: #444 transparent transparent transparent;
    }

.v6-p-tile:hover .v6-p-tooltip {
    visibility: visible;
    opacity: 1;
}

.v6-p-val {
    font-size: 28px;
    font-weight: 900;
    color: #0055aa;
    transition: 0.3s;
}

.nina-v6-dark .v6-p-val {
    color: #44aaff;
}

.v6-p-diff {
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    color: #888;
}

.v6-p-status {
    font-size: 10px;
    font-weight: 900;
    margin-top: 5px;
    text-transform: uppercase;
    color: #777;
    transition: 0.3s;
}

.v6-p-time {
    font-size: 9px;
    color: #888;
    margin-top: 5px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nina-v6-dark .v6-p-time {
    color: #777;
}

/* PEGEL STUFEN & GLOWS */
.ms-1 {
    background: #ffffd0 !important;
    border-color: #f1c40f !important;
    color: #000 !important;
}

    .ms-1 .v6-p-tooltip, .nina-v6-dark .ms-1 .v6-p-tooltip {
        background: #f1c40f;
        color: #000;
    }

        .ms-1 .v6-p-tooltip::after, .nina-v6-dark .ms-1 .v6-p-tooltip::after {
            border-color: #f1c40f transparent transparent transparent;
        }

.ms-2 {
    background: #ffebd0 !important;
    border-color: #e67e22 !important;
    color: #000 !important;
}

    .ms-2 .v6-p-tooltip, .nina-v6-dark .ms-2 .v6-p-tooltip {
        background: #e67e22;
        color: #fff;
    }

        .ms-2 .v6-p-tooltip::after, .nina-v6-dark .ms-2 .v6-p-tooltip::after {
            border-color: #e67e22 transparent transparent transparent;
        }

.ms-3 {
    background: #ffd0d0 !important;
    border-color: #f4000a !important;
    color: #000 !important;
    animation: ms3glow 1.5s infinite alternate;
}

    .ms-3 .v6-p-tooltip, .nina-v6-dark .ms-3 .v6-p-tooltip {
        background: #f4000a;
        color: #fff;
    }

        .ms-3 .v6-p-tooltip::after, .nina-v6-dark .ms-3 .v6-p-tooltip::after {
            border-color: #f4000a transparent transparent transparent;
        }

@keyframes ms3glow {
    0% {
        box-shadow: 0 0 10px rgba(244,0,10,0.4);
        border-color: #f4000a;
    }

    100% {
        box-shadow: 0 0 35px rgba(244,0,10,0.8), inset 0 0 15px rgba(244,0,10,0.3);
        border-color: #ff3333 !important;
    }
}

.ms-4 {
    background: #f0d0ff !important;
    border-color: #8e44ad !important;
    color: #000 !important;
    animation: ms4glow 1.5s infinite alternate;
}

    .ms-4 .v6-p-tooltip, .nina-v6-dark .ms-4 .v6-p-tooltip {
        background: #8e44ad;
        color: #fff;
    }

        .ms-4 .v6-p-tooltip::after, .nina-v6-dark .ms-4 .v6-p-tooltip::after {
            border-color: #8e44ad transparent transparent transparent;
        }

@keyframes ms4glow {
    0% {
        box-shadow: 0 0 10px rgba(142,68,173,0.4);
        border-color: #8e44ad;
    }

    100% {
        box-shadow: 0 0 45px rgba(142,68,173,0.9), inset 0 0 20px rgba(142,68,173,0.4);
        border-color: #b565d6 !important;
    }
}

/* INLINE ERROR BANNER */
.v6-inline-error {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.v6-err-org {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border-left: 5px solid #e67e22;
}

.v6-err-red {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 5px solid #e74c3c;
}

/* WARN CARDS & SCROLLBAR */
.v6-content-box {
    padding: 25px;
    min-height: 120px;
    transition: 0.3s;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0055aa transparent;
}

    .v6-content-box::-webkit-scrollbar {
        width: 8px;
    }

    .v6-content-box::-webkit-scrollbar-track {
        background: transparent;
    }

    .v6-content-box::-webkit-scrollbar-thumb {
        background: #0055aa;
        border-radius: 4px;
    }

.nina-v6-dark .v6-content-box {
    scrollbar-color: #44aaff transparent;
}

    .nina-v6-dark .v6-content-box::-webkit-scrollbar-thumb {
        background: #44aaff;
    }

.warn-card-v6 {
    border-left: 24px solid #ccc;
    background: var(--v6-tile-bg);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    border-top: 1px solid var(--v6-brd);
    border-right: 1px solid var(--v6-brd);
    border-bottom: 1px solid var(--v6-brd);
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .warn-card-v6:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.25);
        border-left-width: 48px;
    }

/* ARCHIV KARTEN */
.warn-card-archived {
    border-left-color: #888 !important;
    background-color: var(--v6-div) !important;
    opacity: 0.65 !important;
    animation: none !important;
    box-shadow: none !important;
    border: 1px solid var(--v6-brd) !important;
    border-left-width: 15px !important;
}

    .warn-card-archived:hover {
        opacity: 0.8 !important;
        border-left-color: #555 !important;
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        cursor: default;
    }

    .warn-card-archived .v6-card-header, .warn-card-archived .v6-info-text, .warn-card-archived .v6-card-meta {
        color: #777 !important;
    }

    .warn-card-archived .v6-card-icon svg {
        color: #777 !important;
    }

    .warn-card-archived .v6-badge-archiv {
        background-color: #777 !important;
        color: #fff !important;
        border: none;
    }

.nina-v6-dark .warn-card-archived .v6-card-header, .nina-v6-dark .warn-card-archived .v6-info-text, .nina-v6-dark .warn-card-archived .v6-card-meta {
    color: #999 !important;
}

.nina-v6-dark .warn-card-archived .v6-card-icon svg {
    color: #999 !important;
}

/* KARTEN GEFAHRENSTUFEN */
.lvl-1 {
    border-left-color: #f1c40f !important;
    background-color: rgba(241, 196, 15, 0.05) !important;
}

.lvl-2 {
    border-left-color: #e67e22 !important;
    background-color: rgba(230, 126, 34, 0.05) !important;
}

.lvl-3 {
    border-left-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

.lvl-4 {
    border-left-color: #f4000a !important;
    background-color: rgba(244, 0, 10, 0.05) !important;
    animation: card-crit-p 2s infinite alternate !important;
}

@keyframes card-crit-p {
    0% {
        box-shadow: 0 0 10px rgba(244, 0, 10, 0.3);
    }

    100% {
        box-shadow: 0 0 50px rgba(244, 0, 10, 0.6);
        border-left-color: #ff3333 !important;
    }
}

.lvl-5 {
    border-left-color: #8e44ad !important;
    background-color: rgba(142, 68, 173, 0.05) !important;
    animation: card-violet-p 2s infinite alternate !important;
}

@keyframes card-violet-p {
    0% {
        box-shadow: 0 0 15px rgba(142, 68, 173, 0.3);
    }

    100% {
        box-shadow: 0 0 60px rgba(142, 68, 173, 0.7);
        border-left-color: #b565d6 !important;
    }
}

.lvl-ok {
    border-left-color: #27ae60 !important;
    background-color: rgba(39, 174, 96, 0.05) !important;
    animation: card-green-p 2.5s infinite alternate !important;
}

@keyframes card-green-p {
    0% {
        box-shadow: 0 0 10px rgba(39, 174, 96, 0.2);
    }

    100% {
        box-shadow: 0 0 45px rgba(39, 174, 96, 0.5);
        border-left-color: #2ecc71 !important;
    }
}

.lvl-ffs {
    border-left-width: 24px !important;
    border-left-color: #ccff00 !important;
    background-color: rgba(204, 255, 0, 0.05) !important;
    animation: ffs-pulse 1.8s infinite alternate !important;
}

.nina-v6-dark .lvl-ffs {
    background-color: rgba(204, 255, 0, 0.1) !important;
}

@keyframes ffs-pulse {
    0% {
        box-shadow: 0 0 20px rgba(244, 0, 10, 0.7);
        border-left-color: #ccff00 !important;
    }

    100% {
        box-shadow: 0 0 50px rgba(0, 85, 170, 0.9);
        border-left-color: #ccff00 !important;
    }
}

/* BADGES IN DEN KARTEN */
.v6-level-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 11px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.v6-badge-1 {
    background-color: #f1c40f;
    color: #000;
}

.v6-badge-2 {
    background-color: #e67e22;
    color: #fff;
}

.v6-badge-3 {
    background-color: #e74c3c;
    color: #fff;
}

.v6-badge-4 {
    background-color: #f4000a;
    color: #fff;
}

.v6-badge-5 {
    background-color: #8e44ad;
    color: #fff;
}

.v6-badge-ok {
    background-color: #27ae60;
    color: #fff;
}

.v6-badge-ffs {
    background-color: #ccff00 !important;
    color: #000 !important;
    border: none;
    font-weight: 900;
}

/* KARTEN TEXTE & INHALT */
.v6-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 15px;
    color: inherit;
    line-height: 1.2;
    transition: 0.3s;
}

.v6-card-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: -2px;
    transition: 0.3s;
}

    .v6-card-icon svg {
        width: 100%;
        height: 100%;
        display: block;
        color: inherit;
    }

.v6-info-text {
    font-size: 14px;
    line-height: 1.7;
    color: inherit;
    margin-bottom: 15px;
    transition: 0.3s;
}

    .v6-info-text a {
        color: #0055aa;
        text-decoration: underline;
        font-weight: bold;
    }

.nina-v6-dark .v6-info-text a, .nina-v6-dark .v6-instr-box a {
    color: #44aaff !important;
}

.v6-info-text img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.v6-instr-box {
    background: rgba(0,51,102,0.1);
    border-left: 4px solid #44aaff;
    padding: 14px;
    margin-top: 15px;
    font-size: 13px;
    border-radius: 4px;
    color: inherit;
    line-height: 1.6;
    transition: 0.3s;
}

/* KARTEN BUTTONS */
.v6-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--v6-brd);
    padding-top: 20px;
}

.v6-act-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: white !important;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-transform: uppercase;
    border: none;
}

.v6-wa {
    background: #128C7E;
    border: 1px solid #0b7064;
}

    .v6-wa:hover {
        background: #075E54;
        transform: translateY(-2px);
    }

    .v6-wa svg {
        width: 30px !important;
        height: 30px !important;
        fill: white;
        stroke: none;
    }

.v6-det {
    background: #0055aa;
    border: 1px solid #004488;
}

    .v6-det:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
    }

    .v6-det svg {
        width: 20px !important;
        height: 20px !important;
        fill: white;
        stroke: none;
    }

.v6-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
    font-size: 11px;
    color: #888;
    background: var(--v6-meta-bg);
    padding: 14px;
    border-radius: 8px;
    transition: 0.3s;
}

/* LINKS SEKTION */
.v6-link-section {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v6-link-row a {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: 900;
    color: #000 !important;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

    .v6-link-row a svg {
        width: 18px;
        height: 18px;
    }

.v6-link-row {
    display: flex;
    gap: 8px;
}

.row-red a {
    background: #ffcccc;
}

.row-yellow a {
    background: #fff4cc;
}

.row-grey a {
    background: #eeeeee;
}

/* FEHLER PULSIEREN FÜR OFFLINE LINKS */
.v6-error-pulse {
    animation: v6-err-blink 1.5s infinite !important;
    border-color: #e74c3c !important;
}

@keyframes v6-err-blink {
    0%, 100% {
        background-color: #ffe6e6;
        box-shadow: 0 0 15px rgba(231,76,60,0.6);
    }

    50% {
        background-color: #f4f4f4;
        box-shadow: none;
    }
}

.nina-v6-dark .v6-error-pulse {
    animation: v6-err-blink-d 1.5s infinite !important;
    border-color: #e74c3c !important;
}

@keyframes v6-err-blink-d {
    0%, 100% {
        background-color: rgba(231,76,60,0.2);
        box-shadow: 0 0 15px rgba(231,76,60,0.6);
    }

    50% {
        background-color: #222;
        box-shadow: none;
    }
}

/* FOOTER BEREICH */
.v6-footer {
    background: var(--v6-div);
    border-top: 1px solid var(--v6-brd);
    overflow: visible;
    transition: 0.3s;
}

.v6-progress-line {
    height: 6px;
    background: rgba(0,0,0,0.1);
}

.v6-bar {
    height: 100%;
    background: #0055aa;
    width: 0%;
    transition: width 1s linear;
}

.v6-f-main {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid var(--v6-brd);
    transition: 0.3s;
    position: relative;
}

.v6-f-left {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #555;
    position: relative;
}

.nina-v6-dark .v6-f-left {
    color: #aaa;
}

.v6-reload-pulse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f4000a;
    color: #fff;
    border: 2px solid #ccff00;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    animation: v6-ry-flash 1.2s step-end infinite;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 100;
}

.v6-dot-base {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    cursor: help;
    margin-right: 8px;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot-green {
    background: #27ae60;
    box-shadow: 0 0 10px #27ae60;
    animation: v6b 2s infinite;
}

.dot-yellow {
    background: #f1c40f;
    box-shadow: 0 0 10px #f1c40f;
    animation: v6b-fast 1s infinite;
}

.dot-orange {
    background: #e67e22;
    box-shadow: 0 0 10px #e67e22;
    animation: v6b 1.5s infinite;
}

.dot-red {
    background: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
    animation: v6b-fast 0.6s infinite;
}

.v6-dot-base:hover {
    animation: none !important;
    opacity: 1 !important;
}

.v6-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 180%;
    left: -8px;
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 100;
    transition: opacity 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    line-height: 1.4;
}

.v6-dot-base:hover .v6-tooltip {
    visibility: visible;
    opacity: 1;
}

.v6-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 8px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.nina-v6-dark .v6-tooltip {
    background: #444;
    color: #fff;
}

    .nina-v6-dark .v6-tooltip::after {
        border-color: #444 transparent transparent transparent;
    }

.v6-blue-digit {
    color: #0055aa;
    font-weight: 900;
    margin-left: 5px;
    margin-right: 15px;
    transition: 0.3s;
}

.nina-v6-dark .v6-blue-digit {
    color: #44aaff;
}

.v6-int-select {
    background: #003366;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    outline: none;
    margin-left: 10px;
    transition: 0.3s;
}

    .v6-int-select:hover {
        background: #004488;
    }

.nina-v6-dark .v6-int-select {
    background: #1a1a1a;
    color: #44aaff;
    border-color: #44aaff;
}

.v6-copy-line {
    padding: 10px 25px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    position: relative;
}

.v6-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.v6-footer-link {
    color: #0055aa;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    cursor: pointer;
}

.nina-v6-dark .v6-footer-link {
    color: #44aaff;
}

.v6-footer-link:hover {
    text-decoration: underline;
}

.v6-footer-sep {
    color: #ccc;
}

.nina-v6-dark .v6-footer-sep {
    color: #555;
}

/* DIAGNOSE MENÜ */
.v6-diag-wrap {
    position: relative;
}

#v6-btn-test {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    min-width: 140px;
    text-align: center;
}

    #v6-btn-test:hover {
        background: #2980b9;
    }

    #v6-btn-test.test-active {
        background: #e67e22;
        animation: v6b-fast 1s infinite;
    }

.v6-diag-menu {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: var(--v6-tile-bg);
    border: 1px solid var(--v6-brd);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 10px;
    width: 220px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v6-diag-title {
    font-size: 10px;
    font-weight: 900;
    color: #888;
    border-bottom: 1px solid var(--v6-brd);
    padding-bottom: 5px;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 1px;
}

.v6-diag-item {
    background: var(--v6-div);
    border: 1px solid transparent;
    color: var(--v6-txt);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

    .v6-diag-item:hover {
        background: var(--v6-h);
        color: white;
        border-color: var(--v6-h);
    }

/* LOADER ANIMATION */
.v6-loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
}

.v6-radar-circle {
    width: 50px;
    height: 50px;
    border: 3px solid #44aaff;
    border-radius: 50%;
    position: relative;
}

.v6-radar-hand {
    width: 50%;
    height: 3px;
    background: #44aaff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: v6spin 1.5s linear infinite;
}

@keyframes v6spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   KIOSK / VOLLBILD MODUS & OPTIMIERUNGEN 
   ========================================== */
#nina-master-v6:fullscreen {
    background-color: var(--v6-bg) !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
}

#nina-master-v6:-webkit-full-screen {
    background-color: var(--v6-bg) !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
}

.v6-is-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 999998 !important;
    background: var(--v6-bg);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

    .v6-is-fullscreen .v6-filter-strip {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        padding: 20px 50px !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    .v6-is-fullscreen .v6-control-panel {
        position: relative !important;
        height: auto !important;
        margin-top: 10px !important;
        clear: both !important;
        padding: 15px 50px !important;
    }

    .v6-is-fullscreen .v6-content-box {
        flex: 1 1 auto;
        max-height: none !important;
        overflow-y: auto !important;
        padding: 50px;
    }

    .v6-is-fullscreen .v6-action-row {
        display: none !important;
    }

#nina-master-v6 .v6-header-top > div:first-child {
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

#nina-master-v6.v6-is-fullscreen .v6-header-top > div:first-child {
    font-size: 36px !important;
}

.v6-is-fullscreen .v6-header-badges {
    margin-left: 30px;
    gap: 20px;
}

.v6-is-fullscreen .v6-h-badge {
    padding: 12px 24px;
    font-size: 20px;
    border-radius: 40px;
    border-width: 4px;
}

.v6-is-fullscreen .v6-badge-icon svg {
    width: 34px;
    height: 34px;
}

.v6-is-fullscreen .v6-h-badge-count {
    width: 34px;
    height: 34px;
    font-size: 18px;
}

.v6-is-fullscreen .v6-header-top {
    padding: 30px 50px;
}

.v6-is-fullscreen .v6-h-title {
    font-size: 32px;
    letter-spacing: 2px;
}

.v6-is-fullscreen .warn-card-v6 {
    padding: 40px;
    margin-bottom: 40px;
    border-left-width: 34px;
}

.v6-is-fullscreen .v6-card-header {
    font-size: 38px;
    margin-bottom: 25px;
}

.v6-is-fullscreen .v6-card-icon {
    width: 45px;
    height: 45px;
}

.v6-is-fullscreen .v6-level-badge {
    font-size: 18px;
    padding: 10px 20px;
}

.v6-is-fullscreen .v6-info-text {
    font-size: 24px;
    line-height: 1.8;
}

.v6-is-fullscreen .v6-instr-box {
    font-size: 22px;
    padding: 25px;
}

.v6-is-fullscreen .v6-card-meta {
    font-size: 16px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 25px;
    margin-top: 30px;
}

.v6-is-fullscreen .v6-p-grid {
    padding: 30px 50px;
    gap: 30px;
}

.v6-is-fullscreen .v6-p-val {
    font-size: 45px;
}

.v6-is-fullscreen .v6-p-name {
    font-size: 18px;
}

.v6-is-fullscreen .v6-f-main {
    padding: 30px 50px;
    font-size: 20px;
}

.v6-is-fullscreen .v6-int-select {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 10px;
    margin-left: 20px;
}

.v6-is-fullscreen .v6-h-logo {
    height: 130px;
}

.v6-is-fullscreen .v6-header-weather {
    display: flex !important;
    transform: scale(1.3);
    transform-origin: center right;
    margin-left: 50px !important;
    position: relative !important;
    z-index: 9999999 !important;
}

.v6-is-fullscreen #v6-header-time-pill {
    display: flex !important;
    transform: scale(1.3);
    transform-origin: center right;
    margin-left: 30px !important;
    position: relative !important;
    z-index: 9999999 !important;
}

.v6-is-fullscreen .v6-f-btn {
    display: grid !important;
    grid-template-columns: auto auto !important;
    grid-template-rows: auto auto !important;
    gap: 4px 8px !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    padding: 12px 20px !important;
    min-width: 160px !important;
    flex: 1 1 auto !important;
    border-radius: 12px !important;
    border-width: 2px !important;
}

    .v6-is-fullscreen .v6-f-btn svg {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

.v6-is-fullscreen .v6-f-text {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 13px !important;
    text-align: left !important;
    letter-spacing: 1px !important;
}

.v6-is-fullscreen .v6-f-count {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    width: 100% !important;
    padding: 4px 0 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.v6-is-fullscreen .v6-tf-btn {
    font-size: 14px !important;
    padding: 10px 15px !important;
}

.v6-is-fullscreen .v6-tf-badge {
    font-size: 14px !important;
    padding: 4px 12px !important;
}

.v6-is-fullscreen .v6-sort-toggle {
    font-size: 14px !important;
    padding: 10px 15px !important;
}

    .v6-is-fullscreen .v6-sort-toggle svg {
        width: 18px !important;
        height: 18px !important;
    }

.v6-is-fullscreen .v6-label-div {
    font-size: 14px !important;
    padding: 12px 15px !important;
}

/* ==========================================
   PERFEKTER DRUCK-MODUS (ALLE FILTER & TEXTE)
   ========================================== */
@media print {
    html, body, #nina-master-v6, .v6-content-box, #v6-main-content, #v6-warn-output {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
        display: block !important;
    }

    .v6-header-actions, #v6-dimmer-box, #v6-dimmer-overlay, .v6-mobile-scroll-hint,
    #v6-btn-test, #v6-kiosk-btn, .v6-action-row, #v6-btn-reset, #v6-startup-modal, .v6-modal-overlay {
        display: none !important;
    }

    #nina-master-v6 .v6-filter-strip, #nina-master-v6 .v6-control-panel {
        display: flex !important;
        flex-wrap: wrap !important;
        background: #fff !important;
        border: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #nina-master-v6 .v6-f-btn, #nina-master-v6 .v6-tf-btn, #nina-master-v6 #v6-sort-btn {
        border: 2px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        margin: 2px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

        #nina-master-v6 .v6-f-text, #nina-master-v6 .v6-f-count, #nina-master-v6 .v6-tf-btn span, #nina-master-v6 .v6-tf-badge {
            color: #000 !important;
            background: #fff !important;
        }

        #nina-master-v6 .v6-f-btn svg {
            fill: #000 !important;
            color: #000 !important;
        }

    .warn-card-v6, .v6-p-tile {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 20px !important;
        border: 2px solid #555 !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .v6-info-text, .v6-card-header, .v6-card-meta, .v6-instr-box {
        color: #000 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: normal !important;
    }

        .warn-card-v6 *, .v6-info-text * {
            max-height: none !important;
            height: auto !important;
            overflow: visible !important;
        }
}

/* ==========================================
   IFRAME / EINBETTUNGS-MODUS (NUR BLINKZEILE)
   ========================================== */
body.v6-iframe-active {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

    body.v6-iframe-active #nina-master-v6 {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
        /* ECKEN FIX: Entfernt die abgerundeten Ecken, die den Balken abgeschnitten haben */
        border-radius: 0 !important;
    }

    /* Versteckt alles außer der Flashbar */
    body.v6-iframe-active .v6-header-top,
    body.v6-iframe-active .v6-label-div,
    body.v6-iframe-active .v6-mobile-scroll-hint,
    body.v6-iframe-active .v6-filter-strip,
    body.v6-iframe-active .v6-control-panel,
    body.v6-iframe-active .v6-block-sep,
    body.v6-iframe-active #v6-pegel-radar,
    body.v6-iframe-active #v6-wetter-maps-box,
    body.v6-iframe-active .v6-content-box,
    body.v6-iframe-active .v6-link-section,
    body.v6-iframe-active .v6-footer,
    body.v6-iframe-active #v6-startup-modal,
    body.v6-iframe-active .v6-modal-overlay,
    body.v6-iframe-active #v6-dimmer-overlay {
        display: none !important;
    }

    /* IFRAME-FLASHBAR DESIGN */
    body.v6-iframe-active #v6-flash-bar {
        cursor: pointer !important;
        margin: 0 !important;
        padding: 12px 10px !important;
        border-radius: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: none !important;
        border-bottom: 3px solid rgba(0,0,0,0.2) !important;
    }

    body.v6-iframe-active #v6-flash-stop {
        display: none !important;
    }

.v6-static-red {
    background-color: #f4000a !important;
    color: white !important;
    animation: none !important;
}

/* GANZ WICHTIG: Handyanpassung für das Iframe (Wenn viele Warnungen da sind) */
@media (max-width: 650px) {
    body.v6-iframe-active .v6-flash-inner {
        flex-direction: column !important; /* Text oben, Pillen darunter */
        gap: 8px !important;
    }

    body.v6-iframe-active .v6-flash-text {
        width: 100% !important;
        text-align: center !important;
        font-size: 13px !important;
    }

    body.v6-iframe-active .v6-header-badges {
        justify-content: center !important;
        gap: 8px !important;
    }

    body.v6-iframe-active .v6-h-badge {
        padding: 4px 10px !important;
        font-size: 12px !important;
        border-width: 2px !important;
    }

    body.v6-iframe-active .v6-badge-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    body.v6-iframe-active .v6-h-badge-count {
        width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
}
