* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
}
body {
    background-color: #435165;
}
.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
}
.login h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}
.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #01830baf;
    color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}
.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
   margin-top: 20px;
    background-color: #598d36;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
  background-color: #064d0b;
    transition: background-color 0.2s;
}
.navtop {
	background-color: #2f3947;
	height: 60px;
	width: 100%;
	border: 0;
	position: sticky;
	top: 0;
	z-index: 100;
}
.navtop div {
	display: flex;
	margin: 0 auto;
	width: 100%;
	max-width: 1600px;
	height: 100%;
	padding: 0 20px;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: 24px;
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: normal;
}
.navtop div a {
	padding: 0 20px;
	text-decoration: none;
	color: #c1c4c8;
	font-weight: bold;
}
.navtop div a i {
	padding: 2px 8px 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}
body.loggedin {
	background-color: #f3f4f7;
}
.content {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}
.toolbar {
	padding: 5px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#search-container {
	display: flex;
	align-items: center;
}

#search-container .dataTables_filter {
	margin: 0;
}

#search-container .dataTables_filter label {
	color: #666;
	font-weight: normal;
}

#search-container .dataTables_filter input {
	margin-left: 10px;
	color: #666;
	border: 1px solid #ccc;
}
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content > p, .content > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}


<!--forms-->
div#success {
    text-align: center;
    box-shadow: 1px 1px 5px #455644;
    background: #bae8ba;
    padding: 10px;
    border-radius: 3px;
    margin: 0 auto;
    width: 350px;
}
.inputBox {
    width: 100%;
    margin: 5px 0px 15px 0px;
    border: #dedede 1px solid;
    box-sizing: border-box;
    padding: 15px;
}
#contact-popup {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    color: #676767;
}
.contact-form {
    width: 350px;
    margin: 0px;
    background-color: white;
    font-family: Arial;
    position: relative;
    left: 50%;
    top: 50%;
    margin-left: -210px;
    margin-top: -255px;
    box-shadow: 1px 1px 5px #444444;
    padding: 20px 40px 40px 40px;
}
#contact-icon {
    padding: 10px 5px 5px 12px;
    width: 58px;
    color: white;
    box-shadow: 1px 1px 5px grey;
    border-radius: 3px;
    cursor: pointer;
    margin: 60px auto;
}
.info {
    color: #d30a0a;
    letter-spacing: 2px;
    padding-left: 5px;
}
#send {
    background-color: #09F;
    border: 1px solid #1398f1;
    font-family: Arial;
    color: white;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}
#contact-popup h1 {
    font-weight: normal;
    text-align: center;
    margin: 10px 0px 20px 0px;
}
.input-error {
    border: #e66262 1px solid;
}

/* Fixierte Spalten mit CSS sticky */
#project_data th:nth-child(1),
#project_data td:nth-child(1),
#archived_data th:nth-child(1),
#archived_data td:nth-child(1),
#statics_data th:nth-child(1),
#statics_data td:nth-child(1),
#statics_archived_data th:nth-child(1),
#statics_archived_data td:nth-child(1) {
    position: sticky;
    left: 0;
    min-width: 70px;
    max-width: 70px;
    background-color: #969493;
    z-index: 1;
}

#project_data th:nth-child(2),
#project_data td:nth-child(2),
#archived_data th:nth-child(2),
#archived_data td:nth-child(2),
#statics_data th:nth-child(2),
#statics_data td:nth-child(2),
#statics_archived_data th:nth-child(2),
#statics_archived_data td:nth-child(2) {
    position: sticky;
    left: 70px;
    background-color: #969493;
    z-index: 1;
}

/* Header braucht höheren z-index */
#project_data thead th,
#archived_data thead th,
#statics_data thead th,
#statics_archived_data thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #c8d2de;
}

#project_data thead th:nth-child(1),
#project_data thead th:nth-child(2),
#archived_data thead th:nth-child(1),
#archived_data thead th:nth-child(2),
#statics_data thead th:nth-child(1),
#statics_data thead th:nth-child(2),
#statics_archived_data thead th:nth-child(1),
#statics_archived_data thead th:nth-child(2) {
    z-index: 3;
    background-color: #969493;
}

/* Zebra-Striping: Jede zweite Zeile dunkler */
#project_data tbody tr:nth-child(even) td,
#archived_data tbody tr:nth-child(even) td,
#statics_data tbody tr:nth-child(even) td,
#statics_archived_data tbody tr:nth-child(even) td {
    background-color: #e9e9e9;
}

/* Erste und zweite Spalte behalten ihre fixierte Farbe */
#project_data tbody tr:nth-child(even) td:nth-child(1),
#project_data tbody tr:nth-child(even) td:nth-child(2),
#archived_data tbody tr:nth-child(even) td:nth-child(1),
#archived_data tbody tr:nth-child(even) td:nth-child(2),
#statics_data tbody tr:nth-child(even) td:nth-child(1),
#statics_data tbody tr:nth-child(even) td:nth-child(2),
#statics_archived_data tbody tr:nth-child(even) td:nth-child(1),
#statics_archived_data tbody tr:nth-child(even) td:nth-child(2) {
    background-color: #969493;
}

/* Konto-Seite ("Mein Konto") */
.account-card {
    background-color: #ffffff;
    border: 1px solid #d4d7dd;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 20px 0;
    max-width: 640px;
}
.account-card h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #e3e5ea;
    padding-bottom: 10px;
}
.account-card .form-group {
    margin-bottom: 14px;
}
.account-card label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}
.account-card input[type="text"],
.account-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
}
.account-card input[disabled] {
    background-color: #f3f4f7;
    cursor: not-allowed;
}
.account-card .hint {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}
.account-card .actions {
    margin-top: 16px;
}
.account-card .alert {
    margin-top: 14px;
}

/* ============================================================
   Projekt-Dialog (Eintrag hinzufügen / Update)
   ============================================================ */

/* Dialog (dialogify) mit fester, mobil-tauglicher Breite */
.dialogify {
    width: 720px !important;
    max-width: calc(100vw - 24px) !important;
}
.dialogify .dialogify__content {
    padding: 20px 22px !important;
}

.project-form {
    color: #3a4256;
}
.project-form * {
    font-size: inherit;
}

/* Abschnitts-Karten */
.project-form .form-section {
    min-width: 0;
    border: 1px solid #e3e6ec;
    border-radius: 8px;
    padding: 14px 16px 4px;
    margin: 0 0 16px;
    background: #fafbfc;
}
.project-form .form-section:last-of-type {
    margin-bottom: 0;
}
.project-form .form-section > legend {
    float: none;
    width: auto;
    border: 0;
    margin: 0 0 12px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a6480;
}

/* Felder: Label links, Eingabe rechts – immer sauber ausgerichtet */
.project-form .grid {
    display: block;
}
.project-form .field {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    column-gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid #eef0f4;
}
.project-form .field:last-child {
    border-bottom: 0;
}
.project-form .field label {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    color: #5b6574;
}
.project-form .field.required label::after {
    content: " *";
    color: #d30a0a;
}
.project-form .field input.form-control,
.project-form .field textarea.form-control {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd4dd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    color: #3a4256;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.project-form .field input.form-control:focus,
.project-form .field textarea.form-control:focus {
    border-color: #598d36;
    box-shadow: 0 0 0 3px rgba(89, 141, 54, 0.15);
    outline: 0;
}

/* Textarea-Felder: Label oben am Eingabefeld ausrichten */
.project-form .field.field-textarea {
    align-items: start;
}
.project-form .field.field-textarea label {
    padding-top: 8px;
}
.project-form .field textarea.form-control {
    min-height: 64px;
    resize: vertical;
}

/* Archiv-Abschnitt im Update-Dialog */
.project-form .archive-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 4px 0;
}
.project-form .archive-row .hint {
    color: #8a909c;
    font-size: 12px;
}

/* ---------- Schritt-für-Schritt-Assistent (Wizard) ---------- */

/* Tab-Leiste oben */
.project-form .wizard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}
.project-form .wizard-tab {
    border: 1px solid #d8dce4;
    background: #f1f3f7;
    color: #5a6480;
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.project-form .wizard-tab:hover {
    background: #e6eaf0;
}
.project-form .wizard-tab.is-active {
    background: #598d36;
    border-color: #598d36;
    color: #fff;
}

/* Nur der aktive Schritt ist sichtbar (Fallback: ohne JS alles sichtbar) */
.project-form.wizard-ready .wizard-step {
    display: none;
}
.project-form.wizard-ready .wizard-step.is-active {
    display: block;
}
.project-form.wizard-ready .wizard-step {
    margin-bottom: 0;
}

/* Footer-Buttons des Dialogs (Abbrechen / Zurück / Weiter-Speichern) */
.dialogify .btn-box {
    border-top: 1px solid #e3e6ec;
    padding-top: 14px;
    margin-top: 18px;
}
.dialogify .btn-box .btn {
    border: 1px solid #cfd4dd;
    background: #fff;
    color: #4a536e;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}
.dialogify .btn-box .btn:hover {
    background: #f3f5f8;
}
.dialogify .btn-box .btn.btn-wizard-primary {
    background: #598d36;
    border-color: #598d36;
    color: #fff;
}
.dialogify .btn-box .btn.btn-wizard-primary:hover {
    background: #4d7a2e;
    color: #fff;
}
.dialogify .btn-box .btn.is-disabled,
.dialogify .btn-box .btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobil: Label über das Eingabefeld stellen */
@media (max-width: 560px) {
    .project-form .field,
    .project-form .field.field-textarea {
        grid-template-columns: 1fr;
        align-items: stretch;
        row-gap: 5px;
    }
    .project-form .field.field-textarea label {
        padding-top: 0;
    }
    .project-form .form-section {
        padding: 12px 12px 2px;
    }
    .project-form .wizard-tab {
        padding: 6px 11px;
    }
    .dialogify .btn-box .btn {
        padding: 8px 11px;
    }
}
