﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #CDC2BC;
}

/*Header*/
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #b8a9a1;
}

.portal-nav-left a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.portal-logo img {
    height: 42px;
}

.portal-nav-left {
    display: flex;
    gap: 30px;
}

.nav-link:hover {
    border-bottom: 3px solid #999;
}

.nav-link.active {
    border-bottom: 3px solid #000;
}

/*Login*/
.login-box{
    width: min(100%, 600px);
    margin: 80px auto;
    padding:24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    box-sizing: border-box;
    background: #E5DDD8;
}

h1 {
    margin-top: 0;
    font-size: 1.8rem;
}

label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #142b83;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.button:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.button:active {
    transform: scale(1.15);
}

.login-box a,
.login-box a:link,
.login-box a:visited,
.login-box a:hover,
.login-box a:active,
.login-box a:focus {
    color: #000 !important;
    text-decoration: underline !important;
}

.error {
    color: #000;
    margin-bottom: 12px;
}

/*Dashboard*/
.dashboard-box {
    width: calc(100% - 40px);
    max-width: 1200px;
    min-width: 600px;
    margin: 80px auto;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    box-sizing: border-box;
    background: #E5DDD8;
}

.dashboard-box--wide {
    background: #E5DDD8;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    margin-bottom:1rem;
    background-color: #EDEDED;
    color: #fff;
    text-decoration: none;
    border-radius: 9px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    background: #BEAA9D;
}

.file-table th, .file-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    background: #C9BCB5;
    white-space: nowrap;
}

.file-table th:nth-child(1), .file-table td:nth-child(1) {
    width: 40%;
}

.file-table th:nth-child(2), .file-table td:nth-child(2) {
    width: 25%;
}

.file-table th:nth-child(3), .file-table td:nth-child(3) {
    width: 20%;
}

.file-table th:nth-child(4), .file-table td:nth-child(4) {
    width: 15%;
}

file-table th {      
    font-weight: 700;
}

.file-table a {
    text-decoration: underline;
    color:#000;
}

/*Profil*/
.success-message {
    color: #1f7a1f;
    margin-bottom: 12px;
    font-weight: 600;
}

.profil-details {
    margin-bottom: 24px;
}

.profil-details p {
    margin-bottom: 12px;
}

.profil-form {
    margin-top: 10px;
}

.profil-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button-link {
    display: inline-block;
    padding: 12px 18px;
    background: #EDEDED;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/*Dateien*/
.filter-form {
    margin: 20px 0;
}

.filter-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-form select {
    width: 100%;
    max-width: 360px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/*Passwort ändern*/
.form-group {
    margin-bottom: 20px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    box-sizing: border-box;
    border: 1px solid #bfbfbf;
    border-radius: 8px;
    font-size: 16px;
    padding-right:40px;
}

.password-wrapper .toggle-password {
    all:unset;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.password-rules {
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.password-rules .rules-title {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.password-rules ul {
    margin: 0;
    padding-left: 20px;
}

.password-rules li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.password-rules li.valid {
    color: #1f7a1f;
}

.password-rules li.invalid {
    color: #000;
}

.password-match {
    margin-top: 6px;
    font-size: 0.9rem;
}

.password-match.valid {
    color: #1f7a1f;
}

.password-match.invalid {
    color: #b00020;
}

.dashboard-box a,
.dashboard-box a:link,
.dashboard-box a:visited,
.dashboard-box a:hover,
.dashboard-box a:active,
.dashboard-box a:focus {
    color: #000 !important;
    text-decoration: underline !important;
}

/*upload*/
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.vermieter-overview {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 30px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vermieter-box {
    width: 100%;
    background: #E5DDD8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.vermieter-box h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.vermieter-box p {
    margin-top: 0;
    margin-bottom: 20px;
}

/*Objekt anlegen*/
.objekt-block {
    background: #D9D0CA;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.objekt-block label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.objekt-block input, .objekt-block select {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.objekt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.objekt-actions button, .remove-objekt-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #EDEDED;
    color: #000;
    text-decoration: none;
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

.objekt-actions button:hover, .remove-objekt-btn:hover {
    background-color: #d8d8d8;
}

/*Vermieter Objekte*/
.objekt-dokumente-liste {
    margin: 0;
    padding-left: 18px;
}

.objekt-dokumente-liste li {
    margin-bottom: 8px;
}

.objekt-dokumente-liste a {
    color: #000;
    text-decoration: underline;
}

.objekt-dokumente-liste a:hover, .objekt-dokumente-liste a:visited, .objekt-dokumente-liste a:active {
    color: #000;
}