/* Basis-Einstellungen */
html {
    height: 100%;
    font-size: calc(16px + 0.2vw);
    overflow-y: auto;
    scroll-behavior: smooth;
    background-color: #121212;
}

body {
    height: 100%;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: inherit;
    display: flex;
    flex-direction: column;
}

/* Haupt-Layout */
.main-layout {
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

/* Willkommensnachricht */
h1 {
    margin-top: -1.375rem;
    margin-bottom: 1.875rem;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    color: white;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

/* Container für besseren Abstand */
.container {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
    max-width: 100%;
}

/* Card-Design */
.card-body {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white;
    border-radius: 0.625rem;
    padding: 1rem;
}

.card {
    background-color: transparent !important;
    border: none;
    box-shadow: none;
}

/* Form-Container */
.form-container {
    background-color: transparent;
    width: 100%;
}

/* Transparenter Button */
.btn_transparent {
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-focus-ring-color: transparent !important;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.btn_transparent:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Horizontale Linie */
hr {
    border: none;
    height: 0.0625rem;
    background-color: #555;
    margin: 1.25rem 0;
}

/* Online-Benutzer-Anzeige */
.online-users {
    color: white;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    margin-top: 0.625rem;
    text-align: center;
}

/* Chat-Container */
.chat-container {
    flex: 2;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat-Verlauf mit Smooth Scroll */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 0.5rem;
}

/* Einzelne Chat-Nachricht */
.chat-message {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    word-wrap: break-word;
    color: white;
}

/* Chat-Input-Feld */
.chat-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-top: 1rem;
}

.chat-input::placeholder {
    color: #ccc;
}

/* Sidebar / Rechte Box */
.sidebar {
    flex: 1;
    width: 100%;
    max-width: 18rem;
    padding: 1rem;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 0.625rem;
    margin-top: 1rem;
    text-align: center;
}

.sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}

.sidebar .wunschbox-status {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: red;
    margin-top: 0.5rem;
}

.sidebar .online-users {
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    margin-top: 0.625rem;
    color: yellow;
}

/* Icon-Bar unten */
.icon-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.icon-bar img,
.icon-bar svg {
    width: clamp(1.5rem, 2vw, 2.5rem);
    height: clamp(1.5rem, 2vw, 2.5rem);
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-bar img:hover,
.icon-bar svg:hover {
    transform: scale(1.2);
}

/* Responsiv für kleinere Geräte */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .chat-container {
        padding: 0.5rem;
    }

    .chat-message {
        font-size: clamp(0.8rem, 1vw, 0.9rem);
        padding: 0.5rem;
    }

    .chat-input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .btn_transparent {
        font-size: 1.2rem !important;
    }

    .sidebar {
        margin-top: 0.5rem;
    }
}

/* Hochkontrast-Modus */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast h1,
body.high-contrast .online-users,
body.high-contrast .chat-message,
body.high-contrast .btn_transparent,
body.high-contrast .chat-input,
body.high-contrast .sidebar,
body.high-contrast .sidebar .online-users,
body.high-contrast .sidebar .wunschbox-status {
    color: #fff !important;
    background-color: #000 !important;
    border-color: #fff !important;
}

body.high-contrast .chat-message {
    background-color: #111 !important;
}

body.high-contrast hr {
    background-color: #fff;
}
