/* --- SPEZIFISCHES DESIGN FÜR JESSY.PHP --- */

body.jessy-theme {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* FULL WIDTH OVERRIDE: Da keine Sidebar existiert, muss der Margin weg */
.jessy-theme .main-wrapper {
    margin-left: 0 !important;
    width: 100%;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    pointer-events: none;
}

.butterfly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    transition: opacity 2s ease-out;
}

.butterfly {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: fly 15s linear infinite;
    filter: drop-shadow(0 2px 3px rgba(161, 120, 247, 0.3));
    will-change: transform, opacity;
}

@keyframes fly {
    0% { transform: translateY(110vh) translateX(-10vw) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) translateX(10vw) rotate(45deg); opacity: 0; }
}

.content-safe-area {
    position: relative;
    z-index: 10;
}

/* --- Gatekeeper / Login --- */
.gatekeeper-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid #a178f7;
    box-shadow: 0 10px 25px rgba(161, 120, 247, 0.2);
    max-width: 400px;
    margin: 10vh auto;
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 100;
}

/* --- Content Elements --- */
.jessy-content {
    position: relative;
    z-index: 5;
}

.jessy-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d8b4fe;
    box-shadow: 0 4px 15px -3px rgba(161, 120, 247, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
    align-items: stretch !important;
    display: flex;
    flex-direction: column;
}

.card-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jessy-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(161, 120, 247, 0.25);
    border-color: #a178f7;
}

.welcome-title {
    color: #7e22ce;
    font-family: 'Inter', sans-serif;
}

.card-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9d5ff;
    border-radius: 0.5rem;
    margin-top: 1rem;
    background: #fdfbff;
    color: #4b5563;
}

.card-input:focus {
    outline: none;
    border-color: #a178f7;
    box-shadow: 0 0 0 3px rgba(161, 120, 247, 0.1);
}

.logout-btn {
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.logout-btn:hover {
    color: #ef4444;
    background: rgba(254, 226, 226, 0.5);
}

/* --- Search Results --- */
.card-results {
    width: 100%;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border-top: 1px solid #f3e8ff;
    padding-top: 1rem;
}

.card-results::-webkit-scrollbar { width: 6px; }
.card-results::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.card-results::-webkit-scrollbar-thumb { background: #d8b4fe; border-radius: 4px; }
.card-results::-webkit-scrollbar-thumb:hover { background: #a178f7; }

.result-row {
    padding: 0.75rem;
    border-bottom: 1px solid #f9fafb;
    text-align: left;
    transition: background-color 0.1s;
    border-radius: 0.5rem;
}

.result-row:last-child { border-bottom: none; }
.result-row:hover { background-color: #f5f3ff; }

.res-highlight { color: #7e22ce; font-weight: 700; display: block; font-size: 0.95rem; }
.res-sub { color: #4b5563; font-size: 0.9rem; margin-top: 0.1rem; display: block; }
.no-res-msg { color: #9ca3af; font-size: 0.9rem; text-align: center; padding: 1rem 0; font-style: italic; }