/* Globale Anpassungen für das kleine Chat-Fenster */
body {
    font: 14px Arial, sans-serif;
    color: #222;
    text-align: center;
    padding: 10px !important; 
    margin: 0 !important;
    background: #ffffff;
    box-sizing: border-box;
}
  
form, p, span {
    margin: 0;
    padding: 0; 
}
  
input { 
    font: 14px Arial, sans-serif; 
}
  
a {
    color: #0054a6; /* Engelhorn Blau */
    text-decoration: none; 
}
  
a:hover { 
    text-decoration: underline; 
}
  
/* Flexibler Container für Login und Chat */
#wrapper, #loginform {
    margin: 0 auto !important;
    padding: 15px !important;
    background: #f8fafc; /* Modernerer, cleaner Hintergrund */
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
}
  
#loginform p { 
    margin: 10px 0; 
}

#loginform label {
    display: block;
    margin-bottom: 12px;
    text-align: left;
    font-weight: bold;
}

/* Optimierte Chatbox für die Iframe-Größe */
#chatbox {
    text-align: left;
    margin: 0 auto 15px auto;
    padding: 12px;
    background: #ffffff;
    height: 310px !important; /* Passt ideal in das 520px hohe Iframe */
    width: 100% !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow-y: auto; 
    box-sizing: border-box;
}

/* Eingabefelder und Buttons nebeneinander ausrichten */
form[name="message"] {
    display: flex;
    gap: 8px;
    width: 100%;
}

#usermsg {
    flex: 1; /* Nimmt den restlichen Platz ein */
}

#submitmsg {
    width: auto;
    background-color: #0054a6 !important; /* Engelhorn Blau */
    color: #ffffff;
    border: none;
}
  
.error { 
    color: #df2020; 
    display: block;
    margin-bottom: 10px;
}
  
/* Header-Menü kompakter gestalten für schmale Ansichten */
#menu { 
    padding: 0 0 15px 0; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.welcome { 
    float: none; 
    text-align: left;
}
  
.logout { 
    float: none; 
}
  
.msgln { 
    margin: 0 0 6px 0; 
    font-size: 13px;
    line-height: 1.4;
}
