body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #181a20;
    color: #ebe5c7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-size: 2.8em;
    color: #ffdd63;
    text-shadow: 0 0 10px #e6c20090, 0 2px 20px #0ffad3aa;
    margin-top: 2.2rem;
    margin-bottom: 2.2rem;
    letter-spacing: 0.03em;
    font-weight: 700;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2em;
    margin-bottom: 2.4em;
}

input[type="text"] {
    width: 350px;
    padding: 0.85em;
    font-size: 1.1em;
    background: #232428;
    color: #e3c97d;
    border: 2px solid #39e3e2;
    border-radius: 12px;
    outline: none;
    box-shadow: 0 0 7px #0ffad3aa;
    transition: border 0.2s, box-shadow 0.22s;
}

input[type="text"]:focus {
    border-color: #ffd700;
    box-shadow: 0 0 18px #ffd70070, 0 0 3px #0ffad3cc;
    background: #222117;
}

button {
    padding: 0.85em 2.2em;
    background: linear-gradient(90deg, #39e3e2 0%, #ffd700 100%);
    border: none;
    border-radius: 12px;
    color: #222117;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 14px #39e3e255;
    transition: background 0.22s, color 0.2s, transform 0.1s, box-shadow 0.19s;
    letter-spacing: 0.04em;
}

button:hover {
    background: linear-gradient(90deg, #ffd700 0%, #39e3e2 100%);
    color: #111007;
    transform: scale(1.04);
    box-shadow: 0 0 24px #ffd70099, 0 0 8px #0ffad399;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.1em 2.2em 0.2em 0;
    gap: 1.5em;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    background: linear-gradient(90deg, #0ffad3 0%, #ffd700 100%);
    color: #222117;
    padding: 0.48em 1.2em 0.48em 1.1em;
    border-radius: 1.3em;
    font-weight: bold;
    font-size: 1.07em;
    box-shadow: 0 1px 9px #0ffad388;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu summary {
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.profile-avatar-small {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222117;
    box-shadow: 0 0 0 1px #0ffad3aa;
}

.synhtia-menu summary {
    list-style: none;
}

.synhtia-menu summary::-webkit-details-marker {
    display: none;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.55em);
    left: 0;
    min-width: 190px;
    background: #202227;
    border: 1.5px solid #0ffad377;
    border-radius: 12px;
    box-shadow: 0 8px 28px #0008, 0 0 18px #0ffad333;
    padding: 0.45em;
    z-index: 20;
}

.user-dropdown a {
    display: block;
    color: #ebe5c7;
    text-decoration: none;
    font-weight: 700;
    padding: 0.7em 0.85em;
    border-radius: 8px;
}

.user-dropdown a:hover {
    background: linear-gradient(90deg, #39e3e233, #ffd70033);
    color: #ffdd63;
}

.synhtia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    background: linear-gradient(90deg, #ffd700 0%, #39e3e2 100%);
    color: #222117;
    padding: 0.38em 1.15em 0.38em 0.45em;
    border-radius: 1.3em;
    font-weight: bold;
    font-size: 1.07em;
    box-shadow: 0 1px 12px #ffd70066, 0 0 10px #0ffad344;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
}

.synhtia-dropdown {
    left: auto;
    right: 0;
    min-width: 230px;
}

.synhtia-avatar {
    width: 2.35em;
    height: 2.35em;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 22%;
    border: 2px solid #222117;
    box-shadow: 0 0 0 1px #ffd700aa;
}

.logout-btn {
    background: #181a20;
    color: #ffd700;
    border: 1.2px solid #ffd700;
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    padding: 0.48em 1.4em;
    cursor: pointer;
    transition: background 0.22s, color 0.18s, box-shadow 0.13s;
    margin-left: 0.6em;
}

.logout-btn:hover {
    background: #ffd700;
    color: #181a20;
    box-shadow: 0 2px 10px #ffd70077;
}

.answer-card {
    max-width: 900px;
    margin: 0 auto 2em auto;
    background: linear-gradient(120deg,#232428 80%, #2e2d2b 100%);
    border-radius: 19px;
    padding: 2.2em 2.7em 1.7em 2.7em;
    box-shadow: 0 4px 28px #ffd7001b, 0 1px 8px #0ffad336;
    font-size: 1.28em;
    line-height: 1.6;
    position: relative;
    border: 1.5px solid #0ffad377;
    backdrop-filter: blur(0.8px);
}

.stimmungs-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ffd700, #39e3e2 90%);
    color: #232428;
    font-size: 1em;
    border-radius: 12px;
    padding: 0.17em 1.1em 0.19em 0.8em;
    margin-left: 0.9em;
    box-shadow: 0 1px 7px #ffd70044, 0 1px 3px #0ffad333;
    vertical-align: middle;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.audio-player-wrap {
    margin: 1.5em 0 0.6em 0;
    display: flex;
    justify-content: flex-start;
}

audio {
    background: #222c;
    border-radius: 10px;
    width: 320px;
    accent-color: #ffd700;
    box-shadow: 0 0 10px #ffd70044;
}

.status-shell {
    max-width: 1100px;
    margin: 0 auto 3em auto;
    padding: 1.4em;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2em;
}

.status-actions {
    display: flex;
    gap: 0.7em;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1em;
}

.status-panel {
    background: linear-gradient(120deg,#232428 80%, #2e2d2b 100%);
    border: 1.5px solid #0ffad377;
    border-radius: 16px;
    box-shadow: 0 4px 24px #0ffad321;
    padding: 1.3em;
}

.status-panel.wide {
    margin-top: 1em;
}

.status-panel h2 {
    margin: 0 0 0.8em 0;
    color: #ffdd63;
    font-size: 1.25em;
}

.status-panel p {
    margin: 0 0 0.7em 0;
    font-weight: 700;
}

.status-panel code {
    display: block;
    color: #ebe5c7;
    background: #181a20;
    border-radius: 8px;
    padding: 0.7em;
    overflow-wrap: anywhere;
}

.status-dot {
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    border-radius: 50%;
    margin-right: 0.55em;
    background: #ffd700;
    box-shadow: 0 0 9px #ffd70077;
}

.status-dot.ok {
    background: #39e3a5;
    box-shadow: 0 0 9px #39e3a577;
}

.status-dot.warn {
    background: #ffd700;
}

.status-dot.bad {
    background: #ff6565;
    box-shadow: 0 0 9px #ff656577;
}

.db-table {
    display: grid;
    gap: 0.45em;
}

.db-row {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1.2fr 0.5fr;
    gap: 0.8em;
    align-items: center;
    padding: 0.65em 0.75em;
    background: #181a20;
    border-radius: 8px;
}

/* 🌐 Mobile Optimierung */
@media (max-width: 800px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-end;
        padding: 1em;
        gap: 0.6em;
    }

    .user-badge {
        font-size: 0.95em;
        padding: 0.4em 1em;
        max-width: 90vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-shadow: 0 1px 6px #0ffad355;
    }

    .synhtia-badge {
        font-size: 0.95em;
        padding: 0.34em 0.95em 0.34em 0.4em;
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .synhtia-avatar {
        width: 2em;
        height: 2em;
        flex: 0 0 auto;
    }

    .logout-btn {
        width: auto;
        padding: 0.45em 1em;
    }

    form {
        flex-direction: column;
        align-items: stretch;
        gap: 1em;
        padding: 0 1em;
    }

    input[type="text"], button, audio {
        width: 100%;
        max-width: 95vw;
    }

    h1 {
        font-size: 2em;
        margin: 2em 1em 1.4em 1em;
        text-align: center;
    }

    .answer-card {
        padding: 1em 1em;
        font-size: 1.1em;
    }

    .status-header,
    .status-grid,
    .db-row {
        grid-template-columns: 1fr;
    }

    .status-header {
        flex-direction: column;
    }
}
