/* ===========================================
   USER.CSS – Vampire Isarauen
   Joomla 4/5 – Cassiopeia
   Konsolidiert
   =========================================== */

/* 1. Seitenhintergrund */
body {
    background: url('../images/hintergrund/vampire-bg.jpg') repeat top left;
    background-color: #000;
    color: #e0e0e0;
    box-sizing: border-box;
}

/* 2. Header & Logo entfernen */
.navbar-brand,
.container-header.full-width {
    display: none !important;
}

/* 3. Sidebar & Menu */
.grid-child.container-sidebar-right .mod-menu.mod-list.nav {
    background-color: rgba(0,0,0,0.85);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.grid-child.container-sidebar-right .mod-menu.mod-list.nav a {
    color: #eee;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.grid-child.container-sidebar-right .mod-menu.mod-list.nav a:hover {
    color: #b30000;
    background-color: rgba(179,0,0,0.2);
}

/* Sidebar Cards & Login */
.grid-child.container-sidebar-right .card,
.grid-child.container-sidebar-right .card.mod-login,
.mod-login,
.moduletable.mod-login {
    background-color: rgba(0,0,0,0.61);
    padding: 1rem;
    border-radius: 8px;
    color: #eee;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    max-width: 300px;
    margin: 1rem auto;
}

.mod-login input,
.mod-login select,
.moduletable.mod-login input,
.moduletable.mod-login select {
    background-color: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.4rem;
    width: 100%;
    margin-bottom: 0.8rem;
}

.mod-login button,
.moduletable.mod-login button {
    background-color: #7b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.mod-login button:hover {
    background-color: #a00000;
}

/* 4. Globale Formulare & Visforms */
input,
textarea,
select {
    background-color: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #b30000;
    box-shadow: 0 0 5px rgba(179,0,0,0.6);
    outline: none;
}

label {
    color: #ccc;
    font-weight: 600;
}

/* Buttons global */
button,
.btn,
input[type="submit"] {
    background-color: #7b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
    background-color: #a00000;
}

/* System-Hinweise */
.alert {
    background-color: rgba(0,0,0,0.61);
    border-left: 4px solid #b30000;
    color: #eee;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.alert-success { border-left-color: #3a7b00; }
.alert-warning { border-left-color: #b36b00; }
.alert-danger,
.alert-error { border-left-color: #b30000; }

/* 5. Visforms – Formular & Datenausgabe */
.visforms,
.visforms-form-container,
.visforms-form-container form,
.visforms-form-container .visforms-output,
.visdatatabledatavertical,
.visdatatabledatavertical table,
.visdatatabledatavertical th,
.visdatatabledatavertical td {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    text-align: left;
    float: none;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}

.visdatatabledatavertical * {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.visforms h1,
.visforms h2 {
    color: #b30000;
    text-align: center;
    margin-bottom: 1.5rem;
}

.visforms label {
    display: block;
    margin-bottom: 0.3rem;
}

.visforms input,
.visforms textarea,
.visforms select {
    background-color: #111;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.visforms select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,...");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.65rem auto;
}

.visforms select:focus,
.visforms input:focus,
.visforms textarea:focus {
    border-color: #b30000;
    box-shadow: 0 0 5px rgba(179,0,0,0.6);
    outline: none;
}

.visforms button,
.visforms .btn {
    background-color: #7b0000;
    border: none;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.visforms button:hover,
.visforms .btn:hover {
    background-color: #a00000;
}

/* Custom Checkbox & Radio */
.visforms input[type="checkbox"],
.visforms input[type="radio"] { display: none; }

.visforms input[type="checkbox"] + label,
.visforms input[type="radio"] + label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    display: inline-block;
    color: #eee;
}

.visforms input[type="checkbox"] + label:before,
.visforms input[type="radio"] + label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid #444;
    border-radius: 3px;
    background: #111;
}

.visforms input[type="checkbox"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 10px;
    height: 5px;
    border-left: 2px solid #b30000;
    border-bottom: 2px solid #b30000;
    transform: rotate(-45deg);
}

.visforms input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b30000;
}

/* Responsive */
@media (max-width: 768px) {
    .visforms {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
}

/* Globale Container Cassiopeia */
.container,
.container-fluid {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    max-width: 100%;
}
