/* Local Fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --renac-red: #E2001A;
    --renac-red-dark: #B51621;
    --renac-red-light: rgba(226, 0, 26, 0.1);
    --renac-gray: #1a1a1a;
    --renac-gray-medium: #64748b;
    --renac-gray-light: #f8fafc;
    --text-color: #1e293b;
    --bg-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
    --font-special: 'Bricolage Grotesque', sans-serif;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    --side-padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(226, 0, 26, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(226, 0, 26, 0.05) 0px, transparent 50%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--renac-red), var(--renac-red-dark));
}

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

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-divider {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 200;
}

.logo-subtext {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--renac-gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 2rem 80px;
    gap: 5rem;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--renac-gray);
    font-weight: 700;
    letter-spacing: -2px;
}

.text-accent {
    color: var(--renac-red);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--renac-gray-medium);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}


.login-card {
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 460px;
    animation: premiumFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 3.5rem;
}

@keyframes premiumFadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    padding: 2.5rem 3rem 1.5rem;
    text-align: left;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--renac-gray);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--renac-gray-medium);
}

.login-form {
    padding: 0 3rem 3.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--renac-gray-medium);
    margin-left: 4px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 54px;
    padding: 0 1rem 0 3.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
    color: var(--renac-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--renac-red);
    background: #fff;
    box-shadow: 0 8px 20px rgba(226, 0, 26, 0.12);
    transform: translateY(-2px);
}

.form-input:focus ~ i {
    color: var(--renac-red);
    transform: scale(1.15);
}

.form-actions {
    margin-top: 2.5rem;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 250px; }
.flex-2 { flex: 2; min-width: 250px; }

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--renac-red), var(--renac-red-dark));
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(226, 0, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(181, 22, 33, 0.5);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.logout-btn {
    height: 40px;
    padding: 0 1.25rem;
    font-size: 0.8rem;
    background: #f1f5f9;
    color: var(--renac-gray);
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.logout-btn:hover {
    background: var(--renac-red-light);
    color: var(--renac-red);
    border-color: var(--renac-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.1);
}

.logout-btn i {
    display: none;
    font-size: 1.1rem;
}

.menu-trigger {
    font-size: 1.35rem;
    color: var(--renac-gray);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.menu-trigger:hover {
    color: var(--renac-red);
    background: white;
    border-color: var(--renac-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.1);
}

/* Side Menu */
.side-menu {
    height: 100%;
    width: 320px;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: -320px;
    left: auto;
    background-color: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-x: hidden;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    right: 0;
    left: auto;
}

.side-menu-header {
    padding: 2rem;
    background: var(--renac-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.side-menu-logo {
    height: 35px;
    width: auto;
}

.side-menu .close-btn {
    font-size: 2.5rem;
    color: var(--renac-gray-medium);
    text-decoration: none;
    line-height: 1;
}

.side-menu .close-btn:hover {
    color: var(--renac-red);
}

.side-menu-content {
    padding: 2rem 0;
}

.side-menu-content a {
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--renac-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
}

.side-menu-content a i {
    width: 24px;
    color: var(--renac-red);
    font-size: 1.2rem;
}

.side-menu-content a:hover {
    background-color: var(--renac-red-light);
    color: var(--renac-red);
    padding-left: 2.5rem;
}

.menu-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 1.5rem 2rem;
}

.menu-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    backdrop-filter: blur(4px);
    transition: opacity 0.5s;
    opacity: 0;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.welcome-text {
    font-weight: 600;
    color: var(--renac-gray-medium);
}

@media (max-width: 600px) {
    :root {
        --side-padding: 0;
    }
    .header {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
    }
    .side-menu {
        width: 100%;
        right: -100%;
        left: auto;
    }
    .welcome-text, .logout-text {
        display: none !important;
    }
    .logout-btn {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .logout-btn i {
        display: block !important;
        margin: 0 !important;
        font-size: 1.4rem !important;
    }
    .nav-container {
        padding: 0.5rem var(--side-padding, 1rem);
    }
    .logo {
        padding-left: 0;
    }
    .nav-links {
        padding-right: 0;
        gap: 0.5rem;
        display: flex;
        align-items: center;
    }
    .logo-subtext, .logo-divider {
        display: none !important;
    }
    .logo-img {
        height: 25px;
    }
    #sideMenuTrigger {
        order: 10;
    }
    .menu-trigger {
        font-size: 1.8rem;
        padding: 0;
        color: var(--renac-red);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
    }
    .menu-trigger:hover {
        transform: scale(1.1);
        background: transparent;
    }
}

.btn-block {
    width: 100%;
}

/* Hero Image Section */
.hero-image {
    flex: 1;
    position: relative;
    height: 600px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
    animation: premiumFadeRight 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes premiumFadeRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    display: block;
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, rgba(181, 22, 33, 0.2), transparent 70%);
}

/* Dashboard / Welcome */
.welcome-box {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    border-left: 8px solid var(--renac-red);
    box-shadow: var(--shadow-premium);
    margin-bottom: 2.5rem;
}

.welcome-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--renac-gray);
}

/* Footer */
/* System Status */
.system-status-container {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.system-status-container h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--renac-gray);
    font-weight: 700;
}

.status-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--renac-gray-medium);
}

.status-item i {
    font-size: 1.1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item.status-online i {
    color: #166534;
}

.status-item.status-offline i {
    color: #991b1b;
}

.status-online {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-offline {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.footer {
    background: #fff;
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    color: var(--renac-gray-medium);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--renac-gray-medium);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--renac-red);
}

.error-message {
    background: #fff1f2;
    color: #be123c;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
    border: 1px solid #fecdd3;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --side-padding: 1.5rem;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    
    .login-card {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .hero-image {
        width: 100%;
        height: 400px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--renac-gray-light);
    color: var(--renac-gray);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--renac-red-light);
    color: var(--renac-red);
    border-color: var(--renac-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 0, 26, 0.1);
}

.form-divider {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.form-divider span {
    padding: 0 10px;
}

.pulse-important {
    animation: pulse-border 1.5s ease-in-out 3;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 0, 26, 0.4);
        border-color: var(--renac-red);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(226, 0, 26, 0);
        border-color: var(--renac-red-dark);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 0, 26, 0);
        border-color: #e2e8f0;
    }
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 250px; }
.flex-2 { flex: 2; min-width: 250px; }

.container {
    width: 100%;
    margin: 0;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    box-sizing: border-box;
}
.data-table .ui-datatable-data td {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 2px 8px !important;
}

@keyframes aiPulseGlobal {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.agent-active-pulse {
    animation: aiPulseGlobal 2s infinite !important;
    border-radius: 4px;
}

.data-table .ui-column-title {
    white-space: normal !important;
}

/* Deaktiviert Animationen/Transitions in Bereichen, die per Poll aktualisiert werden */
.no-anim, .no-anim * {
    animation: none !important;
    transition: none !important;
}


/* Modern Status Select Dropdown */
.status-select-modern .ui-selectonemenu-label {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e2e8f0 !important;
    background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
}
.status-select-modern:hover .ui-selectonemenu-label {
    border-color: #00457d !important;
    box-shadow: 0 4px 12px rgba(0, 69, 125, 0.15) !important;
}
.status-select-modern .ui-selectonemenu-trigger {
    border-radius: 0 10px 10px 0 !important;
    background: linear-gradient(135deg, #00457d, #0066b3) !important;
    color: white !important;
    width: 40px !important;
}
.status-panel-modern {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 69, 125, 0.2) !important;
    border: none !important;
    overflow: hidden !important;
}
.status-panel-modern .ui-selectonemenu-item {
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    border-left: 4px solid transparent !important;
}
.status-panel-modern .ui-selectonemenu-item:hover {
    background: linear-gradient(135deg, #e8f4fd, #d0e8f7) !important;
    border-left-color: #00457d !important;
    padding-left: 22px !important;
}
.status-panel-modern .ui-selectonemenu-item.ui-state-highlight {
    background: linear-gradient(135deg, #00457d, #0066b3) !important;
    color: white !important;
}

/* Premium Tooltip */
.ui-tooltip.premium-tooltip {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.premium-tooltip .ui-tooltip-text {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1e293b !important;
    border: 1px solid rgba(226, 0, 26, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
}

.tooltip-container {
    padding: 16px;
    max-width: 500px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tooltip-header i {
    color: var(--renac-red);
    font-size: 1.2rem;
}

.tooltip-header span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--renac-gray);
}

.tooltip-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

.tooltip-footer {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px dotted #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* Autocomplete Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    z-index: 1100;
    display: none;
    overflow: hidden;
    padding: 8px 0;
}
.autocomplete-item {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: #1e293b;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item.active {
    background: #f8fafc;
    color: var(--renac-red);
    padding-left: 24px;
}
.autocomplete-label {
    font-weight: 600;
}
.autocomplete-sublabel {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
.autocomplete-sublabel i {
    font-size: 0.7rem;
    opacity: 0.6;
}
.global-autocomplete-dropdown {
    width: 300px;
    font-size: 0.85rem;
}
/* Styling für das Autocomplete in der Hauptsuche auf suchen.xhtml */
.search-input-wrapper .main-autocomplete-dropdown {
    right: 140px; /* Platz für den Suchen-Button lassen */
}

/* Filter Buttons */
.btn-filter {
    padding: 2px 10px !important;
    font-size: 0.75rem !important;
    height: 26px !important;
    border-radius: 15px !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Verhindert Breitenänderung bei Auswahl durch reservierten Platz für Fettdruck */
.btn-filter::after {
    display: block !important;
    content: attr(data-text) !important;
    font-weight: 700 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.btn-filter.ui-state-active, .btn-filter.btn-primary {
    font-weight: 700 !important;
}

/* Technologie-Filter spezifisch */
.btn-tech {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #64748b !important;
}

.btn-tech.is-project {
    border-color: #00457d !important;
    background: #e6f0f9 !important;
    color: #00457d !important;
    font-weight: 600 !important;
}

.btn-tech.ui-state-active, .btn-tech.btn-primary {
    border-color: #00457d !important;
    background: #00457d !important;
    color: white !important;
}

/* GeoLok-Filter spezifisch */
.btn-geolok {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #64748b !important;
}

.btn-geolok.is-project {
    border-color: #00457d !important;
    background: #e6f0f9 !important;
    color: #00457d !important;
    font-weight: 600 !important;
}

.btn-geolok.ui-state-active, .btn-geolok.btn-primary {
    border-color: #00457d !important;
    background: #00457d !important;
    color: white !important;
}

/* Schnittmenge/Union Button */
.btn-logic {
    font-weight: 600 !important;
}

.btn-logic.is-intersection {
    border: 1px solid #059669 !important;
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.btn-logic.is-union {
    border: 1px solid #f59e0b !important;
    background: #fef3c7 !important;
    color: #92400e !important;
}
.geolok-chip-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    padding: 4px 0;
}
.geolok-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    font-size: 0.85rem;
    color: #0369a1;
    white-space: nowrap;
}
.geolok-chip-typ {
    background: #0ea5e9;
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.geolok-chip-remove.ui-button {
    background: transparent !important;
    border: none !important;
    color: #0369a1 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: unset !important;
    box-shadow: none !important;
    margin-left: 2px;
}
.geolok-chip-remove.ui-button:hover {
    color: #dc2626 !important;
}
.geolok-parent {
    font-size: 0.75rem;
    color: #0284c7;
    font-weight: 600;
    opacity: 0.7;
}